/* ==========================================================================
   FINDORA — Design System
   Premium / Minimal / Editorial real-estate visual language.
   ========================================================================== */


/* ---------- Tokens ---------- */
:root{
  /* color */
  --ink:#15161A;
  --ink-soft:#3A3B40;
  --muted:#79756B;
  --muted-2:#9A968B;
  --line:#E8E3D8;
  --line-strong:#D8D2C2;
  --bg:#FBF9F5;
  --surface:#FFFFFF;
  --sand:#F3EDE1;
  --sand-2:#EAE1CD;
  --gold:#B8874C;
  --success:#3F7D58;
  --success-bg:#E7EFE9;
  --danger:#B3492F;
  --danger-bg:#F6E7E1;
  --overlay:rgba(15,16,20,.55);

  /* radius */
  --r-sm:10px;
  --r-input:14px;
  --r-btn:14px;
  --r-card:20px;
  --r-lg:24px;
  --r-pill:999px;

  /* shadow */
  --shadow-xs:0 1px 2px rgba(21,22,26,.05);
  --shadow-sm:0 6px 16px -8px rgba(21,22,26,.12);
  --shadow-md:0 16px 32px -12px rgba(21,22,26,.16);
  --shadow-lg:0 28px 56px -18px rgba(21,22,26,.22);

  /* motion */
  --dur-fast:150ms;
  --dur:220ms;
  --dur-slow:320ms;
  --ease:cubic-bezier(.4,0,.2,1);

  /* type */
  --font-display:'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* layout */
  --container:1280px;
  --header-h:80px;
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--font-body); font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  padding-bottom:0;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:none; cursor:pointer; }
input,select,textarea{ font:inherit; color:inherit; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4,p{ margin:0; }
svg{ display:block; }

:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; border-radius:4px; }

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
@media (max-width:640px){ .container{ padding:0 18px; } }

