/* CW Real Estate — Design System v3 (PREVIEW)
   Navy + warm paper + gold accent, single humanist sans (General Sans).
   Faithful to cwlagos.com. This file is a drop-in re-skin of design-system-v2.css:
   it keeps every v2 class name (.btn-v2, .card-split, .chip-v2, .status-v2, …) so the
   existing markup re-skins automatically, and ADDS the new v3 pieces (.badge, .act,
   .nav-pill, .agent-row). Loaded only by the /preview/* templates.
*/

:root {
  /* ——— Navy spectrum (primary brand) ———
     The historical --coral-* variable NAMES are kept but point at navy, so any
     markup that references var(--coral) re-skins to navy with no edits. */
  --navy:      #1C2350;
  --navy-600:  #161C44;
  --navy-700:  #111634;
  --navy-50:   #ECEDF4;
  --navy-100:  #DFE1EC;
  --navy-200:  #C3C7DC;

  --coral:      var(--navy);
  --coral-600:  var(--navy-600);
  --coral-700:  var(--navy-700);
  --coral-50:   var(--navy-50);
  --coral-100:  var(--navy-100);
  --coral-200:  var(--navy-200);

  /* Ink + warm neutrals */
  --ink:        #161B33;
  --ink-700:    #2C3250;
  --slate-600:  #5A6075;
  --slate-500:  #7B8194;
  --slate-400:  #A7ACBC;
  --slate-200:  #E0E0E3;
  --slate-100:  #ECECEE;
  --paper:      #F3F2EE;
  --white:      #FFFFFF;

  /* Accents */
  --gold:    #C98A1E;
  --gold-50: #FBF3E2;
  --green:   #1F9D6B;
  --amber:   #C98A1E;
  --blue:    #3B6FD9;
  --wa:      #25D366;   /* WhatsApp */

  /* Warm paper ground (flat, like the real site) */
  --bg-gradient: linear-gradient(180deg, #F5F4F0 0%, #F1F0EB 100%);
  --bg-gradient-dense: linear-gradient(180deg, #F1F0EB 0%, #E9E8E2 100%);

  /* Shadows (navy-tinted) */
  --shadow-sm:  0 1px 2px rgba(20,24,46,0.05), 0 1px 1px rgba(20,24,46,0.03);
  --shadow-md:  0 10px 30px -12px rgba(20,24,46,0.16), 0 2px 6px rgba(20,24,46,0.05);
  --shadow-lg:  0 26px 64px -24px rgba(20,24,46,0.30), 0 8px 18px -10px rgba(20,24,46,0.12);
  --shadow-coral: 0 12px 30px -12px rgba(28,35,80,0.40);   /* navy lift (name kept) */

  /* Radii — softer */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;

  /* Type — editorial serif display (Instrument Serif) + Geist body */
  --font-display: "Instrument Serif", "Cormorant Garamond", "Times New Roman", serif;
  --font-sans:    "Geist", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --font-mono:    "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
}

/* ——————————————— Base ——————————————— */

body {
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--paper);
  min-height: 100vh;
}

::selection { background: rgba(28, 35, 80, 0.18); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(224, 224, 227, 0.6); }
::-webkit-scrollbar-thumb {
  background: var(--navy-200);
  border-radius: var(--r-full);
}

/* ——————————————— Typography atoms ——————————————— */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.eyebrow.coral { color: var(--navy); }
.eyebrow.ink   { color: var(--ink); }

/* Display heading — editorial serif */
.serif-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

/* Accent span inside a heading — italic serif (e.g. "refined") */
.italic-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: inherit;
}

/* ——————————————— Buttons ——————————————— */

.btn-v2 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none;
}
.btn-v2.btn-coral {
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow-coral);
}
.btn-v2.btn-coral:hover { transform: translateY(-1px); background: var(--navy-600); }
.btn-v2.btn-ghost {
  background: var(--white);
  border-color: var(--slate-200);
  color: var(--ink);
}
.btn-v2.btn-ghost:hover { border-color: var(--navy-200); }

/* ——————————————— Chips ——————————————— */

.chip-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--r-full);
  background: white;
  border: 1px solid var(--slate-200);
  font-size: 13px;
  color: var(--ink-700);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.chip-v2:hover { background: var(--slate-100); }
.chip-v2.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.chip-v2.coral {
  background: var(--navy-50);
  color: var(--navy);
  border-color: var(--navy-100);
}

/* ——————————————— Status pills ——————————————— */

.status-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.status-v2 .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status-v2.available    { background: #E7F6EF; color: #16774E; }
.status-v2.available .dot { background: var(--green); }
.status-v2.progress     { background: var(--gold-50); color: #8A6207; }
.status-v2.progress .dot { background: var(--gold); }
.status-v2.sold         { background: var(--slate-100); color: var(--slate-600); }
.status-v2.sold .dot    { background: var(--slate-400); }
.status-v2.new          { background: var(--navy-50); color: var(--navy); }
.status-v2.new .dot     { background: var(--navy); }
.status-v2.tba          { background: var(--slate-100); color: var(--slate-500); }
.status-v2.tba .dot     { background: var(--slate-400); }

/* ——————————————— v3 NEW: listing badges ——————————————— */
/* Translucent white pills with a colored dot. Adapted to our data:
   gold = luxury / Editor's pick, navy = type / status, green = available. */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-full);
  background: rgba(255,255,255,0.92);
  font-size: 11.5px; font-weight: 600; color: var(--ink);
  box-shadow: 0 2px 8px rgba(20,24,46,0.12);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.badge.gold .dot  { background: var(--gold); }
.badge.navy .dot  { background: var(--navy); }
.badge.green .dot { background: var(--green); }
.badge.type .dot  { background: var(--navy); }

/* ——————————————— v3 NEW: contact action circles ——————————————— */
.act {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s;
  text-decoration: none;
}
.act:hover { transform: translateY(-1px); }
.act.wa   { background: var(--wa); color: white; }
.act.call { background: var(--navy); color: white; }

/* ——————————————— v3 NEW: agent row on cards ——————————————— */
.agent-row { display: flex; align-items: center; gap: 10px; }
.agent-row .agent-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; color: white;
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  box-shadow: inset 0 0 0 1px rgba(20,24,46,0.08);
}
.agent-row .agent-name { font-size: 13.5px; font-weight: 500; color: var(--ink); }

/* ——————————————— v3 NEW: floating pill nav ——————————————— */
.nav-pill {
  display: flex; align-items: center; gap: 2px;
  background: white;
  border-radius: var(--r-full);
  padding: 7px 8px;
  box-shadow: 0 14px 40px -18px rgba(20,24,46,0.40), 0 0 0 1px rgba(20,24,46,0.05);
}
.nav-pill a, .nav-pill .nav-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 15px; font-size: 14px; font-weight: 500; color: var(--slate-600);
  text-decoration: none; border-radius: var(--r-full); transition: background .15s, color .15s; cursor: pointer;
}
.nav-pill a:hover { color: var(--ink); }
.nav-pill a.active { background: var(--navy-50); color: var(--navy); font-weight: 600; }
.nav-pill .nav-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy); color: white; margin-right: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 0.04em;
}
.nav-pill .nav-currency {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px;
  border: none; border-radius: var(--r-full); background: var(--slate-100);
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.nav-pill .nav-divider { width: 1px; height: 26px; background: var(--slate-200); margin: 0 6px; }

/* Standalone brand logo (top-left); spacer keeps the centered pill centered */
.brand-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 0.04em;
  text-decoration: none; box-shadow: var(--shadow-md);
  flex-shrink: 0; pointer-events: auto;
}
.nav-spacer { width: 44px; flex-shrink: 0; }

/* Account button (nav pill) — navy avatar + caret so it reads as a clickable menu */
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; letter-spacing: 0.04em;
}
.avatar-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; cursor: pointer;
  padding: 4px 10px 4px 4px; border-radius: var(--r-full);
  transition: background .15s;
}
.avatar-trigger:hover { background: var(--navy-50); }
.avatar-caret { color: var(--slate-500); transition: transform .15s; flex-shrink: 0; }
.avatar-trigger:hover .avatar-caret { color: var(--navy); }
.avatar-trigger[aria-expanded="true"] .avatar-caret { transform: rotate(180deg); }

