/* v=444 — Listing-detail elite-depth styles.
   Scoped to the v444 sections so we don't disturb v279/v65/m-* legacy DOM. */

/* ─── Feature 1 — Comparables grid ─────────────────────────────────── */
.v279-comps-sub { color:#64748b; font-size:13px; margin:4px 0 14px; }
.v444-comps-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:14px;
}
.v444-comp {
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  overflow:hidden;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display:flex;
  flex-direction:column;
}
.v444-comp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(11,37,69,.32);
  border-color:#cbd5e1;
}
.v444-comp-img {
  position:relative;
  aspect-ratio: 4 / 3;
  background:#f1f5f9;
  overflow:hidden;
}
.v444-comp-img img {
  width:100%; height:100%; object-fit:cover; display:block;
}
.v444-comp-sold {
  position:absolute; top:10px; left:10px;
  background:#dc2626; color:#fff;
  font-size:10.5px; font-weight:700; letter-spacing:.06em;
  padding:4px 9px; border-radius:6px;
  text-transform:uppercase;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}
.v444-comp-body {
  padding:12px 14px 14px;
  display:flex; flex-direction:column; gap:4px;
}
.v444-comp-price {
  font-size:18px; font-weight:700; color:#0c1f38; letter-spacing:-.01em;
}
.v444-comp-price-lock {
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px; font-weight:600; color:#0c1f38;
  background:#f1f5f9; padding:6px 10px; border-radius:8px;
  width:fit-content;
}
.v444-comp-addr { font-size:13.5px; font-weight:600; color:#1e293b; line-height:1.35; }
.v444-comp-meta { font-size:12.5px; color:#475569; }
.v444-comp-foot { font-size:11.5px; color:#94a3b8; margin-top:4px; }
.v444-comp-gated .v444-comp-body { gap:6px; }
.v444-comp-empty {
  grid-column: 1 / -1;
  padding:22px;
  text-align:center;
  color:#64748b;
  font-size:13.5px;
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  border-radius:12px;
}

/* ─── Feature 2 — Price history chart ──────────────────────────────── */
.v444-ph-card {
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:18px 18px 14px;
}
.v444-ph-hd {
  display:flex; align-items:baseline; justify-content:space-between;
  gap:12px; margin-bottom:10px;
}
.v444-ph-now { font-size:22px; font-weight:700; color:#0c1f38; letter-spacing:-.015em; }
.v444-ph-delta {
  font-size:13px; font-weight:600;
  padding:4px 10px; border-radius:999px;
}
.v444-ph-delta-down { background:#dcfce7; color:#15803d; }
.v444-ph-delta-up   { background:#fee2e2; color:#b91c1c; }
.v444-ph-svg { width:100%; height:120px; display:block; }
.v444-ph-rows {
  display:flex; justify-content:space-between;
  margin-top:8px;
  padding-top:12px;
  border-top:1px dashed #e2e8f0;
  font-size:13px;
}
.v444-ph-row { display:flex; flex-direction:column; gap:2px; }
.v444-ph-row:last-child { text-align:right; align-items:flex-end; }
.v444-ph-row-when { color:#64748b; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; }
.v444-ph-row-val { color:#1e293b; font-weight:600; }
.v444-ph-row-val-now { color:#EA0649; }

.v444-ph-empty {
  display:flex; flex-direction:column; gap:4px;
  padding:14px 16px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:12px;
}
.v444-ph-empty-line { display:flex; align-items:center; gap:10px; font-size:14px; color:#0c1f38; }
.v444-ph-empty-dot { width:8px; height:8px; border-radius:50%; background:#EA0649; box-shadow:0 0 0 4px rgba(158,13,54,.18); }
.v444-ph-empty-when { margin-left:auto; color:#64748b; font-size:12px; }
.v444-ph-empty-sub { font-size:12.5px; color:#64748b; padding-left:18px; }

/* ─── Feature 3 — Walk / Transit / Bike + amenities ────────────────── */
.v444-score-good { color:#EA0649 !important; }
.v444-score-mid  { color:#d97706 !important; }
.v444-score-low  { color:#64748b !important; }
.v444-bar-good { background:linear-gradient(90deg,#EA0649,#c0224f) !important; }
.v444-bar-mid  { background:linear-gradient(90deg,#d97706,#fbbf24) !important; }
.v444-bar-low  { background:linear-gradient(90deg,#94a3b8,#cbd5e1) !important; }

#v65-nearby-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
}
.v444-nb-tile {
  display:flex; gap:12px; align-items:flex-start;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:12px 14px;
  transition: border-color .15s ease;
}
.v444-nb-tile:hover { border-color:#cbd5e1; }
.v444-nb-tile-empty { background:#f8fafc; opacity:.7; }
.v444-nb-tile-ico {
  width:34px; height:34px; border-radius:9px;
  background:linear-gradient(135deg,#0c1f38,#1e3a5f);
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:16px; flex-shrink:0;
}
.v444-nb-tile-body { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.v444-nb-tile-lbl { font-size:10.5px; font-weight:700; color:#64748b; text-transform:uppercase; letter-spacing:.06em; }
.v444-nb-tile-name { font-size:13.5px; font-weight:600; color:#0c1f38; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.v444-nb-tile-meta { font-size:11.5px; color:#64748b; }

.v444-nb-empty {
  padding:18px 16px;
  text-align:center;
  color:#64748b;
  font-size:13px;
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  border-radius:12px;
}

.v444-nb-pin {
  background:#fff !important;
  border:1px solid #cbd5e1 !important;
  border-radius:999px !important;
  padding:3px 7px !important;
  font-size:12px !important;
  line-height:1 !important;
  box-shadow:0 2px 6px rgba(11,37,69,.16) !important;
  transform: translate(-50%, -50%);
  z-index:2;
}

/* ─── Feature 4 — Mortgage breakdown bar ───────────────────────────── */
.v444-mort-bar {
  margin:14px 0 6px;
  padding:14px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
}
.v444-mort-bar-track {
  display:flex;
  height:14px;
  border-radius:8px;
  overflow:hidden;
  background:#f1f5f9;
}
.v444-mort-seg {
  height:100%;
  transition: width .35s ease;
}
.v444-mort-seg-pi  { background:linear-gradient(90deg,#0c1f38,#1e3a5f); }
.v444-mort-seg-tax { background:linear-gradient(90deg,#d97706,#f59e0b); }
.v444-mort-seg-mnt { background:linear-gradient(90deg,#EA0649,#c0224f); }

.v444-mort-legend {
  display:flex; flex-wrap:wrap; gap:14px;
  margin-top:12px;
  font-size:12.5px; color:#475569;
}
.v444-mort-leg { display:inline-flex; align-items:center; gap:6px; }
.v444-mort-leg strong { color:#0c1f38; font-weight:700; margin-left:4px; }
.v444-mort-leg-dot {
  width:10px; height:10px; border-radius:50%;
  display:inline-block;
}
.v444-mort-prequal {
  display:block;
  margin-top:14px;
  padding:11px 14px;
  width:100%;
  border:1px solid #0c1f38;
  background:#fff;
  color:#0c1f38;
  font-size:13.5px;
  font-weight:600;
  border-radius:10px;
  cursor:pointer;
  transition: background .15s ease, color .15s ease;
}
.v444-mort-prequal:hover { background:#0c1f38; color:#fff; }

/* ─── Feature 5 — Hero photo-count badge ───────────────────────────── */
.v444-hero-photocount {
  position:absolute;
  right:14px;
  bottom:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:rgba(12,31,56,.84);
  color:#fff;
  font-size:12.5px;
  font-weight:600;
  padding:6px 10px;
  border-radius:999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events:none;
  z-index:2;
}
#v65-pg-hero { position:relative; }

/* ─── Feature 6 — Similar listings carousel ────────────────────────── */
.v444-similar-sec {
  padding: 22px 0 4px;
}
.v444-similar-hd {
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 18px;
  margin-bottom:14px;
}
.v444-similar-t {
  font-size:18px; font-weight:700; color:#0c1f38; letter-spacing:-.01em;
}
.v444-similar-nav { display:flex; gap:8px; }
.v444-similar-btn {
  width:36px; height:36px;
  border:1px solid #cbd5e1;
  background:#fff;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#0c1f38;
  cursor:pointer;
  transition: all .15s ease;
}
.v444-similar-btn:hover { background:#0c1f38; color:#fff; border-color:#0c1f38; }
.v444-similar-track {
  display:flex;
  gap:14px;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 18px 18px;
  -webkit-overflow-scrolling: touch;
}
.v444-similar-track::-webkit-scrollbar { display:none; }
.v444-sim-card {
  flex: 0 0 calc((100% - 14px * 3) / 4);
  scroll-snap-align: start;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  display:flex; flex-direction:column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.v444-sim-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(11,37,69,.32);
  border-color:#cbd5e1;
}
.v444-sim-img {
  position:relative;
  aspect-ratio: 4 / 3;
  background:#f1f5f9;
  overflow:hidden;
}
.v444-sim-img img { width:100%; height:100%; object-fit:cover; display:block; }
.v444-sim-reason {
  position:absolute; top:10px; left:10px;
  background:rgba(255,255,255,.94);
  color:#0c1f38;
  font-size:11px; font-weight:700; letter-spacing:.04em;
  padding:5px 9px; border-radius:6px;
  text-transform:uppercase;
}
.v444-sim-body {
  padding:12px 14px 14px;
  display:flex; flex-direction:column; gap:3px;
}
.v444-sim-price {
  font-size:17px; font-weight:700; color:#0c1f38; letter-spacing:-.01em;
}
.v444-sim-per { font-size:12px; font-weight:500; color:#64748b; margin-left:3px; }
.v444-sim-addr { font-size:13px; font-weight:600; color:#1e293b; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.v444-sim-meta { font-size:12px; color:#64748b; }

@media (max-width: 1024px) {
  .v444-sim-card { flex: 0 0 calc((100% - 14px * 2) / 3); }
}
@media (max-width: 780px) {
  .v444-sim-card { flex: 0 0 calc((100% - 14px) / 2); }
  .v444-similar-nav { display:none; }
}
@media (max-width: 520px) {
  .v444-sim-card { flex: 0 0 calc(100% - 36px); }
  .v444-similar-track { padding: 4px 18px 18px; scroll-padding-left:18px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   GATING — Tier 2 email-walled, Tier 4 CRM CTAs.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Email-capture modal ──────────────────────────────────────────────── */
.v444-em-ov {
  position:fixed; inset:0;
  background:rgba(12,31,56,.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display:flex; align-items:center; justify-content:center;
  padding:18px;
  z-index: 100002;
  opacity:0;
  pointer-events:none;
  transition: opacity .2s ease;
}
.v444-em-ov.open { opacity:1; pointer-events:auto; }
.v444-em-modal {
  background:#fff;
  border-radius:18px;
  width:100%; max-width:420px;
  padding:28px 26px 24px;
  box-shadow: 0 24px 60px -20px rgba(11,37,69,.55);
  position:relative;
  transform: translateY(8px);
  transition: transform .22s ease;
}
.v444-em-ov.open .v444-em-modal { transform: translateY(0); }
.v444-em-x {
  position:absolute; top:14px; right:14px;
  width:30px; height:30px;
  border:none; background:transparent;
  font-size:16px; color:#64748b;
  cursor:pointer; border-radius:50%;
  transition: background .15s ease;
}
.v444-em-x:hover { background:#f1f5f9; color:#0c1f38; }
.v444-em-eyebrow {
  font-size:11px; font-weight:700; color:#EA0649;
  letter-spacing:.14em; text-transform:uppercase;
  margin-bottom:8px;
}
.v444-em-title {
  font-size:22px; font-weight:700; color:#0c1f38;
  margin:0 0 8px; letter-spacing:-.015em;
}
.v444-em-sub {
  font-size:14px; color:#475569; line-height:1.5;
  margin:0 0 18px;
}
.v444-em-form {
  display:flex; gap:8px; flex-direction:column;
}
.v444-em-form input {
  width:100%;
  padding:13px 14px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  font-size:15px;
  background:#fff;
  transition: border-color .15s ease;
}
.v444-em-form input:focus { outline:none; border-color:#EA0649; box-shadow:0 0 0 3px rgba(158,13,54,.18); }
.v444-em-form input.v444-em-err { border-color:#dc2626; box-shadow:0 0 0 3px rgba(220,38,38,.16); }
.v444-em-btn {
  padding:13px 16px;
  background:#0c1f38;
  color:#fff;
  border:none;
  border-radius:10px;
  font-size:14.5px;
  font-weight:600;
  cursor:pointer;
  transition: background .15s ease;
}
.v444-em-btn:hover { background:#EA0649; }
.v444-em-btn:disabled { opacity:.7; cursor:wait; }
.v444-em-trust {
  display:flex; align-items:center; gap:6px;
  margin-top:14px;
  font-size:12px; color:#64748b;
}
body.v444-em-open { overflow:hidden; }

/* ── Generic locked section + overlay ─────────────────────────────────── */
.v444-locked-section { position:relative; }
.v444-locked-section > *:not(.v444-locked-overlay):not(.m-sec-t) {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
.v444-locked-overlay {
  position:absolute;
  inset: 0;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.94) 28%);
  border-radius: 14px;
  padding: 20px;
  z-index: 4;
}
.v444-locked-card {
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:18px 20px;
  max-width:380px;
  box-shadow: 0 14px 32px -16px rgba(11,37,69,.4);
  text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
.v444-locked-card svg { color:#EA0649; }
.v444-locked-headline {
  font-size:15px; font-weight:700; color:#0c1f38;
}
.v444-locked-sub {
  font-size:13px; color:#475569; line-height:1.5;
}
.v444-locked-btn {
  margin-top:6px;
  padding:10px 18px;
  background:#0c1f38;
  color:#fff;
  border:none;
  border-radius:999px;
  font-size:13px; font-weight:600;
  cursor:pointer;
  transition: background .15s ease;
}
.v444-locked-btn:hover { background:#EA0649; }

/* ── Nearby tile gating ───────────────────────────────────────────────── */
.v444-nb-tile-locked {
  position:relative;
  overflow:hidden;
}
.v444-nb-tile-locked .v444-nb-tile-name,
.v444-nb-tile-locked .v444-nb-tile-meta {
  filter: blur(5px);
  user-select:none;
}
.v444-nb-tile-locked::after {
  content: '🔒';
  position:absolute;
  top:50%; right:14px;
  transform: translateY(-50%);
  font-size:14px;
  opacity:.6;
}
.v444-nb-unlock {
  grid-column: 1 / -1;
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 14px;
  margin-top:4px;
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  border-radius:12px;
  font-size:13px;
  font-weight:600;
  color:#0c1f38;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease;
}
.v444-nb-unlock:hover { background:#fff; border-color:#EA0649; color:#EA0649; }
.v444-nb-unlock svg { color:#EA0649; }

/* ── Market-report PDF card (Tier 2 lead magnet) ──────────────────────── */
.v444-mkt-card {
  background: linear-gradient(135deg, #0c1f38 0%, #1e3a5f 100%);
  color:#fff;
  border-radius:14px;
  padding:20px 22px;
  margin: 14px 18px 4px;
  box-shadow: 0 14px 32px -18px rgba(11,37,69,.5);
}
.v444-mkt-eyebrow {
  font-size:11px; font-weight:700; color:#e37f9b;
  letter-spacing:.14em; text-transform:uppercase;
  margin-bottom:8px;
}
.v444-mkt-hd {
  display:flex; gap:14px; align-items:center; justify-content:space-between;
  flex-wrap:wrap;
}
.v444-mkt-title {
  font-size:17px; font-weight:700; color:#fff;
  letter-spacing:-.01em;
  margin-bottom:4px;
}
.v444-mkt-sub {
  font-size:13.5px; color:#cbd5e1; line-height:1.5;
  max-width:520px;
}
.v444-mkt-cta {
  flex-shrink:0;
  padding:11px 18px;
  background:#EA0649;
  color:#fff;
  border:none;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition: background .15s ease, transform .15s ease;
}
.v444-mkt-cta:hover { background:#b50f3e; transform: translateY(-1px); }

/* ── Tier 4 — Comparables analysis CTA (inside #v279-comps) ───────────── */
.v444-comps-cta {
  display:flex; align-items:center; gap:16px;
  width:calc(100% - 0px);
  margin: 18px 0 4px;
  padding:14px 18px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-left:3px solid #EA0649;
  border-radius:12px;
  cursor:pointer;
  text-align:left;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.v444-comps-cta:hover { border-color:#EA0649; box-shadow: 0 10px 24px -16px rgba(158,13,54,.32); }
.v444-comps-cta-body { flex:1; display:flex; flex-direction:column; gap:3px; min-width:0; }
.v444-comps-cta-title { font-size:14.5px; font-weight:700; color:#0c1f38; }
.v444-comps-cta-sub { font-size:12.5px; color:#64748b; }
.v444-comps-cta-btn {
  padding:8px 14px;
  background:#0c1f38;
  color:#fff;
  font-size:13px;
  font-weight:600;
  border-radius:999px;
  white-space:nowrap;
}

/* ── Tier 4 — Make-an-offer CTA (inside #m-carry-sec) ─────────────────── */
.v444-offer-cta {
  display:flex; align-items:center; gap:14px;
  width:100%;
  margin-top:14px;
  padding:14px 16px;
  background:#fff;
  border:1px solid #0c1f38;
  border-radius:12px;
  color:#0c1f38;
  text-align:left;
  cursor:pointer;
  transition: background .15s ease, color .15s ease;
}
.v444-offer-cta:hover { background:#0c1f38; color:#fff; }
.v444-offer-cta:hover svg, .v444-offer-cta:hover .v444-offer-cta-body small { color:#cbd5e1; }
.v444-offer-cta svg { color:#EA0649; flex-shrink:0; }
.v444-offer-cta-body { flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.v444-offer-cta-body strong { font-size:14.5px; font-weight:700; }
.v444-offer-cta-body small { font-size:12px; color:#64748b; }
.v444-offer-cta-arrow { font-size:18px; font-weight:600; flex-shrink:0; }

/* ── Tier 4 — Investor Mode section ───────────────────────────────────── */
.v444-investor-sec {
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  margin: 14px 18px;
  padding:18px 20px;
}
.v444-investor-hd {
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:14px;
  margin-bottom:8px;
}
.v444-investor-t { font-size:17px; font-weight:700; color:#0c1f38; display:inline-flex; align-items:center; gap:8px; }
.v444-investor-beta {
  font-size:9.5px; font-weight:700; letter-spacing:.08em;
  background:#fde68a; color:#92400e;
  padding:2px 7px; border-radius:6px;
}
.v444-investor-sub { font-size:13px; color:#64748b; line-height:1.5; max-width:560px; }
.v444-investor-switch {
  position:relative;
  cursor:pointer;
  display:inline-flex; align-items:center;
  flex-shrink:0;
}
.v444-investor-switch input { position:absolute; opacity:0; width:0; height:0; }
.v444-investor-track {
  width:44px; height:24px;
  background:#cbd5e1;
  border-radius:999px;
  transition: background .2s ease;
  display:inline-block;
  position:relative;
}
.v444-investor-thumb {
  position:absolute; top:2px; left:2px;
  width:20px; height:20px;
  background:#fff;
  border-radius:50%;
  box-shadow: 0 2px 5px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.v444-investor-switch input:checked + .v444-investor-track { background:#EA0649; }
.v444-investor-switch input:checked + .v444-investor-track .v444-investor-thumb { transform: translateX(20px); }
.v444-investor-body { margin-top:14px; }
.v444-investor-body[hidden] { display:none; }
.v444-investor-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:10px;
  margin-bottom:12px;
}
.v444-investor-cell {
  background:#f8fafc;
  border-radius:10px;
  padding:11px 13px;
}
.v444-investor-lbl { font-size:11px; font-weight:700; color:#64748b; text-transform:uppercase; letter-spacing:.06em; margin-bottom:3px; }
.v444-investor-val { font-size:17px; font-weight:700; color:#0c1f38; letter-spacing:-.01em; }
.v444-investor-disc { font-size:11.5px; color:#94a3b8; line-height:1.5; margin-top:6px; }
.v444-investor-cta {
  display:block;
  margin-top:14px;
  padding:12px 16px;
  width:100%;
  background:#0c1f38;
  color:#fff;
  border:none;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition: background .15s ease;
}
.v444-investor-cta:hover { background:#EA0649; }

@media (max-width: 600px) {
  .v444-mkt-card { margin: 14px 12px 4px; }
  .v444-investor-sec { margin: 14px 12px; padding:16px 14px; }
  .v444-mkt-hd { flex-direction:column; align-items:stretch; }
  .v444-mkt-cta { width:100%; }
  .v444-comps-cta { flex-direction:column; align-items:flex-start; gap:10px; }
  .v444-comps-cta-btn { width:100%; text-align:center; }
}

/* ═══════════════════════════════════════════════════════════════════════
   EXIT-INTENT MODAL — slim slide-down from top, desktop only.
   ═══════════════════════════════════════════════════════════════════════ */
.v444-xi-ov {
  position:fixed;
  top:0; left:0; right:0;
  z-index: 100001;
  display:flex;
  justify-content:center;
  padding: 0 18px;
  transform: translateY(-110%);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  pointer-events:none;
}
.v444-xi-ov.open {
  transform: translateY(0);
  pointer-events:auto;
}
.v444-xi-modal {
  margin-top: 16px;
  width: 100%;
  max-width: 720px;
  background:#fff;
  border-radius: 16px;
  box-shadow: 0 22px 50px -16px rgba(11,37,69,.42), 0 2px 6px rgba(11,37,69,.08);
  display:flex; align-items:center; gap:14px;
  padding: 16px 18px 16px 22px;
  border-top: 3px solid #EA0649;
}
.v444-xi-body {
  display:flex; align-items:center; gap:16px; flex:1; min-width:0;
}
.v444-xi-headcol { flex:1; min-width:0; }
.v444-xi-eyebrow {
  font-size:10.5px; font-weight:700; color:#EA0649;
  letter-spacing:.14em; text-transform:uppercase;
}
.v444-xi-title {
  font-size:18px; font-weight:700; color:#0c1f38;
  margin:2px 0 4px; letter-spacing:-.01em;
}
.v444-xi-sub {
  font-size:13px; color:#475569; line-height:1.45; margin:0;
}
.v444-xi-sub strong { color:#0c1f38; font-weight:600; }
.v444-xi-form {
  display:flex; gap:8px;
  flex-shrink:0;
}
.v444-xi-form input {
  width: 220px;
  padding:11px 13px;
  border:1px solid #cbd5e1;
  border-radius:9px;
  font-size:14px;
  background:#fff;
  transition: border-color .15s ease;
}
.v444-xi-form input:focus { outline:none; border-color:#EA0649; box-shadow:0 0 0 3px rgba(158,13,54,.18); }
.v444-xi-btn {
  padding:11px 18px;
  background:#EA0649;
  color:#fff;
  border:none;
  border-radius:9px;
  font-size:14px; font-weight:600;
  cursor:pointer;
  white-space:nowrap;
  transition: background .15s ease;
}
.v444-xi-btn:hover { background:#b50f3e; }
.v444-xi-btn:disabled { opacity:.7; cursor:wait; }
.v444-xi-foot {
  display:flex; flex-direction:column; align-items:flex-end; gap:6px;
  flex-shrink:0;
}
.v444-xi-x {
  width: 28px; height: 28px;
  border:none; background:transparent;
  font-size:14px; color:#94a3b8;
  cursor:pointer; border-radius:50%;
  transition: background .15s ease, color .15s ease;
}
.v444-xi-x:hover { background:#f1f5f9; color:#0c1f38; }
.v444-xi-no {
  background:transparent;
  border:none;
  color:#64748b;
  font-size:11.5px;
  cursor:pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 2px 4px;
}
.v444-xi-no:hover { color:#0c1f38; }
.v444-xi-modal.v444-xi-success {
  border-top-color:#15803d;
  background:#f0fdf4;
}

@media (max-width: 820px) {
  .v444-xi-modal {
    flex-direction:column;
    align-items:stretch;
    padding: 16px 18px;
    gap:10px;
  }
  .v444-xi-body { flex-direction:column; align-items:flex-start; gap:6px; }
  .v444-xi-form { width:100%; }
  .v444-xi-form input { flex:1; width:auto; }
  .v444-xi-foot { flex-direction:row; justify-content:space-between; width:100%; }
}
/* The exit-intent flow is desktop-only — hide on touch viewports entirely
   so we don't risk an iOS Safari "scrolled to top" false positive. */
@media (pointer: coarse), (max-width: 768px) {
  .v444-xi-ov { display:none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   STICKY MOBILE CTA BAR — mobile only, slides up after hero scroll.
   ═══════════════════════════════════════════════════════════════════════ */
.v444-mob-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9100;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -6px 18px -8px rgba(11, 37, 69, 0.2),
              0 -1px 0 rgba(15, 23, 42, 0.06);
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.v444-mob-cta.v444-mob-cta-on {
  transform: translateY(0);
  pointer-events: auto;
}
.v444-mob-cta.v444-mob-cta-hidden {
  transform: translateY(110%);
  pointer-events: none;
}
.v444-mob-cta-primary {
  flex: 0 0 60%;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background: #EA0649;
  color:#fff;
  border:none;
  border-radius: 12px;
  padding: 13px 12px;
  font-size: 14.5px;
  font-weight: 600;
  cursor:pointer;
  transition: background .15s ease, transform .15s ease;
  box-shadow: 0 6px 16px -10px rgba(158,13,54,.7);
}
.v444-mob-cta-primary:hover, .v444-mob-cta-primary:active { background:#b50f3e; }
.v444-mob-cta-primary svg { flex-shrink:0; }
.v444-mob-cta-save {
  flex: 1 1 40%;
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  background:#fff;
  color:#0c1f38;
  border:1.5px solid #0c1f38;
  border-radius: 12px;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 600;
  cursor:pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.v444-mob-cta-save:hover, .v444-mob-cta-save:active { background:#0c1f38; color:#fff; }
.v444-mob-cta-save svg { stroke: currentColor; flex-shrink:0; }
.v444-mob-cta.v444-mob-cta-saved .v444-mob-cta-save {
  background:#0c1f38; color:#fff; border-color:#0c1f38;
}
.v444-mob-cta.v444-mob-cta-saved .v444-mob-cta-save svg { fill: currentColor; }

/* When v444's bar is active, hide the legacy single-button mobile sticky.
   The legacy bar (v42-detail-cta with v307-mob-cta-primary) is the same
   "Request a viewing" call — leaving both visible would compete for the
   same tap target. */
body.v444-mob-cta-active .v42-detail-cta,
body.v444-mob-cta-active .v113-sticky-cta {
  display: none !important;
}

/* Lift the document so the sticky bar doesn't cover the footer / last
   section. Only applies when the bar is active. */
@media (max-width: 768px) {
  body.v444-mob-cta-active {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Desktop never shows the mobile bar — defensive guard. */
@media (min-width: 769px) {
  .v444-mob-cta { display: none !important; }
}

/* ── v=644 multi-dimension Deal Score + agent bio (SPA modal) ─────────────── */
.cdg-ds-slot:empty { display: none; }
.cdg-ds { margin: 14px 18px 4px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; overflow: hidden; }
.cdg-ds-d { width: 100%; }
.cdg-ds-sum { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 13px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cdg-ds-sum::-webkit-details-marker { display: none; }
.cdg-ds-ring { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: baseline; justify-content: center; gap: 1px; background: #eef2f6; color: #475569; font-weight: 700; }
.cdg-ds-good .cdg-ds-ring { background: #e7f6f2; color: #7d0d2d; }
.cdg-ds-mid .cdg-ds-ring { background: #fff4e2; color: #b9772a; }
.cdg-ds-low .cdg-ds-ring { background: #fdeef0; color: #c23b4e; }
.cdg-ds-na .cdg-ds-ring { background: #eef2f6; color: #94a3b8; }
.cdg-ds-num { font-size: 22px; line-height: 1; }
.cdg-ds-of { font-size: 11px; font-weight: 600; opacity: .7; }
.cdg-ds-head { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cdg-ds-title { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.cdg-ds-tier { font-family: Georgia, serif; font-size: 17px; font-weight: 500; color: #0c1f38; line-height: 1.2; }
.cdg-ds-good .cdg-ds-tier { color: #7d0d2d; }
.cdg-ds-low .cdg-ds-tier { color: #c23b4e; }
.cdg-ds-subline { font-size: 11.5px; color: #94a3b8; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cdg-ds-toggle { flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: #EA0649; white-space: nowrap; align-self: flex-start; margin-top: 3px; }
.cdg-ds-toggle-close { display: none; }
.cdg-ds-d[open] .cdg-ds-toggle-open { display: none; }
.cdg-ds-d[open] .cdg-ds-toggle-close { display: inline; }
.cdg-ds-body { padding: 2px 13px 14px; border-top: 1px solid #f1f5f9; }
.cdg-ds-intro { font-size: 12.5px; color: #64748b; line-height: 1.45; margin: 10px 0 12px; }
.cdg-ds-row { margin: 0 0 11px; }
.cdg-ds-rowtop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.cdg-ds-rowlbl { font-size: 13px; font-weight: 600; color: #0c1f38; }
.cdg-ds-rowval { font-size: 13px; font-weight: 700; color: #475569; font-variant-numeric: tabular-nums; }
.cdg-ds-bar { height: 6px; border-radius: 6px; background: #eef2f6; overflow: hidden; margin-bottom: 4px; }
.cdg-ds-bar-fill { display: block; height: 100%; border-radius: 6px; background: #94a3b8; }
.cdg-ds-fill-good { background: #EA0649; }
.cdg-ds-fill-mid { background: #e0a13c; }
.cdg-ds-fill-low { background: #d4566a; }
.cdg-ds-note { font-size: 11.5px; color: #64748b; line-height: 1.4; }
.cdg-ds-row-na { opacity: .62; }
.cdg-ds-row-na .cdg-ds-rowval { color: #94a3b8; }
.cdg-ds-foot { font-size: 10.5px; color: #94a3b8; line-height: 1.4; margin: 6px 0 0; padding-top: 8px; border-top: 1px dashed #eef2f6; }
.cdg-bio { display: flex; gap: 13px; align-items: flex-start; margin: 14px 0 4px; padding: 15px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fbfcfd; }
.cdg-bio-av { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: #0c1f38; color: #fff; font-family: Georgia, serif; font-size: 21px; display: flex; align-items: center; justify-content: center; font-weight: 500; }
.cdg-bio-main { flex: 1 1 auto; min-width: 0; }
.cdg-bio-name { font-family: Georgia, serif; font-size: 16px; font-weight: 500; color: #0c1f38; line-height: 1.2; }
.cdg-bio-meta { font-size: 12px; color: #64748b; margin: 2px 0 7px; }
.cdg-bio-line { font-size: 12.5px; color: #475569; line-height: 1.5; margin: 0 0 11px; }
.cdg-bio-cta { display: inline-block; background: #fff; color: #0c1f38; border: 1px solid #0c1f38; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background .12s, color .12s; }
.cdg-bio-cta:hover { background: #0c1f38; color: #fff; }

/* ── v=644 neutral price-per-sqft stats (condos.ca path, judgment flag OFF) ── */
.cdg-stats { margin: 14px 18px 4px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; padding: 13px 14px; }
.cdg-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cdg-stat { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px; background: #f8fafc; border-radius: 9px; }
.cdg-stat-alt { background: #eef6f4; }
.cdg-stat-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #64748b; line-height: 1.25; }
.cdg-stat-val { font-family: Georgia, serif; font-size: 20px; font-weight: 500; color: #0c1f38; line-height: 1.1; }
.cdg-stat-alt .cdg-stat-val { color: #7d0d2d; }
.cdg-stat-u { font-family: system-ui, -apple-system, sans-serif; font-size: 11px; font-weight: 600; color: #94a3b8; margin-left: 2px; }
.cdg-stats-foot { font-size: 10.5px; color: #94a3b8; line-height: 1.45; margin: 10px 0 0; }
