/* ══════════════════════════════════════════════════════════
   VOW Property Search — the team
   HouseSigma-inspired rebuild — March 2026
   ══════════════════════════════════════════════════════════ */

/* ── BRAND FONT: Libre Franklin ── */
@font-face { font-family: 'Libre Franklin'; src: url('../brand-assets/fonts/LibreFranklin-Variable.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Franklin'; src: url('../brand-assets/fonts/LibreFranklin-Variable.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Franklin'; src: url('../brand-assets/fonts/LibreFranklin-Variable.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Franklin'; src: url('../brand-assets/fonts/LibreFranklin-Variable.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }

/* ── SKIP LINK (AODA) ── */
#vow-app .skip-link { position: absolute; top: -100px; left: 0; background: #302f2f; color: #fff; padding: 12px 24px; z-index: 9999; font-size: 16px; font-weight: 700; border-radius: 0 0 8px 0; transition: top .15s; }
#vow-app .skip-link:focus { top: 0; outline: 3px solid #d0645e; }

/* ── EASING TOKENS ── */
:root {
  --brand-primary: #b52e28;
  --brand-accent: #b7a076;
  --brand-leaf: #7cb342;
  --brand-call: #b52e28;
  --brand-nav: #302f2f;
  --brand-ink: #302f2f;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── PULL-TO-REFRESH GUARD (2026-08-27) ────────────────────────────────────────
   ⛔ REPORTED BY A REAL BETA TESTER, NOT FOUND IN REVIEW. Tanya, on Android:
   "When I was looking at the listing and scrolled back up to see pictures, it threw me
   out to the first page of all the listings... All my filters were lost."

   She reached the top of the listing detail, kept pulling, and Chrome for Android ran
   its pull-to-refresh gesture, which RELOADS the page. Nothing about the app was broken;
   the browser reloaded it, and the app keeps no search state in the URL, so it came back
   in its default state and her filters were gone.

   ⭐ `html, body` IS THE LOAD-BEARING LINE, not the container list below it.
   `#vow-app` is height:100vh / overflow:hidden, so the viewport itself never scrolls and
   the gesture is resolved against the ROOT (Chrome >= 93 reads overscroll-behavior there).
   ⛔ DO NOT "tidy this up" by scoping it to the named containers — that reopens the bug.
   The container rules are defence-in-depth and deliberately incomplete; other scrollers
   (.market-panel, .my-panel-body, .vow-autocomplete, .ipm-box) rely on the root rule.

   `contain`, not `none`: `none` would also kill the end-of-list bounce, which is how a
   person can tell they have reached the bottom. `contain` stops the scroll CHAIN that
   triggers the reload and leaves the affordance alone.

   ⚠️ This stops the ACCIDENTAL reload. It does not make a reload survivable — Android
   also discards background tabs on low-memory phones, and that path is untouched here.
   Surviving a reload is the URL-state work, tracked separately.
   ──────────────────────────────────────────────────────────────────────────── */
html, body { overscroll-behavior-y: contain; }
.vow-list, .vow-overlay, .vow-fdrop.open { overscroll-behavior-y: contain; }

/* ── RESET & BASE ── */
/* Global font — ensures Libre Franklin everywhere, even outside #vow-app */
body { font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji'; }
#vow-app { margin: 0; padding: 0; box-sizing: border-box; }
#vow-app *, #vow-app *::before, #vow-app *::after { box-sizing: border-box; }
#vow-app {
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  color: #302f2f; background: #fff; line-height: 1.5; font-size: 17px;
  height: 100vh; display: flex; flex-direction: column; overflow: hidden;
}
/* Leaflet needs content-box — override our border-box */
.leaflet-container, .leaflet-container * { box-sizing: content-box !important; margin: revert; padding: revert; }
/* Keep Leaflet controls below all modals/overlays */
.leaflet-top, .leaflet-bottom, .leaflet-control { z-index: 400 !important; }
#vow-app a { color: var(--brand-primary, #b52e28); text-decoration: none; }
#vow-app .vow-nav a { color: rgba(255,255,255,0.9); }
#vow-app .vow-nav .nav-cta { color: #fff; }

/* ── TOP NAV (Dark Premium) ── */
.vow-nav {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; height: 48px;
  background: #302f2f;
  flex-shrink: 0; position: relative; z-index: 500;
}
.vow-nav .brand {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0; cursor: pointer;
}
.vow-nav .brand-icon {
  width: 32px; height: 32px;
  border-radius: 8px; flex-shrink: 0;
}
.vow-nav .brand-text { font-size: 16px; font-weight: 700; color: #fff; white-space: nowrap; }
.vow-nav .brand-text span { font-weight: 400; opacity: 0.85; }

/* Search bar in nav */
.vow-nav .search-wrap {
  position: relative; flex: 1; max-width: 420px;
}
.vow-nav .search-wrap input {
  width: 100%; padding: 9px 38px 9px 36px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  font-size: 16px; background: rgba(255,255,255,0.08); color: #f1f5f9;
  outline: none; transition: box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.vow-nav .search-wrap input::placeholder { color: rgba(255,255,255,0.4); }
.vow-nav .search-wrap input:focus { box-shadow: 0 0 0 2px rgba(208,100,94,0.4); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.vow-nav .search-wrap .s-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 16px; color: rgba(255,255,255,0.4); pointer-events: none;
}
.vow-nav .search-wrap .s-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; border-radius: 6px;
  background: #d0645e; color: #fff; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.vow-nav .search-wrap .s-btn:hover { background: #b52e28; }

/* Nav links */
.vow-nav .nav-links {
  display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0;
}
.vow-nav .nav-links a {
  color: rgba(255,255,255,0.75); font-size: 15px; font-weight: 500;
  padding: 6px 10px; border-radius: 6px; transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.vow-nav .nav-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.vow-nav .nav-links .nav-tool { font-weight: 600; }
.vow-nav .nav-links .nav-tool-sm { display: none; }
.vow-nav .nav-links .nav-price-drops { color: #f59e0b; font-weight: 600; }
.vow-nav .nav-links .nav-price-drops:hover { color: #fbbf24; background: rgba(245,158,11,0.08); }
.vow-nav .nav-links .nav-pos { color: #b7a076; font-weight: 600; }
.vow-nav .nav-links .nav-pos:hover { color: #b7a076; background: rgba(183,160,118,0.10); }
.vow-nav .nav-links .nav-cta {
  border: none; padding: 6px 16px; border-radius: 7px;
  font-weight: 600; color: #fff; background: var(--brand-call, #b52e28);
  transition: background 0.2s var(--ease-out);
}
.vow-nav .nav-links .nav-cta:hover { background: #822d25; }

/* ── SEARCH AUTOCOMPLETE ── */
.vow-autocomplete {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  max-height: 420px; overflow-y: auto; z-index: 200;
  display: none;
}
.vow-autocomplete.open { display: block; }
.vow-autocomplete .ac-item {
  padding: 10px 14px; cursor: pointer; font-size: 16px;
  color: #374151; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #f3f4f6; transition: background 0.1s;
}
.vow-autocomplete .ac-item:hover, .vow-autocomplete .ac-item.ac-active { background: #f7f1e1; color: #d0645e; }
.vow-autocomplete .ac-item .ac-icon { font-size: 17px; opacity: 0.5; flex-shrink: 0; }
.vow-autocomplete .ac-item .ac-name { font-weight: 500; }
.vow-autocomplete .ac-item .ac-type { font-size: 13px; color: #d0645e; margin-left: auto; background: #f7f1e1; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.vow-autocomplete .ac-cat {
  padding: 6px 14px; font-size: 12px; font-weight: 700; color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.5px; background: #f9fafb;
  border-bottom: 1px solid #f3f4f6; cursor: default;
}
.vow-autocomplete .ac-item .ac-thumb {
  width: 40px; height: 30px; border-radius: 4px; object-fit: cover; flex-shrink: 0;
}
.vow-autocomplete .ac-item .ac-listing-info {
  display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0;
}
.vow-autocomplete .ac-item .ac-listing-price {
  font-size: 14px; font-weight: 700; color: #111827;
}
.vow-autocomplete .ac-item .ac-listing-addr {
  font-size: 13px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vow-autocomplete .ac-item .ac-listing-meta {
  font-size: 12px; color: #6b7280;
}

/* ── FILTER BAR ── */
.vow-filterbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: #fff;
  border-bottom: 1px solid #e5e7eb; flex-shrink: 0; z-index: 99;
  overflow-x: auto;
}
.vow-filterbar .fb-pill {
  padding: 6px 14px; border: 1.5px solid #e5e7eb; border-radius: 20px;
  font-size: 16px; font-weight: 500; background: #fff; color: #374151;
  cursor: pointer; white-space: nowrap; transition: all 0.15s;
  display: flex; align-items: center; gap: 4px;
}
.vow-filterbar .fb-pill:hover { border-color: #d0645e; color: #d0645e; }
.vow-filterbar .fb-pill .arr { font-size: 8px; opacity: 0.5; margin-left: 2px; }

/* Status toggle group */
.vow-filterbar .status-grp {
  display: flex; overflow: visible; border-radius: 7px;
  border: 1.5px solid #e5e7eb; flex-shrink: 0;
}
.vow-filterbar .status-grp button {
  padding: 6px 16px; border: none; font-size: 14px; font-weight: 600;
  cursor: pointer; background: #fff; color: #6b7280; transition: all 0.15s;
  white-space: nowrap;
}
.vow-filterbar .status-grp button.active {
  background: #d0645e; color: #fff;
}
.vow-filterbar .status-grp button.active-sold {
  background: #dc2626; color: #fff;
}

/* Active/All sub-toggle */
.vow-filterbar .sub-toggle {
  display: flex; border: 1.5px solid #e5e7eb; border-radius: 6px; overflow: hidden;
}
.vow-filterbar .sub-toggle button {
  padding: 5px 12px; border: none; font-size: 14px; font-weight: 500;
  cursor: pointer; background: #fff; color: #6b7280;
}
.vow-filterbar .sub-toggle button.active { background: #d0645e; color: #fff; }

.vow-filterbar .fb-sep { width: 1px; height: 20px; background: #e5e7eb; flex-shrink: 0; }
.vow-filterbar .fb-clear {
  padding: 6px 14px; border: 1.5px solid #e5e7eb; border-radius: 20px;
  font-size: 16px; font-weight: 500; background: #fff; color: #6b7280;
  cursor: pointer; white-space: nowrap;
}
.vow-filterbar .fb-clear:hover { border-color: #dc2626; color: #dc2626; }

/* ── FILTER DROPDOWN PANEL ── */
.vow-fdrop {
  display: none; padding: 14px 16px; background: #fff;
  border-bottom: 1px solid #e5e7eb;
  gap: 14px; flex-wrap: wrap; align-items: end; z-index: 98;
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.vow-fdrop.open { display: flex; }
.vow-fdrop .fg { display: flex; flex-direction: column; gap: 4px; }
.vow-fdrop .fg label {
  font-size: 16px; font-weight: 600; color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.vow-fdrop .fg select, .vow-fdrop .fg input {
  padding: 8px 10px; border: 1.5px solid #e5e7eb; border-radius: 7px;
  font-size: 16px; background: #fff; min-width: 130px; outline: none;
}
.vow-fdrop .fg select:focus, .vow-fdrop .fg input:focus { border-color: #d0645e; }
.vow-fdrop .apply-btn {
  padding: 8px 20px; background: #d0645e; color: #fff; border: none;
  border-radius: 7px; font-size: 16px; font-weight: 600; cursor: pointer;
  margin-left: auto;
}
.vow-fdrop .apply-btn:hover { background: #b52e28; }

/* ── ADVANCED FILTER SECTION (2-col grid) ── */
.vow-fdrop .adv-sep {
  width: 100%; border: none; border-top: 1px solid #e5e7eb; margin: 2px 0;
}
.vow-fdrop .adv-filters {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; width: 100%;
}
@media (max-width: 600px) {
  .vow-fdrop .adv-filters { grid-template-columns: 1fr; }
}
/* Pill toggle button groups */
.vow-fdrop .fg-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.vow-fdrop .fg-btns button {
  padding: 6px 14px; border: 1.5px solid #e5e7eb; border-radius: 16px;
  font-size: 14px; font-weight: 500; background: #fff; color: #374151;
  cursor: pointer; transition: all 0.15s;
}
.vow-fdrop .fg-btns button:hover { border-color: #d0645e; color: #d0645e; }
.vow-fdrop .fg-btns button.active { background: #d0645e; color: #fff; border-color: #d0645e; }
/* Power of Sale is one pill in this same family. The note stays sentence case
   (a .fg label would shout). The hidden checkbox is the state the search reads. */
.vow-fdrop .pos-filter {
  width: 100%; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid #ecdcd0; gap: 8px;
}
.vow-fdrop .fg-btns button.pos-pill {
  min-height: 44px; min-width: 44px; padding: 10px 18px; border-radius: 22px;
  font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0;
}
.vow-fdrop .fg-btns button.pos-pill.active,
.vow-fdrop .fg-btns button.pos-pill.active:hover {
  background: #d0645e; color: #fff; border-color: #d0645e;
}
.vow-fdrop .fg-btns button.pos-pill:focus-visible {
  outline: 2px solid #d0645e; outline-offset: 2px;
}
.vow-fdrop .pos-filter-note {
  margin: 0; max-width: 42em; font-size: 13px; font-weight: 400; line-height: 1.45;
  color: #6b7280; text-transform: none; letter-spacing: 0;
}
/* Maintenance fee input with $ prefix */
.vow-fdrop .fg .maint-wrap { display: flex; align-items: center; gap: 0; }
.vow-fdrop .fg .maint-wrap .maint-prefix {
  padding: 8px 8px 8px 10px; border: 1.5px solid #e5e7eb; border-right: none;
  border-radius: 7px 0 0 7px; font-size: 16px; color: #6b7280; background: #f9fafb;
}
.vow-fdrop .fg .maint-wrap input {
  border-radius: 0 7px 7px 0; border-left: none; min-width: 100px;
}

/* ══════════════════════════════════════════════════════════
   ROUND 1 OVERHAUL (2026-06-01) — filter UX + mobile search
   ══════════════════════════════════════════════════════════ */

/* ── Active-filter chips (committed query params; distinct from .vow-chips view-filters) ── */
.vow-active-filters { display: none; align-items: center; gap: 8px; padding: 9px 16px; background: #f8fafd; border-bottom: 1px solid #e5e7eb; overflow-x: auto; flex-shrink: 0; }
.vow-active-filters.show { display: flex; }
.vow-active-filters .af-lead { font-size: 13px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; flex-shrink: 0; }
.vow-af-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 6px 5px 13px; background: #fff; border: 1.5px solid #ecdcd0; border-radius: 18px; font-size: 14px; font-weight: 600; color: var(--brand-primary, #b52e28); white-space: nowrap; flex-shrink: 0; }
.vow-af-chip .af-x { width: 18px; height: 18px; border-radius: 50%; background: #f7f1e1; color: #b52e28; font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: none; flex-shrink: 0; }
.vow-af-chip .af-x:hover { background: #dc2626; color: #fff; }
.vow-active-filters .af-clear { margin-left: auto; font-size: 14px; font-weight: 600; color: #6b7280; cursor: pointer; white-space: nowrap; flex-shrink: 0; padding-left: 10px; }
.vow-active-filters .af-clear:hover { color: #dc2626; }

/* ── Filters pill count badge ── */
.vow-filterbar .fb-pill.has-count { border-color: #d0645e; color: #d0645e; }
.vow-filterbar .fb-pill .fb-cnt { background: #d0645e; color: #fff; font-size: 12px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; margin-left: 2px; }

/* ── Sticky filter-panel header (Clear + Apply·count + close, never scrolls away) ── */
.vow-fdrop .fdrop-head { position: sticky; top: -14px; z-index: 6; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 2px; margin: -14px 0 4px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.vow-fdrop .fdrop-head .fh-title { font-size: 18px; font-weight: 700; color: #302f2f; }
.vow-fdrop .fdrop-head .fh-clear { font-size: 15px; font-weight: 600; color: #6b7280; cursor: pointer; background: none; border: none; font-family: inherit; }
.vow-fdrop .fdrop-head .fh-clear:hover { color: #dc2626; }
.vow-fdrop .fdrop-head .fh-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.vow-fdrop .fdrop-head .fh-apply { padding: 9px 22px; background: #d0645e; color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; }
.vow-fdrop .fdrop-head .fh-apply:hover { background: #b52e28; }
.vow-fdrop .fdrop-head .fh-apply .fh-ct { font-weight: 500; opacity: .85; font-size: 14px; }
.vow-fdrop .fdrop-head .fh-x { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid #e5e7eb; background: #fff; color: #6b7280; font-size: 18px; line-height: 1; cursor: pointer; font-family: inherit; }
.vow-fdrop .fdrop-head .fh-x:hover { border-color: #dc2626; color: #dc2626; }

/* ── Selected-state: a set control looks set ── */
.vow-fdrop .fg select.set, .vow-fdrop .fg input.set { border-color: #d0645e; background: #f7f1e1; font-weight: 600; color: #b52e28; }

/* ── Mobile full-screen search (restyles existing .search-wrap; reuses its #acDrop autocomplete) ── */
.vow-nav.ms-open { z-index: 2000; } /* lift the whole nav above the beta-banner (z 1000) while full-screen search is open */
.vow-nav .search-wrap.ms-fullscreen { position: fixed; inset: 0; max-width: none; z-index: 1200; background: #fff; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 0; }
.vow-nav .search-wrap.ms-fullscreen input { display: block; width: 100%; background: #f1f5f9; color: #302f2f; border: 1.5px solid #e5e7eb; border-radius: 10px; font-size: 17px; padding: 14px 86px 14px 16px; }
.vow-nav .search-wrap.ms-fullscreen input::placeholder { color: #94a3b8; }
.vow-nav .search-wrap.ms-fullscreen input:focus { box-shadow: 0 0 0 2px rgba(208,100,94,0.3); background: #fff; border-color: #d0645e; }
.vow-nav .search-wrap.ms-fullscreen .s-icon { display: none; }
.vow-nav .search-wrap.ms-fullscreen .s-btn { display: none; }
.vow-nav .search-wrap.ms-fullscreen .vow-autocomplete { position: static; display: block; box-shadow: none; max-height: none; flex: 1; margin-top: 12px; border-radius: 0; overflow-y: auto; }
.vow-nav .search-wrap .ms-cancel { display: none; }
.vow-nav .search-wrap.ms-fullscreen .ms-cancel { display: block; position: absolute; right: 18px; top: calc(env(safe-area-inset-top, 0px) + 12px); height: 50px; background: none; border: none; color: #b52e28; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; padding: 0 4px; }

/* ── v2: SEARCH BASICS primary card ── */
.vow-fdrop .fbasics { width: 100%; background: #f7f1e1; border: 1px solid #ecdcd0; border-radius: 14px; padding: 16px 18px; }
.vow-fdrop .fbasics-label { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--brand-primary, #b52e28); margin-bottom: 14px; }
.vow-fdrop .fbasics-row { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: flex-start; }
.vow-fdrop .fbasics-row .fg { gap: 8px; }
.vow-fdrop .fbasics-row .fg > label { font-size: 14px; font-weight: 700; color: #302f2f; text-transform: none; letter-spacing: 0; }
.vow-fdrop .price-field { flex: 1 1 340px; min-width: 280px; }
.vow-fdrop .pt-field { flex: 1 1 100%; }

/* price range slider (dual handle) */
.vow-fdrop .price-readout { font-size: 17px; font-weight: 800; color: #b52e28; }
.vow-fdrop .rng { position: relative; height: 30px; margin-top: 2px; }
.vow-fdrop .rng-track { position: absolute; top: 13px; left: 0; right: 0; height: 5px; border-radius: 3px; background: #ecdcd0; }
.vow-fdrop .rng-fill { position: absolute; top: 13px; height: 5px; border-radius: 3px; background: #d0645e; }
.vow-fdrop .rng input[type=range] { position: absolute; top: 0; left: 0; width: 100%; height: 30px; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.vow-fdrop .rng input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #d0645e; box-shadow: 0 1px 4px rgba(48,47,47,.2); cursor: grab; }
.vow-fdrop .rng input[type=range]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #d0645e; cursor: grab; }
.vow-fdrop .rng input[type=range]:focus { outline: none; }
.vow-fdrop .rng input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(208,100,94,.35); }

/* segmented beds/baths */
.vow-fdrop .seg { display: inline-flex; border: 1.5px solid #e5e7eb; border-radius: 9px; overflow: hidden; }
.vow-fdrop .seg button { padding: 8px 13px; border: none; border-right: 1px solid #e5e7eb; font-size: 15px; font-weight: 600; background: #fff; color: #374151; cursor: pointer; font-family: inherit; }
.vow-fdrop .seg button:last-child { border-right: none; }
.vow-fdrop .seg button.active { background: #d0645e; color: #fff; }

/* More-filters button + body (replaces the blendy accordion) */
.vow-fdrop .fmore { width: 100%; margin-top: 16px; }
.vow-fdrop .fmore-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border: 1.5px dashed #c7d2e8; border-radius: 12px; background: #fff; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--brand-primary, #b52e28); }
.vow-fdrop .fmore-btn:hover { background: #f7f1e1; border-color: #d0645e; }
.vow-fdrop .fmore-ct { color: #6b7280; font-weight: 500; }
.vow-fdrop .fmore-chev { font-size: 11px; transition: transform .2s var(--ease-out); }
.vow-fdrop .fmore.open .fmore-chev { transform: rotate(180deg); }
.vow-fdrop .fmore-body { display: none; margin-top: 14px; }
.vow-fdrop .fmore.open .fmore-body { display: block; }

@media (max-width: 600px) {
  .vow-fdrop .fbasics-row .fg, .vow-fdrop .price-field { flex: 1 1 100%; min-width: 0; }
  .vow-fdrop .seg { display: flex; }
  .vow-fdrop .seg button { flex: 1; padding: 9px 4px; }
}

/* ── ROUND 2: Sold-date range (subtle; shown only in Sold mode) ── */
.vow-fdrop .fsold { width: 100%; margin-top: 16px; padding: 14px 16px; background: #fafbfc; border: 1px solid #e5e7eb; border-radius: 12px; }
.vow-fdrop .fsold-label { font-size: 13px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.vow-fdrop .fsold-seg { display: inline-flex; }
.vow-fdrop .fsold-custom { display: flex; align-items: flex-end; gap: 12px; margin-top: 12px; }
.vow-fdrop .fsold-custom .fg { display: flex; flex-direction: column; gap: 5px; }
.vow-fdrop .fsold-custom .fg label { font-size: 13px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; }
.vow-fdrop .fsold-custom input[type=date] { padding: 9px 11px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: 15px; font-family: inherit; color: #302f2f; background: #fff; }
.vow-fdrop .fsold-custom input[type=date].set { border-color: #d0645e; background: #f7f1e1; }
.vow-fdrop .fsold-arrow { color: #6b7280; padding-bottom: 10px; }
@media (max-width: 600px) {
  .vow-fdrop .fsold-seg { display: flex; flex-wrap: wrap; }
  .vow-fdrop .fsold-seg button { flex: 1 1 30%; }
  .vow-fdrop .fsold-custom { flex-wrap: wrap; }
  .vow-fdrop .fsold-custom .fg, .vow-fdrop .fsold-custom input[type=date] { width: 100%; }
}

/* End ROUND 1 OVERHAUL block */

/* ── SPLIT VIEW ── */
.vow-split { display: flex; flex: 1; overflow: hidden; position: relative; }

/* Left panel */
.vow-list {
  width: 400px; min-width: 360px; flex-shrink: 0;
  overflow-y: auto; background: #fff;
  border-right: 1px solid #e5e7eb;
  display: flex; flex-direction: column;
  transition: margin-left 0.3s ease;
  position: relative;
}
.vow-list.collapsed { margin-left: -400px; }
.vow-list::-webkit-scrollbar { width: 5px; }
.vow-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* Collapse toggle */
.panel-toggle {
  position: absolute; left: 400px; top: 50%; transform: translateY(-50%);
  z-index: 50; width: 24px; height: 48px;
  background: #fff; border: 1px solid #e5e7eb;
  border-left: none; border-radius: 0 8px 8px 0;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 0 6px rgba(0,0,0,0.06);
  transition: left 0.3s ease; font-size: 16px; color: #6b7280;
}
.panel-toggle:hover { background: #f9fafb; color: #d0645e; }
.panel-toggle.collapsed { left: 0; }

/* Panel header (single-row) */
.vow-panel-head {
  padding: 8px 12px; border-bottom: 1px solid #f3f4f6; flex-shrink: 0;
}
.ph-title-row {
  display: flex; align-items: center; gap: 8px;
}
.vow-panel-head h1 { font-size: 16px; font-weight: 700; color: #111827; margin: 0; white-space: nowrap; }
.vow-panel-head .ph-count { font-size: 13px; color: #6b7280; white-space: nowrap; }
.vow-panel-head .ph-count b { color: #374151; font-weight: 700; }
.vow-panel-head .ph-sort {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.vow-panel-head .ph-sort select {
  padding: 4px 8px; border: 1px solid #e5e7eb; border-radius: 6px;
  font-size: 13px; color: #374151; background: #fff; outline: none; cursor: pointer;
}
.vow-panel-head .ph-sort button {
  width: 28px; height: 28px; border: 1px solid #e5e7eb; border-radius: 6px;
  background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s var(--ease-out);
}
.vow-panel-head .ph-sort button:hover { border-color: var(--brand-primary, #b52e28); }

/* Cards */
.vow-cards { padding: 8px; flex: 1; }

/* Card */
.vow-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  border: 1.5px solid #f3f4f6; cursor: pointer;
  margin-bottom: 8px; transition: box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.vow-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: #e5e7eb; }
.vow-card.hl { border-color: #d0645e; box-shadow: 0 0 0 2px rgba(181,46,40,0.2); }

/* Card image */
.vow-card .c-img {
  position: relative; height: 180px; overflow: hidden;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: cardShimmer 1.4s ease-in-out infinite;
}
@keyframes cardShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.vow-card .c-img img {
  width: 100%; height: 100%; object-fit: cover;
  position: relative; z-index: 1;
}
/* Filmstrip: smooth sliding carousel */
.vow-card .c-filmstrip {
  display: flex; height: 100%;
  transition: transform 0.3s var(--ease-out);
  will-change: transform;
}
.vow-card .c-filmstrip img {
  height: 100%; object-fit: cover; flex-shrink: 0;
}
.vow-card .c-badge {
  position: absolute; bottom: 10px; left: 10px;
  padding: 3px 10px; border-radius: 4px;
  font-size: 15px; font-weight: 600;
  transition: opacity 0.15s;
}
.vow-card:hover .c-badge { opacity: 0.3; }
.c-badge.b-sale { background: rgba(181,46,40,0.9); color: #fff; }
.c-badge.b-sold { background: rgba(220,38,38,0.9); color: #fff; }
.c-badge.b-new { background: rgba(181,46,40,0.9); color: #fff; }
.c-badge.b-drop { background: rgba(181,46,40,0.9); color: #fff; }

/* Favourite heart */
.vow-card .c-fav {
  position: absolute; top: 8px; right: 8px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.4); border: none;
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; z-index: 6;
}
.vow-card .c-fav:hover { background: rgba(0,0,0,0.55); transform: scale(1.1); }
.vow-card .c-fav.liked { background: rgba(220,38,38,0.85); color: #fff; }
/* Photo carousel arrows */
.vow-card .c-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none;
  color: #374151; font-size: 18px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  z-index: 5; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.15s;
}
.vow-card .c-nav:hover { background: #fff; }
.vow-card:hover .c-nav { display: flex; }
.vow-card .c-prev { left: 8px; }
.vow-card .c-next { right: 8px; }
/* Photo dots */
.vow-card .c-dots {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 3px; z-index: 4;
}
.vow-card .c-dots .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5); transition: background 0.15s;
}
.vow-card .c-dots .dot.active { background: #fff; }

/* Price drop strikethrough */
.vow-card .c-drop-row {
  margin-bottom: 2px;
}
.vow-card .c-orig-price {
  font-size: 15px; color: #6b7280; text-decoration: line-through;
}
.vow-card .c-drop-pct {
  font-size: 15px; color: #b52e28; font-weight: 600; margin-left: 6px;
}

/* Quick filter chips */
.vow-chips {
  display: flex; gap: 4px; padding: 0; flex-wrap: nowrap;
}
.vow-chips .chip {
  padding: 4px 12px; border: 1.5px solid #e5e7eb; border-radius: 16px;
  font-size: 14px; font-weight: 500; background: #fff; color: #6b7280;
  cursor: pointer; transition: border-color 0.15s var(--ease-out), color 0.15s var(--ease-out), background 0.15s var(--ease-out); white-space: nowrap;
}
.vow-chips .chip:hover { border-color: #d0645e; color: #d0645e; }
.vow-chips .chip.active { background: #d0645e; color: #fff; border-color: #d0645e; }
.vow-chips .pos-toggle {
  padding: 4px 12px; border: 1.5px solid #e5e7eb; border-radius: 16px;
  font-size: 14px; font-weight: 500; background: #fff; color: #6b7280;
  cursor: pointer; font-family: inherit; white-space: nowrap; flex-shrink: 0;
  transition: border-color 0.15s var(--ease-out), color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.vow-chips .pos-toggle:hover { border-color: #d0645e; color: #d0645e; }
.vow-chips .pos-toggle.active,
.vow-chips .pos-toggle[aria-pressed="true"] { background: #d0645e; color: #fff; border-color: #d0645e; }
.vow-chips .pos-toggle:focus-visible { outline: 2px solid #d0645e; outline-offset: 2px; }
.vow-chips .pos-toggle[aria-disabled="true"] { opacity: 0.55; }
.pos-watch-note {
  margin: 0; padding: 4px 2px; font-size: 13px; font-weight: 600; color: #92400e;
  white-space: nowrap; flex-shrink: 0;
}
.pos-watch-note[hidden] { display: none !important; }
@media (min-width: 601px) {
  #chips.vow-chips { flex-wrap: wrap; row-gap: 4px; }
}
.chip-signin {
  margin-top: 8px; padding: 10px 18px; min-height: 44px;
  border: none; border-radius: 8px; background: var(--brand-primary, #b52e28); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.mob-chips { display: none; }
.vow-chips .chip .chip-ct { font-weight: 400; opacity: 0.7; margin-left: 3px; }
.vow-card .c-photos {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.5); color: #fff;
  padding: 2px 7px; border-radius: 4px;
  font-size: 13px; font-weight: 500; z-index: 5;
  transition: opacity 0.15s;
}
.vow-card:hover .c-photos { opacity: 0; }
.vow-card:hover .c-note-badge { opacity: 0; }

/* Card body */
.vow-card .c-body { padding: 10px 14px 12px; }
.vow-card .c-row1 {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 3px;
}
.vow-card .c-price-label { font-size: 16px; color: #6b7280; }
.vow-card .c-price {
  font-size: 26px; font-weight: 700; color: #111827;
}
.vow-card .c-price.cp-sold { color: #dc2626; }
.vow-card .c-date { font-size: 16px; color: #6b7280; }
.vow-card .c-addr {
  font-size: 17px; font-weight: 600; color: #111827; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vow-card .c-type { font-size: 16px; color: #6b7280; margin-bottom: 6px; }
.vow-card .c-specs {
  display: flex; gap: 14px; font-size: 16px; color: #6b7280; margin-bottom: 6px;
  align-items: center;
}
.vow-card .c-specs .spec-item {
  display: flex; align-items: center; gap: 4px;
}
.vow-card .c-specs .spec-icon { font-size: 17px; opacity: 0.6; }
.vow-card .c-specs b { color: #111827; font-weight: 600; }
.vow-card .c-maint-fee {
  font-size: 14px; color: #6b7280; margin-top: 2px; font-weight: 500;
}
.vow-card .c-meta {
  font-size: 15px; color: #6b7280;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Pagination */
.vow-pager {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; padding: 12px; flex-shrink: 0; background: #fff;
  border-top: 1px solid #f3f4f6;
}
.vow-pager button {
  padding: 6px 14px; border: 1.5px solid #e5e7eb; border-radius: 6px;
  font-size: 14px; font-weight: 500; background: #fff; color: #374151;
  cursor: pointer; transition: all 0.15s;
}
.vow-pager button:hover:not(:disabled) { border-color: #d0645e; color: #d0645e; }
.vow-pager button:disabled { opacity: 0.3; cursor: default; }
.vow-pager .pg-info { font-size: 14px; color: #6b7280; }

/* Loading spinner */
.vow-loading {
  position: absolute; inset: 0; background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.vow-loading.hide { display: none; }
.vow-loading .spin {
  width: 32px; height: 32px; border: 3px solid #e5e7eb;
  border-top-color: #d0645e; border-radius: 50%;
  animation: vspin 0.7s linear infinite;
}
@keyframes vspin { to { transform: rotate(360deg); } }

/* No results */
.vow-empty { padding: 60px 20px; text-align: center; color: #6b7280; }
.vow-empty .e-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.vow-empty h3 { font-size: 17px; font-weight: 600; color: #6b7280; margin-bottom: 4px; }
.vow-empty p { font-size: 16px; }

/* ── RIGHT — MAP ── */
.vow-map-wrap { flex: 1; position: relative; }
#vow-map { width: 100%; height: 100%; }

/* Map cluster pins (orange circles like HS) */
.cluster-pin {
  width: 36px; height: 36px; border-radius: 50%;
  background: #b52e28; color: #fff;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(181,46,40,0.4);
  transition: transform 0.15s;
}
.cluster-pin:hover { transform: scale(1.15); }
.cluster-pin.pin-sold { background: #6b7280; box-shadow: 0 2px 8px rgba(107,114,128,0.4); }
.cluster-pin.pin-hl {
  background: #d0645e; box-shadow: 0 2px 12px rgba(181,46,40,0.5);
  transform: scale(1.2); z-index: 999 !important;
}
/* Single property pin (price label) */
.price-pin {
  background: #b52e28; border: 2px solid #fff; border-radius: 6px;
  padding: 3px 8px; font-size: 13px; font-weight: 700;
  color: #fff; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.15s;
}
.price-pin.pin-sold { background: #6b7280; border-color: #fff; color: #fff; }
.price-pin.pin-hl { background: #d0645e; color: #fff; border-color: #fff; transform: scale(1.15); z-index: 999 !important; }

/* ── DETAIL OVERLAY (HouseSigma-style) ── */
.vow-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  z-index: 1000; overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}
.vow-overlay.open { opacity: 1; pointer-events: auto; }
.vow-detail {
  background: #fff; margin: 0 auto;
  max-width: 1100px; width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Detail tabs nav (sticky) */
.det-tabs {
  display: flex; align-items: center;
  padding: 0 20px; height: 48px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff; position: sticky; top: 0; z-index: 10;
}
.det-tabs a {
  padding: 12px 16px; font-size: 16px; font-weight: 500;
  color: #6b7280; border-bottom: 2.5px solid transparent;
  transition: all 0.15s; cursor: pointer;
}
.det-tabs a.active { color: var(--brand-primary, #b52e28); border-bottom-color: var(--brand-primary, #b52e28); }
.det-tabs a:hover { color: #111827; }
.det-tabs .det-actions {
  display: flex; gap: 8px; margin-left: auto; align-items: center;
}
.det-tabs .det-actions button {
  border-radius: 8px;
  border: 1px solid #e5e7eb; background: #fff;
  font-size: 17px; cursor: pointer; color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.det-tabs .det-actions button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.det-tabs .det-actions #detClose { width: 36px; height: 36px; border-radius: 50%; }
.det-tabs .det-actions #detClose:hover { background: #f9fafb; color: #111827; transform: none; box-shadow: none; }

/* Photo gallery: paginated grid collage */
.det-gallery {
  position: relative; height: 420px; overflow: hidden;
  background: #302f2f;
}
.dg-pages {
  display: flex; height: 100%;
  transition: transform 0.4s var(--ease-out);
}
.dg-page {
  flex: 0 0 100%; height: 100%;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px; padding: 0;
}
/* Partial last pages — adapt grid when fewer than 5 photos */
.dg-page.dg-count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.dg-page.dg-count-1 .dg-main { grid-row: auto; }
.dg-page.dg-count-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.dg-page.dg-count-2 .dg-main { grid-row: auto; }
.dg-page.dg-count-3 { grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; }
.dg-page.dg-count-4 { grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.dg-cell {
  overflow: hidden; cursor: pointer; position: relative;
  background: linear-gradient(90deg, #302f2f 25%, #334155 50%, #302f2f 75%);
  background-size: 200% 100%;
  animation: dgShimmer 1.4s ease-in-out infinite;
}
@keyframes dgShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.dg-cell.dg-main { grid-row: 1 / 3; }
.dg-cell img {
  width: 100%; height: 100%; object-fit: cover;
  position: relative; z-index: 1;
  transition: filter 0.2s var(--ease-out);
}
.dg-cell:hover img { filter: brightness(0.88); }
/* Badge */
.det-gallery .ph-badge {
  position: absolute; top: 12px; left: 12px; z-index: 5;
  padding: 4px 12px; border-radius: 5px;
  font-size: 15px; font-weight: 600;
  background: rgba(181,46,40,0.9); color: #fff;
}
.det-gallery .ph-badge.sold { background: rgba(220,38,38,0.9); }
/* Counter */
.dg-counter {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,0.55); color: #fff;
  padding: 3px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 600; z-index: 5;
}
/* See all */
.dg-all {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(255,255,255,0.9); color: #302f2f;
  border: none; padding: 6px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer; z-index: 5;
  transition: background 0.15s var(--ease-out);
}
.dg-all:hover { background: #fff; }
/* Pagination arrows */
.dg-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none;
  font-size: 22px; cursor: pointer; z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.det-gallery:hover .dg-arrow { opacity: 1; }
.dg-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.dg-prev { left: 12px; }
.dg-next { right: 12px; }

/* Photo gallery lightbox */
.det-lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 1100;
  align-items: center; justify-content: center;
}
.det-lightbox.open { display: flex; }
.det-lightbox img { max-width: 90%; max-height: 85vh; object-fit: contain; border-radius: 6px; }
.det-lightbox .lb-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.det-lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.det-lightbox .lb-prev { left: 20px; }
.det-lightbox .lb-next { right: 20px; }
.det-lightbox .lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 16px;
}

/* Detail body */
.det-body {
  display: flex; gap: 0; padding: 0;
}
.det-main { flex: 1; padding: 24px 28px; }
.det-sidebar {
  width: 340px; flex-shrink: 0; padding: 24px 20px;
  border-left: 1px solid #f3f4f6;
}

/* Property header */
.det-header { margin-bottom: 20px; }
.det-header .dh-addr { font-size: 26px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.det-header .dh-area { font-size: 17px; color: #6b7280; margin-bottom: 4px; }
.det-header .dh-type { font-size: 17px; color: #6b7280; }
.det-header .dh-price-row {
  display: flex; align-items: baseline; gap: 12px; margin-top: 6px;
}
.det-header .dh-price-label { font-size: 17px; color: #6b7280; }
.det-header .dh-price { font-size: 34px; font-weight: 700; color: #111827; }
.det-header .dh-price.sold { color: #dc2626; }
.det-header .dh-date { font-size: 17px; color: #6b7280; }

/* Big spec icons */
.det-specs {
  display: flex; gap: 0; margin-bottom: 24px;
  border: 1px solid #f3f4f6; border-radius: 10px; overflow: hidden;
}
.det-specs .ds-item {
  flex: 1; padding: 16px 12px; text-align: center;
  border-right: 1px solid #f3f4f6;
}
.det-specs .ds-item:last-child { border-right: none; }
.det-specs .ds-icon { font-size: 30px; margin-bottom: 4px; }
.det-specs .ds-val { font-size: 20px; font-weight: 700; color: #111827; }
.det-specs .ds-label { font-size: 16px; color: #6b7280; }

/* Key Facts */
.det-section { margin-bottom: 24px; }
.det-section h3 {
  font-size: 19px; font-weight: 700; color: #111827;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid #d0645e; display: inline-block;
}
.det-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.det-facts .df-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid #f3f4f6;
  font-size: 17px;
}
.det-facts .df-row:nth-child(odd) { padding-right: 20px; }
.det-facts .df-row:nth-child(even) { padding-left: 20px; }
.det-facts .df-key { color: #6b7280; }
.det-facts .df-val { color: #111827; font-weight: 500; }

/* Description */
.det-desc {
  font-size: 17px; color: #374151; line-height: 1.65;
  padding: 16px; background: #f9fafb; border-radius: 8px;
}

/* Sidebar: Schedule Viewing */
.det-cta-box {
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px;
  padding: 20px; margin-bottom: 16px;
}
.det-cta-box h3 { font-size: 17px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.det-cta-box .cta-sub { font-size: 16px; color: #6b7280; margin-bottom: 14px; }
.det-cta-box input, .det-cta-box textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid #e5e7eb;
  border-radius: 7px; font-size: 16px; margin-bottom: 8px; outline: none;
  font-family: inherit;
}
.det-cta-box input:focus, .det-cta-box textarea:focus { border-color: #d0645e; }
.det-cta-box textarea { height: 70px; resize: vertical; }
.det-cta-box .cta-btn {
  width: 100%; padding: 12px; background: var(--brand-call, #b52e28); color: #fff;
  border: none; border-radius: 8px; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.det-cta-box .cta-btn:hover { background: #822d25; }
.det-cta-box .cta-legal { font-size: 16px; color: #6b7280; margin-top: 8px; line-height: 1.4; }

/* Broker info card */
.det-broker {
  background: #f9fafb; border-radius: 10px; padding: 14px;
  font-size: 16px; color: #6b7280; line-height: 1.5;
}
.det-broker strong { color: #374151; }

/* ── REGISTRATION GATE ── */
.vow-reg {
  position: fixed; inset: 0;
  background: rgba(48,47,47,0.6); backdrop-filter: blur(6px);
  z-index: 1200; display: flex; align-items: center; justify-content: center;
}
.vow-reg.hide { display: none; }
.vow-reg .r-box {
  background: #fff; border-radius: 16px; padding: 32px 28px;
  max-width: 440px; width: 92%; box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.vow-reg h2 { font-size: 22px; font-weight: 700; color: #111827; margin-bottom: 4px; text-align: center; }
.vow-reg .r-sub { font-size: 16px; color: #6b7280; margin-bottom: 20px; line-height: 1.5; text-align: center; }
.vow-reg input[type="text"], .vow-reg input[type="email"], .vow-reg input[type="password"], .vow-reg input[type="tel"] {
  width: 100%; padding: 13px 14px; border: 1.5px solid #e5e7eb;
  border-radius: 10px; font-size: 16px; margin-bottom: 10px; outline: none;
}
.vow-reg input:focus { border-color: #d0645e; }
.vow-reg .chk { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.vow-reg .chk input { margin-top: 3px; flex-shrink: 0; }
.vow-reg .chk label { font-size: 16px; color: #6b7280; line-height: 1.4; }
.vow-reg .r-go {
  width: 100%; padding: 13px; background: var(--brand-call, #b52e28); color: #fff;
  border: none; border-radius: 10px; font-size: 16px; font-weight: 600;
  cursor: pointer; margin-top: 8px; transition: background 0.15s;
}
.vow-reg .r-go:hover { background: #822d25; }
.vow-reg .r-legal {
  font-size: 16px; color: #6b7280; margin-top: 14px; line-height: 1.5;
  border-top: 1px solid #f3f4f6; padding-top: 14px;
}
/* Step progress */
.reg-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 20px; }
.reg-steps .step {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; border: 2px solid #e5e7eb; color: #6b7280; background: #fff;
}
.reg-steps .step.active { border-color: #d0645e; color: #d0645e; background: #f7f1e1; }
.reg-steps .step.done { border-color: var(--brand-call, #b52e28); color: #fff; background: var(--brand-call, #b52e28); }
.reg-steps .step-line { width: 40px; height: 2px; background: #e5e7eb; }
.reg-steps .step-line.done { background: var(--brand-call, #b52e28); }
/* Google sign-in button */
.r-google {
  width: 100%; padding: 12px; background: #fff; color: #374151;
  border: 1.5px solid #e5e7eb; border-radius: 10px; font-size: 16px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.r-google:hover { border-color: #d0645e; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.r-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #6b7280; font-size: 16px; }
.r-divider::before, .r-divider::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }
/* Step panels */
.reg-step { display: none; }
.reg-step.active { display: block; }
/* Watch preferences */
.watch-opts { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.watch-opt {
  display: flex; align-items: center; gap: 10px; padding: 12px; background: #f9fafb;
  border-radius: 8px; border: 1.5px solid #e5e7eb; cursor: pointer; transition: all 0.15s;
}
.watch-opt:hover { border-color: #d0645e; }
.watch-opt.selected { border-color: #d0645e; background: #f7f1e1; }
.watch-opt input { flex-shrink: 0; }
.watch-opt .wo-icon { font-size: 20px; flex-shrink: 0; }
.watch-opt .wo-label { font-size: 16px; font-weight: 600; color: #111827; }
.watch-opt .wo-desc { font-size: 16px; color: #6b7280; }

/* ── TRREB BAR ── */
.vow-trreb {
  padding: 6px 16px; background: #f9fafb; border-top: 1px solid #f3f4f6;
  font-size: 12px; color: #6b7280; text-align: center; flex-shrink: 0; line-height: 1.4;
}
.vow-trreb strong { color: #6b7280; }

/* ── DEBUG STATUS ── */
.vow-status {
  display: none; padding: 4px 16px; background: #fef3c7;
  border-top: 1px solid #fcd34d; font-size: 16px; color: #92400e;
  text-align: center; flex-shrink: 0;
}

/* ── MARKER CLUSTERS (orange HouseSigma-style) ── */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
  background: rgba(181,46,40,0.25) !important;
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background: #b52e28 !important; color: #fff !important;
  font-size: 15px !important; font-weight: 700 !important;
  width: 36px !important; height: 36px !important;
  margin-left: 2px !important; margin-top: 2px !important;
  border-radius: 50% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  box-shadow: 0 2px 8px rgba(181,46,40,0.4) !important;
}
.marker-cluster-medium { background: rgba(181,46,40,0.3) !important; }
.marker-cluster-medium div { width: 42px !important; height: 42px !important; font-size: 15px !important; }
.marker-cluster-large { background: rgba(181,46,40,0.35) !important; }
.marker-cluster-large div { width: 48px !important; height: 48px !important; font-size: 15px !important; }

/* ── RESPONSIVE ── */
/* Tablet: 601-768px gets stacked layout. 769px+ gets desktop side-by-side */
@media (max-width: 768px) {
  .vow-split { flex-direction: column-reverse; }
  .vow-list { width: 100%; min-width: unset; height: 50%; border-right: none; border-top: 1px solid #e5e7eb; }
  .vow-list.collapsed { margin-left: 0; margin-bottom: -50%; }
  .vow-map-wrap { height: 50%; }
  .panel-toggle { display: none; }
  /* Mobile nav: hide most links, keep the tool family (Home Value + Price Drops + POS) */
  .vow-nav .nav-links { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
  .vow-nav .nav-links a:not(.nav-tool) { display: none; }
  .vow-nav .nav-links .acct-wrap { display: none; }
  .vow-nav .nav-links .nav-tool {
    font-size: 12px;
    padding: 5px 6px;
    border-radius: 6px;
    white-space: nowrap;
    background: rgba(255,255,255,0.08);
  }
  .vow-nav .nav-links .nav-tool-lg { display: none; }
  .vow-nav .nav-links .nav-tool-sm { display: inline; }
  .vow-nav .search-wrap { max-width: 100%; }
  .det-body { flex-direction: column; }
  .det-sidebar { width: 100%; border-left: none; border-top: 1px solid #f3f4f6; }
  .det-gallery { height: 300px; }
  /* Compact nav: logo only so the three tool pills fit */
  .vow-nav .brand-text { display: none; }
  .vow-nav { gap: 8px; padding: 0 10px; }
}
/* Tablet landscape + small desktop: nav links condensed, list wider */
@media (min-width: 769px) and (max-width: 1024px) {
  .vow-nav .nav-links a { font-size: 13px; padding: 6px 6px; }
  .vow-nav .nav-links .nav-cta { padding: 6px 12px; font-size: 13px; }
  .vow-list { width: 380px; min-width: 340px; }
  .vow-card .c-price { font-size: 22px; }
  .vow-card .c-body { padding: 10px 12px; }
}

/* ── MOBILE ACTION BAR ── */
.mob-action-bar {
  display: none; align-items: center; gap: 8px;
  padding: 6px 12px; background: #fff;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  flex-shrink: 0; position: relative;
}
@media (max-width: 600px) {
  .mob-action-bar { display: flex; }
  /* Hide desktop filter bar + chips on mobile */
  .vow-filterbar { display: none !important; }
  .vow-chips { display: none !important; }
  .mob-chips.vow-chips {
    display: flex !important;
    gap: 6px; padding: 6px 10px; overflow-x: auto; flex-wrap: nowrap;
    background: #fff; border-bottom: 1px solid #e5e7eb;
    -webkit-overflow-scrolling: touch;
  }
  .mob-chips .chip { min-height: 44px; padding: 8px 14px; font-size: 14px; flex-shrink: 0; }
  /* Hide old toggle button */
  .mobile-view-toggle { display: none !important; }
}
.mab-pill {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border: 1.5px solid #e5e7eb; border-radius: 20px;
  font-size: 14px; font-weight: 600; background: #fff; color: #374151;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  font-family: inherit; min-height: 36px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mab-pill:active { background: #f3f4f6; }
.mab-pill .arr { font-size: 8px; opacity: 0.5; }
/* Active map pill */
.mab-pill.mab-active { background: var(--brand-primary, #b52e28); color: #fff; border-color: var(--brand-primary, #b52e28); }
/* Sold status styling */
.mab-pill.mab-sold { border-color: #dc2626; color: #dc2626; }
/* Status dropdown */
.mab-dropdown {
  display: none; position: fixed; top: 0; left: 0;
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); z-index: 9999;
  overflow: hidden; min-width: 160px;
}
.mab-backdrop {
  display: none; position: fixed; inset: 0; z-index: 9998;
  background: transparent;
}
.mab-backdrop.open { display: block; }
.mab-dropdown.open { display: block; }
.mab-drop-opt {
  display: block; width: 100%; padding: 12px 16px;
  border: none; background: #fff; color: #374151;
  font-size: 15px; font-weight: 500; text-align: left;
  cursor: pointer; font-family: inherit;
  transition: background 0.1s;
}
.mab-drop-opt:hover { background: #f7f1e1; }
.mab-drop-opt.active { color: var(--brand-primary, #b52e28); font-weight: 700; }
.mab-drop-opt + .mab-drop-opt { border-top: 1px solid #f3f4f6; }

/* ── MAP/LIST TOGGLE (mobile) — legacy, hidden when bottom nav present ── */
.mobile-view-toggle {
  display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 500; padding: 10px 20px; border-radius: 24px;
  background: #302f2f; color: #fff; border: none;
  font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: background 0.15s, transform 0.15s;
  font-family: inherit;
}
.mobile-view-toggle:active { transform: translateX(-50%) scale(0.96); }
@media (max-width: 600px) {
  .mobile-view-toggle { display: flex; align-items: center; gap: 6px; }
}
/* Map-only mode */
.vow-split.mobile-map-view .vow-list { display: none !important; }
.vow-split.mobile-map-view .vow-map-wrap { display: block !important; height: 100% !important; min-height: unset; }
/* List-only mode */
.vow-split.mobile-list-view .vow-map-wrap { display: none !important; }
.vow-split.mobile-list-view .vow-list { display: flex !important; height: 100%; }
.vow-split.mobile-list-view { flex-direction: column; }

@media (max-width: 600px) {
  .vow-split { min-height: 0; flex: 1; }
  /* Default: list view on mobile (map hidden, toggle to see it) */
  .vow-list { height: 100%; }
  .vow-map-wrap { display: none; height: 100%; min-height: unset; }
  #mapSearchBtn { top: auto !important; bottom: 60px !important; left: 12px !important; transform: none !important; font-size: 14px !important; padding: 6px 14px !important; }
  .vow-card .c-img { height: 160px; }
  /* Phase 1: Single-row scrollable filter bar */
  .vow-filterbar { gap: 6px; padding: 6px 10px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .vow-filterbar .status-grp { order: 0; width: auto; flex-shrink: 0; }
  .vow-filterbar .status-grp button { font-size: 13px; padding: 5px 10px; }
  .vow-filterbar .fb-pill { font-size: 13px; padding: 4px 10px; flex-shrink: 0; }
  .vow-filterbar .sub-toggle { display: none; }
  .vow-filterbar .fb-sep { display: none; }
  .vow-filterbar .fb-clear { font-size: 13px; padding: 3px 8px; flex-shrink: 0; }
  .vow-chips { gap: 4px; padding: 0 10px 4px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .vow-chips .chip { font-size: 13px; padding: 3px 8px; flex-shrink: 0; }
  .det-gallery { height: 220px; }
  .dg-page { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .dg-cell:not(.dg-main) { display: none; }
  .dg-arrow { opacity: 1; }
  .vow-card .c-nav { display: flex; } /* Always show on mobile (no hover) */
  .vow-card .c-dots .dot { width: 5px; height: 5px; }
  #drawControls { right: 10px; top: 8px; }
  #drawControls button { font-size: 16px; padding: 5px 10px; }
  /* Detail overlay: compact tabs + action bar on mobile */
  .det-tabs { gap: 0; font-size: 14px; flex-wrap: wrap; height: auto; padding: 0 10px; }
  .det-tabs a { padding: 8px 6px; font-size: 13px; white-space: nowrap; }
  .det-tabs .det-actions { width: 100%; justify-content: flex-end; gap: 6px; padding: 6px 0; border-top: 1px solid #f3f4f6; margin-top: 2px; }
  .det-tabs .det-actions button { font-size: 13px !important; padding: 6px 12px !important; }
  .det-tabs .det-actions .da-fav { padding: 6px 10px !important; }
  .det-tabs .det-actions #detClose { width: 30px !important; height: 30px !important; }
  .det-tabs .det-actions #detShareListing { padding: 6px 10px !important; font-size: 13px !important; }
  /* CTA bar: MOVE BELOW photo on mobile — photo first, CTAs after info */
  .det-cta-bar { gap: 6px; margin: 8px 0 0; order: 10; }
  .det-cta-bar button { padding: 10px 12px !important; font-size: 14px !important; }
  /* Detail header compact */
  .det-header .dh-addr { font-size: 20px; }
  .det-header .dh-price { font-size: 28px; }
  .det-header { margin-bottom: 12px; }
  /* Reorder detail view: photo first, CTAs after info */
  .vow-detail { display: flex; flex-direction: column; }
  .det-tabs { order: 1; }
  .det-gallery { order: 2; }
  .det-body { order: 3; }
  .det-cta-bar { order: 4; margin: 0 16px 12px; }
  .vow-overlay .vow-detail { width: 100%; max-width: 100%; }
  .vow-fdrop.open { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 500; max-height: 100vh; overflow-y: auto; padding-top: 20px; padding-bottom: 80px; }
  .vow-fdrop .adv-filters { grid-template-columns: 1fr; }
  /* Compact panel header on mobile */
  .vow-panel-head { padding: 6px 10px; }
  .vow-panel-head h1 { font-size: 15px; }
  .vow-panel-head .ph-count { font-size: 12px; }
  .vow-panel-head .ph-sort select { font-size: 12px; }
  /* Card body tighter on mobile — Trulia-style */
  .vow-card .c-body { padding: 10px 12px 10px; }
  .vow-card .c-price { font-size: 22px; }
  .vow-card .c-addr { font-size: 15px; }
  .vow-card .c-type { font-size: 14px; margin-bottom: 4px; }
  .vow-card .c-specs { font-size: 14px; gap: 10px; margin-bottom: 4px; }
  /* Strip detail-level info from mobile cards */
  .vow-card .c-actions { display: none !important; }
  .vow-card .c-meta { display: none !important; }
  .vow-card .c-extra-specs { display: none !important; }
  /* Banners tighter */
  .save-search-banner, .price-drop-context { font-size: 13px; padding: 8px 12px !important; }
  /* Compact nav — search icon only */
  .vow-nav .search-wrap.mob-collapsed input { display: none; }
  .vow-nav .search-wrap.mob-collapsed .s-btn { display: none; }
  .vow-nav .search-wrap.mob-collapsed .s-icon { position: static; transform: none; cursor: pointer; pointer-events: auto; font-size: 20px; color: rgba(255,255,255,0.7); padding: 6px; }
  .vow-nav .search-wrap.mob-expanded { flex: 1; }
  .vow-nav .search-wrap.mob-expanded input { display: block; }
  .vow-nav .search-wrap.mob-expanded .s-btn { display: flex; }
  .vow-nav .search-wrap.mob-expanded .s-icon { position: absolute; }
  .mob-search-close {
    display: none; width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    font-size: 16px; cursor: pointer; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .vow-nav .search-wrap.mob-expanded ~ .mob-search-close { display: flex; }
  .vow-nav .search-wrap.mob-expanded ~ .mobile-sign-in { display: none !important; }

  /* ── DETAIL VIEW LAYOUT FIXES (mobile) ── */

  /* Key Facts table: single column on mobile */
  .det-facts { grid-template-columns: 1fr !important; }
  .det-facts .df-row { font-size: 14px; padding: 6px 0 !important; }
  .det-facts .df-row:nth-child(odd) { padding-right: 0 !important; }
  .det-facts .df-row:nth-child(even) { padding-left: 0 !important; }
  .det-facts .df-val { word-break: break-word; max-width: 60%; text-align: right; }

  /* Comp cards: completely restructure for mobile */
  .comp-card-v2 {
    flex-direction: column !important; gap: 8px; padding: 12px;
  }
  .comp-card-v2 .cc-img { width: 100%; height: 140px; border-radius: 8px; }
  .sim-ring { width: 36px; height: 36px; position: absolute; top: 12px; right: 12px; }
  .comp-card-v2 { position: relative; }
  .comp-card-v2 .cc-body { width: 100%; }
  .comp-card-v2 .cc-right { width: 100%; text-align: left; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .comp-card-v2 .cc-addr { font-size: 15px; white-space: normal; }
  .comp-card-v2 .cc-price { font-size: 18px; }
  .comp-card-v2 .cc-adjusted { font-size: 13px; }
  .comp-card-v2 .cc-pct { font-size: 13px; }
  .comp-card-v2 .cc-meta { font-size: 13px; }
  .comp-card-v2 .cc-insight { font-size: 13px; }
  .comp-match { gap: 4px; flex-wrap: wrap; }
  .comp-match .cm-tag { font-size: 12px; padding: 3px 8px; }

  /* Comp adjustment tables: scrollable + compact */
  .cc-adj-table { overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 13px; margin: 8px 0; }
  .cc-adj-row { font-size: 13px; padding: 4px 0; }
  .cc-adj-total { font-size: 14px; }

  /* Neighbourhood rankings table: compact */
  .nhood-rank-table { font-size: 12px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nhood-rank-table thead, .nhood-rank-table tbody, .nhood-rank-table tr { display: table; width: 100%; table-layout: fixed; }
  .nhood-rank-table th { padding: 6px 4px; font-size: 10px; }
  .nhood-rank-table td { padding: 6px 4px; font-size: 12px; word-break: break-word; }
  .nhood-rank-table .rank-badge { width: 22px; height: 22px; font-size: 11px; }

  /* Sidebar: compact Call/Email buttons */
  .det-sidebar a[href^="tel:"], .det-sidebar a[href^="mailto:"] {
    font-size: 14px !important; padding: 10px 14px !important; min-width: 0 !important;
  }

  /* Market Pulse cards */
  .market-pulse-grid { grid-template-columns: 1fr; }

  /* Affordability grid */
  .afford-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .afford-val { font-size: 18px; }

  /* Detail specs row */
  .det-specs { gap: 8px; }
  .det-specs .ds-item { padding: 10px; }
  .det-specs .ds-val { font-size: 20px; }

  /* Description section */
  .det-desc { font-size: 15px; }

  /* Agent card compact */
  .agent-card { padding: 14px; }
  .agent-card .ac-photo { width: 50px; height: 50px; }
  .agent-card .ac-btns { flex-direction: column; }
  .agent-card .ac-btn { font-size: 14px; padding: 10px; }

  /* the agent's Take compact */
  .adams-take { padding: 12px 14px; gap: 10px; }
  .adams-take .at-avatar { width: 36px; height: 36px; }
  .adams-take .at-text { font-size: 14px; }

  /* Resource links */
  .det-main a[style*="display:flex"][style*="gap:10px"] { font-size: 14px !important; }

  /* Mortgage calculator */
  .det-main h3 { font-size: 18px; }

  /* All tables in detail view: prevent overflow */
  .det-main table { font-size: 12px; width: 100%; table-layout: fixed; }
  .det-main table td, .det-main table th { padding: 6px 3px; word-break: break-word; overflow: hidden; text-overflow: ellipsis; }
  /* Listing history table specific */
  .det-tab-pane table { font-size: 12px !important; }
  .det-tab-pane table td { font-size: 12px !important; padding: 6px 3px !important; }
  .det-tab-pane table td span { font-size: 11px !important; }
}

/* ── MARKET PULSE (Visual Indicators) ── */
.market-pulse-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px;
}
.mp-card {
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #e2e8f0; border-radius: 16px;
  padding: 20px 18px 18px; text-align: center; position: relative;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mp-card:hover {
  box-shadow: 0 8px 24px rgba(181,46,40,0.1); border-color: #cbd5e1;
  transform: translateY(-2px);
}
.mp-label {
  font-size: 11px; font-weight: 800; color: var(--brand-primary, #b52e28); margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 1px;
}
.mp-sub { font-size: 12px; color: #64748b; line-height: 1.4; margin-top: 8px; }
.mp-badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; margin-top: 8px; letter-spacing: 0.3px;
}
/* Price Position Bar */
.mp-pos-bar {
  position: relative; height: 10px; border-radius: 10px; margin: 8px 0 6px;
  background: linear-gradient(90deg, #16a34a, #84cc16, #eab308, #b52e28, #dc2626);
}
.mp-pos-marker {
  position: absolute; top: -5px; width: 20px; height: 20px;
  background: #fff; border: 3px solid #302f2f; border-radius: 50%;
  transform: translateX(-50%); box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.mp-pos-labels {
  display: flex; justify-content: space-between; gap: 6px; font-size: 10px;
  color: #94a3b8; font-weight: 600; margin-top: 4px;
}
.mp-pos-val {
  font-size: 22px; font-weight: 800; color: #302f2f; margin-bottom: 2px;
}
.mp-pos-val small { font-size: 13px; font-weight: 500; color: #94a3b8; }
/* Market Balance Gauge */
.mp-gauge-wrap { position: relative; width: 120px; height: 68px; margin: 0 auto 4px; overflow: hidden; }
.mp-gauge-bg {
  width: 120px; height: 120px; border-radius: 50%;
  background: conic-gradient(from 180deg, #dc2626 0deg, #b52e28 60deg, #16a34a 120deg, var(--brand-primary, #b52e28) 180deg);
  mask: radial-gradient(circle at center, transparent 42px, #000 42px);
  -webkit-mask: radial-gradient(circle at center, transparent 42px, #000 42px);
}
.mp-gauge-needle {
  position: absolute; bottom: 0; left: 50%; width: 3px; height: 48px;
  background: #302f2f; border-radius: 2px; transform-origin: bottom center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}
.mp-gauge-needle::after {
  content: ''; position: absolute; bottom: -4px; left: -4px;
  width: 11px; height: 11px; background: #302f2f; border-radius: 50%;
}
.mp-gauge-val {
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  font-size: 20px; font-weight: 800; color: #302f2f;
}
.mp-gauge-val small { font-size: 12px; font-weight: 500; color: #94a3b8; }
.mp-gauge-labels {
  display: flex; justify-content: space-between; gap: 6px; font-size: 9px;
  color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
}
/* DOM Ring */
.mp-ring-wrap { position: relative; width: 90px; height: 90px; margin: 0 auto 6px; }
.mp-ring-svg { width: 90px; height: 90px; transform: rotate(-90deg); }
.mp-ring-bg { fill: none; stroke: #f1f5f9; stroke-width: 8; }
.mp-ring-fg {
  fill: none; stroke-width: 8; stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s;
}
.mp-ring-val {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 22px; font-weight: 800; color: #302f2f; line-height: 1;
}
.mp-ring-val small { display: block; font-size: 10px; font-weight: 600; color: #94a3b8; text-transform: uppercase; }
.mp-compare {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: #94a3b8; margin-top: 6px;
}
/* Offer Night Tip */
.mp-offer-tip {
  margin-top: 18px; padding: 22px 24px; text-align: left;
  background: linear-gradient(135deg, #FFFBEB 0%, #FFF8F0 50%, #ffffff 100%);
  border: 1.5px solid #F59E0B; border-radius: 16px;
  box-shadow: 0 4px 16px rgba(245,158,11,0.08);
}
.mp-offer-tip .mp-tip-badge {
  display: inline-block; font-size: 11px; font-weight: 800; color: #92400E;
  background: linear-gradient(135deg, #FDE68A, #FCD34D); padding: 4px 12px;
  border-radius: 20px; margin-bottom: 12px; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.mp-offer-tip .mp-tip-text {
  font-size: 15px; color: #374151; line-height: 1.6;
}
#vow-app .mp-offer-tip .mp-tip-cta,
.mp-offer-tip .mp-tip-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 12px 24px; background: linear-gradient(135deg, var(--brand-call, #b52e28), #822d25);
  color: #fff; border-radius: 12px; font-size: 16px; font-weight: 700;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(181,46,40,0.25);
}
#vow-app .mp-offer-tip .mp-tip-cta:hover,
.mp-offer-tip .mp-tip-cta:hover {
  color: #fff;
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(181,46,40,0.35);
}
@media (max-width: 600px) {
  .market-pulse-grid { grid-template-columns: 1fr; gap: 10px; }
  .mp-card { padding: 18px 16px 16px; display: flex; flex-direction: column; align-items: center; }
  /* A centred column shrinks each row to its content: the three labels touched
     ("SELLER'SBALANCEDBUYER'S", Tanya 2026-09-10) and the empty colour bar collapsed to 0px.
     Rows that must SPAN the card, as they do on desktop, opt out of the centring. */
  .mp-card > .mp-pos-bar, .mp-card > .mp-pos-labels, .mp-card > .mp-gauge-labels { align-self: stretch; }
  .mp-pos-val { font-size: 20px; }
  .mp-offer-tip { padding: 18px 16px; }
  .mp-offer-tip .mp-tip-text { font-size: 14px; }
}

/* ── MARKET TREND CHART ── */
.market-trend-section { margin-top: 20px; }
.market-trend-section canvas { width: 100% !important; max-height: 220px; }

/* ── AFFORDABILITY CARD ── */
.afford-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px;
}
.afford-card {
  background: linear-gradient(135deg, #f7f1e1 0%, #f9fafb 100%);
  border: 1px solid #e0e7f1; border-radius: 12px; padding: 16px; text-align: center;
}
.afford-val { font-size: 22px; font-weight: 700; color: var(--brand-primary, #b52e28); }
.afford-label { font-size: 13px; color: #6b7280; margin-top: 4px; }
.afford-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* ── NEIGHBOURHOOD RANKINGS ── */
.nhood-rank-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; margin-top: 10px; }
.nhood-rank-table th {
  background: var(--brand-primary, #b52e28); color: #fff; padding: 10px 12px; font-weight: 600;
  text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px;
}
.nhood-rank-table th:first-child { border-radius: 8px 0 0 0; }
.nhood-rank-table th:last-child { border-radius: 0 8px 0 0; }
.nhood-rank-table td {
  padding: 10px 12px; border-bottom: 1px solid #f0f0f0; color: #374151;
}
.nhood-rank-table tr:hover td { background: #f7f1e1; }
.nhood-rank-table .rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; font-weight: 700; font-size: 13px;
}
.rank-1 { background: #fef3c7; color: #92400e; }
.rank-2 { background: #f3f4f6; color: #4b5563; }
.rank-3 { background: #fef0e6; color: #9a3412; }
.rank-other { background: #f9fafb; color: #6b7280; }
.nhood-rank-table .trend-up { color: #16a34a; font-weight: 600; }
.nhood-rank-table .trend-down { color: #dc2626; font-weight: 600; }

/* ── MARKET TRENDS PANEL ── */
.market-panel {
  position: fixed; top: 52px; left: 0; bottom: 0; width: 420px;
  background: #fff; z-index: 900; box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  transform: translateX(-100%); transition: transform 0.3s ease;
  overflow-y: auto; padding: 0;
}
.market-panel.open { transform: translateX(0); }
.market-panel-header {
  background: linear-gradient(135deg, #302f2f, #334155);
  padding: 24px 20px; color: #fff;
}
.market-panel-header h2 { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.market-panel-header .mp-sub { font-size: 14px; color: rgba(255,255,255,0.7); }
.market-panel-header .mp-close {
  position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.15);
  border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%;
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.market-panel-header .mp-close:hover { background: rgba(255,255,255,0.25); }
.mp-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px;
}
.mp-stat-card {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 14px; text-align: center;
}
.mp-stat-card .mps-val { font-size: 22px; font-weight: 700; color: #302f2f; }
.mp-stat-card .mps-label { font-size: 12px; color: #6b7280; margin-top: 2px; }
.mp-stat-card .mps-change { font-size: 12px; font-weight: 600; margin-top: 4px; }
.mp-chart-wrap { padding: 0 20px 16px; }
.mp-chart-wrap h3 { font-size: 16px; font-weight: 600; color: #302f2f; margin: 16px 0 8px; }
.mp-chart-box { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; }
.mp-insight-card {
  margin: 0 20px 16px; padding: 14px; border-radius: 10px;
  background: linear-gradient(135deg, #f7f1e1, #f7f1e1); border: 1px solid #dce3f0;
}
.mp-insight-card .mpi-title { font-size: 13px; font-weight: 700; color: var(--brand-primary, #b52e28); margin-bottom: 4px; }
.mp-insight-card .mpi-text { font-size: 14px; color: #374151; line-height: 1.5; }
.market-panel-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3); z-index: 899;
  display: none; opacity: 0; transition: opacity 0.3s;
}
.market-panel-backdrop.open { display: block; opacity: 1; }

/* ── NEIGHBOURHOOD COMPARISON TOOL ── */
.nhood-compare-section { margin-top: 16px; }
.nhood-compare-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.nhood-compare-header h4 { font-size: 16px; font-weight: 700; color: #302f2f; margin: 0; }
.nhood-compare-pills {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;
}
.nhood-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.15s;
}
.nhood-pill.active { color: #fff; }
.nhood-pill .pill-x {
  font-size: 14px; margin-left: 2px; opacity: 0.7; cursor: pointer;
}
.nhood-pill .pill-x:hover { opacity: 1; }
.nhood-compare-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.nhood-col {
  border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden;
  background: #fff;
}
.nhood-col-header {
  padding: 12px 14px; font-weight: 700; font-size: 14px; color: #fff;
  text-align: center;
}
.nhood-col-body { padding: 12px 14px; }
.nhood-col-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid #f3f4f6;
}
.nhood-col-stat:last-child { border-bottom: none; }
.nhood-col-stat .ncs-label { font-size: 13px; color: #6b7280; }
.nhood-col-stat .ncs-val { font-size: 15px; font-weight: 700; color: #302f2f; }

.nhood-col-stat .ncs-best { color: #16a34a; }
.nhood-compare-chart { margin-top: 16px; }
.nhood-compare-chart canvas { width: 100% !important; max-height: 200px; }

/* ── AI SUMMARY TABS ── */
.det-summary-tabs { display: flex; gap: 0; margin-bottom: 10px; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.det-summary-tabs button {
  flex: 1; padding: 8px 12px; border: none; background: #f9fafb;
  font-size: 14px; font-weight: 600; color: #6b7280; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.det-summary-tabs button.active { background: var(--brand-primary, #b52e28); color: #fff; }
.det-summary-tabs button:first-child { border-right: 1px solid #e5e7eb; }
.det-summary-pane { display: none; }
.det-summary-pane.active { display: block; }
.det-summary-pane .ai-bullet { display: flex; gap: 8px; margin-bottom: 6px; font-size: 15px; line-height: 1.5; }
.det-summary-pane .ai-bullet::before { content: "\2022"; color: var(--brand-primary, #b52e28); font-weight: 700; flex-shrink: 0; font-size: 18px; }

/* ── FEATURE 1: YOUR AGENT CARD ── */
.agent-card {
  background: linear-gradient(135deg, #f7f1e1, #f0fdfa);
  border: 1.5px solid #ecdcd0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.agent-card .ac-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.agent-card .ac-photo {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(181,46,40,0.2);
}
.agent-card .ac-info { flex: 1; min-width: 0; }
.agent-card .ac-name { font-size: 17px; font-weight: 700; color: #302f2f; margin-bottom: 1px; }
.agent-card .ac-title { font-size: 14px; color: #6b7280; margin-bottom: 3px; }
.agent-card .ac-stars { font-size: 13px; color: #1E7E3E; font-weight: 600; }
.agent-card .ac-tagline {
  font-size: 15px; color: #374151; line-height: 1.5;
  margin-bottom: 14px; font-style: italic;
  border-left: 3px solid #d0645e; padding-left: 10px;
}
.agent-card .ac-btns { display: flex; gap: 8px; }
.agent-card .ac-btn {
  flex: 1; padding: 10px 12px; border: none; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; transition: all 0.15s;
}
#vow-app .agent-card .ac-btn-call {
  background: var(--brand-call, #b52e28); color: #fff;
}
#vow-app .agent-card .ac-btn-call:hover { background: #822d25; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(181,46,40,0.3); }
#vow-app .agent-card .ac-btn-email {
  background: var(--brand-primary, #b52e28); color: #fff;
}
.agent-card .ac-btn-email:hover { background: #b52e28; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(181,46,40,0.3); }

/* ── FEATURE 2: ADAM'S TAKE INSIGHT CARD ── */
.adams-take {
  background: linear-gradient(135deg, #f7f1e1, #f0fdfa);
  border-left: 4px solid var(--brand-primary, #b52e28);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.adams-take .at-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.adams-take .at-name { font-size: 14px; font-weight: 700; color: #302f2f; margin-bottom: 2px; }
.adams-take .at-label { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.adams-take .at-text { font-size: 15px; color: #374151; line-height: 1.5; }

/* ── FEATURE 3: WELCOME BANNER ── */
.det-welcome-banner {
  background: linear-gradient(135deg, #b52e28, #b7a076);
  padding: 10px 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,0.95);
  flex-wrap: wrap;
}
.det-welcome-banner .wb-agent {
  display: flex; align-items: center; gap: 7px; margin-left: auto;
}
.det-welcome-banner .wb-agent img {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.7);
}
.det-welcome-banner .wb-agent-name {
  font-weight: 700; color: #fff;
}
@media (max-width: 600px) {
  .det-welcome-banner { padding: 8px 12px; font-size: 13px; }
  .det-welcome-banner .wb-agent { margin-left: 0; }
}

/* ── FEATURE 4: CARD HOVER QUICK STATS (REMOVED — info is in card body) ── */
.vow-card .c-quick { display: none !important; }

/* ── FEATURE 3: NEIGHBOURHOOD VIBE ── */
.nbhd-vibe {
  background: linear-gradient(135deg, #f0fdf4, #f7f1e1);
  border-left: 4px solid var(--brand-call, #b52e28);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 15px; color: #374151; line-height: 1.6;
}
.nbhd-vibe .nv-emoji { font-size: 18px; margin-right: 6px; }

@keyframes badgeFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── COMMUTE CALCULATOR ── */
.commute-section { margin-top: 12px; }
.commute-section h4 { font-size: 16px; font-weight: 700; color: #302f2f; margin: 0 0 10px; }
.commute-input-row {
  display: flex; gap: 8px; margin-bottom: 10px; align-items: stretch;
}
.commute-input-row input {
  flex: 1; padding: 10px 14px; border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 15px; font-family: inherit; color: #302f2f; background: #fff;
  outline: none; transition: border-color 0.15s;
}
.commute-input-row input:focus { border-color: var(--brand-primary, #b52e28); box-shadow: 0 0 0 3px rgba(181,46,40,0.1); }
.commute-input-row input::placeholder { color: #9ca3af; }
.commute-modes {
  display: flex; gap: 4px; margin-bottom: 10px;
}
.commute-mode-btn {
  flex: 1; padding: 8px 6px; border: 1.5px solid #e5e7eb; border-radius: 10px;
  background: #fff; color: #374151; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: center; transition: all 0.15s; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.commute-mode-btn:hover { background: #f7f1e1; border-color: var(--brand-primary, #b52e28); }
.commute-mode-btn.active { background: var(--brand-primary, #b52e28); color: #fff; border-color: var(--brand-primary, #b52e28); }
.commute-result {
  display: none; padding: 14px 16px; background: linear-gradient(135deg, #f7f1e1, #f0fdf4);
  border-radius: 12px; border: 1px solid #ecdcd0;
  animation: badgeFadeIn 0.3s ease-out;
}
.commute-result.show { display: block; }
.commute-result .cr-time { font-size: 22px; font-weight: 800; color: #302f2f; margin-bottom: 2px; }
.commute-result .cr-dist { font-size: 14px; color: #6b7280; }
.commute-result .cr-summary { font-size: 13px; color: #6b7280; margin-top: 6px; }
.commute-clear {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px; padding: 4px 10px; border: none; background: none;
  color: #6b7280; font-size: 13px; cursor: pointer; font-family: inherit;
}
.commute-clear:hover { color: #dc2626; }
@media (max-width: 600px) {
  .commute-input-row { flex-direction: column; }
  .commute-modes { gap: 3px; }
  .commute-mode-btn { font-size: 13px; padding: 7px 4px; }
}

/* ── FLOATING SCHEDULE CTA ── */
.det-float-cta {
  position: fixed; bottom: 24px; right: 24px;
  padding: 12px 24px; background: #0d9488; color: #fff;
  border: none; border-radius: 28px; font-size: 16px; font-weight: 600;
  cursor: pointer; box-shadow: 0 4px 16px rgba(13,148,136,0.4);
  display: none; align-items: center; gap: 8px; z-index: 1050;
  transition: all 0.2s;
}
.det-float-cta:hover { background: #0f766e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,148,136,0.5); }
#vow-app .det-float-cta.visible { display: flex; }

/* Comp match indicators */
.comp-match { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.comp-match .cm-tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 10px; border-radius: 12px; font-size: 13px; font-weight: 500;
}
.comp-match .cm-tag.match { background: #dcfce7; color: #166534; }
.comp-match .cm-tag.diff { background: #fef3c7; color: #92400e; }
.comp-sub-tabs { display: flex; gap: 0; margin-bottom: 14px; border-bottom: 2px solid #e5e7eb; }
.comp-sub-tabs button {
  padding: 10px 18px; border: none; background: none; font-size: 15px; font-weight: 500;
  color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.comp-sub-tabs button.active { color: var(--brand-primary, #b52e28); border-bottom-color: var(--brand-primary, #b52e28); }

/* Price Position Bar */
.price-position-wrap { margin-bottom: 20px; }
.price-position-verdict { font-size: 16px; color: #374151; font-weight: 500; margin-bottom: 12px; line-height: 1.5; }
.price-position-verdict strong { color: var(--brand-primary, #b52e28); }
.price-bar-container { position: relative; height: 40px; margin: 16px 0 8px; }
.price-bar-track { position: absolute; top: 14px; left: 0; right: 0; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #dcfce7 0%, #dcfce7 35%, #fef3c7 50%, #fef9c4 65%, #fee2e2 100%); }
.price-bar-marker { position: absolute; top: 0; width: 3px; height: 40px; background: #1f2937; border-radius: 2px; z-index: 2; }
.price-bar-marker::after { content: attr(data-label); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: #1f2937; white-space: nowrap; }
.price-bar-comp { position: absolute; top: 10px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; z-index: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.price-bar-labels { display: flex; justify-content: space-between; font-size: 12px; color: #6b7280; margin-top: 2px; }
.price-bar-caption { text-align: center; font-size: 12px; color: #9ca3af; margin-top: 6px; font-style: italic; }

/* Enhanced Comp Card */
.comp-card-v2 {
  display: flex; gap: 14px; padding: 14px; background: #fff;
  border-radius: 10px; border: 1px solid #e5e7eb; cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.comp-card-v2:hover { border-color: #d0645e; box-shadow: 0 2px 8px rgba(208,100,94,0.15); }
.comp-card-v2 .cc-img {
  width: 100px; height: 75px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #f3f4f6;
}
.comp-card-v2 .cc-body { flex: 1; min-width: 0; }
.comp-card-v2 .cc-addr { font-weight: 600; font-size: 15px; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-card-v2 .cc-meta { font-size: 13px; color: #6b7280; margin-top: 2px; }
.comp-card-v2 .cc-insight { font-size: 13px; color: #374151; margin-top: 6px; line-height: 1.4; font-style: italic; }
.comp-card-v2 .cc-right { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.comp-card-v2 .cc-price { font-weight: 700; font-size: 17px; }
.comp-card-v2 .cc-adjusted { font-size: 12px; color: #6b7280; }
.comp-card-v2 .cc-pct { font-size: 13px; font-weight: 500; }

/* Similarity Score Ring */
.sim-ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.sim-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.sim-ring .sr-bg { fill: none; stroke: #e5e7eb; stroke-width: 4; }
.sim-ring .sr-fg { fill: none; stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 0.5s; }
.sim-ring .sr-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 12px; font-weight: 700; color: #374151; }

/* Comp summary header */
.comp-summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f7f1e1; border-radius: 8px; margin-bottom: 14px; border: 1px solid #ecdcd0; }
.comp-summary-count { font-size: 28px; font-weight: 700; color: var(--brand-primary, #b52e28); line-height: 1; }
.comp-summary-text { font-size: 14px; color: #374151; line-height: 1.4; }

/* ── IDX Adjustment Tables ── */
.cc-adj-table { border-top: 1px solid #f3f4f6; padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; background: #fafbfc; border-radius: 0 0 10px 10px; margin-top: -1px; }
.cc-adj-row { display: flex; justify-content: space-between; font-size: 12px; color: #6b7280; padding: 2px 0; }
.cc-adj-row .adj-value { font-weight: 600; }
.cc-adj-row .adj-value.pos { color: #1E7E3E; }
.cc-adj-row .adj-value.neg { color: #dc2626; }
.cc-adj-total { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #302f2f; padding: 6px 0 0; border-top: 1px solid #e5e7eb; margin-top: 3px; }
.cc-adj-cap { font-size: 11px; color: #92400e; background: #fef3c7; padding: 3px 8px; border-radius: 4px; display: inline-block; margin-top: 4px; }

/* ── IDX Estimate Card ── */
.idx-estimate-card {
  background: linear-gradient(135deg, #302f2f, #302f2f);
  border-radius: 14px; padding: 24px; text-align: center; margin-bottom: 14px;
  border: 1px solid rgba(181,46,40,0.3);
}
.idx-est-label { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.idx-est-value { font-size: 32px; font-weight: 800; color: #b7a076; letter-spacing: -0.5px; }
.idx-est-range { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.idx-est-basis { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 8px; }

/* ── Gauge rings in detail view ── */
.ac-gauge { position: relative; width: 68px; height: 68px; margin: 0 auto 6px; }
.ac-gauge svg { width: 68px; height: 68px; transform: rotate(-90deg); }
.ac-gauge .gauge-val { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 16px; font-weight: 800; color: #302f2f; }

/* Interactive Mortgage Calculator */
.calc-wrap { background: #f9fafb; border-radius: 12px; padding: 20px; }
.calc-result { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.calc-result .cr-amount { font-size: 32px; font-weight: 700; color: var(--brand-primary, #b52e28); transition: all 0.3s; }
.calc-result .cr-label { font-size: 16px; color: #6b7280; }
.calc-biweekly { font-size: 15px; color: #6b7280; margin-bottom: 16px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.calc-field { display: flex; flex-direction: column; gap: 4px; }
.calc-field label { font-size: 14px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.3px; }
.calc-field .cf-hint { font-size: 13px; color: #6b7280; font-style: italic; }
.calc-field input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px;
  background: #e5e7eb; outline: none; margin: 8px 0;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #d0645e; cursor: pointer; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.calc-field .cf-val { display: flex; align-items: center; gap: 6px; }
.calc-field .cf-val input[type="text"] {
  width: 110px; padding: 6px 10px; border: 1.5px solid #e5e7eb; border-radius: 6px;
  font-size: 16px; font-weight: 600; text-align: right; outline: none;
}
.calc-field .cf-val input:focus { border-color: #d0645e; }
.calc-amort-btns { display: flex; gap: 4px; }
.calc-amort-btns button {
  flex: 1; padding: 8px 0; border: 1.5px solid #e5e7eb; border-radius: 6px;
  font-size: 15px; font-weight: 500; background: #fff; color: #374151;
  cursor: pointer; transition: all 0.15s;
}
.calc-amort-btns button:hover { border-color: #d0645e; color: #d0645e; }
.calc-amort-btns button.active { background: #d0645e; color: #fff; border-color: #d0645e; }
.calc-details { border-top: 1px solid #e5e7eb; padding-top: 12px; margin-top: 4px; }
.calc-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.calc-row .cr-k { color: #6b7280; }
.calc-row .cr-v { font-weight: 600; color: #111827; }
.calc-reset { font-size: 14px; color: var(--brand-primary, #b52e28); cursor: pointer; border: none; background: none; padding: 0; margin-top: 8px; }
.calc-reset:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   USER ACCOUNT SYSTEM — Profile, Favourites, Notes, Saved Searches
   ══════════════════════════════════════════════════════════ */

/* ── ACCOUNT BUTTON (nav) ── */
.acct-wrap { position: relative; }
.acct-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 8px; background: rgba(255,255,255,0.1);
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.acct-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); }
.acct-btn .acct-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.25); display: flex;
  align-items: center; justify-content: center; font-size: 13px;
}
.acct-btn .acct-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── ACCOUNT DROPDOWN ── */
.acct-drop {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border-radius: 12px; width: 280px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15); border: 1px solid #e5e7eb;
  z-index: 300; overflow: hidden;
}
.acct-drop.open { display: block; }
.acct-drop-header {
  padding: 16px; background: linear-gradient(135deg, #f7f1e1, #f0fdfa);
  border-bottom: 1px solid #e5e7eb;
}
.acct-drop-header .adh-name { font-size: 16px; font-weight: 700; color: #111827; }
.acct-drop-header .adh-email { font-size: 14px; color: #6b7280; margin-top: 2px; }
.acct-drop-menu { padding: 6px 0; }
.acct-drop-menu a, .acct-drop-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 16px; border: none; background: none;
  font-size: 15px; color: #374151; cursor: pointer;
  text-decoration: none; text-align: left; transition: background 0.1s;
  font-family: inherit;
}
.acct-drop-menu a:hover, .acct-drop-menu button:hover { background: #f7f1e1; }
.acct-drop-menu .adm-icon { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.acct-drop-menu .adm-count {
  margin-left: auto; background: #d0645e; color: #fff;
  font-size: 12px; font-weight: 700; padding: 1px 7px;
  border-radius: 10px; min-width: 20px; text-align: center;
}
.acct-drop-sep { height: 1px; background: #e5e7eb; margin: 4px 0; }
.acct-drop-menu .adm-logout { color: #dc2626; }

/* ── MY ACCOUNT PANEL (slide-in from right) ── */
.my-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100vw;
  background: #fff; z-index: 1100; box-shadow: -8px 0 30px rgba(0,0,0,0.12);
  transform: translateX(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column;
}
.my-panel.open { transform: translateX(0); }
.my-panel-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.3);
  z-index: 1099; display: none; opacity: 0; transition: opacity 0.3s;
}
.my-panel-backdrop.open { display: block; opacity: 1; }

/* Panel header */
.my-panel-hdr {
  display: flex; align-items: center; padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb; flex-shrink: 0;
}
.my-panel-hdr h2 { font-size: 20px; font-weight: 700; color: #111827; margin: 0; flex: 1; }
.my-panel-hdr .mp-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: #f3f4f6; font-size: 18px; cursor: pointer; color: #6b7280;
  display: flex; align-items: center; justify-content: center;
}
.my-panel-hdr .mp-close:hover { background: #e5e7eb; color: #111827; }

/* Panel tabs */
.my-panel-tabs {
  display: flex; border-bottom: 2px solid #e5e7eb; flex-shrink: 0;
}
.my-panel-tabs button {
  flex: 1; padding: 12px 8px; border: none; background: none;
  font-size: 15px; font-weight: 600; color: #6b7280; cursor: pointer;
  border-bottom: 2.5px solid transparent; margin-bottom: -2px;
  transition: all 0.15s; font-family: inherit;
}
.my-panel-tabs button.active { color: var(--brand-primary, #b52e28); border-bottom-color: var(--brand-primary, #b52e28); }
.my-panel-tabs button:hover { color: #111827; }
@media (max-width: 600px) {
  .my-panel-tabs button { font-size: 13px; padding: 12px 4px; }
}

/* Panel body */
.my-panel-body { flex: 1; overflow-y: auto; padding: 0; }
.my-tab-pane { display: none; padding: 16px 20px; }
.my-tab-pane.active { display: block; }

.col-hist {
  display: block; padding: 12px 0; border-bottom: 1px solid #e5e7eb;
  text-decoration: none; color: inherit;
}
.col-hist:last-child { border-bottom: none; }
.col-hist-title { font-weight: 650; font-size: 15px; color: #302f2f; }
.col-hist-meta { font-size: 13px; color: #6b7280; margin-top: 2px; }

/* Empty state */
.my-empty {
  text-align: center; padding: 40px 20px; color: #6b7280;
}
.my-empty .me-icon { font-size: 40px; margin-bottom: 8px; opacity: 0.4; }
.my-empty h4 { font-size: 16px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.my-empty p { font-size: 14px; }

/* Favourite card in panel */
.my-fav-card {
  display: flex; gap: 12px; padding: 12px;
  border: 1px solid #e5e7eb; border-radius: 10px;
  margin-bottom: 8px; cursor: pointer; transition: all 0.15s;
  position: relative;
}
.my-fav-card:hover { border-color: #d0645e; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.my-fav-card .mfc-img {
  width: 90px; height: 68px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
  background: #f3f4f6;
}
.my-fav-card .mfc-body { flex: 1; min-width: 0; }
.my-fav-card .mfc-price { font-size: 17px; font-weight: 700; color: #111827; }
.my-fav-card .mfc-addr { font-size: 14px; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-fav-card .mfc-meta { font-size: 13px; color: #6b7280; margin-top: 2px; }
.my-fav-card .mfc-note-icon {
  position: absolute; top: 8px; right: 8px; font-size: 14px; color: #d0645e;
}
.my-fav-card .mfc-remove {
  position: absolute; bottom: 8px; right: 8px; font-size: 12px;
  color: #dc2626; border: none; background: none; cursor: pointer; padding: 2px 6px;
  border-radius: 4px; opacity: 0; transition: opacity 0.15s;
}
.my-fav-card:hover .mfc-remove { opacity: 1; }
.my-fav-card .mfc-remove:hover { background: #fef2f2; }

/* Saved search card in panel */
.my-search-card {
  padding: 14px; border: 1px solid #e5e7eb; border-radius: 10px;
  margin-bottom: 8px; position: relative;
}
.my-search-card .msc-label { font-size: 15px; font-weight: 600; color: #111827; margin-bottom: 4px; }
.my-search-card .msc-meta { font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.my-search-card .msc-notif {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.my-search-card .msc-notif-label { font-size: 13px; color: #6b7280; }
.my-search-card .msc-notif-toggle {
  display: flex; border: 1.5px solid #e5e7eb; border-radius: 6px; overflow: hidden;
}
.my-search-card .msc-notif-toggle button {
  padding: 4px 10px; border: none; font-size: 12px; font-weight: 600;
  background: #fff; color: #6b7280; cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.my-search-card .msc-notif-toggle button.active { background: #d0645e; color: #fff; }
.my-search-card .msc-actions { display: flex; gap: 6px; }
.my-search-card .msc-actions button {
  padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; border: 1.5px solid #e5e7eb;
  background: #fff; color: #374151; font-family: inherit;
}
.my-search-card .msc-actions button:hover { border-color: #d0645e; color: #d0645e; }
.my-search-card .msc-actions .msc-del { color: #dc2626; border-color: #fca5a5; }
.my-search-card .msc-actions .msc-del:hover { background: #fef2f2; }

/* Search card: custom name as title, filter summary as subtitle */
.my-search-card .msc-name {
  display: flex; align-items: center; gap: 6px; margin-bottom: 2px;
}
.my-search-card .msc-name-text {
  font-size: 16px; font-weight: 700; color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px;
}
.my-search-card .msc-rename-btn {
  background: none; border: none; cursor: pointer; padding: 2px 4px;
  font-size: 14px; color: #6b7280; border-radius: 4px; transition: all 0.15s;
  line-height: 1; flex-shrink: 0;
}
.my-search-card .msc-rename-btn:hover { color: var(--brand-primary, #b52e28); background: #f7f1e1; }
.my-search-card .msc-rename-input {
  font-size: 15px; font-weight: 600; color: #111827; border: 1.5px solid var(--brand-primary, #b52e28);
  border-radius: 6px; padding: 4px 8px; width: 100%; max-width: 280px;
  font-family: inherit; outline: none;
}
.my-search-card .msc-subtitle {
  font-size: 13px; color: #6b7280; margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Prominent Save Search button */
#saveSearchBtn {
  padding: 8px 16px !important; border: none !important; border-radius: 8px !important;
  font-size: 15px !important; font-weight: 600 !important;
  background: var(--brand-primary, #b52e28) !important; color: #fff !important;
  cursor: pointer; white-space: nowrap; display: flex !important;
  align-items: center; gap: 6px; transition: all 0.2s !important;
  box-shadow: 0 2px 6px rgba(181,46,40,0.25);
}
#saveSearchBtn:hover { background: #b52e28 !important; box-shadow: 0 3px 10px rgba(181,46,40,0.35); }
#saveSearchBtn.saved-state { background: var(--brand-call, #b52e28) !important; }
@keyframes saveGlow {
  0%, 100% { box-shadow: 0 2px 6px rgba(181,46,40,0.25); }
  50% { box-shadow: 0 2px 14px rgba(181,46,40,0.55); }
}
#saveSearchBtn.glow { animation: saveGlow 2s ease-in-out infinite; }

/* Save search name overlay */
.save-name-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.save-name-box {
  background: #fff; border-radius: 14px; padding: 24px 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2); max-width: 420px; width: 90%;
}
.save-name-box h3 {
  margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #111827;
}
.save-name-box .snb-sub {
  font-size: 13px; color: #6b7280; margin-bottom: 14px;
}
.save-name-box input {
  width: 100%; padding: 10px 12px; border: 1.5px solid #e5e7eb;
  border-radius: 8px; font-size: 15px; font-family: inherit;
  color: #111827; outline: none; transition: border-color 0.15s;
  box-sizing: border-box;
}
.save-name-box input:focus { border-color: var(--brand-primary, #b52e28); }
.save-name-box .snb-btns {
  display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end;
}
.save-name-box .snb-btns button {
  padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.save-name-box .snb-cancel {
  background: #fff; border: 1.5px solid #e5e7eb; color: #374151;
}
.save-name-box .snb-cancel:hover { border-color: #6b7280; }
.save-name-box .snb-save {
  background: var(--brand-primary, #b52e28); border: none; color: #fff;
}
.save-name-box .snb-save:hover { background: #b52e28; }

/* Save search banner (shows when 0 saved searches + listings loaded) */
.save-search-banner {
  padding: 6px 12px; background: #f8fafc;
  border-bottom: 1px solid #e2e8f0; display: flex; align-items: center;
  gap: 8px; font-size: 12px; color: #64748b;
}
.save-search-banner .ssb-icon { font-size: 14px; flex-shrink: 0; }
.save-search-banner .ssb-text { flex: 1; }
.save-search-banner .ssb-dismiss {
  background: none; border: none; color: #94a3b8; cursor: pointer;
  font-size: 16px; padding: 2px 4px; border-radius: 4px; line-height: 1;
}
.save-search-banner .ssb-dismiss:hover { color: #6b7280; }

/* Price drop area context banner */
.price-drop-context {
  padding: 10px 16px; background: linear-gradient(135deg, #f7f1e1, #f7f1e1);
  border-bottom: 1px solid #fed7aa; display: flex; align-items: center;
  gap: 10px; font-size: 14px; color: #9a3412;
}
.price-drop-context .pdc-icon { font-size: 16px; flex-shrink: 0; }
.price-drop-context .pdc-stat { font-weight: 700; }
.price-drop-context .pdc-detail { color: #822d25; font-weight: 600; }
.price-drop-context .pdc-dismiss {
  background: none; border: none; color: #822d25; cursor: pointer;
  font-size: 18px; padding: 2px 6px; border-radius: 4px; line-height: 1;
  margin-left: auto; flex-shrink: 0;
}
.price-drop-context .pdc-dismiss:hover { background: rgba(194,65,12,0.1); }

/* Share dropdown */
.share-dropdown {
  position: fixed; z-index: 10001; background: #fff; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18); padding: 6px 0; min-width: 200px;
  animation: shareIn 0.15s var(--ease-out);
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
}
@keyframes shareIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.share-dropdown .sd-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  font-size: 15px; color: #374151; cursor: pointer; border: none;
  background: none; width: 100%; text-align: left; font-family: inherit;
}
.share-dropdown .sd-item:hover { background: #f3f4f6; }
.share-dropdown .sd-item .sd-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.share-dropdown .sd-divider { height: 1px; background: #e5e7eb; margin: 4px 0; }

/* Note card in panel */
.my-note-card {
  padding: 14px; border: 1px solid #e5e7eb; border-radius: 10px;
  margin-bottom: 8px; cursor: pointer; transition: all 0.15s;
}
.my-note-card:hover { border-color: #d0645e; }
.my-note-card .mnc-addr { font-size: 15px; font-weight: 600; color: #111827; margin-bottom: 2px; }
.my-note-card .mnc-price { font-size: 14px; color: var(--brand-primary, #b52e28); font-weight: 600; }
.my-note-card .mnc-text {
  font-size: 14px; color: #374151; margin-top: 6px; padding: 8px;
  background: #f9fafb; border-radius: 6px; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
}
.my-note-card .mnc-date { font-size: 12px; color: #6b7280; margin-top: 4px; }

/* Note input in detail overlay */
.det-note-wrap {
  margin-top: 12px; padding: 12px; background: #f9fafb;
  border: 1px solid #e5e7eb; border-radius: 8px;
}
.det-note-wrap label {
  font-size: 14px; font-weight: 600; color: #374151; display: block; margin-bottom: 6px;
}
.det-note-wrap textarea {
  width: 100%; height: 70px; padding: 10px; border: 1.5px solid #e5e7eb;
  border-radius: 6px; font-size: 15px; color: #374151; resize: vertical;
  outline: none; font-family: inherit; line-height: 1.5;
}
.det-note-wrap textarea:focus { border-color: #d0645e; }
.det-note-wrap .dn-save {
  margin-top: 6px; padding: 6px 16px; background: #d0645e; color: #fff;
  border: none; border-radius: 6px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.15s; font-family: inherit;
}
.det-note-wrap .dn-save:hover { background: #b52e28; }
.det-note-wrap .dn-saved {
  display: inline-block; margin-left: 8px; font-size: 13px;
  color: #16a34a; font-weight: 600; opacity: 0; transition: opacity 0.3s;
}
.det-note-wrap .dn-saved.show { opacity: 1; }

/* Card note indicator (on image — kept for backward compat but hidden) */
.vow-card .c-note-badge { display: none; }

/* ── CARD ACTION BAR ── */
.vow-card .c-actions {
  display: flex; gap: 6px; padding-top: 8px; margin-top: 6px;
  border-top: 1px solid #f3f4f6;
}
.vow-card .c-actions button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 0; border: 1.5px solid #e5e7eb; border-radius: 7px;
  background: #fff; font-size: 13px; font-weight: 600; color: #6b7280;
  cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.vow-card .c-actions button:hover { border-color: #d0645e; color: var(--brand-primary, #b52e28); background: #f7f1e1; }
.vow-card .c-actions .ca-fav.liked { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }
.vow-card .c-actions .ca-fav.liked:hover { background: #fee2e2; }
.vow-card .c-actions .ca-note.has-note { color: var(--brand-primary, #b52e28); border-color: #d0645e; background: #f7f1e1; }
.vow-card .c-actions .ca-icon { font-size: 15px; }

/* Detail overlay favourite + note buttons */
.det-tabs .det-actions .da-fav.liked { color: #dc2626; border-color: #dc2626; background: #fef2f2; }

/* ── TOAST NOTIFICATION ── */
.vow-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #302f2f; color: #fff; padding: 12px 20px;
  border-radius: 10px; font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 2000; display: flex; align-items: center; gap: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease; opacity: 0;
  pointer-events: none;
}
.vow-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.vow-toast .toast-icon { font-size: 18px; }
.vow-toast .toast-action {
  margin-left: 8px; padding: 3px 10px; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 6px;
  color: #d0645e; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.15s; text-decoration: none;
}
.vow-toast .toast-action:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ── LIST PICKER DROPDOWN (on card fav button) ── */
.list-picker {
  display: none; position: absolute; top: 44px; right: 0;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px; width: 240px;
  box-shadow: 0 12px 40px rgba(181,46,40,0.15), 0 2px 8px rgba(0,0,0,0.06);
  border: 1.5px solid #e2e8f0; z-index: 10; overflow: hidden;
  backdrop-filter: blur(10px);
  animation: lp-appear 0.18s ease-out;
}
@keyframes lp-appear {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.list-picker.open { display: block; }
.list-picker .lp-title {
  padding: 14px 16px 8px; font-size: 11px; font-weight: 800;
  color: var(--brand-primary, #b52e28); text-transform: uppercase; letter-spacing: 1px;
}
.list-picker .lp-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 16px; border: none; background: none;
  font-size: 14px; color: #302f2f; cursor: pointer;
  text-align: left; transition: all 0.15s; font-family: inherit;
  font-weight: 500;
}
.list-picker .lp-item:hover { background: linear-gradient(90deg, #f7f1e1, #f8fafc); }
.list-picker .lp-item .lp-check {
  width: 20px; height: 20px; border: 2px solid #cbd5e1; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: transparent; flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.list-picker .lp-item .lp-check.checked {
  background: linear-gradient(135deg, var(--brand-primary, #b52e28), #d0645e); border-color: var(--brand-primary, #b52e28); color: #fff;
  box-shadow: 0 2px 8px rgba(181,46,40,0.3);
  transform: scale(1.05);
}
.list-picker .lp-item .lp-name { flex: 1; }
.list-picker .lp-item .lp-count {
  font-size: 12px; color: #94a3b8; font-weight: 600;
  background: #f1f5f9; padding: 2px 8px; border-radius: 10px;
}
.list-picker .lp-sep {
  height: 1px; margin: 4px 16px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}
.list-picker .lp-new {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 12px 16px; border: none; background: none;
  font-size: 14px; color: var(--brand-primary, #b52e28); font-weight: 700; cursor: pointer;
  text-align: left; transition: all 0.15s; font-family: inherit;
}
.list-picker .lp-new:hover { background: linear-gradient(90deg, #f7f1e1, #f8fafc); color: #b52e28; }

/* ── HEART PULSE ANIMATION ── */
@keyframes heart-pulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.c-fav.pulse, .da-fav.pulse { animation: heart-pulse 0.4s ease; }

/* ── YOUTUBE EMBED IN DETAIL ── */
.det-video-section { margin-top: 20px; }
.det-video-section h3 {
  font-size: 19px; font-weight: 700; color: #111827;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid #d0645e; display: inline-block;
}
.det-video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 10px; background: #f3f4f6;
}
.det-video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: none; border-radius: 10px;
}
.det-video-intro {
  font-size: 15px; color: #374151; margin-bottom: 12px; line-height: 1.5;
}

@media (max-width: 600px) {
  .my-panel { width: 100vw; }
  .acct-btn .acct-name { display: none; }
  .acct-drop { width: 260px; right: -8px; }
}

/* ═══════ Lead Capture Modal ═══════ */
.lc-overlay {
  position: fixed; inset: 0; background: rgba(48,47,47,0.55); backdrop-filter: blur(6px);
  z-index: 1300; display: flex; align-items: center; justify-content: center;
  animation: lcFadeIn 0.2s ease;
}
.lc-overlay.hide { display: none; }
@keyframes lcFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lcSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.lc-box {
  background: #fff; border-radius: 20px; padding: 36px 32px 28px;
  max-width: 420px; width: 92%; box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  position: relative; animation: lcSlideUp 0.3s ease;
}
.lc-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: #f3f4f6; color: #6b7280;
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lc-close:hover { background: #e5e7eb; color: #374151; }
.lc-icon {
  font-size: 36px; text-align: center; margin-bottom: 8px; line-height: 1;
}
.lc-title {
  font-size: 22px; font-weight: 800; color: #111827; text-align: center;
  margin: 0 0 6px; line-height: 1.3;
}
.lc-sub {
  font-size: 15px; color: #636363; text-align: center; margin: 0 0 20px; line-height: 1.5;
}
#lcForm input[type="text"], #lcForm input[type="email"], #lcForm input[type="tel"],
#lcVowForm input[type="text"], #lcVowForm input[type="email"] {
  width: 100%; padding: 14px 16px; border: 1.5px solid #e5e7eb;
  border-radius: 12px; font-size: 16px; margin-bottom: 10px; outline: none;
  transition: border-color 0.15s; box-sizing: border-box;
}
#lcForm input:focus, #lcVowForm input[type="text"]:focus, #lcVowForm input[type="email"]:focus { border-color: #d0645e; box-shadow: 0 0 0 3px rgba(208,100,94,0.12); }
#lcForm input::placeholder, #lcVowForm input::placeholder { color: #9ca3af; }
.lc-privacy {
  font-size: 13px; color: #636363; text-align: center; margin-bottom: 14px; line-height: 1.5;
}
.lc-privacy a { color: var(--brand-primary, #b52e28); text-decoration: none; }
.lc-privacy a:hover { text-decoration: underline; }
/* SMS opt-in consent — benefit-first label + fine-print disclosure (Twilio TFV / CASL).
   The <label> (.lc-sms-optin) wraps ONLY the checkbox + hook; the fine print (.lc-sms-fine,
   which contains the Terms/Privacy links) is a SIBLING so clicking a link never toggles the box. */
.lc-sms-consent {
  margin: 14px 0 10px; padding: 12px 14px;
  background: #f7fafc; border: 1.5px solid #e5e7eb; border-radius: 12px;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.lc-sms-consent:hover { border-color: var(--brand-primary, #b52e28); background: #f7f1e1; }
.lc-sms-consent:focus-within { border-color: var(--brand-primary, #b52e28); box-shadow: 0 0 0 3px rgba(181,46,40,0.15); }
.lc-sms-optin { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.lc-sms-optin input[type="checkbox"] {
  width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto;
  accent-color: var(--brand-primary, #b52e28); cursor: pointer;
}
.lc-sms-hook { font-size: 14px; line-height: 1.35; color: #302f2f; }
.lc-sms-hook strong { color: #302f2f; }
.lc-sms-fine { margin: 8px 0 0; font-size: 11px; line-height: 1.45; color: #4b5563; }
.lc-sms-fine a { color: var(--brand-primary, #b52e28); text-decoration: none; }
.lc-sms-fine a:hover { text-decoration: underline; }
.lc-error {
  color: #dc2626; background: #fef2f2; border: 1px solid #fca5a5;
  padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 10px;
}
.lc-go {
  width: 100%; padding: 14px; background: var(--brand-call, #b52e28); color: #fff;
  border: none; border-radius: 12px; font-size: 17px; font-weight: 700;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(181,46,40,0.25);
}
.lc-go:hover { background: #822d25; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(181,46,40,0.3); }
.lc-go:active { transform: translateY(0); }
.lc-go:disabled { background: #9ca3af; cursor: not-allowed; transform: none; box-shadow: none; }
.lc-trust {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 16px; font-size: 12px; color: #636363;
}
.lc-trust span { display: flex; align-items: center; gap: 4px; }

/* Detail view: Request Showing + Price Alert buttons */
.det-cta-bar {
  display: flex; gap: 8px; margin: 12px 0 0; flex-wrap: wrap;
}
.det-cta-bar button {
  flex: 1; min-width: 140px; padding: 12px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.det-cta-bar button:hover { transform: translateY(-1px); }
.det-cta-bar .dc-showing {
  background: var(--brand-call, #b52e28); color: #fff; border: 2px solid var(--brand-call, #b52e28);
  box-shadow: 0 2px 8px rgba(181,46,40,0.22);
}
.det-cta-bar .dc-showing:hover { background: #822d25; border-color: #822d25; }
.det-cta-bar .dc-alert {
  background: #fff; color: var(--brand-primary, #b52e28); border: 2px solid var(--brand-primary, #b52e28);
  box-shadow: 0 2px 8px rgba(181,46,40,0.12);
}
.det-cta-bar .dc-alert:hover { background: #f7f1e1; }

@media (max-width: 600px) {
  .lc-box { padding: 28px 20px 24px; border-radius: 16px; }
  .lc-title { font-size: 20px; }
  .det-cta-bar { flex-direction: column; }
  .det-cta-bar button { min-width: 0; }
}

/* ══════════════════════════════════════════════════════════
   WAR ROOM: IDX Lead Conversion — 10 Fixes
   ══════════════════════════════════════════════════════════ */

/* ── FIX 1: Soft Email Capture Hooks ── */
/* Soft-capture banner (collapsed by default, expands on click) */
.idx-soft-banner {
  padding: 6px 12px; background: #f7f1e1;
  border-bottom: 1px solid #e2e8f0; display: flex; align-items: center;
  gap: 8px; font-size: 13px; color: #374151;
  animation: softBannerIn 0.3s var(--ease-out);
}
@keyframes softBannerIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.idx-soft-banner .sb-icon { font-size: 14px; flex-shrink: 0; }
.idx-soft-banner .sb-text { flex: 1; line-height: 1.3; }
.idx-soft-banner .sb-text strong { color: var(--brand-primary, #b52e28); }
.idx-soft-banner .sb-expand {
  display: none; width: 100%;
}
.idx-soft-banner.expanded .sb-expand { display: block; margin-top: 6px; }
.idx-soft-banner.expanded { flex-wrap: wrap; padding: 10px 12px; }
.idx-soft-banner .sb-input-wrap { display: flex; gap: 6px; }
.idx-soft-banner .sb-input {
  padding: 6px 10px; border: 1.5px solid #ecdcd0; border-radius: 8px;
  font-size: 13px; flex: 1; outline: none; font-family: inherit;
}
.idx-soft-banner .sb-input:focus { border-color: var(--brand-primary, #b52e28); }
.idx-soft-banner .sb-go {
  padding: 6px 12px; background: var(--brand-primary, #b52e28); color: #fff; border: none;
  border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background 0.15s var(--ease-out);
}
.idx-soft-banner .sb-go:hover { background: #b52e28; }
.idx-soft-banner .sb-dismiss {
  background: none; border: none; color: #94a3b8; cursor: pointer;
  font-size: 16px; padding: 2px 4px; border-radius: 4px; line-height: 1;
  flex-shrink: 0;
}
.idx-soft-banner .sb-dismiss:hover { color: #6b7280; }
.idx-soft-banner .sb-privacy { font-size: 11px; color: #94a3b8; margin-top: 4px; }

/* POS practice capture (draft — idx-pos-capture.js) */
.pos-capture-banner { border-left: 3px solid #b45309; }
.pos-capture-consent {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 8px;
  font-size: 13px; line-height: 1.4; color: #374151; cursor: pointer;
}
.pos-capture-consent input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; }
.pos-empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.pos-empty-actions .pos-empty-btn {
  min-height: 44px; padding: 8px 14px; border-radius: 16px;
  border: 1.5px solid #d0645e; background: #fff; color: var(--brand-primary, #b52e28);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.pos-empty-line { margin: 8px 0 0; font-size: 14px; color: #374151; }
@media (max-width: 600px) {
  .mob-chips .pos-toggle { min-height: 44px; padding: 8px 14px; font-size: 14px; flex-shrink: 0; }
}
.pos-capture-sub { display: block; font-size: 12px; color: #64748b; font-weight: 400; margin-top: 4px; }
.pos-capture-banner .pos-capture-expand {
  flex: 1; text-align: left; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer; line-height: 1.3; min-height: 44px;
}
.pos-capture-banner .pos-capture-expand:focus-visible {
  outline: 2px solid var(--brand-primary, #b52e28); outline-offset: 2px; border-radius: 4px;
}
.pos-capture-save-secondary {
  display: block; margin-top: 8px; background: none; border: none; padding: 0;
  color: var(--brand-primary, #b52e28); font-size: 12px; font-weight: 600; cursor: pointer; text-align: left;
}
.pos-capture-save-secondary:hover { text-decoration: underline; }
.pos-capture-go-auth { flex: 1; max-width: 100%; white-space: normal; text-align: center; }

/* Price drop likely badge on cards */
.c-price-drop-likely {
  position: absolute; top: 10px; right: 48px;
  background: rgba(181,46,40,0.9); color: #fff;
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700; z-index: 5;
  cursor: pointer; transition: background 0.15s;
  letter-spacing: 0.3px;
}
.c-price-drop-likely:hover { background: rgba(181,46,40,1); }

/* Research banner (after viewing 5+ listings) */
.idx-research-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #302f2f; color: #fff; padding: 16px 24px;
  border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 1050; display: flex; align-items: center; gap: 12px;
  max-width: 520px; width: 92%;
  animation: researchSlideUp 0.4s ease-out;
}
@keyframes researchSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.idx-research-banner .rb-text { flex: 1; font-size: 14px; line-height: 1.4; }
.idx-research-banner .rb-text strong { color: #b7a076; }
.idx-research-banner .rb-input-wrap { display: flex; gap: 6px; }
.idx-research-banner .rb-input {
  padding: 8px 12px; border: 1.5px solid rgba(255,255,255,0.2); border-radius: 8px;
  background: rgba(255,255,255,0.1); color: #fff; font-size: 14px;
  width: 160px; outline: none; font-family: inherit;
}
.idx-research-banner .rb-input::placeholder { color: rgba(255,255,255,0.5); }
.idx-research-banner .rb-input:focus { border-color: #b7a076; background: rgba(255,255,255,0.15); }
.idx-research-banner .rb-go {
  padding: 8px 14px; background: var(--brand-call, #b52e28); color: #fff; border: none;
  border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: background 0.15s;
}
.idx-research-banner .rb-go:hover { background: #822d25; }
.idx-research-banner .rb-dismiss {
  position: absolute; top: 6px; right: 8px; background: none; border: none;
  color: rgba(255,255,255,0.5); cursor: pointer; font-size: 16px; padding: 2px;
}
.idx-research-banner .rb-dismiss:hover { color: #fff; }
.idx-research-banner .rb-privacy { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 4px; }
@media (max-width: 600px) {
  .idx-research-banner { flex-direction: column; padding: 14px 16px; bottom: 80px; }
  .idx-research-banner .rb-input-wrap { width: 100%; }
  .idx-research-banner .rb-input { flex: 1; width: auto; }
}

/* ── FIX 2: Schedule Viewing FAB — mobile-safe ── */
@media (max-width: 768px) {
  .det-float-cta {
    bottom: 0 !important; right: 0 !important; left: 0 !important;
    border-radius: 0 !important; width: 100% !important;
    justify-content: center !important;
    padding: 14px 24px !important;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15) !important;
    font-size: 15px !important;
  }
}
/* Add padding at bottom of detail overlay on mobile so content isn't hidden behind FAB */
@media (max-width: 768px) {
  .vow-overlay .det-sidebar { padding-bottom: 70px; }
}

/* ── FIX 3: Social Proof & Urgency Signals ── */
.c-dom-badge {
  font-size: 12px; color: #6b7280; font-weight: 500;
  display: inline-flex; align-items: center; gap: 3px;
}
.c-dom-badge.hot { color: #822d25; font-weight: 600; }
.det-trust-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #374151; margin-top: 12px;
  padding: 8px 12px; background: #f9fafb; border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.det-trust-badge .dtb-stars { color: #f59e0b; font-size: 14px; letter-spacing: 1px; }

/* ── FIX 5: Mobile Sign In Button ── */
.mobile-sign-in {
  display: none; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff; font-size: 18px; cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.15s;
}
.mobile-sign-in:hover { background: rgba(255,255,255,0.25); }
@media (max-width: 768px) {
  .mobile-sign-in { display: flex; }
}

/* ── FIX 6: Market Trends Shimmer/Skeleton ── */
.shimmer-bar {
  height: 14px; border-radius: 4px; margin-bottom: 8px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
.shimmer-bar:nth-child(1) { width: 80%; }
.shimmer-bar:nth-child(2) { width: 65%; }
.shimmer-bar:nth-child(3) { width: 50%; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── FIX 7: Exit-Intent Modal (Desktop Only) ── */
.exit-intent-modal {
  position: fixed; inset: 0; background: rgba(48,47,47,0.55); backdrop-filter: blur(6px);
  z-index: 1300; display: flex; align-items: center; justify-content: center;
  animation: lcFadeIn 0.2s ease;
}
.exit-intent-modal .eim-box {
  background: #fff; border-radius: 20px; padding: 36px 32px 28px;
  max-width: 440px; width: 92%; box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  position: relative; animation: lcSlideUp 0.3s ease; text-align: center;
}
.exit-intent-modal .eim-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: #f3f4f6; color: #6b7280;
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.exit-intent-modal .eim-close:hover { background: #e5e7eb; color: #374151; }
.exit-intent-modal .eim-icon { font-size: 36px; margin-bottom: 8px; }
.exit-intent-modal .eim-title {
  font-size: 22px; font-weight: 800; color: #111827; margin: 0 0 6px; line-height: 1.3;
}
.exit-intent-modal .eim-sub {
  font-size: 15px; color: #636363; margin: 0 0 20px; line-height: 1.5;
}
.exit-intent-modal .eim-input {
  width: 100%; padding: 14px 16px; border: 1.5px solid #e5e7eb;
  border-radius: 12px; font-size: 16px; margin-bottom: 10px; outline: none;
  box-sizing: border-box; transition: border-color 0.15s;
}
.exit-intent-modal .eim-input:focus { border-color: #d0645e; box-shadow: 0 0 0 3px rgba(208,100,94,0.12); }
.exit-intent-modal .eim-go {
  width: 100%; padding: 14px; background: var(--brand-call, #b52e28); color: #fff;
  border: none; border-radius: 12px; font-size: 17px; font-weight: 700;
  cursor: pointer; transition: background 0.15s; box-shadow: 0 2px 8px rgba(181,46,40,0.25);
}
.exit-intent-modal .eim-go:hover { background: #822d25; }
.exit-intent-modal .eim-privacy {
  font-size: 12px; color: #64748b; margin-top: 12px; line-height: 1.5;
}

/* ── the agent's Picks Section ── */
.adams-picks-section {
  background: linear-gradient(135deg, #f7f1e1 0%, #f8fafc 100%);
  border: 1px solid #ecdcd0;
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 16px 0;
}
.ap-header { margin-bottom: 16px; }
.ap-title-row { display: flex; align-items: center; gap: 8px; }
.ap-star { color: #f59e0b; font-size: 20px; }
.ap-title { font-size: 18px; font-weight: 700; color: #302f2f; margin: 0; }
.ap-count {
  background: var(--brand-primary, #b52e28); color: #fff; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px; margin-left: auto;
}
.ap-subtitle { font-size: 13px; color: #64748b; margin: 4px 0 0; }
.ap-cards {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.ap-cards::-webkit-scrollbar { height: 4px; }
.ap-cards::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.ap-card {
  flex: 0 0 200px; background: #fff; border-radius: 10px;
  overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  scroll-snap-align: start; transition: transform 0.2s, box-shadow 0.2s;
}
.ap-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.ap-card-img { position: relative; height: 130px; overflow: hidden; background: #f3f4f6; }
.ap-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ap-no-img {
  height: 100%; display: flex; align-items: center; justify-content: center;
  color: #9ca3af; font-size: 13px;
}
.ap-badge {
  position: absolute; bottom: 6px; left: 6px;
  background: rgba(22, 163, 74, 0.92); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
}
.ap-card-body { padding: 10px 12px; }
.ap-price { font-size: 16px; font-weight: 700; color: #302f2f; }
.ap-drop { font-size: 12px; color: #b52e28; margin-top: 2px; }
.ap-addr { font-size: 12px; color: #64748b; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Locked / blurred state */
.ap-locked .ap-card-img img { filter: blur(10px); }
.ap-locked .ap-badge { filter: blur(4px); }
.ap-blur { filter: blur(6px); user-select: none; }
.ap-gate { text-align: center; padding: 12px 0 4px; }
.ap-unlock-btn {
  background: var(--brand-primary, #b52e28); color: #fff; border: none; padding: 12px 32px;
  border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.ap-unlock-btn:hover { background: #b52e28; }
.ap-gate-sub { font-size: 12px; color: #64748b; margin-top: 8px; }
.ap-disclaimer {
  font-size: 11px; color: #9ca3af; margin-top: 12px; line-height: 1.4;
  border-top: 1px solid #e2e8f0; padding-top: 10px;
}
@media (max-width: 600px) {
  .adams-picks-section { padding: 14px 12px; margin: 0 0 12px; }
  .ap-card { flex: 0 0 170px; }
  .ap-card-img { height: 110px; }
  .ap-title { font-size: 16px; }
}

/* ── FIX 8: DOM + Price/sqft on listing cards ── */
.c-extra-specs {
  display: flex; gap: 10px; font-size: 12px; color: #64748b; margin-top: 4px;
  align-items: center;
}
.c-extra-specs .ces-item {
  display: inline-flex; align-items: center; gap: 3px;
}

/* ── FIX 9: Price Check Tab Discovery ── */
.det-tabs .pc-new-badge {
  display: inline-block; font-size: 9px; font-weight: 800;
  background: var(--brand-primary, #b52e28); color: #fff; padding: 1px 5px;
  border-radius: 3px; vertical-align: super; margin-left: 3px;
  letter-spacing: 0.5px; animation: pcPulse 2s ease-in-out infinite;
}
@keyframes pcPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(181,46,40,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(181,46,40,0); }
}

/* ── FIX 10: Trust Signal Near Contact Form ── */
.det-trust-testimonial {
  margin-top: 12px; padding: 14px 16px;
  background: linear-gradient(135deg, #f7f1e1, #f9fafb);
  border: 1px solid #ecdcd0; border-radius: 10px;
}
/* GRID-STACK, not absolute positioning. Every slide occupies the same grid cell, so the
   track auto-sizes to the TALLEST review at whatever width, zoom or font is in play, and
   that height does not change as slides rotate (no layout shift). This replaces an earlier
   `min-height: 118px` + `overflow: hidden` approach, which was wrong twice: 118px was
   measured at 375px and 1440px and would have been overrun at ~320px (iPhone SE), under
   iOS text scaling, or with a wider fallback font -- and the clip then TRUNCATED a real
   person's verbatim review mid-sentence, which is a poor failure mode for a change whose
   whole purpose is removing invented testimonials. No magic number here to go stale.
   `visibility: hidden` (not opacity alone) is load-bearing: it keeps the inactive reviews
   out of the accessibility tree and out of find-in-page. */
.det-trust-testimonial .dtt-track {
  display: grid;
}
.det-trust-testimonial .dtt-slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease;
}
.det-trust-testimonial .dtt-slide.is-active {
  opacity: 1; visibility: visible;
}
.det-trust-testimonial:focus-visible {
  outline: 2px solid var(--brand-primary, #b52e28); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .det-trust-testimonial .dtt-slide { transition: none; }
}
.det-trust-testimonial .dtt-quote {
  font-size: 14px; color: #374151; line-height: 1.5;
  font-style: italic; margin-bottom: 6px;
}
.det-trust-testimonial .dtt-author {
  font-size: 12px; color: #6b7280; font-weight: 600;
}
.det-trust-testimonial .dtt-stars {
  color: #f59e0b; font-size: 13px; letter-spacing: 1px; margin-bottom: 6px;
}
.det-trust-testimonial .dtt-rating {
  display: flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: 12px; color: #6b7280;
}
.det-trust-testimonial .dtt-rating strong { color: #302f2f; font-size: 14px; }

/* ═════════════════════════════════════════════════════════════════════════
   B1 + B2 — Low-confidence lead-gen card, "Ask the agent" modal, 3-step loading
   ═════════════════════════════════════════════════════════════════════════ */

/* B2 — 3-step loading card */
.idx-loading-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f7f1e1 100%);
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 24px;
}
.idx-load-step {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
  font-size: 15px; color: #94a3b8; transition: color 0.3s;
}
.idx-load-step .icon {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.3s;
}
.idx-load-step.done { color: #475569; }
.idx-load-step.done .icon { border-color: #10b981; background: #10b981; color: white; }
.idx-load-step.done .icon::after { content: '\2713'; font-size: 14px; font-weight: 700; }
.idx-load-step.active { color: #302f2f; font-weight: 600; }
.idx-load-step.active .icon {
  border-color: #b52e28; border-top-color: transparent;
  animation: idxLoadSpin 0.8s linear infinite;
}
@keyframes idxLoadSpin { to { transform: rotate(360deg); } }
.idx-pc-progress-label {
  margin-top: 12px; font-size: 15px; font-weight: 700; color: #302f2f;
}
.idx-pc-activity {
  margin-top: 12px; font-size: 15px; font-weight: 700; color: #462725;
}
.comp-card-v2.idx-pc-wait-focus {
  border-color: #b52e28;
  animation: idxWaitPulse 1.4s ease-in-out infinite;
}
@keyframes idxWaitPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(181,46,40, .28); }
  50% { box-shadow: 0 0 0 7px rgba(181,46,40, .06); }
}
.idx-load-bar-live { position: relative; overflow: hidden; }
.idx-load-bar-live::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  animation: idxLoadShine 1.25s ease-in-out infinite;
}
@keyframes idxLoadShine {
  0% { transform: translateX(-140%); }
  100% { transform: translateX(280%); }
}

/* B1 — Lead-gen card */
.idx-leadgen-card {
  background: linear-gradient(135deg, #302f2f 0%, #302f2f 50%, #302f2f 100%);
  color: #fff; border-radius: 14px; padding: 28px;
  text-align: center; position: relative; overflow: hidden; margin-bottom: 16px;
}
.idx-leadgen-card::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(181,46,40,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.idx-leadgen-card::after {
  content: ''; position: absolute; bottom: -30%; left: -15%;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(183,160,118,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.idx-lg-badge {
  color: #b7a076; font-size: 11px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  margin-bottom: 12px; position: relative;
}
.idx-lg-headline {
  font-size: 24px; font-weight: 700; line-height: 1.25;
  margin-bottom: 14px; position: relative;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.idx-lg-body {
  font-size: 15px; color: #cbd5e1; max-width: 480px; margin: 0 auto 22px;
  font-weight: 300; position: relative; line-height: 1.55;
}
.idx-lg-body strong { color: #fff; font-weight: 600; }
.idx-lg-cta {
  background: linear-gradient(135deg, #b52e28, #b7a076); color: #302f2f;
  padding: 14px 32px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; font-family: inherit; display: inline-block;
  position: relative; box-shadow: 0 4px 16px rgba(181,46,40,0.35);
  transition: transform 0.15s;
}
.idx-lg-cta:hover { transform: translateY(-1px); }
.idx-lg-cta:focus { outline: 3px solid #b7a076; outline-offset: 2px; }
.idx-pc-split { display: block; }
@media (min-width: 840px) {
  .idx-pc-split {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 16px; align-items: start;
  }
  .idx-pc-offer { position: sticky; top: 12px; }
}
.idx-pc-offer {
  margin-top: 18px; padding: 22px 20px 20px; border-radius: 14px; text-align: center;
  background: linear-gradient(160deg, #302f2f 0%, #302f2f 58%, #302f2f 100%);
  color: #fff; box-shadow: 0 10px 28px rgba(48,47,47, 0.18);
}
.idx-pc-offer-kicker {
  color: #b7a076; font-size: 11px; font-weight: 700; letter-spacing: 1.3px;
  text-transform: uppercase; margin-bottom: 8px;
}
.idx-pc-offer-title {
  font-size: 22px; font-weight: 700; line-height: 1.25; margin-bottom: 10px;
}
.idx-pc-offer-body {
  font-size: 15px; line-height: 1.5; color: #e2e8f0; max-width: 460px;
  margin: 0 auto 16px;
}
.idx-pc-offer .idx-pc-email-cta {
  width: 100%; max-width: 420px; font-size: 16px; padding: 16px 22px;
}
.idx-pc-offer .idx-pc-email-cta:disabled { cursor: default; opacity: 0.92; transform: none; }
.idx-pc-offer .idx-pc-email-note {
  margin: 12px 0 0; min-height: 0; font-size: 14px; line-height: 1.45; color: #cbd5e1;
}
.idx-pc-offer .idx-pc-email-note:empty { display: none; }
.idx-lg-meta {
  font-size: 12px; color: #64748b; margin-top: 14px; position: relative;
}
.idx-lg-comp-summary {
  background: #f8fafc; border-left: 3px solid #b52e28;
  padding: 12px 16px; margin: 16px 0 12px;
  font-size: 14px; color: #475569; border-radius: 0 6px 6px 0;
}
.idx-lg-comp-summary strong { color: #302f2f; }

/* B1 — "Ask the agent" PVR modal */
.ipm-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(48,47,47,0.6); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 10000;
  opacity: 0; pointer-events: none; transition: opacity 0.18s;
}
.ipm-overlay.show { opacity: 1; pointer-events: auto; }
.ipm-box {
  max-width: 460px; width: 100%; background: #fff; border-radius: 14px;
  padding: 28px; position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  max-height: calc(100vh - 40px); overflow-y: auto;
  transform: translateY(8px); transition: transform 0.2s;
}
.ipm-overlay.show .ipm-box { transform: translateY(0); }
.ipm-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none; font-size: 22px; color: #94a3b8;
  cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 6px;
}
.ipm-close:hover { color: #302f2f; background: #f1f5f9; }
.ipm-title { font-size: 19px; font-weight: 700; color: #302f2f; margin-bottom: 6px; }
.ipm-sub { font-size: 14px; color: #64748b; margin-bottom: 20px; line-height: 1.5; }
.ipm-listing-context {
  background: #f8fafc; border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: #475569; margin-bottom: 18px; border: 1px solid #e2e8f0;
}
.ipm-listing-context strong { color: #302f2f; }
.ipm-form .row { display: flex; gap: 10px; margin-bottom: 12px; }
.ipm-form .row > div { flex: 1; }
.ipm-form label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 4px; }
.ipm-form input {
  width: 100%; padding: 10px 12px; font-size: 14px;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-family: inherit; transition: border-color 0.15s;
}
.ipm-form input:focus {
  outline: none; border-color: #b52e28;
  box-shadow: 0 0 0 3px rgba(181,46,40,0.12);
}
.ipm-consent {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; background: #f8fafc; border-radius: 8px;
  margin: 14px 0; font-size: 12px; color: #475569; line-height: 1.5;
}
.ipm-consent input[type=checkbox] {
  margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: #b52e28;
}
.ipm-submit {
  width: 100%;
  background: linear-gradient(135deg, #b52e28, #b7a076); color: #302f2f;
  padding: 13px 20px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 16px rgba(181,46,40,0.3);
  transition: transform 0.15s, opacity 0.15s;
}
.ipm-submit:hover:not(:disabled) { transform: translateY(-1px); }
.ipm-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.ipm-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 10px 14px; border-radius: 8px; font-size: 13px;
  margin-bottom: 12px; display: none;
}
.ipm-error.show { display: block; }
.ipm-success {
  text-align: center; padding: 24px 8px;
}
.ipm-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; margin: 0 auto 16px;
}
.ipm-success-title { font-size: 18px; font-weight: 700; color: #302f2f; margin-bottom: 8px; }
.ipm-success-body { font-size: 14px; color: #64748b; line-height: 1.55; }
.ipm-fallback {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px; color: #64748b; text-align: center;
}
.ipm-fallback a { color: #b52e28; font-weight: 600; text-decoration: none; }

/* B1 + B2 — Mobile */
@media (max-width: 480px) {
  .idx-leadgen-card { padding: 22px 18px; }
  .idx-lg-headline { font-size: 19px; }
  .idx-lg-body { font-size: 14px; }
  .idx-lg-cta { padding: 14px 24px; font-size: 15px; width: 100%; }
  .idx-pc-offer { padding: 18px 16px 16px; }
  .idx-pc-offer-title { font-size: 20px; }
  .idx-pc-offer .idx-pc-email-cta { max-width: none; font-size: 16px; padding: 16px 18px; }
  .ipm-box { padding: 22px 18px; }
  .ipm-form .row { flex-direction: column; gap: 12px; }
  .idx-load-step { font-size: 14px; }
  .idx-load-step .icon { width: 20px; height: 20px; }
}

/* ═══ Community Statistics — detail page (A5, 2026-07-25) ═══════════════════
   The original .det-community-* rules were deleted with the hardcoded table in Wave 1 (81c4cc1),
   so these are written fresh rather than restored. Deliberately plain: these are figures, not a
   sales pitch, and the scope line under each grid is part of the number, not decoration. */
.det-community .dc-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0 6px;
}
.det-community .dc-grid-now{grid-template-columns:1fr;max-width:220px}
.det-community .dc-card{
  background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:12px 10px;text-align:center;
}
.det-community .dc-val{font-size:18px;font-weight:700;color:#302f2f;line-height:1.2}
.det-community .dc-label{font-size:12px;color:#6b7280;margin-top:4px;line-height:1.35}
/* The scope line states city + class + WINDOW. It sits with the grid it describes because the sold
   cards and the "as of now" card cover different periods and must not share one caption. */
.det-community .dc-scope{font-size:11px;color:#6b7280;margin:0 0 10px}
.det-community .dc-src{font-size:11px;color:#9ca3af;margin-top:8px;line-height:1.5}
@media (max-width:600px){
  .det-community .dc-grid{grid-template-columns:1fr 1fr;gap:8px}
  .det-community .dc-val{font-size:16px}
}