/* ——————————————— Nav pill — mobile ——————————————— */
@media (max-width: 640px) {
  .cw-topbar { justify-content: flex-start !important; gap: 8px; }
  .cw-topbar .nav-spacer { display: none; }
  .brand-logo { width: 38px; height: 38px; font-size: 14px; border-radius: 10px; }
  .nav-pill {
    gap: 0;
    padding: 5px 6px;
    max-width: calc(100vw - 86px);
  }
  .nav-pill .nav-logo {
    width: 34px; height: 34px; font-size: 13px;
    border-radius: 10px; margin-right: 2px;
  }
  .nav-pill a, .nav-pill .nav-item {
    padding: 7px 9px; font-size: 12.5px; gap: 0;
  }
  .nav-pill a svg { display: none; }                 /* drop link chevrons */
  .nav-pill .nav-divider,
  .nav-pill .nav-currency { display: none; }          /* currency lives in filters/controls on mobile */
  #profileMenuWrapper { margin-left: 2px !important; }
  .avatar { width: 32px; height: 32px; font-size: 12px; }
  .avatar-trigger { padding: 3px 4px; gap: 0; }
  .avatar-caret { display: none; }
}
@media (max-width: 360px) {
  .nav-pill a, .nav-pill .nav-item { padding: 6px 7px; font-size: 12px; }
}

/* ——————————————— Segmented search bar — mobile ——————————————— */
@media (max-width: 820px) {
  /* The Where/Listing/Type/Beds pills are visual shortcuts to the filter panel;
     on smaller screens collapse to just search + the Filters button. */
  .search-bar-v3 .seg-divider,
  .search-bar-v3 .seg-pill { display: none; }
  .search-bar-v3 { padding: 7px 7px 7px 16px; }
}
@media (max-width: 480px) {
  .search-bar-v3 input { font-size: 13.5px; }
  .filters-btn { padding: 11px 14px; font-size: 13px; }
}

/* View-all district banner — tidy stats on small screens */
@media (max-width: 600px) {
  #locationViewAllBanner .banner-sep { display: none; }
  #locationViewAllBanner .serif-display { font-size: 32px !important; }
}

/* View-all grid — 2 fluid columns on mobile instead of one fixed-width centred column */
@media (max-width: 640px) {
  .view-all-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px !important;
    justify-content: stretch !important;
  }
  .view-all-row .card-split {
    width: auto !important;
    flex: 0 1 auto !important;
  }
  /* keep the agent row from overflowing the narrower cards */
  .view-all-row .agent-row .agent-avatar { width: 28px; height: 28px; font-size: 11px; }
  .view-all-row .agent-row .act { width: 30px; height: 30px; }
  .view-all-row .agent-row .agent-name {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
}

/* ——————————————— v3 NEW: segmented search bar ——————————————— */
.search-bar-v3 {
  display: flex; align-items: center; gap: 6px;
  background: white; border-radius: var(--r-full);
  padding: 8px 8px 8px 18px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(20,24,46,0.05);
}
.search-bar-v3 .search-input-wrap { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.search-bar-v3 input {
  border: none; outline: none; background: transparent; width: 100%;
  font-family: var(--font-sans); font-size: 14px; color: var(--ink);
  -webkit-appearance: none; appearance: none; box-shadow: none;
}
.search-bar-v3 input:focus,
.search-bar-v3 input:focus-visible { outline: none; box-shadow: none; border: none; }
.search-bar-v3 input::placeholder { color: var(--slate-400); }
.seg-divider { width: 1px; height: 26px; background: var(--slate-200); flex-shrink: 0; }
.seg-pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 9px 13px; border-radius: var(--r-full); cursor: pointer;
  font-size: 13px; color: var(--slate-500); transition: background .15s;
}
.seg-pill:hover { background: var(--slate-100); }
.seg-pill .seg-label { color: var(--slate-500); }
.seg-pill .seg-value { color: var(--ink); font-weight: 600; }
.filters-btn {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 11px 18px; border-radius: var(--r-full);
  background: var(--navy); color: white; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; transition: background .15s;
}
.filters-btn:hover { background: var(--navy-600); }
.filters-btn .filters-count {
  background: rgba(255,255,255,0.22); border-radius: var(--r-full);
  padding: 1px 8px; font-size: 12px; font-weight: 600;
}

/* ——————————————— Cards ——————————————— */

/* Card A — Editorial Overlay */
.card-editorial {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.card-editorial:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-editorial .card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-editorial .card-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,46,0.05) 0%, rgba(20,24,46,0) 35%, rgba(20,24,46,0.78) 100%);
}
.card-editorial .card-top {
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; justify-content: space-between; align-items: flex-start; z-index: 2;
}
.card-editorial .card-bottom {
  position: absolute; left: 14px; right: 14px; bottom: 12px; color: white; z-index: 2;
}
.card-editorial .card-location {
  font-family: var(--font-sans); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; opacity: 0.85; font-weight: 600;
}
.card-editorial .card-name {
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  line-height: 1.02; margin-top: 3px; margin-bottom: 4px;
}
.card-editorial .card-price { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.card-editorial .card-specs {
  display: flex; align-items: center; gap: 10px; font-size: 11px;
  color: rgba(255,255,255,0.9); border-top: 1px solid rgba(255,255,255,0.25); padding-top: 8px;
}

/* Card B — Split (image top, white info below) — the primary v3 card */
.card-split {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.card-split:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-split .card-img-wrap { width: 100%; aspect-ratio: 16 / 10; flex: none; position: relative; overflow: hidden; }
.card-split .card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* navy plate gradient at the bottom of the image */
.card-split .card-plate {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,46,0) 45%, rgba(20,24,46,0.82) 100%);
  pointer-events: none;
}
.card-split .card-plate-name {
  position: absolute; left: 14px; bottom: 12px; right: 14px; color: white; z-index: 2;
  font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.05;
}
.card-split .card-top {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: flex-start; z-index: 3;
}
.card-split .card-info { padding: 11px 13px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.card-split .card-title { font-family: var(--font-display); font-weight: 400; font-size: 21px; color: var(--ink); line-height: 1.08; }
.card-split .card-price { font-weight: 600; font-size: 15.5px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; margin-top: 1px; }
.card-split .card-subtitle { font-size: 12.5px; color: var(--slate-500); line-height: 1.3; }
.card-split .card-divider { height: 1px; background: var(--slate-100); margin: 7px 0 3px; }
.card-split .agent-row { margin-top: 1px; }
.card-split .agent-row .agent-avatar { width: 32px; height: 32px; font-size: 12px; }
.card-split .agent-row .agent-name { font-size: 13px; }
.card-split .agent-row .act { width: 34px; height: 34px; }
/* stacked listing badges, top-left of the image */
.card-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }

/* Heart button */
.heart-btn-v2 {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(20,24,46,0.12); transition: transform .15s, background .15s;
}
.heart-btn-v2:hover { transform: scale(1.08); }
.heart-btn-v2.saved { background: var(--navy); color: white; }
.heart-btn-v2:not(.saved) { background: rgba(255,255,255,0.92); color: var(--ink); }

/* ——————————————— Filter bar (glassmorphic) ——————————————— */

.filter-bar-v2 {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  border-radius: var(--r-full);
  padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,0.7) inset;
  border: 1px solid rgba(255,255,255,0.6);
  flex-wrap: wrap;
}
.filter-bar-v2 .filter-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--navy); color: white;
  border-radius: var(--r-full); font-weight: 500; font-size: 13.5px;
  border: none; cursor: pointer; transition: background .15s;
}
.filter-bar-v2 .filter-trigger:hover { background: var(--navy-600); }

.filter-panel-v2 {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-radius: var(--r-lg);
  padding: 20px; margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  overflow: hidden;
}
.filter-panel-v2.hidden { display: none; }

/* ——————————————— Header (legacy chrome, navy) ——————————————— */

.chrome-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 40px 0;
}
.chrome-header .logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 15px;
  font-family: var(--font-display); box-shadow: var(--shadow-coral);
}
.chrome-header nav a { padding: 8px 14px; font-size: 13.5px; color: var(--slate-600); text-decoration: none; transition: color .15s; }
.chrome-header nav a:hover, .chrome-header nav a.active { color: var(--ink); font-weight: 500; }
.chrome-header .avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy);
  color: white; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; letter-spacing: 0.05em;
  box-shadow: var(--shadow-coral); cursor: pointer; border: none;
}

/* ——————————————— Property detail modal ——————————————— */

