/* ══════════════════════════════════════════════════════════
   VOW Property Search — Vision Real Estate
   HouseSigma-inspired rebuild — March 2026
   ══════════════════════════════════════════════════════════ */

/* ── BRAND FONT: Metrisch ── */
@font-face { font-family: 'Metrisch'; src: url('../brand-assets/fonts/Metrisch-Book.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Metrisch'; src: url('../brand-assets/fonts/Metrisch-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Metrisch'; src: url('../brand-assets/fonts/Metrisch-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Metrisch'; src: url('../brand-assets/fonts/Metrisch-ExtraBold.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: #1e293b; 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 #669CF2; }

/* ── EASING TOKENS ── */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ── */
/* Global font — ensures Metrisch everywhere, even outside #vow-app */
body { font-family: 'Metrisch', -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: 'Metrisch', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  color: #1e293b; 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; }
/* Price heat map */
.heat-legend { background: rgba(255,255,255,0.95); padding: 6px 12px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 6px; font-family: 'Metrisch',-apple-system,sans-serif; }
.heat-legend .hl-min { color: #4ade80; font-size: 11px; font-weight: 600; }
.heat-legend .hl-max { color: #ef4444; font-size: 11px; font-weight: 600; }
.heat-legend .hl-bar { width: 80px; height: 8px; border-radius: 4px; background: linear-gradient(90deg,#4ade80,#a3e635,#facc15,#f97316,#ef4444); }
.heat-toggle .heat-btn { font-size: 16px; line-height: 26px; text-align: center; width: 26px; height: 26px; display: block; text-decoration: none !important; background: #fff; }
.heat-toggle.heat-active .heat-btn { background: #fee2e2; }
#vow-app a { color: #3B6DBF; 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: #0f172a;
  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(102,156,242,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: #669CF2; color: #fff; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.vow-nav .search-wrap .s-btn:hover { background: #5580D4; }

/* 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-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-cta {
  border: none; padding: 6px 16px; border-radius: 7px;
  font-weight: 600; color: #fff; background: #34A853;
  transition: background 0.2s var(--ease-out);
}
.vow-nav .nav-links .nav-cta:hover { background: #2d9249; }

/* ── 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: #f0f4ff; color: #669CF2; }
.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: #669CF2; margin-left: auto; background: #f0f4ff; 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: #669CF2; color: #669CF2; }
.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: #669CF2; 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: #669CF2; 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: #669CF2; }
.vow-fdrop .apply-btn {
  padding: 8px 20px; background: #669CF2; color: #fff; border: none;
  border-radius: 7px; font-size: 16px; font-weight: 600; cursor: pointer;
  margin-left: auto;
}
.vow-fdrop .apply-btn:hover { background: #5580D4; }

/* ── 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: #669CF2; color: #669CF2; }
.vow-fdrop .fg-btns button.active { background: #669CF2; color: #fff; border-color: #669CF2; }
/* 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;
}

/* ── 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: #669CF2; }
.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: #3B6DBF; }

/* 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: #669CF2; box-shadow: 0 0 0 2px rgba(37,99,235,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(37,99,235,0.9); color: #fff; }
.c-badge.b-sold { background: rgba(220,38,38,0.9); color: #fff; }
.c-badge.b-new { background: rgba(59,130,246,0.9); color: #fff; }
.c-badge.b-drop { background: rgba(234,88,12,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: #ea580c; 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: #669CF2; color: #669CF2; }
.vow-chips .chip.active { background: #669CF2; color: #fff; border-color: #669CF2; }
.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: #669CF2; color: #669CF2; }
.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: #669CF2; 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: #F97316; 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(249,115,22,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: #669CF2; box-shadow: 0 2px 12px rgba(37,99,235,0.5);
  transform: scale(1.2); z-index: 999 !important;
}
/* Single property pin (price label) */
.price-pin {
  background: #F97316; 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: #669CF2; 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: #3B6DBF; border-bottom-color: #3B6DBF; }
.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: #0f172a;
}
.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, #1e293b 25%, #334155 50%, #1e293b 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(37,99,235,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: #1e293b;
  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 #669CF2; 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: #669CF2; }
.det-cta-box textarea { height: 70px; resize: vertical; }
.det-cta-box .cta-btn {
  width: 100%; padding: 12px; background: #34A853; 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: #2d9249; }
.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(15,15,30,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: #669CF2; }
.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: #34A853; 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: #2d9249; }
.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: #669CF2; color: #669CF2; background: #f0f4ff; }
.reg-steps .step.done { border-color: #34A853; color: #fff; background: #34A853; }
.reg-steps .step-line { width: 40px; height: 2px; background: #e5e7eb; }
.reg-steps .step-line.done { background: #34A853; }
/* 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: #669CF2; 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: #669CF2; }
.watch-opt.selected { border-color: #669CF2; background: #f0f4ff; }
.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(249,115,22,0.25) !important;
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background: #F97316 !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(249,115,22,0.4) !important;
}
.marker-cluster-medium { background: rgba(249,115,22,0.3) !important; }
.marker-cluster-medium div { width: 42px !important; height: 42px !important; font-size: 15px !important; }
.marker-cluster-large { background: rgba(249,115,22,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 priority ones (Home Value + Price Drops) inline */
  .vow-nav .nav-links { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
  .vow-nav .nav-links a:not(.nav-home-value):not(.nav-price-drops) { display: none; }
  .vow-nav .nav-links .acct-wrap { display: none; }
  .vow-nav .nav-links .nav-home-value,
  .vow-nav .nav-links .nav-price-drops {
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 6px;
    white-space: nowrap;
    background: rgba(255,255,255,0.08);
  }
  .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: hide "Real Estate" text */
  .vow-nav .brand-text span { display: none; }
  .vow-nav .brand-text { font-size: 15px; }
  .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; }
  /* 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: #3B6DBF; color: #fff; border-color: #3B6DBF; }
/* 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: #f0f4ff; }
.mab-drop-opt.active { color: #3B6DBF; 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: #1e293b; 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; }

  /* Adam'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; }

  /* Community stats grid */
  .det-community-grid { grid-template-columns: 1fr !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(59,109,191,0.1); border-color: #cbd5e1;
  transform: translateY(-2px);
}
.mp-label {
  font-size: 11px; font-weight: 800; color: #3B6DBF; 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, #f97316, #dc2626);
}
.mp-pos-marker {
  position: absolute; top: -5px; width: 20px; height: 20px;
  background: #fff; border: 3px solid #1e293b; 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; font-size: 10px;
  color: #94a3b8; font-weight: 600; margin-top: 4px;
}
.mp-pos-val {
  font-size: 22px; font-weight: 800; color: #1e293b; 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, #f97316 60deg, #16a34a 120deg, #3B6DBF 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: #1e293b; 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: #1e293b; border-radius: 50%;
}
.mp-gauge-val {
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  font-size: 20px; font-weight: 800; color: #1e293b;
}
.mp-gauge-val small { font-size: 12px; font-weight: 500; color: #94a3b8; }
.mp-gauge-labels {
  display: flex; justify-content: space-between; 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: #1e293b; 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, #34A853, #2d9249);
  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(52,168,83,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(52,168,83,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; }
  .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, #f0f4ff 0%, #f9fafb 100%);
  border: 1px solid #e0e7f1; border-radius: 12px; padding: 16px; text-align: center;
}
.afford-val { font-size: 22px; font-weight: 700; color: #3B6DBF; }
.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: #3B6DBF; 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: #f0f4ff; }
.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, #1e293b, #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: #1e293b; }
.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: #1e293b; 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, #f0f4ff, #f8f9ff); border: 1px solid #dce3f0;
}
.mp-insight-card .mpi-title { font-size: 13px; font-weight: 700; color: #3B6DBF; 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: #1e293b; 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: #1e293b; }
.nhood-col-stat .ncs-best { color: #16a34a; }
.nhood-compare-chart { margin-top: 16px; }
.nhood-compare-chart canvas { width: 100% !important; max-height: 200px; }

/* ── COMMUNITY STATS ── */
.det-community-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px;
}
.det-community-stat {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 12px; text-align: center;
}
.det-community-stat .cs-val { font-size: 18px; font-weight: 700; color: #1e293b; }
.det-community-stat .cs-label { font-size: 13px; color: #6b7280; margin-top: 2px; }
.det-community-stat .cs-yoy { font-size: 13px; font-weight: 600; margin-top: 4px; }
.cs-yoy.up { color: #16a34a; }
.cs-yoy.down { color: #dc2626; }
@media (max-width: 600px) {
  .det-community-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 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: #3B6DBF; 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: #3B6DBF; font-weight: 700; flex-shrink: 0; font-size: 18px; }

/* ── FEATURE 1: YOUR AGENT CARD ── */
.agent-card {
  background: linear-gradient(135deg, #f0f7ff, #f0fdfa);
  border: 1.5px solid #dbeafe;
  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(59,109,191,0.2);
}
.agent-card .ac-info { flex: 1; min-width: 0; }
.agent-card .ac-name { font-size: 17px; font-weight: 700; color: #1e293b; 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 #669CF2; 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: #34A853; color: #fff;
}
#vow-app .agent-card .ac-btn-call:hover { background: #2d9249; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(52,168,83,0.3); }
#vow-app .agent-card .ac-btn-email {
  background: #3B6DBF; color: #fff;
}
.agent-card .ac-btn-email:hover { background: #2d5699; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(59,109,191,0.3); }

/* ── FEATURE 2: ADAM'S TAKE INSIGHT CARD ── */
.adams-take {
  background: linear-gradient(135deg, #f0f7ff, #f0fdfa);
  border-left: 4px solid #3B6DBF;
  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: #1e293b; 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, #4A7FD4, #40D4EE);
  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, #f0f7ff);
  border-left: 4px solid #34A853;
  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; }

/* ── NEIGHBOURHOOD SCORE BADGES ── */
.nbhd-scores {
  display: flex; gap: 8px; margin: 8px 0 4px; flex-wrap: wrap;
}
.nbhd-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 600;
  animation: badgeFadeIn 0.5s ease-out both;
}
.nbhd-badge:nth-child(2) { animation-delay: 0.1s; }
.nbhd-badge:nth-child(3) { animation-delay: 0.2s; }
.nbhd-badge .nb-icon { font-size: 16px; }
.nbhd-badge .nb-count { font-size: 12px; font-weight: 500; opacity: 0.8; }
.nbhd-badge.score-high { background: rgba(52,168,83,0.12); color: #166534; }
.nbhd-badge.score-mid { background: rgba(245,158,11,0.12); color: #92400e; }
.nbhd-badge.score-low { background: rgba(107,114,128,0.1); color: #6b7280; }
.nbhd-badge.score-loading { background: #f3f4f6; color: #9ca3af; }
@keyframes badgeFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  .nbhd-scores { flex-direction: column; gap: 6px; }
  .nbhd-badge { font-size: 13px; padding: 5px 12px; }
}

/* ── COMMUTE CALCULATOR ── */
.commute-section { margin-top: 12px; }
.commute-section h4 { font-size: 16px; font-weight: 700; color: #1e293b; 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: #1e293b; background: #fff;
  outline: none; transition: border-color 0.15s;
}
.commute-input-row input:focus { border-color: #3B6DBF; box-shadow: 0 0 0 3px rgba(59,109,191,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: #f0f7ff; border-color: #3B6DBF; }
.commute-mode-btn.active { background: #3B6DBF; color: #fff; border-color: #3B6DBF; }
.commute-result {
  display: none; padding: 14px 16px; background: linear-gradient(135deg, #f0f7ff, #f0fdf4);
  border-radius: 12px; border: 1px solid #dbeafe;
  animation: badgeFadeIn 0.3s ease-out;
}
.commute-result.show { display: block; }
.commute-result .cr-time { font-size: 22px; font-weight: 800; color: #1e293b; 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: #3B6DBF; border-bottom-color: #3B6DBF; }

/* 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: #3B6DBF; }
.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: #669CF2; box-shadow: 0 2px 8px rgba(102,156,242,0.15); }
.comp-card-v2 .cc-img {
  width: 100px; height: 75px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
}
.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: #f0f4ff; border-radius: 8px; margin-bottom: 14px; border: 1px solid #dbeafe; }
.comp-summary-count { font-size: 28px; font-weight: 700; color: #3B6DBF; 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: #1e293b; 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, #1e293b, #0f172a);
  border-radius: 14px; padding: 24px; text-align: center; margin-bottom: 14px;
  border: 1px solid rgba(59,109,191,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: #40D4EE; 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: #1e293b; }

/* 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: #3B6DBF; 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: #669CF2; 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: #669CF2; }
.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: #669CF2; color: #669CF2; }
.calc-amort-btns button.active { background: #669CF2; color: #fff; border-color: #669CF2; }
.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: #3B6DBF; 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, #f0f4ff, #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: #f0f4ff; }
.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: #669CF2; 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: #3B6DBF; border-bottom-color: #3B6DBF; }
.my-panel-tabs button:hover { color: #111827; }

/* 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; }

/* 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: #669CF2; 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: #669CF2;
}
.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: #669CF2; 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: #669CF2; color: #669CF2; }
.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: #3B6DBF; background: #f0f4ff; }
.my-search-card .msc-rename-input {
  font-size: 15px; font-weight: 600; color: #111827; border: 1.5px solid #3B6DBF;
  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: #3B6DBF !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(59,109,191,0.25);
}
#saveSearchBtn:hover { background: #2E5AA0 !important; box-shadow: 0 3px 10px rgba(59,109,191,0.35); }
#saveSearchBtn.saved-state { background: #34A853 !important; }
@keyframes saveGlow {
  0%, 100% { box-shadow: 0 2px 6px rgba(59,109,191,0.25); }
  50% { box-shadow: 0 2px 14px rgba(59,109,191,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: #3B6DBF; }
.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: #3B6DBF; border: none; color: #fff;
}
.save-name-box .snb-save:hover { background: #2E5AA0; }

/* 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, #fff7ed, #ffedd5);
  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: #c2410c; font-weight: 600; }
.price-drop-context .pdc-dismiss {
  background: none; border: none; color: #c2410c; 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: 'Metrisch', -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: #669CF2; }
.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: #3B6DBF; 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: #669CF2; }
.det-note-wrap .dn-save {
  margin-top: 6px; padding: 6px 16px; background: #669CF2; 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: #5580D4; }
.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: #669CF2; color: #3B6DBF; background: #f0f4ff; }
.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: #3B6DBF; border-color: #93b5f0; background: #f0f4ff; }
.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: #1e293b; 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: #93c5fd; 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(59,109,191,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: #3B6DBF; 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: #1e293b; cursor: pointer;
  text-align: left; transition: all 0.15s; font-family: inherit;
  font-weight: 500;
}
.list-picker .lp-item:hover { background: linear-gradient(90deg, #f0f4ff, #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, #3B6DBF, #669CF2); border-color: #3B6DBF; color: #fff;
  box-shadow: 0 2px 8px rgba(59,109,191,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: #3B6DBF; font-weight: 700; cursor: pointer;
  text-align: left; transition: all 0.15s; font-family: inherit;
}
.list-picker .lp-new:hover { background: linear-gradient(90deg, #f0f4ff, #f8fafc); color: #2c5aa0; }

/* ── 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 #669CF2; 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(15,15,30,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"] {
  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 { border-color: #669CF2; box-shadow: 0 0 0 3px rgba(102,156,242,0.12); }
#lcForm 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: #3B6DBF; text-decoration: none; }
.lc-privacy 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: #34A853; 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(52,168,83,0.25);
}
.lc-go:hover { background: #2d9249; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(52,168,83,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: #34A853; color: #fff; border: 2px solid #34A853;
  box-shadow: 0 2px 8px rgba(52,168,83,0.22);
}
.det-cta-bar .dc-showing:hover { background: #2d9249; border-color: #2d9249; }
.det-cta-bar .dc-alert {
  background: #fff; color: #3B6DBF; border: 2px solid #3B6DBF;
  box-shadow: 0 2px 8px rgba(59,109,191,0.12);
}
.det-cta-bar .dc-alert:hover { background: #f0f4ff; }

@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: #f0f4ff;
  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: #3B6DBF; }
.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 #d1ddf5; border-radius: 8px;
  font-size: 13px; flex: 1; outline: none; font-family: inherit;
}
.idx-soft-banner .sb-input:focus { border-color: #3B6DBF; }
.idx-soft-banner .sb-go {
  padding: 6px 12px; background: #3B6DBF; 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: #2E5AA0; }
.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; }

/* Price drop likely badge on cards */
.c-price-drop-likely {
  position: absolute; top: 10px; right: 48px;
  background: rgba(234,88,12,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(234,88,12,1); }

/* Research banner (after viewing 5+ listings) */
.idx-research-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1e293b; 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: #40D4EE; }
.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: #40D4EE; background: rgba(255,255,255,0.15); }
.idx-research-banner .rb-go {
  padding: 8px 14px; background: #34A853; 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: #2d9249; }
.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: #c2410c; font-weight: 600; }
.det-views-signal {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: #6b7280; margin-top: 4px;
}
.det-views-signal .dvs-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #34A853;
  animation: viewsPulse 2s ease-in-out infinite;
}
@keyframes viewsPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.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(15,15,30,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: #669CF2; box-shadow: 0 0 0 3px rgba(102,156,242,0.12); }
.exit-intent-modal .eim-go {
  width: 100%; padding: 14px; background: #34A853; 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(52,168,83,0.25);
}
.exit-intent-modal .eim-go:hover { background: #2d9249; }
.exit-intent-modal .eim-privacy {
  font-size: 12px; color: #64748b; margin-top: 12px; line-height: 1.5;
}

/* ── Adam's Picks Section ── */
.adams-picks-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
  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: #1e293b; margin: 0; }
.ap-count {
  background: #3B6DBF; 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: #1e293b; }
.ap-drop { font-size: 12px; color: #ea580c; 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: #3B6DBF; 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: #2d5a9e; }
.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: #3B6DBF; 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(59,109,191,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(59,109,191,0); }
}

/* ── FIX 10: Trust Signal Near Contact Form ── */
.det-trust-testimonial {
  margin-top: 12px; padding: 14px 16px;
  background: linear-gradient(135deg, #f0f7ff, #f9fafb);
  border: 1px solid #dbeafe; border-radius: 10px;
}
.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: #1e293b; font-size: 14px; }

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

/* B2 — 3-step loading card */
.idx-loading-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 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: #1e293b; font-weight: 600; }
.idx-load-step.active .icon {
  border-color: #4A7FD4; border-top-color: transparent;
  animation: idxLoadSpin 0.8s linear infinite;
}
@keyframes idxLoadSpin { to { transform: rotate(360deg); } }

/* B1 — Lead-gen card */
.idx-leadgen-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1a365d 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(74,127,212,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(64,212,238,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.idx-lg-badge {
  color: #40D4EE; 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, #4A7FD4, #40D4EE); color: #0a0e1a;
  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(74,127,212,0.35);
  transition: transform 0.15s;
}
.idx-lg-cta:hover { transform: translateY(-1px); }
.idx-lg-cta:focus { outline: 3px solid #40D4EE; outline-offset: 2px; }
.idx-lg-meta {
  font-size: 12px; color: #64748b; margin-top: 14px; position: relative;
}
.idx-lg-comp-summary {
  background: #f8fafc; border-left: 3px solid #4A7FD4;
  padding: 12px 16px; margin: 16px 0 12px;
  font-size: 14px; color: #475569; border-radius: 0 6px 6px 0;
}
.idx-lg-comp-summary strong { color: #1e293b; }

/* B1 — "Ask Adam" PVR modal */
.ipm-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,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: #1e293b; background: #f1f5f9; }
.ipm-title { font-size: 19px; font-weight: 700; color: #1e293b; 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: #1e293b; }
.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: #4A7FD4;
  box-shadow: 0 0 0 3px rgba(74,127,212,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: #4A7FD4;
}
.ipm-submit {
  width: 100%;
  background: linear-gradient(135deg, #4A7FD4, #40D4EE); color: #0a0e1a;
  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(74,127,212,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: #1e293b; 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: #4A7FD4; 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%; }
  .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; }
}
