/* ============================================================
   BBX REALTY — Design System
   Brand: deep navy + bright blue gradients + silver/white
   ============================================================ */

:root {
  --ink:#081627; --navy-950:#0A1B33; --navy-900:#0B2140; --navy-800:#0E2A4E;
  --navy-700:#143664; --navy-600:#1A4480;
  --blue-700:#1657A0; --blue-600:#1C6FC4; --blue-500:#2B86D9; --blue-400:#46A4E8;
  --blue-300:#7AC2F1; --blue-200:#B4DBF7; --blue-100:#E2F0FB;
  --silver:#C7D4E2;

  --paper:#F4F8FC; --paper-2:#E9F1F8; --card:#FFFFFF;
  --line:#E1E9F2; --line-2:#D2DEEC;
  --text:#0F1D33; --muted:#5B6B82; --muted-2:#8595AB;

  --accent:#1C6FC4; --accent-600:#1657A0; --accent-soft:#E2F0FB;

  --grad-brand:linear-gradient(135deg,#2B86D9 0%,#1657A0 60%,#0B2140 100%);
  --grad-blue:linear-gradient(135deg,#46A4E8 0%,#1C6FC4 100%);
  --grad-navy:linear-gradient(160deg,#0E2A4E 0%,#0A1B33 100%);

  --r-sm:10px; --r-md:14px; --r-lg:20px; --r-xl:28px; --r-pill:999px;

  --sh-sm:0 1px 2px rgba(11,33,64,.06),0 1px 3px rgba(11,33,64,.07);
  --sh-md:0 6px 16px rgba(11,33,64,.08),0 2px 6px rgba(11,33,64,.05);
  --sh-lg:0 18px 40px rgba(11,33,64,.14),0 6px 14px rgba(11,33,64,.07);
  --sh-xl:0 30px 70px rgba(8,22,39,.28);
  --sh-blue:0 14px 30px rgba(28,111,196,.30);

  --font-ui:"Plus Jakarta Sans",system-ui,sans-serif;
  --font-display:"Plus Jakarta Sans",system-ui,sans-serif;
  --display-weight:800; --display-spacing:-0.02em;

  --maxw:1240px; --header-h:76px;
}

/* Direction theming */
body[data-dir="B"]{ --font-display:"Marcellus",Georgia,serif; --display-weight:400; --display-spacing:.005em; }
body[data-dir="C"]{ --font-display:"Space Grotesk",system-ui,sans-serif; --display-weight:600; --display-spacing:-0.03em; }

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ margin:0; font-family:var(--font-ui); color:var(--text); background:var(--paper);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
img{ display:block; max-width:100%; }
button{ font-family:inherit; cursor:pointer; }
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--blue-200); color:var(--navy-900); }
h1,h2,h3,h4{ margin:0; color:var(--navy-900); }

.display{ font-family:var(--font-display); font-weight:var(--display-weight); letter-spacing:var(--display-spacing); line-height:1.04; }
.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.section{ padding:88px 0; }
.section-tight{ padding:56px 0; }
.muted{ color:var(--muted); }
.eyebrow{ font-size:12.5px; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:var(--accent); display:inline-flex; align-items:center; gap:8px; }
.eyebrow::before{ content:""; width:24px; height:2px; background:currentColor; border-radius:2px; }
.eyebrow.on-dark{ color:var(--blue-300); }
.eyebrow.center{ justify-content:center; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:9px; font-weight:700;
  font-size:15px; border:0; border-radius:var(--r-pill); padding:13px 24px;
  transition:transform .16s ease, box-shadow .2s ease, background .2s ease; white-space:nowrap; }
.btn svg{ width:18px; height:18px; }
.btn:active{ transform:translateY(1px) scale(.99); }
.btn-primary{ background:var(--accent); color:#fff; box-shadow:var(--sh-blue); }
.btn-primary:hover{ background:var(--accent-600); box-shadow:0 18px 36px rgba(28,111,196,.40); transform:translateY(-1px); }
.btn-ghost{ background:rgba(255,255,255,.10); color:#fff; border:1px solid rgba(255,255,255,.30); backdrop-filter:blur(6px); }
.btn-ghost:hover{ background:rgba(255,255,255,.18); }
.btn-light{ background:#fff; color:var(--navy-900); box-shadow:var(--sh-md); }
.btn-light:hover{ box-shadow:var(--sh-lg); transform:translateY(-1px); }
.btn-outline{ background:transparent; color:var(--accent); border:1.5px solid var(--line-2); }
.btn-outline:hover{ border-color:var(--accent); background:var(--accent-soft); }
.btn-dark{ background:var(--navy-900); color:#fff; }
.btn-dark:hover{ background:var(--navy-800); transform:translateY(-1px); }
.btn-sm{ padding:9px 16px; font-size:13.5px; }
.btn-lg{ padding:16px 30px; font-size:16px; }
.btn-block{ width:100%; }

/* Badges */
.badge{ display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700;
  letter-spacing:.02em; padding:5px 11px; border-radius:var(--r-pill); text-transform:uppercase; }
.badge-preventa{ background:#E7F6EC; color:#14794A; }
.badge-venta{ background:var(--accent-soft); color:var(--accent-600); }
.badge-reventa{ background:var(--accent-soft); color:var(--accent-600); }
.badge-alquiler{ background:#FBF0E2; color:#A86419; }
.badge-lujo{ background:#F1ECFB; color:#6A45B8; }
.badge-comercial{ background:#ECEFF4; color:#44546B; }
.badge-terreno{ background:#EAF5EC; color:#3C7A43; }
.badge-glass{ background:rgba(255,255,255,.16); color:#fff; border:1px solid rgba(255,255,255,.25); backdrop-filter:blur(6px); }

/* Header */
.hdr{ position:sticky; top:0; z-index:100; height:var(--header-h); display:flex; align-items:center;
  transition:background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hdr-inner{ display:flex; align-items:center; gap:26px; width:100%; }
.hdr--transparent{ background:transparent; border-bottom:1px solid rgba(255,255,255,.10);
  --nav-fg:#fff; --nav-hover:rgba(255,255,255,.14); --nav-border:rgba(255,255,255,.34); }
.hdr--solid{ background:rgba(255,255,255,.92); backdrop-filter:blur(12px); border-bottom:1px solid var(--line); box-shadow:var(--sh-sm);
  --nav-fg:var(--navy-900); --nav-hover:var(--paper-2); --nav-border:var(--line-2); }
.hdr-logo{ height:36px; width:auto; cursor:pointer; }
.hdr-nav{ display:flex; align-items:center; gap:2px; margin-left:6px; }
.hdr-link{ font-size:14.5px; font-weight:600; padding:9px 13px; border-radius:var(--r-pill);
  color:var(--nav-fg); opacity:.9; background:transparent; border:0; transition:background .15s, opacity .15s; }
.hdr-link:hover, .hdr-link.active{ opacity:1; background:var(--nav-hover); }
.hdr-spacer{ flex:1; }
.hdr-actions{ display:flex; align-items:center; gap:10px; }
.lang-toggle{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:700;
  padding:8px 13px; border-radius:var(--r-pill); border:1px solid var(--nav-border); color:var(--nav-fg); background:transparent; }
.lang-toggle:hover{ background:var(--nav-hover); }
.icon-btn{ display:inline-grid; place-items:center; width:40px; height:40px; border-radius:50%;
  border:1px solid var(--nav-border); color:var(--nav-fg); background:transparent; }
.icon-btn:hover{ background:var(--nav-hover); }
.icon-btn svg{ width:18px; height:18px; }
.burger{ display:none; }

/* Search bar */
.searchbar{ display:flex; align-items:stretch; gap:0; background:#fff; border-radius:var(--r-pill);
  box-shadow:var(--sh-lg); padding:7px; border:1px solid var(--line); }
.searchbar .seg{ display:flex; flex-direction:column; justify-content:center; padding:8px 18px; border-right:1px solid var(--line); min-width:0; }
.searchbar .seg:last-of-type{ border-right:0; }
.searchbar .seg label{ font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted-2); margin-bottom:3px; }
.searchbar .seg select, .searchbar .seg input{ border:0; outline:0; font-family:inherit; font-size:14.5px;
  font-weight:600; color:var(--text); background:transparent; width:100%; min-width:118px; padding:0; cursor:pointer;
  -webkit-appearance:none; appearance:none; }
.searchbar .seg input{ cursor:text; }
.searchbar .go{ border-radius:var(--r-pill); padding:0 24px; align-self:stretch; }
.searchbar.compact{ border-radius:var(--r-lg); }
.searchbar.compact .go{ border-radius:var(--r-md); }

.search-pills{ display:flex; gap:8px; flex-wrap:wrap; }
.search-pill{ font-size:13px; font-weight:600; padding:8px 15px; border-radius:var(--r-pill);
  background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.24); transition:background .15s,color .15s; }
.search-pill:hover, .search-pill[aria-pressed="true"]{ background:#fff; color:var(--navy-900); }

/* Grids + cards */
.grid{ display:grid; gap:24px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }

.pcard{ background:var(--card); border-radius:var(--r-lg); overflow:hidden; border:1px solid var(--line);
  box-shadow:var(--sh-sm); transition:transform .2s ease, box-shadow .2s ease, border-color .2s; display:flex; flex-direction:column; cursor:pointer; }
.pcard:hover{ transform:translateY(-4px); box-shadow:var(--sh-lg); border-color:var(--blue-200); }
.pcard-media{ position:relative; aspect-ratio:4/3; overflow:hidden; background:var(--grad-navy); }
.pcard-media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.pcard:hover .pcard-media img{ transform:scale(1.06); }
.pcard-tags{ position:absolute; top:12px; left:12px; display:flex; gap:6px; }
.pcard-fav{ position:absolute; top:10px; right:10px; width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.92); display:grid; place-items:center; border:0; color:var(--muted); transition:color .15s, transform .15s; }
.pcard-fav svg{ width:18px; height:18px; }
.pcard-fav:hover{ transform:scale(1.08); color:var(--accent); }
.pcard-fav[aria-pressed="true"]{ color:#E0455E; }
.pcard-price-tag{ position:absolute; bottom:12px; left:12px; background:rgba(10,27,51,.80); color:#fff;
  font-weight:800; font-size:16px; padding:7px 13px; border-radius:var(--r-sm); backdrop-filter:blur(4px); }
.pcard-body{ padding:16px 17px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.pcard-loc{ font-size:12.5px; color:var(--muted); display:flex; align-items:center; gap:5px; }
.pcard-loc svg{ width:14px; height:14px; color:var(--accent); flex:none; }
.pcard-title{ font-size:16.5px; font-weight:700; color:var(--navy-900); line-height:1.28; }
.pcard-specs{ display:flex; gap:14px; margin-top:auto; padding-top:12px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; }
.pcard-spec{ display:flex; align-items:center; gap:6px; }
.pcard-spec svg{ width:16px; height:16px; color:var(--muted-2); }
.pcard-spec b{ color:var(--navy-800); font-weight:700; }

/* Section heads */
.shead{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:34px; }
.shead.center{ flex-direction:column; align-items:center; text-align:center; }
.shead h2{ font-size:clamp(28px,3.4vw,42px); margin:10px 0 0; }
.shead p{ color:var(--muted); font-size:16.5px; margin:12px 0 0; max-width:560px; }
.shead.center p{ margin-left:auto; margin-right:auto; }

/* Reveal animation */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }

/* ======= HERO (3 directions) ======= */
.hero{ position:relative; }

/* Direction A — split confidence */
.heroA{ background:#0A1B33; background-image:var(--grad-navy); color:#fff; position:relative; overflow:hidden; }
.heroA::after{ content:""; position:absolute; inset:0; background:radial-gradient(820px 460px at 84% -10%, rgba(43,134,217,.34), transparent 60%); pointer-events:none; }
.heroA-grid{ display:grid; grid-template-columns:1.04fr .96fr; gap:54px; align-items:center; padding:64px 0 84px; position:relative; z-index:1; }
.heroA h1{ color:#fff; font-size:clamp(40px,5.2vw,68px); line-height:1.02; }
.heroA h1 .acc{ background:linear-gradient(135deg,#7AC2F1,#2B86D9); -webkit-background-clip:text; background-clip:text; color:transparent; }
.heroA .sub{ margin-top:22px; font-size:18.5px; color:var(--blue-200); max-width:520px; line-height:1.55; }
.heroA-media{ position:relative; }
.heroA-media>img{ width:100%; height:540px; object-fit:cover; border-radius:var(--r-xl); box-shadow:var(--sh-xl); }
.heroA-card{ position:absolute; left:-30px; bottom:30px; background:#fff; color:var(--text); border-radius:var(--r-lg);
  padding:15px 17px; box-shadow:var(--sh-xl); display:flex; gap:13px; align-items:center; max-width:255px; }
.heroA-card .ic{ width:44px; height:44px; border-radius:12px; background:var(--accent-soft); color:var(--accent);
  display:grid; place-items:center; flex:none; }
.heroA-card .ic svg{ width:22px; height:22px; }
.heroA-card .t{ font-weight:800; font-size:15px; color:var(--navy-900); }
.heroA-card .s{ font-size:12.5px; color:var(--muted); }

/* Direction B — editorial full-bleed */
.heroB{ position:relative; min-height:90vh; display:flex; align-items:flex-end; color:#fff; }
.heroB-bg{ position:absolute; inset:0; }
.heroB-bg img{ width:100%; height:100%; object-fit:cover; }
.heroB-bg::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(8,20,40,.52) 0%, rgba(8,20,40,.12) 38%, rgba(8,20,40,.86) 100%); }
.heroB-inner{ position:relative; z-index:1; padding-bottom:64px; width:100%; }
.heroB h1{ color:#fff; font-size:clamp(44px,6.4vw,90px); line-height:1; max-width:17ch; }
.heroB .sub{ margin-top:22px; font-size:20px; color:rgba(255,255,255,.9); max-width:540px; }
.heroB-foot{ display:flex; justify-content:space-between; align-items:flex-end; gap:30px; flex-wrap:wrap; margin-top:38px; }

/* Direction C — immersive centered */
.heroC{ position:relative; min-height:94vh; display:flex; align-items:center; justify-content:center; text-align:center; color:#fff; overflow:hidden; background:#081627; }
.heroC-bg{ position:absolute; inset:0; }
.heroC-bg img{ width:100%; height:100%; object-fit:cover; opacity:.4; }
.heroC::before{ content:""; position:absolute; inset:0; z-index:1; background:
   radial-gradient(760px 420px at 50% 8%, rgba(43,134,217,.46), transparent 62%),
   linear-gradient(180deg, rgba(8,20,40,.5), rgba(8,20,40,.92)); }
.heroC-inner{ position:relative; z-index:2; padding:118px 0; width:100%; }
.heroC h1{ color:#fff; font-size:clamp(44px,6.6vw,92px); line-height:.98; margin:0 auto; max-width:17ch; }
.heroC h1 .acc{ background:linear-gradient(135deg,#7AC2F1,#2B86D9); -webkit-background-clip:text; background-clip:text; color:transparent; }
.heroC .sub{ margin:22px auto 0; font-size:20px; color:var(--blue-200); max-width:600px; }
.heroC .floaty{ position:absolute; border-radius:var(--r-lg); box-shadow:var(--sh-xl); overflow:hidden; z-index:2; }
.heroC .floaty img{ width:100%; height:100%; object-fit:cover; }
.heroC .f1{ width:172px; height:222px; left:6%; top:24%; transform:rotate(-6deg); }
.heroC .f2{ width:160px; height:200px; right:6%; top:32%; transform:rotate(6deg); }

.hero-stats{ display:flex; gap:36px; flex-wrap:wrap; }
.hero-stat b{ font-family:var(--font-display); font-weight:var(--display-weight); font-size:30px; letter-spacing:-.02em; display:block; }
.hero-stat .lbl{ font-size:13px; opacity:.8; line-height:1.2; max-width:120px; margin-top:2px; }

/* Trust logos */
.trust{ display:flex; align-items:center; gap:30px; flex-wrap:wrap; opacity:.8; }
.trust .t-item{ font-weight:700; font-size:15px; letter-spacing:.02em; }

/* Categories */
.cat-row{ display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.cat-tile{ position:relative; border-radius:var(--r-md); overflow:hidden; aspect-ratio:3/4; box-shadow:var(--sh-sm); cursor:pointer; }
.cat-tile img{ width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.cat-tile:hover img{ transform:scale(1.07); }
.cat-tile::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 36%, rgba(8,20,40,.82)); }
.cat-tile .lab{ position:absolute; left:13px; right:13px; bottom:12px; z-index:1; color:#fff; }
.cat-tile .lab b{ font-weight:700; font-size:15px; display:block; }
.cat-tile .lab span{ font-size:12px; opacity:.85; }

/* Features */
.feature{ background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:28px; box-shadow:var(--sh-sm); transition:transform .2s, box-shadow .2s; }
.feature:hover{ transform:translateY(-4px); box-shadow:var(--sh-lg); }
.feature .ic{ width:52px; height:52px; border-radius:14px; background:#1657A0; background-image:var(--grad-brand); color:#fff; display:grid; place-items:center; box-shadow:var(--sh-blue); margin-bottom:18px; }
.feature .ic svg{ width:25px; height:25px; }
.feature h3{ font-size:20px; margin-bottom:8px; }
.feature p{ color:var(--muted); font-size:14.5px; line-height:1.55; }

/* Steps */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.step{ padding-top:24px; border-top:2px solid rgba(255,255,255,.18); }
.step .n{ font-family:var(--font-display); font-weight:800; font-size:15px; color:var(--blue-300); }
.step h4{ color:#fff; font-size:18.5px; margin:12px 0 8px; }
.step p{ color:var(--blue-200); font-size:14px; line-height:1.5; }

/* Agents */
.agent{ background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--sh-sm); transition:transform .2s, box-shadow .2s; }
.agent:hover{ transform:translateY(-5px); box-shadow:var(--sh-lg); }
.agent-photo{ aspect-ratio:1/1; overflow:hidden; background:var(--paper-2); }
.agent-photo img{ width:100%; height:100%; object-fit:cover; }
.agent-body{ padding:17px; }
.agent-body h4{ font-size:17.5px; }
.agent-role{ font-size:13px; color:var(--accent); font-weight:600; margin-top:2px; }
.agent-meta{ display:flex; gap:14px; margin-top:11px; font-size:12.5px; color:var(--muted); }
.agent-meta span{ display:flex; align-items:center; gap:5px; }
.agent-meta svg{ width:14px; height:14px; color:var(--muted-2); }
.agent-actions{ display:flex; gap:8px; margin-top:14px; }
.agent-actions .icon-btn{ width:38px; height:38px; background:var(--accent-soft); color:var(--accent); border:0; }
.agent-actions .icon-btn:hover{ background:var(--accent); color:#fff; }

/* CTA band */
.cta-band{ background:#1657A0; background-image:var(--grad-brand); border-radius:var(--r-xl); padding:54px; color:#fff; position:relative; overflow:hidden; }
.cta-band::after{ content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px; border-radius:50%; background:rgba(255,255,255,.10); }
.cta-band h2{ color:#fff; font-size:clamp(28px,3.2vw,40px); max-width:18ch; }
.cta-band p{ color:rgba(255,255,255,.86); font-size:17px; margin-top:12px; max-width:46ch; }

/* Footer */
.footer{ background:#081627; color:#fff; padding:64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:34px; }
.footer h5{ font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--blue-300); margin:0 0 16px; }
.footer a{ display:block; color:rgba(255,255,255,.7); font-size:14.5px; padding:6px 0; transition:color .15s; }
.footer a:hover{ color:#fff; }
.footer-logo{ height:38px; margin-bottom:16px; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
  margin-top:46px; padding-top:24px; border-top:1px solid rgba(255,255,255,.12); color:rgba(255,255,255,.55); font-size:13px; }
.footer-social{ display:flex; gap:10px; }
.footer-social a{ width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.08); display:grid; place-items:center; padding:0; }
.footer-social a:hover{ background:var(--accent); }
.footer-social svg{ width:18px; height:18px; }

/* ======= LISTINGS PAGE ======= */
.listing-top{ background:#0A1B33; background-image:var(--grad-navy); color:#fff; padding:38px 0 30px; }
.listing-top h1{ color:#fff; font-size:clamp(26px,3.2vw,38px); }
.listing-top p{ color:var(--blue-200); margin-top:8px; }
.filters-bar{ background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-md);
  padding:12px; display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; }
.fbar-field{ display:flex; flex-direction:column; gap:4px; }
.fbar-field label{ font-size:10.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted-2); padding-left:13px; }
.fbar-field select, .fbar-field input{ border:1px solid var(--line-2); background:#fff; border-radius:var(--r-pill);
  padding:10px 15px; font-family:inherit; font-size:13.5px; font-weight:600; color:var(--navy-900); outline:none;
  -webkit-appearance:none; appearance:none; }
.fbar-field select:focus, .fbar-field input:focus{ border-color:var(--accent); }
.fbar-grow{ flex:1; min-width:180px; }
.fbar-grow input{ width:100%; }
.results-head{ display:flex; justify-content:space-between; align-items:center; margin:26px 0 22px; flex-wrap:wrap; gap:12px; }
.results-head .count{ font-size:15px; color:var(--muted); }
.results-head .count b{ color:var(--navy-900); font-size:18px; }
.chips{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.chip{ display:inline-flex; align-items:center; gap:7px; background:var(--accent-soft); border:1px solid var(--blue-100);
  color:var(--accent-600); border-radius:var(--r-pill); padding:6px 12px; font-size:12.5px; font-weight:600; }
.chip button{ background:none; border:0; color:inherit; display:inline-flex; padding:0; opacity:.7; }
.chip button:hover{ opacity:1; }
.sortbox{ display:flex; align-items:center; gap:8px; }
.sortbox select{ border:1px solid var(--line-2); border-radius:var(--r-pill); padding:9px 14px; font-family:inherit;
  font-size:13.5px; font-weight:600; color:var(--navy-900); background:#fff; outline:none; -webkit-appearance:none; appearance:none; }
.empty{ text-align:center; padding:80px 20px; color:var(--muted); }
.empty svg{ width:54px; height:54px; color:var(--line-2); margin:0 auto 16px; }

/* ======= DETAIL PAGE ======= */
.crumbs{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); padding:18px 0; }
.crumbs a:hover{ color:var(--accent); }
.detail-gallery{ display:grid; grid-template-columns:2fr 1fr 1fr; grid-template-rows:1fr 1fr; gap:10px; height:480px; border-radius:var(--r-lg); overflow:hidden; }
.detail-gallery figure{ margin:0; overflow:hidden; position:relative; cursor:pointer; background:var(--paper-2); }
.detail-gallery figure:nth-child(1){ grid-row:1/3; grid-column:1; }
.detail-gallery img{ width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.detail-gallery figure:hover img{ transform:scale(1.05); }
.g-more{ position:absolute; inset:0; background:rgba(8,20,40,.55); color:#fff; display:grid; place-items:center; font-weight:700; font-size:16px; }
.detail-grid{ display:grid; grid-template-columns:1fr 372px; gap:44px; align-items:start; margin-top:34px; }
.detail-main h1{ font-size:clamp(26px,3.2vw,40px); }
.spec-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:26px 0; }
.spec-box{ background:#fff; border:1px solid var(--line); border-radius:var(--r-md); padding:16px; text-align:center; }
.spec-box svg{ width:24px; height:24px; color:var(--accent); margin:0 auto 8px; }
.spec-box b{ display:block; font-size:19px; color:var(--navy-900); font-weight:800; }
.spec-box span{ font-size:12px; color:var(--muted); }
.detail-section{ padding:28px 0; border-top:1px solid var(--line); }
.detail-section h3{ font-size:21px; margin-bottom:14px; }
.detail-desc{ color:var(--muted); font-size:15.5px; line-height:1.7; }
.amen-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.amen{ display:flex; align-items:center; gap:10px; font-size:14.5px; color:var(--navy-800); padding:8px 0; }
.amen svg{ width:18px; height:18px; color:var(--accent); flex:none; }
.sidebar-card{ background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-md); padding:24px; position:sticky; top:96px; }
.sidebar-price{ font-family:var(--font-display); font-weight:800; font-size:32px; letter-spacing:-.02em; color:var(--navy-900); }
.sidebar-price .per{ font-size:14px; font-weight:600; color:var(--muted); letter-spacing:0; }
.agent-mini{ display:flex; align-items:center; gap:12px; margin:18px 0; padding:14px; background:var(--paper); border-radius:var(--r-md); }
.agent-mini img{ width:50px; height:50px; border-radius:50%; object-fit:cover; }
.agent-mini .nm{ font-weight:700; font-size:15px; color:var(--navy-900); }
.agent-mini .rl{ font-size:12.5px; color:var(--muted); }
.field{ margin-bottom:12px; }
.field label{ display:block; font-size:12.5px; font-weight:600; color:var(--muted); margin-bottom:5px; }
.field input, .field textarea{ width:100%; border:1px solid var(--line-2); border-radius:var(--r-md); padding:11px 14px;
  font-family:inherit; font-size:14.5px; color:var(--text); outline:none; resize:vertical; }
.field input:focus, .field textarea:focus{ border-color:var(--accent); }

/* Calculator */
.calc-row{ display:flex; justify-content:space-between; align-items:center; padding:10px 0; font-size:14.5px; }
.calc-row.total{ border-top:1px solid var(--line); margin-top:8px; padding-top:14px; font-weight:800; font-size:17px; color:var(--navy-900); }
.calc-slider{ width:100%; accent-color:var(--accent); margin:6px 0; }

/* AI Assistant */
.ai-launcher{ position:fixed; right:24px; bottom:24px; z-index:120; display:flex; align-items:center; gap:11px;
  background:var(--grad-brand); color:#fff; border:0; border-radius:var(--r-pill); padding:13px 20px 13px 14px;
  box-shadow:var(--sh-blue), 0 8px 30px rgba(8,22,39,.25); font-weight:700; font-size:15px; transition:transform .2s; }
.ai-launcher:hover{ transform:translateY(-3px) scale(1.02); }
.ai-launcher .av{ width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.2); display:grid; place-items:center; }
.ai-launcher .pulse{ position:absolute; left:18px; top:12px; width:10px; height:10px; border-radius:50%; background:#46E8A0; border:2px solid #fff; }
.ai-panel{ position:fixed; right:24px; bottom:24px; z-index:121; width:392px; max-width:calc(100vw - 32px);
  height:580px; max-height:calc(100vh - 48px); background:#fff; border-radius:var(--r-xl); box-shadow:var(--sh-xl);
  display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--line); }
.ai-head{ background:var(--grad-navy); color:#fff; padding:18px 20px; display:flex; align-items:center; gap:12px; }
.ai-head .av{ width:42px; height:42px; border-radius:50%; background:var(--grad-blue); display:grid; place-items:center; font-weight:800; flex:none; }
.ai-head .nm{ font-weight:800; font-size:16px; }
.ai-head .st{ font-size:12px; color:var(--blue-200); display:flex; align-items:center; gap:6px; }
.ai-head .st::before{ content:""; width:7px; height:7px; border-radius:50%; background:#46E8A0; }
.ai-head .x{ margin-left:auto; background:rgba(255,255,255,.12); border:0; color:#fff; width:34px; height:34px; border-radius:50%; display:grid; place-items:center; }
.ai-body{ flex:1; overflow-y:auto; padding:20px; display:flex; flex-direction:column; gap:14px; background:var(--paper); }
.ai-msg{ max-width:84%; padding:12px 15px; border-radius:16px; font-size:14.5px; line-height:1.5; }
.ai-msg.bot{ background:#fff; border:1px solid var(--line); color:var(--text); border-bottom-left-radius:5px; align-self:flex-start; box-shadow:var(--sh-sm); }
.ai-msg.user{ background:var(--accent); color:#fff; border-bottom-right-radius:5px; align-self:flex-end; }
.ai-typing{ display:flex; gap:4px; padding:14px 16px; background:#fff; border:1px solid var(--line); border-radius:16px; align-self:flex-start; width:fit-content; }
.ai-typing i{ width:8px; height:8px; border-radius:50%; background:var(--muted-2); animation:aiblink 1.2s infinite; }
.ai-typing i:nth-child(2){ animation-delay:.2s; } .ai-typing i:nth-child(3){ animation-delay:.4s; }
@keyframes aiblink{ 0%,60%,100%{ opacity:.3; transform:translateY(0); } 30%{ opacity:1; transform:translateY(-3px); } }
.ai-suggest{ display:flex; gap:8px; flex-wrap:wrap; padding:0 16px 12px; }
.ai-chip{ font-size:12.5px; font-weight:600; padding:8px 13px; border-radius:var(--r-pill); background:var(--accent-soft); color:var(--accent-600); border:1px solid var(--blue-100); }
.ai-chip:hover{ background:var(--accent); color:#fff; }
.ai-foot{ padding:14px 16px; border-top:1px solid var(--line); display:flex; gap:10px; align-items:center; background:#fff; }
.ai-foot input{ flex:1; border:1px solid var(--line-2); border-radius:var(--r-pill); padding:12px 16px; font-family:inherit; font-size:14.5px; outline:none; }
.ai-foot input:focus{ border-color:var(--accent); }
.ai-foot .send{ width:44px; height:44px; border-radius:50%; background:var(--accent); color:#fff; border:0; display:grid; place-items:center; flex:none; }
.ai-rec{ display:flex; gap:10px; background:#fff; border:1px solid var(--line); border-radius:var(--r-md); padding:10px; margin-top:4px; cursor:pointer; }
.ai-rec img{ width:64px; height:54px; border-radius:8px; object-fit:cover; flex:none; }
.ai-rec .nm{ font-weight:700; font-size:13.5px; color:var(--navy-900); line-height:1.3; }
.ai-rec .pr{ font-weight:800; font-size:14px; color:var(--accent); margin-top:3px; }
.ai-rec .lc{ font-size:12px; color:var(--muted); }

/* Toast */
.toast{ position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px); z-index:200;
  background:var(--navy-900); color:#fff; padding:13px 22px; border-radius:var(--r-pill); box-shadow:var(--sh-xl);
  font-size:14.5px; font-weight:600; opacity:0; transition:opacity .25s, transform .25s; display:flex; align-items:center; gap:10px; pointer-events:none; }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.toast svg{ width:18px; height:18px; color:#46E8A0; }

/* Page transitions */
.page-enter{ animation:pageIn .4s cubic-bezier(.2,.7,.2,1); }
@keyframes pageIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }

/* Misc */
.divider{ height:1px; background:var(--line); border:0; margin:0; }
.pill-row{ display:flex; gap:8px; flex-wrap:wrap; }
.tag-pill{ font-size:13px; font-weight:600; padding:8px 15px; border-radius:var(--r-pill); background:var(--paper-2); color:var(--navy-800); border:1px solid var(--line); }
.tag-pill.on{ background:var(--accent); color:#fff; border-color:var(--accent); }

/* Responsive */
@media (max-width:980px){
  .heroA-grid{ grid-template-columns:1fr; gap:34px; }
  .heroA-media>img{ height:380px; }
  .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); }
  .cat-row{ grid-template-columns:repeat(3,1fr); }
  .steps{ grid-template-columns:repeat(2,1fr); }
  .detail-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .detail-gallery{ grid-template-columns:1fr 1fr; height:auto; grid-auto-rows:160px; }
  .detail-gallery figure:nth-child(1){ grid-row:1/3; grid-column:1/3; }
}
@media (max-width:680px){
  .hdr-nav{ display:none; }
  .burger{ display:inline-grid; }
  .grid-3, .grid-4, .grid-2{ grid-template-columns:1fr; }
  .cat-row{ grid-template-columns:repeat(2,1fr); }
  .spec-row{ grid-template-columns:repeat(2,1fr); }
  .searchbar{ flex-direction:column; border-radius:var(--r-lg); }
  .searchbar .seg{ border-right:0; border-bottom:1px solid var(--line); }
  .searchbar .go{ margin-top:6px; padding:13px; }
  .section{ padding:60px 0; }
  .wrap{ padding:0 18px; }
}