.detail-modal-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(20,24,46,0.45); display: flex; align-items: center; justify-content: center; padding: 24px; }
.detail-modal { position: relative; width: 100%; max-width: 76rem; max-height: 92vh; background: white; border-radius: var(--r-xl); overflow: hidden; display: grid; grid-template-columns: 1.05fr 0.95fr; box-shadow: 0 40px 100px -30px rgba(20,24,46,0.40); }
@media (max-width: 768px) { .detail-modal { grid-template-columns: 1fr; max-height: 95vh; } }
.detail-modal .detail-left { position: relative; min-height: 400px; }
.detail-modal .detail-left img { width: 100%; height: 100%; object-fit: cover; }
.detail-modal .detail-left .img-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,46,0) 0%, rgba(20,24,46,0) 60%, rgba(20,24,46,0.75) 100%); }
.detail-modal .detail-left .identity { position: absolute; left: 28px; right: 28px; bottom: 24px; color: white; }
.detail-modal .detail-right { padding: 28px 32px; overflow: auto; }
.detail-modal .detail-right::-webkit-scrollbar { display: none; }
.detail-modal .detail-right { scrollbar-width: none; }

/* Price card inside detail */
.price-card-v2 {
  background: linear-gradient(135deg, #F6F5F1 0%, #ECEDF4 100%);
  border-radius: var(--r-lg);
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.8);
}

/* Config row */
.config-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--slate-200); background: white; transition: background .15s; }
.config-row:hover { background: var(--slate-100); }
.config-row.sold-out { background: var(--slate-100); opacity: 0.6; }

/* Amenity chip */
.amenity-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--slate-100); border-radius: var(--r-md); font-size: 13px; }
.amenity-chip .amenity-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  color: white; display: flex; align-items: center; justify-content: center; font-size: 10px;
}

#modalVisual { min-height: 360px; }

/* Progress bar */
.progress-bar-v2 { height: 6px; background: var(--slate-100); border-radius: 4px; overflow: hidden; }
.progress-bar-v2 .fill { height: 100%; background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%); border-radius: 4px; transition: width .4s ease; }

/* ——————————————— Property detail page (editorial split) ——————————————— */

.detail-grid { display: grid; gap: 20px; align-items: start; }
.detail-visual-cell { position: relative; min-width: 0; }
.detail-info { min-width: 0; }
.detail-visual { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--slate-200); height: 420px; }
.detail-visual .img-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,46,0) 0%, rgba(20,24,46,0) 48%, rgba(20,24,46,0.82) 100%); }
.detail-visual .identity { position: absolute; left: 22px; right: 22px; bottom: 20px; color: white; z-index: 2; }

@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: stretch; }
  .detail-visual { position: sticky; top: 24px; height: calc(100vh - 120px); max-height: 720px; }
}
@media (max-width: 640px) {
  .detail-visual { height: 320px; }
  .detail-visual .identity { left: 16px; right: 16px; bottom: 14px; }
}

/* ——————————————— Profile dropdown ——————————————— */

.profile-dropdown-v2 { position: absolute; right: 0; top: calc(100% + 12px); width: 300px; background: white; border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(20,24,46,0.30), 0 0 0 1px rgba(20,24,46,0.04); overflow: hidden; z-index: 50; }
.profile-dropdown-v2.hidden { display: none; }
.profile-dropdown-v2 .dd-header { padding: 20px 22px 18px; background: linear-gradient(135deg, #F6F5F1 0%, #ECEDF4 100%); border-bottom: 1px solid var(--slate-100); }
.profile-dropdown-v2 .dd-stats { display: flex; gap: 14px; margin-top: 14px; }
.profile-dropdown-v2 .dd-stat .label { font-family: var(--font-sans); font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-500); }
.profile-dropdown-v2 .dd-stat .value { font-size: 18px; font-weight: 600; margin-top: 2px; }
.profile-dropdown-v2 .dd-body { padding: 8px; }
.profile-dropdown-v2 .dd-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); color: var(--ink); cursor: pointer; font-size: 14px; text-decoration: none; transition: background .15s; }
.profile-dropdown-v2 .dd-item:hover { background: var(--slate-100); }
.profile-dropdown-v2 .dd-item.primary { background: var(--navy); color: white; }
.profile-dropdown-v2 .dd-item.primary:hover { background: var(--navy-600); }
.profile-dropdown-v2 .dd-item.coral-text { color: var(--navy); }
.profile-dropdown-v2 .dd-item .count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: var(--r-full); background: var(--slate-100); color: var(--slate-600); }
.profile-dropdown-v2 .dd-item.primary .count { background: rgba(255,255,255,0.18); color: white; }
.profile-dropdown-v2 .dd-item.coral-text .count { background: var(--navy-50); color: var(--navy); }
.profile-dropdown-v2 .dd-divider { height: 1px; background: var(--slate-100); margin: 8px 4px; }

/* ——————————————— Misc ——————————————— */

.no-scroll::-webkit-scrollbar { display: none; }
.no-scroll { scrollbar-width: none; }

.fade-enter { opacity: 0; transform: translateY(10px); }
.fade-enter-active { opacity: 1; transform: translateY(0); transition: opacity 0.45s ease, transform 0.45s ease; }
.modal-open { opacity: 1 !important; pointer-events: auto; }

/* Preview ribbon */
.v3-ribbon {
  position: fixed; bottom: 16px; left: 16px; z-index: 60;
  background: var(--navy); color: white; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 12px; border-radius: var(--r-full); box-shadow: var(--shadow-md);
}

/* Prevent horizontal overflow */
html, body { overflow-x: hidden; max-width: 100vw; }

/* ——————————————— Responsive (mirrors v2) ——————————————— */

@media (max-width: 1024px) {
  .chrome-header { padding: 16px 20px 0; }
  .chrome-header nav { display: none; }
  #heroFeaturedCard { height: 280px !important; }
  .detail-modal { grid-template-columns: 1fr; }
  .profile-dropdown-v2 { width: 280px; }
}
@media (max-width: 834px) and (min-width: 641px) {
  #heroFeaturedCard { height: 250px !important; }
  .card-editorial { width: 180px !important; }
  #modalVisual { height: 340px; min-height: 0; }
}
@media (max-width: 768px) {
  .hero-stats { gap: 16px !important; }
  .hero-stats .stat-value { font-size: 26px !important; }
  #heroFeaturedCard { height: 220px !important; }
  .filter-panel-v2 { padding: 14px; }
  #locationViewAllGrid { grid-template-columns: repeat(2, 1fr) !important; gap: 18px !important; }
  .config-row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
  .config-row > div:last-child { text-align: left !important; }
}
@media (max-width: 640px) {
  .chrome-header { padding: 12px 16px 0; }
  .card-editorial { width: 160px !important; }
  .card-editorial .card-name { font-size: 16px; }
  .heart-btn-v2 { width: 30px; height: 30px; }
  #heroFeaturedCard { height: 200px !important; }
  .status-v2 { font-size: 9px; padding: 3px 7px; }
}
@media (max-width: 400px) {
  .card-editorial { width: 140px !important; }
  .card-editorial .card-specs { display: none; }
  #locationViewAllGrid { grid-template-columns: 1fr !important; }
}

/* ——————————————— Public homepage: motion + layout ——————————————— */
@keyframes hp-kenburns { from{transform:scale(1.0)} to{transform:scale(1.09)} }
.hp-hero-img { animation: hp-kenburns 22s ease-in-out infinite alternate; }

@keyframes hp-marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.hp-marquee-track { display:flex; width:max-content; animation: hp-marquee 34s linear infinite; }
.hp-marquee-row:hover .hp-marquee-track { animation-play-state: paused; }
.hp-marquee-row { position:relative; border-top:1px solid rgba(255,255,255,0.15); overflow:hidden; padding:16px 0; }
.hp-marquee-item { display:flex; align-items:center; gap:10px; font-size:13.5px; color:rgba(255,255,255,0.75); white-space:nowrap; padding:0 40px; border-right:1px solid rgba(255,255,255,0.15); }

@keyframes hp-fade-up { from{opacity:0; transform:translateY(28px)} to{opacity:1; transform:translateY(0)} }
.hp-reveal { opacity:0; }
.hp-reveal.hp-in { animation: hp-fade-up .9s cubic-bezier(.16,1,.3,1) forwards; }

@keyframes hp-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.hp-live-dot { animation: hp-pulse 1.8s ease-in-out infinite; width:6px; height:6px; border-radius:50%; background:var(--green); display:inline-block; }

.hp-zoom-wrap { overflow:hidden; position:relative; }
.hp-zoom-img { transition: transform .8s cubic-bezier(.16,1,.3,1); position:absolute; inset:0; background-size:cover; background-position:center; }
.hp-zoom-wrap:hover .hp-zoom-img { transform: scale(1.08); }