/* ---------- Typography ---------- */
.display-1{ font-family:var(--font-display); font-weight:800; letter-spacing:-.02em; line-height:.98; font-size:clamp(2.6rem,6vw,4.75rem); }
.h1{ font-family:var(--font-display); font-weight:700; letter-spacing:-.015em; line-height:1.1; font-size:clamp(1.9rem,3.4vw,2.5rem); }
.h2{ font-family:var(--font-display); font-weight:700; letter-spacing:-.01em; line-height:1.15; font-size:clamp(1.5rem,2.4vw,1.9rem); }
.h3{ font-family:var(--font-display); font-weight:700; line-height:1.25; font-size:1.15rem; }
.eyebrow{ font-family:var(--font-body); font-weight:600; text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; color:var(--muted); }
.lede{ font-size:1.05rem; color:var(--muted); line-height:1.6; }
.text-muted{ color:var(--muted); }
.text-sm{ font-size:.875rem; }
.text-xs{ font-size:.75rem; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 24px; border-radius:var(--r-btn); font-weight:600; font-size:.9rem;
  transition:transform var(--dur-fast) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space:nowrap; border:1px solid transparent;
}
.btn:active{ transform:scale(.97); }
.btn-primary{ background:var(--ink); color:#fff; }
.btn-primary:hover{ background:#000; box-shadow:var(--shadow-sm); }
.btn-secondary{ background:var(--sand); color:var(--ink); }
.btn-secondary:hover{ background:var(--sand-2); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--line-strong); }
.btn-outline:hover{ border-color:var(--ink); }
.btn-ghost{ background:transparent; color:var(--ink); }
.btn-ghost:hover{ background:var(--sand); }
.btn-danger-outline{ background:transparent; color:var(--danger); border-color:var(--danger); }
.btn-danger-outline:hover{ background:var(--danger-bg); }
.btn-sm{ padding:9px 16px; font-size:.82rem; }
.btn-lg{ padding:16px 30px; font-size:.98rem; }
.btn-block{ width:100%; }
.btn-icon{ width:44px; height:44px; padding:0; border-radius:var(--r-pill); }
.btn[disabled]{ opacity:.45; pointer-events:none; }

.icon-btn{
  width:42px; height:42px; border-radius:var(--r-pill); display:inline-flex; align-items:center; justify-content:center;
  background:var(--surface); border:1px solid var(--line); color:var(--ink); position:relative;
  transition:background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.icon-btn:hover{ background:var(--sand); }
.icon-btn .dot{ position:absolute; top:9px; right:10px; width:7px; height:7px; border-radius:50%; background:var(--danger); border:1.5px solid var(--surface); }

/* ---------- Chips / Pills / Tabs ---------- */
.chip-row{ display:flex; gap:10px; flex-wrap:wrap; }
.chip{
  padding:10px 18px; border-radius:var(--r-pill); border:1px solid var(--line-strong); background:var(--surface);
  font-size:.85rem; font-weight:600; color:var(--ink-soft); transition:all var(--dur) var(--ease); white-space:nowrap;
}
.chip:hover{ border-color:var(--ink); }
.chip.is-active{ background:var(--ink); border-color:var(--ink); color:#fff; }
.chip-ghost{ border-color:transparent; background:var(--sand); }

.seg{ display:inline-flex; background:var(--sand); padding:4px; border-radius:var(--r-pill); gap:2px; }
.seg button{ padding:9px 20px; border-radius:var(--r-pill); font-weight:600; font-size:.85rem; color:var(--muted); transition:all var(--dur) var(--ease); }
.seg button.is-active{ background:var(--ink); color:#fff; }

/* ---------- Forms ---------- */
.field{ display:flex; flex-direction:column; gap:8px; }
.field label{ font-size:.82rem; font-weight:600; color:var(--ink-soft); }
.input,.select,.textarea{
  width:100%; padding:13px 16px; border-radius:var(--r-input); border:1px solid var(--line);
  background:var(--surface); font-size:.92rem; color:var(--ink); transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder,.textarea::placeholder{ color:var(--muted-2); }
.input:focus,.select:focus,.textarea:focus{ border-color:var(--ink); box-shadow:0 0 0 3px rgba(21,22,26,.06); outline:none; }
.textarea{ resize:vertical; min-height:110px; font-family:var(--font-body); }
.select{ appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2379756B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:38px; }
.input-icon-wrap{ position:relative; }
.input-icon-wrap .input{ padding-left:44px; }
.input-icon-wrap svg{ position:absolute; left:15px; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; }

.pill-toggle-row{ display:flex; gap:8px; flex-wrap:wrap; }
.pill-toggle{
  padding:10px 16px; border-radius:var(--r-pill); border:1px solid var(--line); background:var(--surface);
  font-weight:600; font-size:.85rem; color:var(--ink-soft); min-width:46px; text-align:center; transition:all var(--dur) var(--ease);
}
.pill-toggle.is-active{ background:var(--ink); border-color:var(--ink); color:#fff; }

.check-row{ display:flex; align-items:center; gap:10px; font-size:.9rem; color:var(--ink-soft); cursor:pointer; }
.check-row input[type="checkbox"],.check-row input[type="radio"]{
  appearance:none; width:19px; height:19px; border:1.5px solid var(--line-strong); border-radius:6px; position:relative; flex:none; cursor:pointer;
  transition:all var(--dur) var(--ease);
}
.check-row input[type="radio"]{ border-radius:50%; }
.check-row input:checked{ background:var(--ink); border-color:var(--ink); }
.check-row input[type="checkbox"]:checked::after{ content:""; position:absolute; left:5px; top:1px; width:5px; height:9px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(40deg); }
.check-row input[type="radio"]:checked::after{ content:""; position:absolute; inset:5px; border-radius:50%; background:#fff; }

.toggle{ position:relative; width:44px; height:26px; border-radius:var(--r-pill); background:var(--line-strong); flex:none; transition:background var(--dur) var(--ease); cursor:pointer; border:none; }
.toggle::after{ content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:transform var(--dur) var(--ease); box-shadow:var(--shadow-xs); }
.toggle.is-on{ background:var(--ink); }
.toggle.is-on::after{ transform:translateX(18px); }

/* dual range slider */
.range-slider{ position:relative; height:34px; }
.range-slider .track{ position:absolute; top:15px; left:0; right:0; height:4px; background:var(--line); border-radius:99px; }
.range-slider .fill{ position:absolute; top:15px; height:4px; background:var(--ink); border-radius:99px; }
.range-slider input[type="range"]{
  position:absolute; top:0; left:0; width:100%; height:34px; margin:0; appearance:none; background:transparent; pointer-events:none;
}
.range-slider input[type="range"]::-webkit-slider-thumb{
  appearance:none; pointer-events:all; width:20px; height:20px; border-radius:50%; background:#fff; border:2px solid var(--ink);
  box-shadow:var(--shadow-xs); cursor:pointer; margin-top:0;
}
.range-slider input[type="range"]::-moz-range-thumb{ pointer-events:all; width:20px; height:20px; border-radius:50%; background:#fff; border:2px solid var(--ink); cursor:pointer; }
.range-values{ display:flex; justify-content:space-between; font-size:.85rem; font-weight:600; color:var(--ink); margin-top:2px; }

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky; top:0; z-index:60; height:var(--header-h);
  transition:background var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease);
  background:var(--surface); border-bottom:1px solid var(--line);
}
.site-header.header-transparent{ position:absolute; top:0; left:0; right:0; background:transparent; border-color:transparent; }
.site-header.header-transparent.is-scrolled{ position:fixed; background:rgba(251,249,245,.92); backdrop-filter:blur(10px); border-color:var(--line); box-shadow:var(--shadow-xs); }
.header-inner{ height:var(--header-h); display:flex; align-items:center; justify-content:space-between; gap:24px; }

.logo{ display:flex; align-items:center; gap:9px; font-family:var(--font-display); font-weight:800; font-size:1.28rem; letter-spacing:-.01em; flex:none; }
.logo svg{ color:var(--ink); }
.header-transparent:not(.is-scrolled) .logo, .header-transparent:not(.is-scrolled) .nav-links a, .header-transparent:not(.is-scrolled) .location-pill{ color:#fff; }
.header-transparent:not(.is-scrolled) .icon-btn{ background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.28); color:#fff; }
.header-transparent:not(.is-scrolled) .location-pill{ border-color:rgba(255,255,255,.3); }
.header-transparent:not(.is-scrolled) .logo svg{ color:#fff; }

.nav-links{ display:flex; align-items:center; gap:34px; font-weight:600; font-size:.92rem; }
.nav-links a{ position:relative; padding:6px 0; color:var(--ink-soft); transition:color var(--dur) var(--ease); }
.nav-links a:hover{ color:var(--ink); }
.nav-links a.is-active{ color:var(--ink); }
.nav-links a.is-active::after{ content:""; position:absolute; left:0; right:0; bottom:-4px; height:2px; background:var(--ink); border-radius:2px; }
.header-transparent:not(.is-scrolled) .nav-links a.is-active::after{ background:#fff; }

.header-actions{ display:flex; align-items:center; gap:10px; flex:none; }
.location-pill{ display:flex; align-items:center; gap:7px; padding:9px 16px; border-radius:var(--r-pill); border:1px solid var(--line); font-size:.84rem; font-weight:600; color:var(--ink-soft); }
.avatar-btn img{ width:42px; height:42px; border-radius:50%; object-fit:cover; border:1.5px solid var(--line); }

.breadcrumb{ padding:22px 0 0; display:flex; align-items:center; gap:8px; font-size:.85rem; color:var(--muted); flex-wrap:wrap; }
.breadcrumb a{ color:var(--muted); transition:color var(--dur) var(--ease); }
.breadcrumb a:hover{ color:var(--ink); }
.breadcrumb .sep{ opacity:.5; }
.breadcrumb .current{ color:var(--ink); font-weight:600; }

/* Mobile bottom nav */
.bottom-nav{ display:none; }
@media (max-width:767px){
  body{ padding-bottom:78px; }
  .bottom-nav{
    display:flex; position:fixed; bottom:0; left:0; right:0; z-index:70; background:var(--surface); border-top:1px solid var(--line);
    padding:9px 6px calc(9px + env(safe-area-inset-bottom)); justify-content:space-around; box-shadow:0 -8px 24px -16px rgba(21,22,26,.2);
  }
  .bottom-nav a{ display:flex; flex-direction:column; align-items:center; gap:4px; font-size:.66rem; font-weight:600; color:var(--muted-2); flex:1; padding:4px 0; }
  .bottom-nav a.is-active{ color:var(--ink); }
  .nav-links{ display:none; }
  .header-actions .location-pill{ display:none; }
}
@media (min-width:768px) and (max-width:1023px){
  .nav-links{ gap:20px; font-size:.86rem; }
}

/* ---------- Hero (Home) ---------- */
.hero{ position:relative; min-height:100vh; display:flex; align-items:flex-end; overflow:hidden; }
.hero-media{ position:absolute; inset:0; }
.hero-media img{ width:100%; height:100%; object-fit:cover; transition:opacity 260ms var(--ease); }
.hero-media::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,12,16,.15) 0%, rgba(10,12,16,.08) 32%, rgba(10,12,16,.55) 78%, rgba(10,12,16,.72) 100%); }
.hero-inner{ position:relative; z-index:2; width:100%; padding:calc(var(--header-h) + 40px) 0 64px; color:#fff; }
.hero-tagline{ display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3); backdrop-filter:blur(6px); padding:8px 16px; border-radius:var(--r-pill); font-size:.8rem; font-weight:600; margin-bottom:22px; }
.hero h1{ font-family:var(--font-display); font-weight:800; letter-spacing:-.03em; line-height:.96; font-size:clamp(2.8rem,6.4vw,5rem); max-width:640px; }
.hero p{ margin-top:18px; font-size:1.08rem; max-width:440px; color:rgba(255,255,255,.86); line-height:1.6; }
.hero-search{ margin-top:34px; max-width:620px; }
.search-bar{ display:flex; align-items:center; gap:10px; background:#fff; border-radius:var(--r-pill); padding:8px 8px 8px 22px; box-shadow:var(--shadow-md); }
.search-bar input{ flex:1; border:none; outline:none; font-size:.95rem; padding:10px 0; color:var(--ink); background:transparent; }
.search-bar input::placeholder{ color:var(--muted-2); }
.search-bar .divider{ width:1px; height:24px; background:var(--line); flex:none; }
.search-bar .search-filter-btn{ width:46px; height:46px; border-radius:50%; background:var(--sand); flex:none; display:flex; align-items:center; justify-content:center; transition:background var(--dur) var(--ease); }
.search-bar .search-filter-btn:hover{ background:var(--sand-2); }
.search-bar .search-submit{ width:46px; height:46px; border-radius:50%; background:var(--ink); color:#fff; flex:none; display:flex; align-items:center; justify-content:center; }
.hero-chips{ margin-top:20px; }
.hero-chips .chip{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.3); color:#fff; }
.hero-chips .chip.is-active{ background:#fff; color:var(--ink); border-color:#fff; }
.hero-chips .chip:hover{ border-color:#fff; }

.hero-featured{
  position:absolute; z-index:3; right:6%; bottom:14%; width:340px; background:#fff; border-radius:var(--r-lg);
  padding:16px; box-shadow:var(--shadow-lg); color:var(--ink);
}
.hero-featured .hf-badge{ display:inline-flex; align-items:center; gap:6px; background:var(--sand); padding:6px 12px; border-radius:var(--r-pill); font-size:.72rem; font-weight:700; margin-bottom:10px; }
.hero-featured .hf-img{ width:100%; height:170px; border-radius:var(--r-input); overflow:hidden; margin-bottom:14px; position:relative; }
.hero-featured .hf-img img{ width:100%; height:100%; object-fit:cover; }
.hero-featured h3{ font-size:1.08rem; }
.hero-featured .hf-price{ font-weight:700; white-space:nowrap; text-align:right; }
.hero-featured .hf-price span{ display:block; font-weight:500; color:var(--muted); font-size:.78rem; }
.hero-featured .hf-loc{ display:flex; align-items:center; gap:5px; color:var(--muted); font-size:.82rem; margin-top:3px; }
.hero-featured .hf-loc{ display:flex; align-items:center; gap:5px; color:var(--muted); font-size:.82rem; margin-top:3px; }
.hero-featured .hf-stats{ display:flex; justify-content:space-between; margin:16px 0; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.hero-featured .hf-stat{ text-align:center; font-size:.78rem; color:var(--muted); }
.hero-featured .hf-stat b{ display:block; font-size:.95rem; color:var(--ink); font-weight:700; }
.hero-featured .hf-actions{ display:flex; gap:8px; }
.hero-featured .hf-actions .btn{ flex:1; padding:11px; font-size:.8rem; }
.hero-arrows{ position:absolute; z-index:3; right:6%; bottom:5%; display:flex; gap:10px; }
.hero-arrows button{ width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.4); color:#fff; display:flex; align-items:center; justify-content:center; backdrop-filter:blur(6px); }

@media (max-width:1023px){
  .hero-featured{ position:static; width:100%; margin:28px auto 0; }
  .hero-arrows{ display:none; }
  .hero-inner{ padding-bottom:32px; }
  .hero{ min-height:auto; padding-bottom:0; display:block; }
  .hero-media{ position:absolute; inset:0; height:100%; }
}
@media (max-width:767px){
  .hero{ background:var(--bg); }
  .hero-media{ display:none; }
  .hero-inner{ padding-top:calc(var(--header-h) + 22px); }
  .hero-tagline{ background:var(--sand); border-color:var(--line); color:var(--ink-soft); }
  .hero h1{ color:var(--ink); }
  .hero p{ color:var(--muted); }
  .hero-chips .chip{ background:var(--surface); border-color:var(--line); color:var(--ink-soft); }
  .hero-chips .chip.is-active{ background:var(--ink); border-color:var(--ink); color:#fff; }
  .site-header.header-transparent{ position:sticky; background:var(--bg); border-bottom:1px solid var(--line); }
  .site-header.header-transparent .logo,
  .site-header.header-transparent .logo svg{ color:var(--ink); }
  .site-header.header-transparent .icon-btn{ background:var(--surface); border-color:var(--line); color:var(--ink); }
}
@media (max-width:640px){
  .hero-inner{ padding-top:calc(var(--header-h) + 20px); }
}

/* ---------- Sections ---------- */
.section{ padding:72px 0; }
.section-tight{ padding:40px 0; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:32px; }
.section-head .see-all{ font-weight:700; font-size:.88rem; display:flex; align-items:center; gap:6px; white-space:nowrap; }
@media (max-width:640px){ .section{ padding:48px 0; } }

/* ---------- Property Card ---------- */
.grid-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
@media (max-width:1279px){ .grid-cards{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:1023px){ .grid-cards{ grid-template-columns:repeat(2,1fr); gap:18px; } }
@media (max-width:640px){ .grid-cards{ grid-template-columns:1fr; } }

.rail{ display:flex; gap:22px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:6px; margin:0 -24px; padding-left:24px; padding-right:24px; }
.rail::-webkit-scrollbar{ display:none; }
.rail .card-property{ min-width:280px; scroll-snap-align:start; }
@media (min-width:1024px){ .rail{ display:grid; grid-template-columns:repeat(4,1fr); overflow:visible; margin:0; padding:0; } .rail .card-property{ min-width:0; } }

.card-property{
  background:var(--surface); border-radius:var(--r-card); border:1px solid var(--line); overflow:hidden;
  transition:box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
  display:flex; flex-direction:column;
}
.card-property:hover{ box-shadow:var(--shadow-md); border-color:transparent; transform:translateY(-3px); }
.card-property .cp-media{ position:relative; aspect-ratio:4/3; overflow:hidden; }
.card-property .cp-media img{ width:100%; height:100%; object-fit:cover; transition:transform var(--dur-slow) var(--ease); }
.card-property:hover .cp-media img{ transform:scale(1.06); }
.card-property .cp-type{ position:absolute; top:12px; left:12px; background:#fff; padding:6px 13px; border-radius:var(--r-pill); font-size:.72rem; font-weight:700; }
.card-property .cp-fav{ position:absolute; top:10px; right:10px; width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.92); display:flex; align-items:center; justify-content:center; color:var(--ink); backdrop-filter:blur(4px); transition:transform var(--dur-fast) var(--ease); }
.card-property .cp-fav:active{ transform:scale(.88); }
.card-property .cp-fav svg{ transition:all var(--dur-fast) var(--ease); }
.card-property .cp-fav.is-fav svg{ fill:var(--danger); stroke:var(--danger); }
.card-property .cp-body{ padding:16px 16px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.card-property .cp-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.card-property h3{ font-size:1rem; }
.card-property .cp-price{ font-weight:700; font-size:.95rem; white-space:nowrap; }
.card-property .cp-price span{ font-weight:500; color:var(--muted); font-size:.78rem; }
.card-property .cp-loc{ display:flex; align-items:center; gap:5px; color:var(--muted); font-size:.82rem; }
.card-property .cp-stats{ display:flex; gap:14px; margin-top:4px; padding-top:12px; border-top:1px solid var(--line); flex-wrap:wrap; }
.card-property .cp-stat{ display:flex; align-items:center; gap:5px; font-size:.78rem; color:var(--muted); }
.card-property .cp-stat svg{ color:var(--muted-2); flex:none; }

/* list row variant (used in listing/saved lists) */
.row-property{ display:flex; gap:18px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card); padding:14px; transition:box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.row-property:hover{ box-shadow:var(--shadow-sm); transform:translateY(-2px); }
.row-property .rp-media{ position:relative; width:150px; flex:none; border-radius:var(--r-input); overflow:hidden; aspect-ratio:4/3; }
.row-property .rp-media img{ width:100%; height:100%; object-fit:cover; }
.row-property .rp-fav{ position:absolute; top:8px; right:8px; width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.92); display:flex; align-items:center; justify-content:center; }
.row-property .rp-body{ flex:1; display:flex; flex-direction:column; justify-content:center; gap:6px; min-width:0; }
.row-property .rp-top{ display:flex; justify-content:space-between; gap:10px; }
.row-property .rp-stats{ display:flex; gap:16px; flex-wrap:wrap; margin-top:4px; }
@media (max-width:520px){ .row-property{ flex-direction:column; } .row-property .rp-media{ width:100%; aspect-ratio:16/9; } }

.rating{ display:inline-flex; align-items:center; gap:5px; font-size:.82rem; font-weight:700; color:var(--ink); }
.rating svg{ color:var(--gold); fill:var(--gold); }
.rating .count{ color:var(--muted); font-weight:500; }

.badge{ display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:var(--r-pill); font-size:.72rem; font-weight:700; }
.badge-success{ background:var(--success-bg); color:var(--success); }
.badge-sand{ background:var(--sand); color:var(--ink-soft); }
.badge-gold{ background:#F7EEDD; color:var(--gold); }

/* ---------- Trust strip ---------- */
.trust-strip{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:36px 0; }
.trust-item{ text-align:center; }
.trust-item b{ display:block; font-family:var(--font-display); font-size:2rem; font-weight:800; }
.trust-item span{ color:var(--muted); font-size:.85rem; }
@media (max-width:640px){ .trust-strip{ grid-template-columns:1fr; gap:22px; } }

/* ---------- Page header (listing pages) ---------- */
.page-head{ padding:20px 0 8px; }
.page-head h1{ margin-bottom:6px; }
.page-toolbar{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin:22px 0 6px; }
.page-toolbar .search-bar{ max-width:none; flex:1; min-width:240px; padding:6px 6px 6px 18px; box-shadow:none; border:1px solid var(--line); }
.results-row{ display:flex; align-items:center; justify-content:space-between; margin:22px 0 18px; flex-wrap:wrap; gap:12px; }
.view-toggle{ display:flex; gap:4px; background:var(--sand); padding:4px; border-radius:var(--r-pill); }
.view-toggle button{ width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--muted); }
.view-toggle button.is-active{ background:var(--ink); color:#fff; }

/* ---------- Layout: sidebar + content ---------- */
.layout-with-sidebar{ display:grid; grid-template-columns:272px 1fr; gap:32px; align-items:start; }
@media (max-width:1023px){ .layout-with-sidebar{ grid-template-columns:1fr; } }

.filters-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card); padding:22px; position:sticky; top:calc(var(--header-h) + 20px); }
.filters-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.filter-group{ padding:18px 0; border-bottom:1px solid var(--line); }
.filter-group:first-of-type{ padding-top:0; }
.filter-group:last-of-type{ border-bottom:none; padding-bottom:4px; }
.filter-group h4{ font-size:.82rem; font-weight:700; margin-bottom:14px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); }
.filter-check-list{ display:flex; flex-direction:column; gap:12px; }

@media (max-width:1023px){
  .filters-card{ position:fixed; inset:0; z-index:120; border-radius:0; overflow-y:auto; transform:translateY(100%); transition:transform var(--dur-slow) var(--ease); padding:22px 22px 100px; }
  .filters-card.is-open{ transform:translateY(0); }
  .filters-apply-fixed{ position:fixed; left:0; right:0; bottom:0; z-index:121; background:var(--surface); padding:16px 22px calc(16px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); transform:translateY(100%); transition:transform var(--dur-slow) var(--ease); }
  .filters-card.is-open ~ .filters-apply-fixed, .filters-apply-fixed.is-open{ transform:translateY(0); }
}

.filters-fab{ display:none; }
@media (max-width:1023px){
  .filters-fab{ display:inline-flex; }
}

/* pagination */
.pagination{ display:flex; align-items:center; justify-content:center; gap:8px; margin:44px 0 12px; flex-wrap:wrap; }
.pagination button{ min-width:40px; height:40px; padding:0 10px; border-radius:var(--r-pill); font-weight:600; font-size:.88rem; color:var(--ink-soft); border:1px solid transparent; }
.pagination button.is-active{ background:var(--ink); color:#fff; }
.pagination button:hover:not(.is-active):not(:disabled){ background:var(--sand); }
.pagination button:disabled{ opacity:.35; }

/* ---------- Property Details ---------- */
.gallery-hero{ display:grid; grid-template-columns:1.6fr 1fr; gap:12px; border-radius:var(--r-lg); overflow:hidden; height:460px; }
.gallery-hero .gh-main{ position:relative; cursor:zoom-in; overflow:hidden; }
.gallery-hero .gh-main img{ width:100%; height:100%; object-fit:cover; transition:transform var(--dur-slow) var(--ease); }
.gallery-hero .gh-main:hover img{ transform:scale(1.03); }
.gallery-hero .gh-count{ position:absolute; bottom:16px; left:16px; background:rgba(15,16,20,.6); color:#fff; padding:7px 14px; border-radius:var(--r-pill); font-size:.78rem; font-weight:600; backdrop-filter:blur(4px); }
.gallery-hero .gh-side{ display:grid; grid-template-rows:1fr 1fr; gap:12px; }
.gallery-hero .gh-side div{ position:relative; overflow:hidden; cursor:zoom-in; }
.gallery-hero .gh-side img{ width:100%; height:100%; object-fit:cover; transition:transform var(--dur-slow) var(--ease); }
.gallery-hero .gh-side div:hover img{ transform:scale(1.05); }
@media (max-width:900px){
  .gallery-hero{ grid-template-columns:1fr; height:auto; }
  .gallery-hero .gh-side{ grid-auto-flow:column; grid-template-columns:1fr 1fr; grid-template-rows:auto; height:140px; }
  .gallery-hero .gh-main{ height:280px; }
}

.pd-layout{ display:grid; grid-template-columns:1fr 340px; gap:40px; align-items:start; margin-top:36px; }
@media (max-width:960px){ .pd-layout{ grid-template-columns:1fr; } }

.pd-header{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-bottom:22px; border-bottom:1px solid var(--line); }
.pd-header .pd-loc{ display:flex; align-items:center; gap:6px; color:var(--muted); margin-top:6px; }
.pd-header .pd-price{ text-align:right; }
.pd-header .pd-price b{ font-family:var(--font-display); font-size:1.7rem; }
.pd-header .pd-price span{ color:var(--muted); font-size:.85rem; }
.pd-stats{ display:flex; gap:28px; padding:22px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.pd-stat{ display:flex; align-items:center; gap:10px; }
.pd-stat .pd-stat-icon{ width:42px; height:42px; border-radius:50%; background:var(--sand); display:flex; align-items:center; justify-content:center; color:var(--ink); flex:none; }
.pd-stat b{ display:block; font-size:.95rem; }
.pd-stat span{ font-size:.76rem; color:var(--muted); }

.pd-block{ padding:26px 0; border-bottom:1px solid var(--line); }
.pd-block h3{ margin-bottom:12px; }
.pd-block p{ color:var(--ink-soft); line-height:1.75; }
.pd-block p + p{ margin-top:10px; }
.read-more-toggle{ font-weight:700; font-size:.85rem; margin-top:8px; display:inline-block; text-decoration:underline; text-underline-offset:3px; }

.amenities-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media (max-width:520px){ .amenities-grid{ grid-template-columns:repeat(2,1fr); } }
.amenity{ display:flex; flex-direction:column; align-items:center; gap:10px; padding:18px 10px; background:var(--sand); border-radius:var(--r-input); text-align:center; }
.amenity svg{ color:var(--ink); }
.amenity span{ font-size:.8rem; font-weight:600; color:var(--ink-soft); }

.info-table{ width:100%; border-collapse:collapse; }
.info-table tr{ border-bottom:1px solid var(--line); }
.info-table tr:last-child{ border-bottom:none; }
.info-table td{ padding:12px 0; font-size:.88rem; }
.info-table td:first-child{ color:var(--muted); }
.info-table td:last-child{ text-align:right; font-weight:600; }

.map-embed{ height:220px; border-radius:var(--r-input); overflow:hidden; border:1px solid var(--line); position:relative; }

.agent-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card); padding:22px; scroll-margin-top:calc(var(--header-h) + 20px); }
.agent-card .agent-top{ display:flex; gap:14px; align-items:center; }
.agent-card img{ width:58px; height:58px; border-radius:50%; object-fit:cover; }
.agent-card .agent-name{ font-weight:700; }
.agent-card .agent-role{ font-size:.8rem; color:var(--muted); }
.agent-card .agent-actions{ display:flex; flex-direction:column; gap:10px; margin-top:18px; }

.sticky-side{ position:sticky; top:calc(var(--header-h) + 20px); display:flex; flex-direction:column; gap:20px; }

.similar-scroller{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:900px){ .similar-scroller{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .similar-scroller{ grid-template-columns:1fr; } }

/* Sticky mobile CTA on property details */
.mobile-cta-bar{ display:none; }
@media (max-width:960px){
  .mobile-cta-bar{ display:flex; gap:10px; position:fixed; left:0; right:0; bottom:78px; z-index:65; background:var(--surface); padding:12px 18px; border-top:1px solid var(--line); box-shadow:0 -8px 20px -14px rgba(0,0,0,.2); }
  .mobile-cta-bar .btn{ flex:1; }
}

/* ---------- Lightbox / Fullscreen gallery ---------- */
.lightbox{ position:fixed; inset:0; background:#0B0C0F; z-index:200; display:none; flex-direction:column; }
.lightbox.is-open{ display:flex; }
.lightbox-top{ display:flex; justify-content:space-between; align-items:center; padding:20px 24px; color:#fff; }
.lightbox-top .lb-count{ font-size:.85rem; font-weight:600; color:rgba(255,255,255,.75); }
.lightbox-top .lb-actions{ display:flex; gap:10px; }
.lightbox-stage{ flex:1; display:flex; align-items:center; justify-content:center; position:relative; padding:0 70px; min-height:0; }
.lightbox-stage img{ max-width:100%; max-height:78vh; object-fit:contain; border-radius:8px; }
.lightbox-nav{ position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; border-radius:50%; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.24); color:#fff; display:flex; align-items:center; justify-content:center; }
.lightbox-nav.prev{ left:16px; } .lightbox-nav.next{ right:16px; }
.lightbox-thumbs{ display:flex; gap:10px; padding:18px 24px 26px; overflow-x:auto; }
.lightbox-thumbs img{ width:74px; height:56px; object-fit:cover; border-radius:8px; opacity:.45; cursor:pointer; transition:opacity var(--dur) var(--ease), outline var(--dur) var(--ease); flex:none; }
.lightbox-thumbs img.is-active{ opacity:1; outline:2px solid #fff; outline-offset:2px; }
body.lb-locked{ overflow:hidden; }
@media (max-width:640px){ .lightbox-stage{ padding:0 14px; } .lightbox-nav{ width:42px; height:42px; } .lightbox-thumbs img{ width:56px; height:42px; } }

/* ---------- Map page ---------- */
.map-page-wrap{ display:grid; grid-template-columns:380px 1fr; height:calc(100vh - var(--header-h)); }
@media (max-width:900px){ .map-page-wrap{ grid-template-columns:1fr; height:auto; } }
.map-sidebar{ border-right:1px solid var(--line); overflow-y:auto; padding:20px; }
.map-sidebar-head{ margin-bottom:16px; }
.map-list{ display:flex; flex-direction:column; gap:14px; margin-top:16px; }
#leafletMap{ width:100%; height:100%; min-height:420px; background:var(--sand); }
.map-price-pill{ background:var(--ink); color:#fff; font-weight:700; font-size:.78rem; padding:7px 13px; border-radius:var(--r-pill); border:2px solid #fff; box-shadow:var(--shadow-sm); white-space:nowrap; }
.map-price-pill.is-active{ background:#fff; color:var(--ink); border-color:var(--ink); }
.map-floating-card{ position:absolute; left:20px; right:20px; bottom:24px; max-width:360px; background:#fff; border-radius:var(--r-card); box-shadow:var(--shadow-lg); padding:14px; display:none; gap:12px; z-index:400; }
.map-floating-card.is-open{ display:flex; }
.map-floating-card img{ width:96px; height:96px; border-radius:var(--r-input); object-fit:cover; flex:none; }
.map-floating-card .mfc-close{ position:absolute; top:8px; right:8px; width:26px; height:26px; border-radius:50%; background:var(--sand); display:flex; align-items:center; justify-content:center; }
.map-relative{ position:relative; height:100%; }

/* ---------- Schedule Visit ---------- */
.date-row,.time-row{ display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; }
.date-chip{ flex:none; width:64px; padding:12px 0; border-radius:var(--r-input); border:1px solid var(--line); text-align:center; }
.date-chip .dow{ display:block; font-size:.7rem; color:var(--muted); margin-bottom:4px; }
.date-chip .dom{ display:block; font-weight:700; font-size:1.05rem; }
.date-chip.is-active{ background:var(--ink); border-color:var(--ink); color:#fff; }
.date-chip.is-active .dow{ color:rgba(255,255,255,.7); }
.time-chip{ flex:none; padding:11px 18px; border-radius:var(--r-pill); border:1px solid var(--line); font-weight:600; font-size:.85rem; }
.time-chip.is-active{ background:var(--ink); border-color:var(--ink); color:#fff; }
.summary-row{ display:flex; gap:14px; background:var(--sand); padding:14px; border-radius:var(--r-input); align-items:center; }
.summary-row img{ width:64px; height:64px; border-radius:10px; object-fit:cover; }
.form-grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:560px){ .form-grid-2{ grid-template-columns:1fr; } }

/* ---------- Messages ---------- */
.messages-shell{ display:grid; grid-template-columns:340px 1fr; height:calc(100vh - var(--header-h) - 80px); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; margin:28px 0 40px; background:var(--surface); }
@media (min-width:1220px){ .messages-shell{ grid-template-columns:340px 1fr 300px; } }
.chat-context-panel{ display:none; border-left:1px solid var(--line); padding:22px; overflow-y:auto; }
@media (min-width:1220px){ .chat-context-panel{ display:block; } }
@media (max-width:860px){ .messages-shell{ grid-template-columns:1fr; height:auto; } .messages-shell .chat-panel{ display:none; } .messages-shell.chat-open .conv-list-panel{ display:none; } .messages-shell.chat-open .chat-panel{ display:flex; } }
.conv-list-panel{ border-right:1px solid var(--line); display:flex; flex-direction:column; }
.conv-search{ padding:16px; border-bottom:1px solid var(--line); }
.conv-list{ overflow-y:auto; flex:1; }
.conv-item{ display:flex; gap:12px; padding:14px 16px; border-bottom:1px solid var(--line); position:relative; transition:background var(--dur) var(--ease); }
.conv-item:hover,.conv-item.is-active{ background:var(--sand); }
.conv-item img{ width:46px; height:46px; border-radius:50%; object-fit:cover; flex:none; }
.conv-item .ci-body{ flex:1; min-width:0; }
.conv-item .ci-top{ display:flex; justify-content:space-between; gap:8px; }
.conv-item .ci-name{ font-weight:700; font-size:.9rem; }
.conv-item .ci-time{ font-size:.72rem; color:var(--muted-2); flex:none; }
.conv-item .ci-msg{ font-size:.82rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conv-item .ci-unread{ position:absolute; right:16px; bottom:14px; background:var(--ink); color:#fff; font-size:.66rem; font-weight:700; min-width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center; padding:0 5px; }
.chat-panel{ display:flex; flex-direction:column; min-width:0; }
.chat-head{ display:flex; align-items:center; gap:12px; padding:16px 20px; border-bottom:1px solid var(--line); }
.chat-head img{ width:42px; height:42px; border-radius:50%; object-fit:cover; }
.chat-head .back-btn{ display:none; }
@media (max-width:860px){ .chat-head .back-btn{ display:flex; } }
.chat-body{ flex:1; overflow-y:auto; padding:22px; display:flex; flex-direction:column; gap:14px; }
.msg-bubble{ max-width:70%; padding:12px 16px; border-radius:16px; font-size:.9rem; line-height:1.5; }
.msg-bubble.them{ background:var(--sand); align-self:flex-start; border-bottom-left-radius:4px; }
.msg-bubble.me{ background:var(--ink); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
.msg-time{ font-size:.68rem; color:var(--muted-2); margin-top:4px; }
.chat-input-row{ display:flex; gap:10px; padding:16px 20px; border-top:1px solid var(--line); }
.chat-input-row input{ flex:1; border:1px solid var(--line); border-radius:var(--r-pill); padding:12px 18px; font-size:.9rem; }
.chat-input-row button{ width:44px; height:44px; border-radius:50%; background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center; flex:none; }

/* ---------- Profile ---------- */
.profile-card{ display:flex; align-items:center; gap:18px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card); padding:24px; margin-bottom:28px; }
.profile-card img{ width:78px; height:78px; border-radius:50%; object-fit:cover; }
.profile-card .pc-actions{ margin-left:auto; }
.menu-list{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card); overflow:hidden; }
.menu-item{ display:flex; align-items:center; gap:14px; padding:16px 20px; border-bottom:1px solid var(--line); transition:background var(--dur) var(--ease); }
.menu-item:last-child{ border-bottom:none; }
.menu-item:hover{ background:var(--sand); }
.menu-item .mi-icon{ width:38px; height:38px; border-radius:50%; background:var(--sand); display:flex; align-items:center; justify-content:center; flex:none; color:var(--ink); }
.menu-item span{ flex:1; font-weight:600; font-size:.92rem; }
.menu-item.danger span{ color:var(--danger); }
.menu-item.danger .mi-icon{ background:var(--danger-bg); color:var(--danger); }

.info-list{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card); padding:6px 20px; }
.info-list .il-row{ display:flex; justify-content:space-between; align-items:center; padding:15px 0; border-bottom:1px solid var(--line); gap:16px; }
.info-list .il-row:last-child{ border-bottom:none; }
.info-list .il-row span:first-child{ color:var(--muted); font-size:.85rem; }
.info-list .il-row span:last-child{ font-weight:600; text-align:right; }

.avatar-upload{ display:flex; align-items:center; gap:18px; margin-bottom:8px; }
.avatar-upload .au-img{ position:relative; width:88px; height:88px; flex:none; }
.avatar-upload img{ width:88px; height:88px; border-radius:50%; object-fit:cover; }
.avatar-upload .au-edit{ position:absolute; bottom:0; right:0; width:30px; height:30px; border-radius:50%; background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center; border:2px solid #fff; }

/* ---------- Empty states / toast ---------- */
.empty-state{ text-align:center; padding:70px 20px; }
.empty-state .es-icon{ width:64px; height:64px; border-radius:50%; background:var(--sand); display:flex; align-items:center; justify-content:center; margin:0 auto 18px; color:var(--muted); }
.empty-state h3{ margin-bottom:8px; }
.empty-state p{ color:var(--muted); max-width:340px; margin:0 auto 20px; }

.toast{ position:fixed; left:50%; bottom:26px; transform:translate(-50%,20px); background:var(--ink); color:#fff; padding:13px 22px; border-radius:var(--r-pill); font-size:.85rem; font-weight:600; box-shadow:var(--shadow-md); opacity:0; pointer-events:none; transition:all var(--dur) var(--ease); z-index:300; display:flex; align-items:center; gap:8px; }
.toast.is-visible{ opacity:1; transform:translate(-50%,0); }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--line); padding:56px 0 32px; margin-top:40px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; padding-bottom:36px; }
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h5{ font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; color:var(--muted); }
.footer-grid ul{ display:flex; flex-direction:column; gap:11px; }
.footer-grid a{ font-size:.88rem; color:var(--ink-soft); }
.footer-grid a:hover{ color:var(--ink); text-decoration:underline; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:26px; border-top:1px solid var(--line); flex-wrap:wrap; gap:14px; font-size:.82rem; color:var(--muted); }
.footer-social{ display:flex; gap:10px; }

/* ---------- Utilities ---------- */
.flex{ display:flex; }
.flex-col{ display:flex; flex-direction:column; }
.items-center{ align-items:center; }
.justify-between{ justify-content:space-between; }
.gap-2{ gap:8px; } .gap-3{ gap:12px; } .gap-4{ gap:16px; }
.mt-2{ margin-top:8px; } .mt-3{ margin-top:12px; } .mt-4{ margin-top:16px; } .mt-6{ margin-top:24px; } .mt-8{ margin-top:32px; }
.mb-2{ margin-bottom:8px; } .mb-3{ margin-bottom:12px; } .mb-4{ margin-bottom:16px; } .mb-6{ margin-bottom:24px; }
.hide-mobile{ }
@media (max-width:767px){ .hide-mobile{ display:none !important; } }
.hide-desktop{ display:none !important; }
@media (max-width:767px){ .hide-desktop{ display:flex !important; } }
.w-full{ width:100%; }
.card-surface{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card); padding:22px; }

/* backdrop for mobile drawers */
.backdrop{ position:fixed; inset:0; background:var(--overlay); z-index:110; opacity:0; pointer-events:none; transition:opacity var(--dur) var(--ease); }
.backdrop.is-open{ opacity:1; pointer-events:all; }