/* Fallback treatment for properties with no thumbnail — a deliberate mark
   rather than a blank box. */
.hp-zoom-img.img-fallback { background: linear-gradient(135deg, var(--navy-700), var(--navy)); display:flex; align-items:center; justify-content:center; }
.hp-zoom-img.img-fallback::after { content:'CW'; font-family:var(--font-display); font-weight:600; font-size:28px; letter-spacing:0.04em; color:rgba(201,138,30,0.4); }

.hp-bar-fill { transition: width 1.2s cubic-bezier(.16,1,.3,1); position:absolute; inset:0 auto 0 0; background:var(--navy); border-radius:6px; }

.hp-card-lift { transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; }
.hp-card-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.hp-link-row { display:flex; align-items:center; justify-content:space-between; color:var(--ink); transition: transform .25s cubic-bezier(.16,1,.3,1), color .25s; text-decoration:none; padding:12px 4px; border-bottom:1px solid var(--slate-100); font-size:14.5px; font-weight:500; }
.hp-link-row:hover { color: var(--navy); transform: translateX(6px); }
.hp-link-row svg { transition: transform .25s; }
.hp-link-row:hover svg { transform: translateX(3px); }

.hp-view-link { display:inline-flex; align-items:center; gap:6px; color:var(--navy); font-weight:600; cursor:pointer; transition: transform .25s cubic-bezier(.16,1,.3,1), color .25s; text-decoration:none; }
.hp-view-link:hover { color: var(--navy-600); transform: translateX(4px); }
.hp-view-link svg { transition: transform .25s; }
.hp-view-link:hover svg { transform: translateX(3px); }

.hp-nav-link { color: var(--ink-700); cursor: pointer; transition: color .2s; text-decoration:none; }
.hp-nav-link:hover { color: var(--navy); }

.hp-sparkline path { stroke-dasharray:240; stroke-dashoffset:240; transition: stroke-dashoffset 1.5s cubic-bezier(.16,1,.3,1) .3s; }
.hp-in .hp-sparkline path { stroke-dashoffset:0; }

@media (prefers-reduced-motion: reduce) {
  .hp-hero-img, .hp-marquee-track, .hp-live-dot { animation: none !important; }
  .hp-reveal { opacity:1 !important; animation:none !important; }
}

/* Homepage layout scaffolding (non-inline, kept out of the template markup) */
.hp-header { position:sticky; top:0; z-index:30; padding:0 40px; height:84px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--slate-200); background:var(--paper); }
.hp-header-mobile-only, .hp-nav-toggle, #hp-mobile-nav { display:none; }
.hp-nav-toggle { flex-direction:column; justify-content:center; align-items:center; gap:5px; width:36px; height:36px; border:none; background:transparent; cursor:pointer; padding:0; }
.hp-nav-toggle span { display:block; width:20px; height:2px; background:var(--navy); border-radius:2px; transition:transform .25s ease, opacity .2s ease; }
.hp-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hp-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.hp-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
.hp-hero { position:relative; overflow:hidden; }
.hp-hero-overlay-1 { position:absolute; inset:0; background:linear-gradient(190deg, rgba(17,22,52,0.35) 0%, rgba(17,22,52,0.74) 62%, var(--navy-700) 100%); }
.hp-hero-overlay-2 { position:absolute; inset:0; background:radial-gradient(ellipse 720px 480px at 88% 8%, rgba(201,138,30,0.28), transparent 68%); }
.hp-hero-content { position:relative; padding:92px 40px 44px; display:grid; grid-template-columns:1.08fr 0.92fr; gap:48px; align-items:end; color:white; }
.hp-pulse-card { background:rgba(255,255,255,0.08); backdrop-filter:blur(20px); border:1px solid rgba(255,255,255,0.16); border-radius:var(--r-xl); padding:28px 28px 24px; box-shadow:var(--shadow-lg); }
.hp-search-bar { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,0.1); backdrop-filter:blur(16px); border:1px solid rgba(255,255,255,0.18); border-radius:var(--r-full); padding:8px 8px 8px 18px; max-width:460px; }
.hp-section { padding:80px 40px 0; }
.hp-journey-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.hp-district-grid { display:grid; grid-template-columns:repeat(4, 1fr); grid-template-rows:repeat(2, 200px); gap:16px; }
.hp-district-tile { position:relative; height:100%; border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-md); text-decoration:none; display:block; }
.hp-district-tile.big { grid-column:1 / 3; grid-row:1 / 3; }

/* Robust fill for 0-4 small tiles (districts|length caps at 5 total) so there's
   never a half-empty trailing cell, regardless of how many districts currently
   have live listings. count-2 and count-4 already fill the base grid perfectly. */
.hp-district-grid.count-0 { grid-template-columns:1fr; grid-template-rows:360px; }
.hp-district-grid.count-0 .hp-district-tile.big { grid-column:1; grid-row:1; }
.hp-district-grid.count-1 { grid-template-rows:400px; }
.hp-district-grid.count-1 .hp-district-tile:not(.big) { grid-column:3 / 5; grid-row:1 / 3; }
.hp-district-grid.count-3 .hp-district-tile:not(.big):last-child { grid-column:3 / 5; }
.hp-district-gradient { position:absolute; inset:0; background:linear-gradient(180deg, rgba(17,22,52,0) 32%, rgba(17,22,52,0.85) 100%); }
.hp-district-info { position:absolute; left:0; right:0; bottom:0; padding:16px 16px 15px; color:white; }
.hp-district-tile.big .hp-district-info { padding:24px 24px 22px; }
.hp-recent-scroller { display:flex; gap:18px; padding:4px 40px 4px; overflow-x:auto; }
.hp-intel-card { background:white; border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-md); flex:0 0 300px; text-decoration:none; color:inherit; display:block; }
.hp-trends-card { display:grid; grid-template-columns:0.85fr 1.15fr; gap:48px; background:white; border-radius:var(--r-xl); padding:40px; box-shadow:var(--shadow-md); }
.hp-closing-cta { position:relative; overflow:hidden; margin:88px 40px 0; border-radius:var(--r-xl); padding:64px 60px; display:flex; justify-content:space-between; align-items:center; color:white; box-shadow:var(--shadow-coral); gap:40px; }
.hp-footer { margin:80px 0 0; padding:48px 40px 40px; border-top:1px solid var(--slate-200); }
@media (max-width: 900px) {
  .hp-hero-content { grid-template-columns:1fr; }
  .hp-journey-grid { grid-template-columns:1fr; }
  .hp-district-grid { grid-template-columns:repeat(2, 1fr); grid-template-rows:repeat(3, 180px); }
  .hp-district-grid .hp-district-tile.big { grid-column:1 / 3; grid-row:1; height:240px; }
  .hp-district-grid.count-0 { grid-template-rows:240px; }
  .hp-district-grid.count-1 { grid-template-rows:240px 180px; }
  .hp-district-grid.count-1 .hp-district-tile:not(.big) { grid-column:1 / 3; }
  .hp-district-grid.count-2 { grid-template-rows:240px 180px; }
  .hp-district-grid.count-3 .hp-district-tile:not(.big):last-child { grid-column:1 / 3; }
  .hp-trends-card { grid-template-columns:1fr; }
  .hp-section { padding:48px 20px 0; }
  .no-scroll::-webkit-scrollbar { display:none; }
  .hp-header { padding:0 20px; }
  .hp-header-desktop-only { display:none !important; }
  .hp-header-mobile-only { display:flex; }
  .hp-nav-toggle { display:flex; }
  #hp-mobile-nav { display:block; position:absolute; top:100%; left:0; right:0; background:var(--paper); border-bottom:1px solid var(--slate-200); box-shadow:var(--shadow-md); max-height:0; overflow:hidden; transition:max-height .3s ease; }
  #hp-mobile-nav.open { max-height:420px; }
  #hp-mobile-nav nav { display:flex; flex-direction:column; padding:8px 20px 0; }
  #hp-mobile-nav nav a { padding:13px 0; border-bottom:1px solid var(--slate-100); font-size:14.5px; }
  #hp-mobile-nav > div:last-child { padding:16px 20px 20px; }
}

/* ——————————————— Homepage v2: more editorial / luxurious pass ——————————————— */

/* Cinematic hero: taller, real photography, richer vignette */
.hp-hero { min-height: 680px; display:flex; flex-direction:column; justify-content:flex-end; }
.hp-hero-overlay-1 { background:linear-gradient(200deg, rgba(17,22,52,0.42) 0%, rgba(17,22,52,0.82) 58%, var(--navy-700) 100%); }
.hp-hero-content { padding:120px 48px 48px; }
.hp-hero-eyebrow { display:inline-flex; align-items:center; gap:9px; padding:7px 14px 7px 10px; border-radius:var(--r-full); background:rgba(255,255,255,0.08); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,0.16); margin-bottom:24px; }
.hp-hero-title { font-family:var(--font-display); font-size:68px; font-weight:600; letter-spacing:-0.02em; line-height:0.98; color:white; margin:0 0 22px; }
.hp-hero-sub { font-size:17px; color:rgba(255,255,255,0.72); max-width:540px; line-height:1.65; margin:0 0 32px; font-weight:300; }
.hp-hero-caption { position:absolute; right:48px; bottom:24px; font-size:11px; letter-spacing:0.04em; color:rgba(255,255,255,0.45); font-style:italic; font-family:var(--font-display); z-index:2; }
@media (max-width: 900px) {
  .hp-hero { min-height:auto; }
  .hp-hero-content { padding:80px 20px 32px; }
  .hp-hero-title { font-size:40px; }
  .hp-hero-caption { display:none; }
}

/* Gold hairline under eyebrow labels — a recurring luxury signature */
.hp-eyebrow-rule { display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.hp-eyebrow-rule::after { content:''; flex:1; max-width:64px; height:1px; background:linear-gradient(90deg, var(--gold), transparent); }

/* Section rhythm — more generous, editorial breathing room */
.hp-section { padding:120px 48px 0; }
.hp-section-tight { padding:64px 48px 0; }
@media (max-width: 900px) {
  .hp-section, .hp-section-tight { padding:64px 20px 0; }
}

/* Editorial pull-quote for real market commentary */
.hp-quote { font-family:var(--font-display); font-style:italic; font-weight:400; font-size:26px; line-height:1.4; color:var(--ink); max-width:640px; }
.hp-quote .hp-quote-mark { color:var(--gold); font-size:36px; line-height:0; position:relative; top:8px; margin-right:2px; }

/* Richer district tiles + intel cards */
.hp-district-tile { box-shadow:var(--shadow-lg); }
.hp-district-gradient { background:linear-gradient(190deg, rgba(17,22,52,0) 28%, rgba(17,22,52,0.9) 100%); }
.hp-intel-card { box-shadow:var(--shadow-md); border:1px solid var(--slate-100); }
.hp-intel-card:hover { border-color:var(--navy-100); }

/* Footer: gold top hairline for a finished, considered close */
.hp-footer { position:relative; border-top:none; }
.hp-footer::before { content:''; position:absolute; top:0; left:48px; right:48px; height:1px; background:linear-gradient(90deg, var(--gold), var(--slate-200) 40%); }
@media (max-width: 900px) { .hp-footer::before { left:20px; right:20px; } }

/* ——————————————— Neighbourhood detail pages ——————————————— */
.hp-page-banner { position:relative; overflow:hidden; min-height:280px; display:flex; align-items:flex-end; }
.hp-page-banner-overlay { position:absolute; inset:0; background:linear-gradient(200deg, rgba(17,22,52,0.55) 0%, rgba(17,22,52,0.85) 60%, var(--navy-700) 100%); }
.hp-page-banner-content { position:relative; padding:56px 48px 40px; }

.hp-district-stat-row { display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; padding:28px; background:white; border-radius:var(--r-xl); box-shadow:var(--shadow-md); }

.hp-sort-links { font-size:13px; }
.hp-sort-links a { color:var(--slate-500); text-decoration:none; margin-left:14px; padding-bottom:2px; border-bottom:1px solid transparent; }
.hp-sort-links a:hover { color:var(--ink); }
.hp-sort-links a.active { color:var(--navy); font-weight:600; border-bottom-color:var(--gold); }

.hp-listing-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:18px; }

.hp-pagination { display:flex; align-items:center; justify-content:center; gap:24px; margin-top:40px; font-size:14px; }
.hp-pagination a { color:var(--navy); text-decoration:none; font-weight:600; }
.hp-pagination a:hover { color:var(--navy-600); }
.hp-pagination-current { color:var(--slate-500); }

@media (max-width: 900px) {
  .hp-page-banner-content { padding:40px 20px 28px; }
  .hp-district-stat-row { grid-template-columns:repeat(2, 1fr); padding:20px; gap:20px; }
  .hp-listing-grid { grid-template-columns:1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   CW public pages — a variation on the cwlagos.com family
   Same spirit (light ground, navy, photo-led, floating nav) but its own
   hand: General Sans, a deeper ink-navy with a sand accent, frosted-glass
   nav and info panels, an inset hero, auto-numbered index labels and a
   sticky section rail. Scoped to body.cw-page; the rest of the app is
   untouched.
   ═══════════════════════════════════════════════════════════════ */
.cw-page {
  --cw-navy: #111D42;
  --cw-navy-soft: #34406F;
  --cw-sand: #C9B58C;
  --cw-sand-deep: #9C844F;
  --cw-sand-soft: #F1E6CB;
  --cw-bg: #F6F4EF;
  --cw-ink: #171A24;
  --cw-muted: #6C6F79;
  --cw-line: #E3DFD4;
  --cw-font: "General Sans", "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  margin: 0; background: var(--cw-bg); color: var(--cw-ink);
  font-family: var(--cw-font); -webkit-font-smoothing: antialiased;
  counter-reset: cw-sec;
}
.cw-page * { box-sizing: border-box; }
.cw-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ——— Buttons: fully rounded ——— */
.cw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--cw-font); font-weight: 500; font-size: 15px; padding: 14px 28px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.cw-btn:hover { transform: translateY(-1px); }
.cw-btn-sm { padding: 10px 20px; font-size: 14px; }
.cw-btn-navy { background: var(--cw-navy); color: #fff; }
.cw-btn-navy:hover { background: var(--cw-navy-soft); }
.cw-btn-white { background: #fff; color: var(--cw-navy); }
.cw-btn-white:hover { background: var(--cw-sand-soft); }
.cw-btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cw-btn-ghost:hover { background: rgba(255,255,255,0.2); }
.cw-btn-outline { background: transparent; color: var(--cw-navy); border-color: var(--cw-navy); }
.cw-btn-outline:hover { background: var(--cw-navy); color: #fff; }

/* ——— Floating glass nav ——— */
.cw-nav-wrap { position: fixed; top: 20px; left: 0; right: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; padding: 0 16px; pointer-events: none; }
.cw-nav-wrap > * { pointer-events: auto; }
.cw-nav { display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,0.84); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255,255,255,0.75); box-shadow: 0 12px 36px rgba(17,29,66,0.18); }
.cw-nav-logo { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cw-navy); color: #fff; font-family: "Instrument Serif", serif; font-size: 18px; text-decoration: none; }
.cw-nav-links { display: flex; align-items: center; margin-left: 6px; }
.cw-nav-links a { padding: 10px 16px; font-size: 14.5px; font-weight: 500; color: #23262F; text-decoration: none; border-radius: 999px; transition: background .15s, color .15s; }
.cw-nav-links a:hover { background: rgba(17,29,66,0.07); color: var(--cw-navy); }
.cw-nav-actions { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.cw-nav-signin { padding: 10px 14px; font-size: 14.5px; font-weight: 500; color: #23262F; text-decoration: none; border-radius: 999px; }
.cw-nav-signin:hover { background: rgba(17,29,66,0.07); color: var(--cw-navy); }
.cw-nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; padding: 0; border-radius: 50%; }
.cw-nav-toggle span { display: block; width: 18px; height: 2px; background: var(--cw-navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.cw-nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.cw-nav-toggle.open span:nth-child(2) { opacity: 0; }
.cw-nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
#cw-mobile-nav { display: none; width: min(100%, 420px); margin-top: 8px; background: rgba(255,255,255,0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 26px; box-shadow: 0 18px 44px rgba(17,29,66,0.2); padding: 8px; flex-direction: column; }
#cw-mobile-nav a { padding: 14px 18px; font-size: 16px; font-weight: 500; color: #23262F; text-decoration: none; border-radius: 16px; }
#cw-mobile-nav a:hover { background: rgba(17,29,66,0.06); }
#cw-mobile-nav a.cw-btn { margin-top: 6px; color: #fff; text-align: center; }
@media (max-width: 900px) {
  .cw-nav { width: min(100%, 420px); justify-content: space-between; }
  .cw-nav-links, .cw-nav-actions { display: none; }
  .cw-nav-toggle { display: flex; }
  #cw-mobile-nav.open { display: flex; }
}

/* ——— Inset hero ——— */
.cw-hero { position: relative; margin: 12px 12px 0; border-radius: 28px; min-height: calc(100vh - 24px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.cw-hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; animation: cw-drift 24s ease-in-out infinite alternate; }
.cw-hero-fallback { background: var(--cw-navy); }
@keyframes cw-drift { from { transform: scale(1); } to { transform: scale(1.07); } }
.cw-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,14,36,0.4) 0%, rgba(9,14,36,0.1) 32%, rgba(9,14,36,0.8) 100%); }
.cw-hero-inner { position: relative; width: 100%; padding-bottom: 56px; padding-top: 140px; }
.cw-hero-title { font-family: var(--cw-font); font-weight: 400; font-size: clamp(40px, 6.2vw, 86px); line-height: 1.03; letter-spacing: -0.028em; margin: 0 0 24px; }
.cw-hero-sub { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: rgba(255,255,255,0.86); max-width: 560px; margin: 0 0 32px; }
.cw-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cw-hero-stats { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.28); max-width: 820px; }
.cw-hero-stat-num { font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.cw-hero-stat-label { font-size: 14px; color: rgba(255,255,255,0.78); margin-top: 8px; }
.cw-hero-caption { position: absolute; right: 24px; bottom: 6px; font-size: 12px; color: rgba(255,255,255,0.6); }
@media (max-width: 900px) {
  .cw-hero { margin: 8px 8px 0; border-radius: 22px; min-height: 84vh; }
  .cw-hero-inner { padding-bottom: 36px; padding-top: 120px; }
  .cw-hero-caption { display: none; }
}
@media (max-width: 600px) { .cw-hero-stats { gap: 24px 32px; margin-top: 32px; } .cw-hero-stat-num { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { .cw-hero-img { animation: none; } }

/* ——— Sections + numbered index labels ——— */
.cw-section { padding: 96px 0 0; }
.cw-section-last { padding-bottom: 96px; }
@media (max-width: 900px) { .cw-section { padding-top: 64px; } .cw-section-last { padding-bottom: 64px; } }
.cw-label { display: flex; align-items: center; gap: 14px; font-size: 14.5px; font-weight: 500; letter-spacing: 0.01em; color: var(--cw-navy); margin-bottom: 18px; }
.cw-label::before { counter-increment: cw-sec; content: counter(cw-sec, decimal-leading-zero); font-size: 13px; color: var(--cw-sand-deep); font-variant-numeric: tabular-nums; padding-right: 14px; border-right: 1px solid var(--cw-line); }
.cw-label-plain::before { content: none; counter-increment: none; padding: 0; border: 0; }
.cw-panel-navy .cw-label::before { color: var(--cw-sand); border-color: rgba(255,255,255,0.2); }
.cw-h2 { font-family: var(--cw-font); font-weight: 400; font-size: clamp(32px, 4vw, 50px); line-height: 1.1; letter-spacing: -0.022em; color: var(--cw-ink); margin: 0 0 16px; }
.cw-h3 { font-family: var(--cw-font); font-weight: 400; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -0.016em; margin: 0 0 12px; }
.cw-lede { font-size: 17px; line-height: 1.6; color: var(--cw-muted); max-width: 520px; margin: 0 0 40px; }
.cw-muted { color: var(--cw-muted); line-height: 1.6; font-size: 16px; }
.cw-actions-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cw-inline-link { display: inline-block; margin-top: 28px; font-weight: 500; font-size: 16px; color: var(--cw-navy); text-decoration: none; border-bottom: 1px solid var(--cw-sand); padding-bottom: 2px; }
.cw-inline-link:hover { border-bottom-color: var(--cw-navy); }

/* ——— Intro + featured card with a glass info bar ——— */
.cw-intro { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.cw-feature { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; text-decoration: none; color: #fff; box-shadow: 0 26px 60px rgba(17,29,66,0.22); background: var(--cw-navy); }
.cw-feature-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.cw-feature:hover .cw-feature-img { transform: scale(1.05); }
.cw-glass-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 22px; background: rgba(14,22,54,0.34); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border: 1px solid rgba(255,255,255,0.3); border-radius: 20px; }
.cw-glass-loc { font-size: 13.5px; opacity: 0.85; margin-bottom: 2px; }
.cw-glass-name { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -0.01em; }
.cw-arrow-btn { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--cw-navy); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: transform .25s, background .25s; }
.cw-feature:hover .cw-arrow-btn { transform: rotate(45deg); background: var(--cw-sand-soft); }
@media (max-width: 900px) { .cw-intro { grid-template-columns: 1fr; gap: 40px; } }

/* ——— Districts: sticky rail + glass-panel tiles ——— */
.cw-rail-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 48px; }
.cw-rail { position: sticky; top: 110px; align-self: start; }
.cw-rail-num { font-size: 14px; color: var(--cw-sand-deep); letter-spacing: 0.06em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.cw-rail-num::before { counter-increment: cw-sec; content: counter(cw-sec, decimal-leading-zero); }
.cw-rail-name { font-size: clamp(34px, 3.6vw, 48px); font-weight: 300; letter-spacing: -0.025em; line-height: 1; color: var(--cw-navy); }
.cw-rail-rule { width: 44px; height: 2px; background: var(--cw-sand); margin: 20px 0 14px; }
.cw-rail-note { font-size: 13.5px; color: var(--cw-muted); line-height: 1.55; margin: 0; }
.cw-district-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (min-width: 1100px) { .cw-district-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cw-district { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden; text-decoration: none; color: #fff; background: var(--cw-navy); }
.cw-district-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.cw-district:hover .cw-district-img { transform: scale(1.06); }
.cw-district-fallback { background: linear-gradient(135deg, #0B1330, var(--cw-navy)); }
.cw-district-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,14,36,0) 45%, rgba(9,14,36,0.55) 100%); }
.cw-district-info { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; background: rgba(14,22,54,0.36); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid rgba(255,255,255,0.26); border-radius: 18px; }
.cw-district-name { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.cw-district-count { font-size: 13px; opacity: 0.8; margin-top: 2px; }
.cw-tag { display: block; margin-top: 10px; font-size: 16px; font-weight: 500; color: var(--cw-sand-soft); font-variant-numeric: tabular-nums; }
.cw-tag-unit { color: rgba(255,255,255,0.65); font-weight: 400; font-size: 13px; }
@media (max-width: 900px) {
  .cw-rail-wrap { grid-template-columns: 1fr; gap: 8px; }
  .cw-rail { position: static; margin-bottom: 8px; }
  .cw-rail-rule { margin: 14px 0 10px; }
  .cw-district-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cw-district-name { font-size: 18px; }
}

/* ——— Property cards ——— */
.cw-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; margin-top: 32px; }
@media (min-width: 1100px) { .cw-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cw-card { display: block; text-decoration: none; color: inherit; }
.cw-card-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--cw-navy); }
.cw-card-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.cw-card:hover .cw-card-img { transform: scale(1.06); }
.cw-card-pills { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.cw-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--cw-ink); font-size: 11.5px; font-weight: 500; padding: 4px 9px; border-radius: 999px; }
.cw-pill .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.cw-pill .dot.amber { background: var(--cw-sand-deep); }
.cw-pill .dot.navy { background: var(--cw-navy); }
.cw-card-body { padding: 10px 4px 0; }
.cw-card-loc { font-size: 13.5px; color: var(--cw-muted); }
.cw-card-name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; margin: 2px 0 6px; }
.cw-card-price { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--cw-ink); padding-top: 8px; border-top: 1px solid var(--cw-line); }
.cw-card-psqm { color: var(--cw-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .cw-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin-top: 24px; }
  .cw-card-photo { border-radius: 12px; aspect-ratio: 1 / 1; }
  .cw-card-pills { top: 6px; left: 6px; gap: 4px; }
  .cw-pill { font-size: 10px; padding: 3px 7px; gap: 4px; }
  .cw-pill .dot { width: 5px; height: 5px; }
  .cw-card-body { padding: 8px 2px 0; }
  .cw-card-name { font-size: 14px; margin: 0 0 4px; line-height: 1.25; }
  .cw-card-price { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 12px; padding-top: 6px; }
  .cw-card-psqm { font-size: 11px; }
}

/* ——— Comparison entry points ——— */
.cw-pair-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .cw-pair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cw-pair-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cw-pair { display: block; background: #fff; border: 1px solid var(--cw-line); border-radius: 24px; padding: 26px 28px; text-decoration: none; color: var(--cw-ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.cw-pair:hover { border-color: var(--cw-sand); box-shadow: 0 16px 36px rgba(17,29,66,0.1); transform: translateY(-2px); }
.cw-pair-names { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.cw-pair-names span { color: var(--cw-sand-deep); font-weight: 400; font-size: 15px; margin: 0 4px; }
.cw-pair-figs { display: flex; gap: 20px; margin: 14px 0 18px; font-size: 26px; font-weight: 300; color: var(--cw-navy-soft); font-variant-numeric: tabular-nums; }
.cw-pair-figs small { font-size: 13px; color: var(--cw-muted); margin-left: 2px; }
.cw-pair-go { font-size: 14.5px; font-weight: 500; color: var(--cw-navy); }

/* ——— Statement ——— */
.cw-statement { font-size: clamp(28px, 3.8vw, 48px); line-height: 1.22; font-weight: 300; letter-spacing: -0.022em; color: #575B6B; max-width: 880px; margin: 0; }

/* ——— Two ways in ——— */
.cw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cw-panel { background: #fff; border: 1px solid var(--cw-line); border-radius: 30px; padding: 44px; }
.cw-panel-navy { background: var(--cw-navy); border-color: var(--cw-navy); color: #fff; }
.cw-panel-navy .cw-label { color: #fff; }
.cw-panel p { line-height: 1.6; font-size: 16px; margin: 0 0 20px; }
.cw-panel-navy p { color: rgba(255,255,255,0.78); }
.cw-links { display: flex; flex-direction: column; }
.cw-links a { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--cw-line); color: var(--cw-ink); text-decoration: none; font-weight: 500; font-size: 15.5px; transition: color .2s, padding .2s; }
.cw-links a:hover { color: var(--cw-navy); padding-left: 6px; }
.cw-checks { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cw-checks li { position: relative; padding-left: 26px; font-size: 15.5px; color: rgba(255,255,255,0.92); }
.cw-checks li::before { content: '✓'; position: absolute; left: 0; color: var(--cw-sand); }
@media (max-width: 900px) { .cw-two { grid-template-columns: 1fr; } .cw-panel { padding: 32px 24px; } }

/* ——— Footer ——— */
.cw-footer { border-top: 1px solid var(--cw-line); background: #fff; padding: 56px 0 36px; }
.cw-footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.cw-footer-logo { width: 40px; height: 40px; border-radius: 50%; background: var(--cw-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: "Instrument Serif", serif; font-size: 16px; margin-bottom: 14px; }
.cw-footer-brand p { color: var(--cw-muted); font-size: 14.5px; max-width: 260px; line-height: 1.5; margin: 0; }
.cw-footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.cw-footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.cw-footer-head { font-size: 13px; font-weight: 500; color: var(--cw-sand-deep); margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.cw-footer-cols a { color: #3A3D4A; text-decoration: none; font-size: 14.5px; }
.cw-footer-cols a:hover { color: var(--cw-navy); }
.cw-footer-legal { font-size: 12.5px; color: var(--cw-muted); padding-top: 22px; border-top: 1px solid var(--cw-line); line-height: 1.6; }

/* ——— Inner pages: neighbourhood + comparison ——— */
.cw-subhero { position: relative; margin: 12px 12px 0; border-radius: 28px; min-height: 54vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.cw-subhero .cw-hero-inner { padding-top: 150px; padding-bottom: 48px; }
.cw-crumbs { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.cw-crumbs a { color: inherit; text-decoration: none; }
.cw-crumbs a:hover { color: #fff; }
.cw-crumbs span { margin: 0 8px; opacity: 0.6; }
.cw-crumbs-dark { color: var(--cw-muted); }
.cw-crumbs-dark a:hover { color: var(--cw-navy); }
.cw-subhero-title { font-weight: 400; font-size: clamp(44px, 7vw, 92px); line-height: 1; letter-spacing: -0.03em; margin: 0 0 14px; }
.cw-subhero-sub { font-size: 17px; color: rgba(255,255,255,0.85); margin: 0; max-width: 520px; line-height: 1.55; }
.cw-stat-strip { display: flex; gap: 56px; flex-wrap: wrap; padding: 44px 0 8px; }
.cw-stat-num { font-size: clamp(42px, 4.6vw, 62px); font-weight: 300; line-height: 1; letter-spacing: -0.025em; color: var(--cw-navy-soft); font-variant-numeric: tabular-nums; }
.cw-stat-label { font-size: 15px; color: var(--cw-ink); margin-top: 10px; }
.cw-fine { font-size: 13px; color: var(--cw-muted); line-height: 1.6; margin: 18px 0 0; max-width: 720px; }
.cw-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.cw-sort { display: flex; gap: 8px; flex-wrap: wrap; }
.cw-chip { padding: 8px 16px; border: 1px solid var(--cw-line); background: #fff; border-radius: 999px; font-size: 14px; font-weight: 500; color: #3A3D4A; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.cw-chip:hover { border-color: var(--cw-navy); color: var(--cw-navy); }
.cw-chip.active { background: var(--cw-navy); border-color: var(--cw-navy); color: #fff; }
.cw-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 48px; }
.cw-pager-current { font-size: 14px; color: var(--cw-muted); padding: 0 8px; }
.cw-cta-band { background: var(--cw-navy); color: #fff; border-radius: 30px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cw-cta-band h2 { font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.1; }
.cw-cta-band p { color: rgba(255,255,255,0.78); margin: 0; max-width: 460px; line-height: 1.6; }
@media (max-width: 900px) { .cw-cta-band { padding: 36px 24px; } .cw-stat-strip { gap: 32px; } .cw-subhero { margin: 8px 8px 0; border-radius: 22px; } }

.cw-pagehead { padding: 150px 0 24px; }
.cw-pagehead-title { font-weight: 400; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 20px; }
.cw-pagehead-title em { font-style: normal; color: var(--cw-sand-deep); font-weight: 300; }
.cw-chooser { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.cw-chooser label { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--cw-muted); }
.cw-chooser select { min-width: 240px; padding: 14px 18px; border: 1px solid var(--cw-line); border-radius: 999px; background: #fff; font-family: var(--cw-font); font-size: 16px; color: var(--cw-ink); }
.cw-compare { background: #fff; border: 1px solid var(--cw-line); border-radius: 30px; overflow: hidden; }
.cw-compare-head, .cw-compare-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) 1fr 1fr; gap: 0; }
.cw-compare-head { border-bottom: 1px solid var(--cw-line); }
.cw-compare-side { display: block; padding: 24px; text-decoration: none; color: inherit; border-left: 1px solid var(--cw-line); }
.cw-compare-photo { aspect-ratio: 16 / 9; border-radius: 16px; background: var(--cw-navy) center / cover; margin-bottom: 14px; }
.cw-compare-name { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.cw-compare-go { font-size: 14px; color: var(--cw-navy); margin-top: 4px; }
.cw-compare-row { border-top: 1px solid var(--cw-line); }
.cw-compare-row:first-of-type { border-top: none; }
.cw-compare-metric { padding: 22px 24px; font-size: 15px; color: var(--cw-muted); align-self: center; }
.cw-compare-val { padding: 22px 24px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 300; color: var(--cw-navy-soft); letter-spacing: -0.01em; border-left: 1px solid var(--cw-line); font-variant-numeric: tabular-nums; align-self: center; }
.cw-bar { height: 8px; border-radius: 4px; background: var(--cw-sand-soft); margin-top: 12px; overflow: hidden; }
.cw-bar span { display: block; height: 100%; background: var(--cw-navy); border-radius: 4px; }
@media (max-width: 700px) {
  .cw-compare-head, .cw-compare-row { grid-template-columns: 96px 1fr 1fr; }
  .cw-compare-side, .cw-compare-val, .cw-compare-metric { padding: 14px 12px; }
  .cw-compare-name { font-size: 18px; }
  .cw-compare-go { display: none; }
  .cw-compare-metric { font-size: 12.5px; }
  .cw-compare-val { font-size: 20px; }
  .cw-pagehead { padding-top: 120px; }
}

/* ——— Full neighbourhood pages ——— */
.cw-narrow { max-width: 820px; }
.cw-notice { background: var(--cw-sand-soft); border: 1px solid var(--cw-sand); border-radius: 18px; padding: 16px 20px; font-size: 15px; line-height: 1.55; color: #4A4128; }
.cw-prose p { font-size: 18px; line-height: 1.7; color: #3A3D4A; margin: 0 0 16px; }
.cw-stat-unit { font-size: 0.4em; color: var(--cw-muted); letter-spacing: 0; }
.cw-mini-head { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cw-sand-deep); margin-bottom: 18px; }
.cw-two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; }
@media (max-width: 900px) { .cw-two-col { grid-template-columns: 1fr; gap: 36px; } }

.cw-table-wrap { background: #fff; border: 1px solid var(--cw-line); border-radius: 24px; overflow: hidden; }
.cw-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.cw-table th { text-align: left; font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cw-muted); padding: 18px 22px; border-bottom: 1px solid var(--cw-line); }
.cw-table td { padding: 18px 22px; border-top: 1px solid var(--cw-line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.cw-table tbody tr:first-child td { border-top: none; }
.cw-table a { color: var(--cw-navy); font-weight: 500; text-decoration: none; }
.cw-table a:hover { text-decoration: underline; text-decoration-color: var(--cw-sand); }
.cw-table small { color: var(--cw-muted); font-size: 12px; }
.cw-na { color: var(--cw-muted); font-size: 14px; }
.cw-share { display: flex; align-items: center; gap: 12px; min-width: 150px; }
.cw-share .cw-bar { flex: 1; margin: 0; }
.cw-share em { font-style: normal; font-size: 14px; color: var(--cw-muted); min-width: 34px; }
.cw-delta { font-weight: 500; }
.cw-delta.up { color: #1F6B4A; }
.cw-delta.down { color: #8A4B1F; }
.cw-table-link { white-space: nowrap; }
@media (max-width: 700px) {
  .cw-table thead { display: none; }
  .cw-table, .cw-table tbody, .cw-table tr, .cw-table td { display: block; width: 100%; }
  .cw-table tr { border-top: 1px solid var(--cw-line); padding: 12px 0; }
  .cw-table tbody tr:first-child { border-top: none; }
  .cw-table td { border: none; padding: 6px 20px; display: block; overflow: hidden; text-align: right; }
  .cw-table td::before { content: attr(data-label); float: left; color: var(--cw-muted); font-size: 13px; text-align: left; }
  .cw-table td .cw-share { display: inline-flex; width: 60%; min-width: 0; float: right; }
  .cw-table td:empty { display: none; }
}

.cw-yearbars { display: flex; flex-direction: column; gap: 12px; }
.cw-yearbar { display: grid; grid-template-columns: 48px 1fr 130px; align-items: center; gap: 14px; }
.cw-yearbar-year { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cw-yearbar .cw-bar { margin: 0; height: 12px; }
.cw-yearbar-n { font-size: 15px; font-variant-numeric: tabular-nums; }
.cw-yearbar-n small { color: var(--cw-muted); font-size: 12px; margin-left: 6px; }
.cw-chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-chip-static { padding: 8px 16px; border: 1px solid var(--cw-line); background: #fff; border-radius: 999px; font-size: 14px; }
.cw-chip-static b { color: var(--cw-navy); margin-left: 4px; }

.cw-points { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.cw-points li { position: relative; padding: 16px 0 16px 28px; border-top: 1px solid var(--cw-line); font-size: 17px; line-height: 1.55; color: #3A3D4A; }
.cw-points li::before { content: ''; position: absolute; left: 4px; top: 27px; width: 8px; height: 8px; border-radius: 50%; background: var(--cw-sand); }

.cw-faq details { border-top: 1px solid var(--cw-line); }
.cw-faq details:last-child { border-bottom: 1px solid var(--cw-line); }
.cw-faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 500; position: relative; }
.cw-faq summary::-webkit-details-marker { display: none; }
.cw-faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 300; color: var(--cw-sand-deep); transition: transform .2s; }
.cw-faq details[open] summary::after { transform: rotate(45deg); }
.cw-faq details p { margin: 0 0 24px; font-size: 16.5px; line-height: 1.65; color: #4A4D5A; max-width: 680px; }

.cw-guide { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; background: #fff; border: 1px solid var(--cw-line); border-radius: 30px; padding: 44px; }
@media (max-width: 900px) { .cw-guide { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; } }

.cw-cta-form { align-items: flex-start; }
.cw-cta-form > div:first-child { max-width: 420px; }
.cw-cta-formwrap { flex: 1; min-width: min(100%, 420px); max-width: 620px; }

/* ——— Lead form (guide + shortlist) ——— */
.cw-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--cw-muted); }
.cw-cta-form .cw-form label { color: rgba(255,255,255,0.75); }
.cw-form input[type=text], .cw-form input[type=email], .cw-form input[type=tel], .cw-form select, .cw-form textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--cw-line); border-radius: 14px; background: #fff; font-family: var(--cw-font); font-size: 15.5px; color: var(--cw-ink);
}
.cw-form textarea { resize: vertical; }
.cw-form input:focus, .cw-form select:focus, .cw-form textarea:focus { outline: 2px solid var(--cw-sand); outline-offset: 1px; border-color: var(--cw-sand); }
.cw-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.cw-form-wide { grid-column: 1 / -1; }
.cw-consent { flex-direction: row !important; align-items: flex-start; gap: 10px !important; margin-bottom: 18px; font-size: 13.5px; line-height: 1.5; }
.cw-consent input { margin-top: 3px; accent-color: var(--cw-navy); }
.cw-cta-form .cw-btn-navy { background: #fff; color: var(--cw-navy); }
.cw-cta-form .cw-btn-navy:hover { background: var(--cw-sand-soft); }
.cw-form-msg { margin: 14px 0 0; font-size: 15px; line-height: 1.5; }
.cw-form-msg.error { color: #B3402A; }
.cw-cta-form .cw-form-msg.error { color: #FFC9BC; }
.cw-form-msg.ok { color: #1F6B4A; }
.cw-cta-form .cw-form-msg.ok { color: var(--cw-sand-soft); }
.cw-form-msg a { font-weight: 600; text-decoration: underline; }
.cw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .cw-form-grid { grid-template-columns: 1fr; } }

/* Narrow reading column that still aligns to the page's left edge */
.cw-container.cw-narrow { max-width: 1180px; }
.cw-container.cw-narrow > * { max-width: 820px; }
/* Five figures in a row on wide screens */
.cw-stat-strip { gap: 32px 44px; }
.cw-stat-strip .cw-stat-num { font-size: clamp(34px, 3.6vw, 52px); }

/* Request-access page */
.cw-checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.cw-checklist li { position: relative; padding-left: 26px; color: var(--cw-ink); font-size: 15.5px; line-height: 1.5; }
.cw-checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 2px; background: var(--cw-sand-deep); }
.cw-muted a { color: var(--cw-navy); text-decoration: underline; text-underline-offset: 3px; }

/* Signed-in app shell footer (portfolio, favorites, reports) */
.app-footer { margin-top: 56px; border-top: 1px solid var(--slate-200); }
.app-footer-inner { max-width: 80rem; margin: 0 auto; padding: 40px 24px 24px; }
.app-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px 48px; }
.app-footer-brand-col { max-width: 300px; }
.app-footer-brand { font-family: var(--font-display); font-size: 19px; color: var(--navy); letter-spacing: 0.02em; }
.app-footer-brand span { color: var(--slate-500); font-family: var(--font-sans); font-size: 13px; font-weight: 500; margin-left: 6px; }
.app-footer-tag { font-size: 13.5px; color: var(--slate-500); line-height: 1.55; margin: 10px 0 14px; }
.app-footer-email { font-size: 13.5px; color: var(--slate-600); text-decoration: none; }
.app-footer-email:hover { color: var(--navy); }
.app-footer-cols { display: flex; flex-wrap: wrap; gap: 28px 48px; }
.app-footer-head { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 12px; }
.app-footer-cols a { display: block; font-size: 13.5px; color: var(--slate-600); text-decoration: none; margin-bottom: 9px; }
.app-footer-cols a:hover { color: var(--navy); }
.app-footer-legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--slate-100); font-size: 12px; color: var(--slate-400); line-height: 1.6; }
@media (max-width: 640px) {
  .app-footer-inner { padding: 32px 20px 20px; }
  .app-footer-top { gap: 28px; }
  .app-footer-brand-col { max-width: none; }
}
