/* ═══════════════════════════════════════════════
   8X LISTING DETAIL — DYNAMIC CONTENT CSS
   Classes used by listing-detail embed script
   ═══════════════════════════════════════════════ */

/* Cross-document View Transitions: paired with homepage opt-in so a card photo
   morphs into the listing hero on navigation. Chromium + Safari support; Firefox
   no-ops. Reduced-motion users get instant navigation. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root){animation-duration:380ms;animation-timing-function:cubic-bezier(.22,1,.36,1);}
::view-transition-old(hero-photo),
::view-transition-new(hero-photo){animation-duration:560ms;animation-timing-function:cubic-bezier(.22,1,.36,1);}
@media (prefers-reduced-motion: reduce){
  @view-transition { navigation: none; }
}

/* ── Design Tokens ── */
:root {
  --ld-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ld-font-display: 'Lora', Georgia, serif;
  --ld-text: #1a1a2e;
  --ld-text-s: #4b5563;
  --ld-text-m: #9ca3af;
  --ld-text-d: #d1d5db;
  --ld-accent: #c8102e;
  --ld-accent-h: #a30d25;
  --ld-accent-lt: #fef2f2;
  --ld-green: #16a34a;
  --ld-green-lt: #f0fdf4;
  --ld-red: #dc2626;
  --ld-blue: #2563eb;
  --ld-blue-lt: #eff6ff;
  --ld-yellow: #f59e0b;
  --ld-border: #e5e7eb;
  --ld-border-lt: #f3f4f6;
  --ld-bg-off: #f7f7f8;
  --ld-r: 8px;
  --ld-rl: 12px;
  --ld-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --ld-shadow-lg: 0 4px 16px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.04);
}

/* ── Prevent horizontal overflow / iOS zoom on refresh ── */
html, body { overflow-x: hidden; }

/* ═══ STATS BAR ═══ */
.ld-stats {
  display: flex;
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-rl);
  overflow: hidden;
  margin: 20px 0;
}
.ld-stat {
  flex: 1;
  padding: 15px 12px;
  text-align: center;
  border-right: 1px solid var(--ld-border);
}
.ld-stat:last-child { border-right: none }
.ld-sv { font-size: 19px; font-weight: 700; margin-bottom: 1px }
.ld-sl {
  font-size: 10px;
  color: var(--ld-text-m);
  text-transform: uppercase;
  letter-spacing: .7px;
  font-weight: 500;
}


/* ═══ SOLD/PENDING PRICE DISPLAY (header + sidebar) ═══ */
.ld-price-sold {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ld-price-orig {
  text-decoration: none;
  color: var(--ld-text-m, #9ca3af);
  font-size: 0.65em;
  font-weight: 500;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  width: fit-content;
}
.ld-price-orig::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1.5px;
  background: var(--ld-text-m, #9ca3af);
  transition: width .5s ease;
}
.ld-price-orig.strike-animate::after { width: 100% }
.ld-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.ld-price-final {
  font-weight: 700;
  line-height: 1.2;
}

/* ── Header price ticker (larger than sale-info ticker) ── */
.ld-price-final .ld-ticker { height: inherit; overflow: visible }
.ld-price-final .ld-ticker-char { height: 1.15em; overflow: hidden }
.ld-price-final .ld-ticker-char.static { line-height: 1.15em }
.ld-price-final .ld-ticker-digit span { height: 1.15em; line-height: 1.15em }

/* ── Header price badge ── */
.ld-hdr-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  opacity: 0;
}
.ld-hdr-badge.under { background: #fef2f2; color: #dc2626 }
.ld-hdr-badge.over { background: #f0fdf4; color: #16a34a }
.ld-hdr-badge.pop { animation: ld-badge-pop .4s cubic-bezier(.22, 1, .36, 1) forwards }


/* ═══ SALE INFO BLOCK — legacy (hidden after redesign) ═══ */
.ld-sale-info { display: none }
.ld-sale-grid, .ld-sale-card, .ld-sale-lbl, .ld-sale-val { /* legacy — kept for fallback */ }

/* ═══ SALE INFO BLOCK — Option A "Clean Card" ═══ */
.ld-si {
  background: white;
  border-radius: var(--ld-rl, 12px);
  border: 1px solid var(--ld-border, #e5e7eb);
  overflow: hidden;
  margin-top: 16px;
}
.ld-si-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ld-border, #e5e7eb);
}
.ld-si-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ld-si-status {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ld-si-date {
  font-size: 12px;
  color: var(--ld-text-m, #9ca3af);
  margin-left: auto;
}
.ld-si-body {
  padding: 16px 20px;
}
.ld-si-metrics {
  display: flex;
  gap: 0;
}
.ld-si-metric {
  flex: 1;
  padding: 0 16px;
  border-right: 1px solid var(--ld-border, #e5e7eb);
}
.ld-si-metric:first-child { padding-left: 0 }
.ld-si-metric:last-child { border-right: none; padding-right: 0 }
.ld-si-lbl {
  font-size: 10px;
  color: var(--ld-text-m, #9ca3af);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  margin-bottom: 3px;
}
.ld-si-val {
  font-size: 18px;
  font-weight: 700;
}
.ld-si-accent { color: var(--ld-accent, #c8102e) }
.ld-si-strike {
  text-decoration: none;
  position: relative;
  display: inline-block;
  color: var(--ld-text-m, #9ca3af);
  font-size: 15px;
  font-weight: 500;
}
.ld-si-strike::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1.5px;
  background: var(--ld-text-m, #9ca3af);
  transition: width .5s ease;
}
.ld-si-strike.animate-strike::after { width: 100% }
.ld-si-sub {
  font-size: 11px;
  color: var(--ld-text-m, #9ca3af);
  margin-top: 1px;
}
.ld-si-footer {
  padding: 10px 20px;
  background: var(--ld-bg-off, #f9fafb);
  border-top: 1px solid var(--ld-border, #e5e7eb);
  font-size: 11px;
  color: var(--ld-text-m, #9ca3af);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Sale info ticker animation ── */
.ld-ticker { display: inline-flex; align-items: baseline; height: 24px; overflow: visible }
.ld-ticker-char { display: inline-block; height: 24px; overflow: hidden; position: relative }
.ld-ticker-char.static { line-height: 24px }
.ld-ticker-digit { display: flex; flex-direction: column; transition: transform .6s cubic-bezier(.22, 1, .36, 1) }
.ld-ticker-digit span { height: 24px; line-height: 24px; display: block; text-align: center; white-space: nowrap }
@keyframes ld-badge-pop {
  0% { opacity: 0; transform: scale(.5) translateY(4px) }
  60% { transform: scale(1.1) translateY(-1px) }
  100% { opacity: 1; transform: scale(1) translateY(0) }
}
.ld-si-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; margin-top: 4px; opacity: 0 }
.ld-si-badge.under { background: #fef2f2; color: #dc2626 }
.ld-si-badge.over { background: #f0fdf4; color: #16a34a }
.ld-si-badge.pop { animation: ld-badge-pop .4s cubic-bezier(.22, 1, .36, 1) forwards }

/* ── Pending cascade animation ── */
@keyframes ld-metric-in {
  0% { opacity: 0; transform: translateY(12px) }
  100% { opacity: 1; transform: translateY(0) }
}
.ld-si.pending-animate .ld-si-header { opacity: 0 }
.ld-si.pending-animate .ld-si-metric { opacity: 0 }
.ld-si.pending-animate .ld-si-footer { opacity: 0 }
.ld-si.pending-animate.animate-in .ld-si-header {
  animation: ld-metric-in .45s cubic-bezier(.22, 1, .36, 1) forwards;
}
.ld-si.pending-animate.animate-in .ld-si-metric {
  animation: ld-metric-in .45s cubic-bezier(.22, 1, .36, 1) forwards;
}
.ld-si.pending-animate.animate-in .ld-si-footer {
  animation: ld-metric-in .4s cubic-bezier(.22, 1, .36, 1) forwards;
}

/* ── Sale info responsive ── */
@media (max-width: 479px) {
  .ld-si-metrics { flex-direction: column; gap: 12px }
  .ld-si-metric { padding: 0; border-right: none; border-bottom: 1px solid var(--ld-border, #e5e7eb); padding-bottom: 12px }
  .ld-si-metric:last-child { border-bottom: none; padding-bottom: 0 }
  .ld-si-header { flex-wrap: wrap }
  .ld-si-date { margin-left: 0; width: 100%; margin-top: 2px }
}


/* ═══ BADGES (gallery overlay) ═══ */
.ld-bdg {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ld-bdg-s { background: var(--ld-red); color: white }
.ld-bdg-p { background: #ea580c; color: white }


/* ═══ DETAILS / FEATURES SECTION ═══ */
.ld-dg { margin-bottom: 20px }
.ld-dg-hdr {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--ld-accent);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ld-border-lt);
}

/* Single-column details */
.ld-dtls {
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-rl);
  overflow: hidden;
}
.ld-dtl {
  display: flex;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--ld-border-lt);
  font-size: 14px;
}
.ld-dtl:last-child { border-bottom: none }
.ld-dk { color: var(--ld-text-m); min-width: 140px }
.ld-dv { color: var(--ld-text); font-weight: 500; text-align: right }
.ld-dv a { color: var(--ld-accent); text-decoration: none }
.ld-dv a:hover { text-decoration: underline }

/* Two-column details grid */
.ld-dtls-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-rl);
  overflow: hidden;
}
.ld-dtls-2 .ld-dtl { border-bottom: 1px solid var(--ld-border-lt) }
.ld-dtls-2 .ld-dtl:nth-child(odd) { border-right: 1px solid var(--ld-border-lt) }

/* Feature pills */
.ld-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px }
.ld-pill {
  padding: 5px 12px;
  background: var(--ld-bg-off);
  border: 1px solid var(--ld-border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--ld-text-s);
  font-weight: 500;
}


/* ═══ MAP ═══ */
.ld-map {
  height: 280px;
  border-radius: var(--ld-rl);
  overflow: hidden;
}
#ld-map-c {
  width: 100%;
  height: 100%;
  border-radius: var(--ld-rl);
}


/* ═══ NEIGHBOURHOOD SCORES ═══ */
.ld-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ld-sc {
  background: white;
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-rl);
  padding: 20px;
  text-align: center;
}
.ld-sr {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 20px;
  font-weight: 700;
  border-width: 3px;
  border-style: solid;
}


/* ═══ CLS PREVENTION — Reserve space for async sections ═══ */
#history-content,
[data-section="history"] {
  min-height: 160px;
}
#scores-content,
[data-section="scores"] {
  min-height: 100px;
}
#similar-content,
[data-section="similar"] {
  min-height: 300px;
}
#comparables-grid,
#comps-grid {
  min-height: 300px;
}
/* Remove reservation once content has loaded (JS adds this class) */
.ld-loaded {
  min-height: 0 !important;
}

/* ═══ TIMELINE / HISTORY ═══ */
.ld-tl {
  padding-left: 20px;
  position: relative;
}
.ld-tl::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--ld-border);
}
.ld-tli {
  position: relative;
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.ld-tli::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--ld-accent);
}
.ld-tli.now::before {
  background: var(--ld-accent);
  box-shadow: 0 0 0 3px rgba(200,16,46,.08);
}
/* Timeline dot colours by event type */
.ld-tli.ev-listed::before { border-color: var(--ld-green); }
.ld-tli.ev-listed.now::before { background: var(--ld-green); box-shadow: 0 0 0 3px rgba(22,163,74,.08); }
.ld-tli.ev-sold::before { border-color: var(--ld-red); }
.ld-tli.ev-sold.now::before { background: var(--ld-red); box-shadow: 0 0 0 3px rgba(220,38,38,.08); }
.ld-tli.ev-pending::before { border-color: var(--ld-yellow); }
.ld-tli.ev-pending.now::before { background: var(--ld-yellow); box-shadow: 0 0 0 3px rgba(245,158,11,.08); }
.ld-tli.ev-price-drop::before, .ld-tli.ev-price-increase::before { border-color: var(--ld-yellow, #f59e0b); }
.ld-tli.ev-price-drop.now::before, .ld-tli.ev-price-increase.now::before { background: var(--ld-yellow, #f59e0b); box-shadow: 0 0 0 3px rgba(245,158,11,.08); }
.ld-tli.ev-expired::before, .ld-tli.ev-cancelled::before, .ld-tli.ev-withdrawn::before { border-color: #9ca3af; }
.ld-tli.ev-expired.now::before, .ld-tli.ev-cancelled.now::before, .ld-tli.ev-withdrawn.now::before { background: #9ca3af; box-shadow: 0 0 0 3px rgba(156,163,175,.08); }
.ld-tle { font-size: 14px; font-weight: 500 }
@keyframes ld-pulse-drop { 0%,100%{ opacity:1 } 50%{ opacity:.4 } }
.ld-tl-arrow { font-size: 12px; margin-right: 3px }
.ld-tl-arrow.down { color: var(--ld-red, #dc2626); animation: ld-pulse-drop 2s ease-in-out infinite }
.ld-tl-arrow.up { color: var(--ld-green, #16a34a) }
.ld-tld { font-size: 14px; color: var(--ld-text-s); font-weight: 400 }
.ld-tlp { font-size: 14px; font-weight: 600 }


/* ═══ PROPERTY CARDS (Similar & Comparables) ═══ */
.ld-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ld-card {
  background: white;
  border-radius: var(--ld-rl);
  overflow: hidden;
  border: 1px solid var(--ld-border);
  transition: .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.ld-card:hover {
  box-shadow: var(--ld-shadow-lg);
  transform: translateY(-2px);
}
.ld-card-img {
  height: 140px;
  position: relative;
  background: linear-gradient(135deg, #e0e0e4, #d0d0d6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ld-text-m);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.ld-card-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ld-card-sold {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  background: var(--ld-red);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.ld-card-body { padding: 12px }
.ld-card-price { font-size: 16px; font-weight: 700; margin-bottom: 2px }
.ld-card-addr { font-size: 12px; color: var(--ld-text-m); margin-bottom: 5px }
.ld-card-stats { font-size: 12px; color: var(--ld-text-s) }
.ld-card-meta { font-size: 11px; color: var(--ld-text-m); margin-top: 4px }
.ld-card-brokerage { font-size: 10px; color: var(--ld-text-m); margin-top: 3px; line-height: 1.4 }

/* ── Card badges (top-left overlay) ── */
.ld-card-badges {
  position: absolute;
  top: 8px; left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  z-index: 2;
}
.ld-card-badge {
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .4px;
  line-height: 1.3;
}
.ld-badge-sold { background: var(--ld-red); color: white }
.ld-badge-pending { background: var(--ld-yellow); color: #1a1a2e }
.ld-badge-new { background: var(--ld-green); color: white }
.ld-badge-drop { background: var(--ld-blue); color: white }
.ld-badge-oh { background: #7c3aed; color: white }

/* ── VOW gate wrapper (sold price in details section) ── */
.ld-vow-gate {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  user-select: none;
  cursor: pointer;
  display: inline-block;
  transition: filter .3s ease;
}
.ld-vow-unlocked .ld-vow-gate {
  filter: none;
  -webkit-filter: none;
  cursor: default;
}

/* ── BCA public data: ungates only sold price (.ld-vow-bca) ── */
.ld-bca-public .ld-vow-bca {
  filter: none;
  -webkit-filter: none;
  cursor: default;
}
.ld-bca-attr {
  font-size: .72rem;
  font-weight: 600;
  color: #1a6b3c;
  background: #e6f4ea;
  padding: 6px 12px;
  border-radius: 6px;
  margin-top: 10px;
  text-align: center;
}
.ld-bca-attr a {
  color: #1a6b3c;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ld-bca-attr a:hover { color: #145a30 }

/* ── VOW: gate detail rows, pills, description, photos ── */
/* Restore flex layout on gated rows (.ld-vow-gate base sets display:inline-block,
   which collapses the label/value space-between). Blur applies to .ld-dv only. */
.ld-dtl.ld-vow-gate { display: flex; filter: none; -webkit-filter: none; }
.ld-dtl.ld-vow-gate .ld-dv {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  user-select: none;
}
.ld-vow-unlocked .ld-dtl.ld-vow-gate .ld-dv,
.ld-bca-public .ld-dtl.ld-vow-bca .ld-dv {
  filter: none;
  -webkit-filter: none;
}
.ld-pills.ld-vow-gate {
  filter: blur(6px);
  -webkit-filter: blur(6px);
  user-select: none;
  pointer-events: none;
}
.ld-vow-unlocked .ld-pills.ld-vow-gate {
  filter: none;
  -webkit-filter: none;
  pointer-events: auto;
}
.ld-desc-gate {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  user-select: none;
  cursor: pointer;
  max-height: 80px;
  overflow: hidden;
}
.ld-vow-unlocked .ld-desc-gate {
  filter: none;
  -webkit-filter: none;
  cursor: default;
  max-height: none;
  overflow: visible;
}
.ld-photo-gate [data-gallery="main"],
.ld-photo-gate [data-gallery^="side-"],
.ld-photo-gate .ld-mob-slide {
  filter: blur(12px) saturate(0.6);
  -webkit-filter: blur(12px) saturate(0.6);
  transform: scale(1.05);
  overflow: hidden;
}
.ld-vow-unlocked .ld-photo-gate [data-gallery="main"],
.ld-vow-unlocked .ld-photo-gate [data-gallery^="side-"],
.ld-vow-unlocked .ld-photo-gate .ld-mob-slide {
  filter: none;
  -webkit-filter: none;
  transform: none;
}
/* Mortgage calculator gate (pending, non-auth) */
.ld-calc-gate {
  filter: blur(6px);
  -webkit-filter: blur(6px);
  user-select: none;
  pointer-events: none;
  position: relative;
}
.ld-vow-unlocked .ld-calc-gate {
  filter: none;
  -webkit-filter: none;
  pointer-events: auto;
}

/* ── VOW gating: blur for unauthenticated ── */
.ld-sold-blur {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  user-select: none;
  cursor: pointer;
  display: inline-block;
  transition: filter .3s ease;
}
.ld-vow-unlocked .ld-sold-blur {
  filter: none;
  -webkit-filter: none;
  cursor: default;
}
.ld-gated .ld-card-img {
  filter: blur(3px) saturate(0.5);
  -webkit-filter: blur(3px) saturate(0.5);
  transition: filter .3s ease;
}
.ld-vow-unlocked .ld-gated .ld-card-img {
  filter: none;
  -webkit-filter: none;
}
.ld-bca-partial .ld-sold-blur {
  filter: none;
  -webkit-filter: none;
  cursor: default;
}
.ld-bca-partial .ld-card-img {
  filter: blur(8px) saturate(0.5);
  -webkit-filter: blur(8px) saturate(0.5);
}

/* ── Timeline blurred price ── */
.ld-blur { filter: blur(5px); -webkit-filter: blur(5px); user-select: none }
.ld-vow-unlocked .ld-blur { filter: none; -webkit-filter: none }
.ld-tln { font-size: 10px; color: var(--ld-text-m); margin-top: 1px }
.ld-tlp-prev { font-size: 12px; color: var(--ld-text-m); text-decoration: line-through }

/* ── Force-hide Webflow lock card (Memberstack override-proof) ── */
#comparables-lock,
.lock-card {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ── Sold section CTA (login prompt) ── */
.ld-sold-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--ld-accent-lt);
  border: 1px solid #fecdd3;
  border-radius: var(--ld-r);
  color: var(--ld-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.ld-sold-cta:hover {
  background: #fecdd3;
  transform: translateY(-1px);
}

/* ── Auth banner (VOW unlock prompt) ── */
.ld-auth-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin: 20px 0;
  background: #ffffff;
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-rl);
  box-shadow: var(--ld-shadow);
}
.ld-auth-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.ld-auth-banner-icon svg { width: 20px; height: 20px }
.ld-auth-banner-body { flex: 1; min-width: 0 }
.ld-auth-banner-title { font-size: 14px; font-weight: 700; color: #1a1a2e; margin-bottom: 2px }
.ld-auth-banner-sub { font-size: 12px; color: #4b5563; line-height: 1.4 }
.ld-auth-banner-actions { display: flex; gap: 8px; flex-shrink: 0 }
.ld-auth-banner-actions a,
.ld-auth-banner-actions button {
  padding: 8px 16px;
  border-radius: var(--ld-r);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
}
.ld-auth-signup { background: var(--ld-accent); color: white }
.ld-auth-signup:hover { background: var(--ld-accent-h) }
.ld-auth-login { background: white; color: var(--ld-text); border: 1px solid var(--ld-border) !important }
.ld-auth-login:hover { background: var(--ld-bg-off) }
.ld-vow-unlocked .ld-auth-banner { display: none }
.ld-vow-unlocked .ld-sold-cta { display: none }

/* ── View More button ── */
.ld-view-more-wrap {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  align-self: start !important;
  justify-self: stretch !important;
  text-align: center;
  margin-top: 4px;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  width: auto !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  transform: none !important;
}
.ld-view-more-wrap:hover {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.ld-view-more {
  display: inline-block;
  padding: 10px 28px;
  background: white;
  color: var(--ld-text, #1f2937);
  border: 1px solid var(--ld-border, #e5e7eb);
  border-radius: var(--ld-r, 8px);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--ld-font, Inter, sans-serif);
  cursor: pointer;
  transition: all .2s ease;
  min-height: auto !important;
  height: auto !important;
  width: auto !important;
}
.ld-view-more:hover {
  background: var(--ld-bg-off, #f9fafb);
  border-color: var(--ld-text-m, #9ca3af);
}


/* ═══ MORTGAGE CALCULATOR ═══ */
.ld-calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ld-calc-result {
  background: var(--ld-bg-off);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-rl);
  padding: 24px;
  text-align: center;
}
.ld-calc-big {
  font-size: 32px;
  font-weight: 800;
  color: var(--ld-accent);
}
.ld-calc-lbl {
  font-size: 11px;
  color: var(--ld-text-m);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 4px;
}
.ld-calc-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
}
.ld-calc-row .k { color: var(--ld-text-m) }
.ld-calc-row .v { color: var(--ld-text); font-weight: 500 }
.ld-calc-row.tot {
  border-top: 1px solid var(--ld-border);
  margin-top: 5px;
  padding-top: 7px;
  font-weight: 600;
}
.ld-calc-row.tot .v { color: var(--ld-accent); font-size: 15px }

/* Calculator inputs */
.ld-inp {
  width: 100%;
  padding: 10px 13px;
  background: white;
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-r);
  color: var(--ld-text);
  font-size: 14px;
  font-family: var(--ld-font);
  outline: none;
  transition: .15s;
}
.ld-inp:focus { border-color: var(--ld-accent) }
.ld-inp::placeholder { color: var(--ld-text-d) }
.ld-inp-l {
  font-size: 11px;
  color: var(--ld-text-m);
  text-transform: uppercase;
  letter-spacing: .5px;
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}


/* ═══ SIDEBAR LABEL HELPERS ═══ */
.sb-meta-label, .sb-ml {
  font-size: 10px !important;
  color: #9ca3af !important;
  text-transform: uppercase !important;
  letter-spacing: .4px !important;
  font-weight: 500 !important;
}
.sb-stat-label {
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 500;
  margin-top: 2px;
}


/* ═══ SECTION SCROLL OFFSET ═══ */
.ld-section { scroll-margin-top: 52px }


/* ═══ GALLERY WRAPPER ═══ */
.ld-gallery { position: relative }

/* ═══ GALLERY GRID — defensive overrides
   Webflow defines the grid template (1.4fr 1fr / 220px 220px on desktop,
   1.2fr 1fr / 240px 118px on tablet). Don't fight that — just ensure
   tiles fill their cells, photos cover/center, and badges pin top-left.
   ─────────────────────────────────────────────── */
#gallery-grid {
  position: relative;
}
#gallery-grid [data-gallery="main"],
#gallery-grid [data-gallery^="side-"] {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
#gallery-grid [data-gallery="main"] {
  grid-row: 1 / span 2;
}

/* Pin badges to top-left of the main tile */
#gallery-grid [data-gallery-badges] {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 !important;
  z-index: 5;
  pointer-events: none;
}
#gallery-grid [data-gallery-badges] > * {
  pointer-events: auto;
}

/* Mobile badges: pin to TOP-left of the photo (not bottom) */
.ld-mob-badges {
  top: 12px !important;
  bottom: auto !important;
  left: 12px !important;
}


/* ── Gallery prev / next arrows ── */
.ld-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #1a1a2e;
  cursor: pointer;
  z-index: 10;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  user-select: none;
  -webkit-user-select: none;
}
.ld-gallery-arrow:hover {
  background: rgba(255,255,255,.97);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
  transform: translateY(-50%) scale(1.06);
}
.ld-gallery-arrow.prev { left: 12px }
.ld-gallery-arrow.next { right: 12px }


/* ═══ TOUR SCHEDULER — date/time cell states ═══ */
#sidebar-tour-scheduler, #tour-scheduler, .tour-scheduler { font-family: var(--ld-font, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif); scroll-margin-top: 80px }
.tour-date-cell, .tour-time-cell { transition: background .15s ease, border-color .15s ease, color .15s ease; border-radius: 8px; border: 1px solid transparent }
.tour-date-cell:hover, .tour-time-cell:hover { background: var(--ld-bg-off); border-color: var(--ld-border) }
.tour-date-cell.is-selected, .tour-time-cell.is-selected { background: var(--ld-text); color: white; border-color: var(--ld-text) }
.tour-date-cell.is-selected .tour-date-dow, .tour-date-cell.is-selected .tour-date-day, .tour-date-cell.is-selected .tour-date-mon,
.tour-time-cell.is-selected .tour-time-label, .tour-time-cell.is-selected .tour-time-range { color: inherit !important }


/* ═══ CALC ROW LABELS ═══ */
.ld-calc-row .k { font-size: 12px !important; color: var(--ld-text-s) !important }


/* ═══ AGENT CARD (sidebar — below Ask a Question) ═══ */
.ld-agent-card {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ld-border);
}
.ld-agent-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ld-agent-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ld-bg-off);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 2px solid var(--ld-border);
}
.ld-agent-info { min-width: 0 }
.ld-agent-name { font-size: 14px; font-weight: 700; color: var(--ld-text); line-height: 1.2 }
.ld-agent-brokerage { font-size: 12px; font-weight: 600; color: var(--ld-accent); text-decoration: none; line-height: 1.3 }
.ld-agent-brokerage:hover { text-decoration: underline }
.ld-agent-title { font-size: 11px; color: var(--ld-text-s); line-height: 1.3; margin-top: 1px }
.ld-agent-since { font-size: 10px; color: var(--ld-text-m); line-height: 1.3; margin-top: 1px }


/* ═══ SIDEBAR CTA CARD (replaces mortgage summary) ═══ */
/* v6.0: Reset Webflow parent container to prevent double-border */
#sidebar-mortgage-summary {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

/* CLS prevention: use CSS order for sidebar layout instead of DOM reordering.
   order only works in flex/grid — desktop needs explicit flex, tablet/mobile already grid */
@media (min-width: 992px) {
  #listing-sidebar.listing-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}
/* Default order: price card → tour → CTA */
#sidebar-price-card,
[data-field="sale-info"],
.ld-sale-info { order: 1; }
#sidebar-tour-scheduler { order: 2; }
#sidebar-mortgage-summary { order: 3; }
/* Active/New: tour first → CTA → price card */
.ld-sidebar-active #sidebar-tour-scheduler { order: 1; }
.ld-sidebar-active #sidebar-mortgage-summary { order: 2; }
.ld-sidebar-active #sidebar-price-card,
.ld-sidebar-active [data-field="sale-info"],
.ld-sidebar-active .ld-sale-info { order: 3; }
/* Sold/Pending: CTA first → price card, tour hidden */
.ld-sidebar-sold #sidebar-mortgage-summary { order: 1; }
.ld-sidebar-sold #sidebar-price-card,
.ld-sidebar-sold [data-field="sale-info"],
.ld-sidebar-sold .ld-sale-info { order: 2; }
.ld-sidebar-sold #sidebar-tour-scheduler { display: none; }

@keyframes sb-cta-fadeIn {
  from { opacity: 0; transform: translateY(10px) }
  to   { opacity: 1; transform: translateY(0) }
}
@keyframes sb-cta-pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.45) }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,0) }
}
@keyframes sb-cta-pulseYellow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234,179,8,.45) }
  50% { box-shadow: 0 0 0 5px rgba(234,179,8,0) }
}
@keyframes sb-cta-patternDrift {
  0% { background-position: 50% 50% }
  50% { background-position: 52% 48% }
  100% { background-position: 50% 50% }
}
@keyframes sb-cta-arcSpin {
  0%   { transform: rotate(0deg);   opacity: .6 }
  60%  { transform: rotate(1080deg); opacity: .6 }
  80%  { transform: rotate(1080deg); opacity: .25 }
  100% { transform: rotate(1080deg); opacity: .25 }
}

/* ── Card shell ── */
.sb-cta {
  background: #fff;
  border: 1px solid #e8e9ec;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 20px rgba(0,0,0,.04);
  transition: box-shadow .3s ease, transform .3s ease;
  animation: sb-cta-fadeIn .5s ease;
  font-family: 'DM Sans', var(--ld-font, sans-serif);
}
.sb-cta:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.07);
  transform: translateY(-2px);
}

/* ── 8X Pattern Header ── */
.sb-cta-header {
  position: relative;
  padding: 20px 24px 32px;
  background-color: #fff;
  background-image: url("https://cdn.prod.website-files.com/64cad38500506adf7341422e/6509f72807ff82a438814baf_8x-pattern.png");
  background-position: 50% 50%;
  background-size: cover;
  animation: sb-cta-patternDrift 12s ease-in-out infinite;
  overflow: hidden;
}
.sb-cta-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(to top, #ffffff, transparent);
  pointer-events: none;
}

/* ── Logo — centered ── */
.sb-cta-logo {
  display: flex; justify-content: center;
  margin-bottom: 20px;
  position: relative; z-index: 1;
  text-decoration: none;
}
.sb-cta-logo img { height: 28px; width: auto; }

/* ── Agent row ── */
.sb-cta-agent {
  display: flex; align-items: center; gap: 16px;
  position: relative; z-index: 1;
}

/* Photo — 110px circle with arc ring */
.sb-cta-photo-wrap {
  position: relative;
  width: 128px; height: 128px;
  flex-shrink: 0;
}
.sb-cta-clip {
  position: relative; z-index: 1;
  width: 128px; height: 128px;
  border-radius: 50%;
  overflow: hidden;
  border: 3.5px solid #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.sb-cta-ring {
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(190,30,45,.08);
}
.sb-cta-ring::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: #be1e2d;
  border-right-color: rgba(190,30,45,.3);
  filter: drop-shadow(0 0 4px rgba(190,30,45,.3));
  animation: sb-cta-arcSpin 4s cubic-bezier(.4,0,.2,1) forwards;
}
.sb-cta-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 58% 8%;
  transform: scale(1.38);
  transform-origin: 58% 8%;
  filter: brightness(1.15);
}

/* ── Agent info ── */
.sb-cta-info { min-width: 0; flex: 1; }
.sb-cta-name {
  font-size: 20px; font-weight: 700; color: #1a1a1a;
  line-height: 1.2; margin-bottom: 3px;
}
.sb-cta-role {
  font-size: 13px; color: #4a4a4a;
  line-height: 1.3; margin-bottom: 7px;
}
.sb-cta-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
}
.sb-cta-status.sb-cta-pulse-green { color: #2d8f4e; }
.sb-cta-status.sb-cta-pulse-yellow { color: #b45309; }
.sb-cta-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
}
.sb-cta-pulse-green .sb-cta-dot {
  background: #22c55e;
  animation: sb-cta-pulseGreen 2s ease-in-out infinite;
}
.sb-cta-pulse-yellow .sb-cta-dot {
  background: #eab308;
  animation: sb-cta-pulseYellow 2.5s ease-in-out infinite;
}

/* ── Card body ── */
.sb-cta-body { padding: 4px 24px 22px; }

/* ── Experience — light, REW-style ── */
.sb-cta-exp {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #f4f5f8;
  border: 1px solid #e8e9ec;
  border-radius: 12px;
}
.sb-cta-exp-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 26px; font-weight: 500; color: #be1e2d;
  line-height: 1; letter-spacing: -1px;
  flex-shrink: 0;
}
.sb-cta-exp-sep {
  width: 1px; height: 28px;
  background: #e8e9ec;
  flex-shrink: 0;
}
.sb-cta-exp-detail {
  font-size: 13px; font-weight: 500; color: #4a4a4a;
  line-height: 1.35;
}
.sb-cta-exp-detail span {
  color: #8a8a8a; font-size: 11px;
  display: block; margin-top: 1px;
}

/* ── Credentials — green dots ── */
.sb-cta-creds {
  display: flex; gap: 16px;
  margin-bottom: 16px;
  padding: 0 2px;
}
.sb-cta-cred {
  font-size: 12px; font-weight: 500; color: #4a4a4a;
  display: flex; align-items: center; gap: 5px;
}
.sb-cta-cred::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* ── Divider ── */
.sb-cta-sep { height: 1px; background: #e8e9ec; margin-bottom: 16px; }

/* ── Actions ── */
.sb-cta-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 16px;
}
.sb-cta-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 13px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: -.1px;
  text-decoration: none; cursor: pointer;
  transition: all .2s ease;
  border: none; font-family: inherit; line-height: 1;
}
.sb-cta-btn-primary { background: #1a1a1a; color: #fff; }
.sb-cta-btn-primary:hover {
  background: #be1e2d; transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(190,30,45,.25);
}
.sb-cta-btn-outline {
  background: transparent; color: #1a1a1a;
  border: 1.5px solid #e8e9ec;
}
.sb-cta-btn-outline:hover {
  border-color: #1a1a1a; transform: translateY(-1px);
}

/* ── Services ── */
.sb-cta-services {
  border-top: 1px solid #e8e9ec;
  padding-top: 14px;
  display: flex; gap: 10px;
}
.sb-cta-svc {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 12px;
  border-radius: 10px;
  background: #f4f5f8;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
}
.sb-cta-svc:hover { background: #ecedf0; }
.sb-cta-svc-title {
  font-size: 13px; font-weight: 700; color: #1a1a1a;
  line-height: 1.2;
  display: flex; align-items: center; justify-content: space-between;
}
.sb-cta-svc-arrow {
  font-size: 14px; color: #c0c4cd;
  transition: all .2s ease;
}
.sb-cta-svc:hover .sb-cta-svc-title { color: #be1e2d; }
.sb-cta-svc:hover .sb-cta-svc-arrow { color: #be1e2d; transform: translateX(2px); }
.sb-cta-svc-sub {
  font-size: 11px; font-weight: 500; color: #8a8a8a;
  line-height: 1.35;
  margin-top: 6px;
}


/* ═══════════════════════════════════════════════════════════════════
   WIREFRAME v5 COMPATIBILITY — shorthand class aliases
   ═══════════════════════════════════════════════════════════════════ */

/* Stats bar */
.stats { display: flex; border: 1px solid var(--ld-border); border-radius: var(--ld-rl); overflow: hidden; margin: 20px 0 }
.stat { flex: 1; padding: 15px 12px; text-align: center; border-right: 1px solid var(--ld-border) }
.stat:last-child { border-right: none }
.sv { font-size: 19px; font-weight: 700; margin-bottom: 1px }
.sl { font-size: 10px; color: var(--ld-text-m); text-transform: uppercase; letter-spacing: .7px; font-weight: 500 }

/* Details */
.dtl-group { margin-bottom: 20px }
.dtl-group-hdr { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--ld-accent); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--ld-border-lt) }
.dtls { border: 1px solid var(--ld-border); border-radius: var(--ld-rl); overflow: hidden }
.dtl { display: flex; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--ld-border-lt); font-size: 14px }
.dtl:last-child { border-bottom: none }
.dk { color: var(--ld-text-m); min-width: 140px }
.dv { color: var(--ld-text); font-weight: 500; text-align: right }
.dv a { color: var(--ld-accent); text-decoration: none }
.dv a:hover { text-decoration: underline }
.dtls-2 { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ld-border); border-radius: var(--ld-rl); overflow: hidden }
.dtls-2 .dtl { border-bottom: 1px solid var(--ld-border-lt) }
.dtls-2 .dtl:nth-child(odd) { border-right: 1px solid var(--ld-border-lt) }
.feat-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px }
.feat-pill { padding: 5px 12px; background: var(--ld-bg-off); border: 1px solid var(--ld-border); border-radius: 100px; font-size: 12px; color: var(--ld-text-s); font-weight: 500 }

/* Timeline (wireframe shorthand) */
.tl { padding-left: 20px; position: relative }
.tl::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--ld-border) }
.tli { position: relative; padding: 8px 0; display: flex; justify-content: space-between; align-items: flex-start }
.tli::before { content: ''; position: absolute; left: -18px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: white; border: 2px solid var(--ld-accent) }
.tli.now::before { background: var(--ld-accent); box-shadow: 0 0 0 3px rgba(200,16,46,.08) }
/* Timeline dot colours (wireframe shorthand) */
.tli.ev-listed::before { border-color: var(--ld-green) }
.tli.ev-listed.now::before { background: var(--ld-green); box-shadow: 0 0 0 3px rgba(22,163,74,.08) }
.tli.ev-sold::before { border-color: var(--ld-red) }
.tli.ev-sold.now::before { background: var(--ld-red); box-shadow: 0 0 0 3px rgba(220,38,38,.08) }
.tli.ev-pending::before { border-color: var(--ld-yellow) }
.tli.ev-pending.now::before { background: var(--ld-yellow); box-shadow: 0 0 0 3px rgba(245,158,11,.08) }
.tli.ev-expired::before, .tli.ev-cancelled::before, .tli.ev-withdrawn::before { border-color: #9ca3af }
.tli.ev-expired.now::before, .tli.ev-cancelled.now::before, .tli.ev-withdrawn.now::before { background: #9ca3af; box-shadow: 0 0 0 3px rgba(156,163,175,.08) }
.tle { font-size: 14px; font-weight: 500 }
.tld { font-size: 12px; color: var(--ld-text-m) }
.tlp { font-size: 14px; font-weight: 600 }

/* Cards (wireframe shorthand) */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
.mini { background: white; border-radius: var(--ld-rl); overflow: hidden; border: 1px solid var(--ld-border); transition: .2s; text-decoration: none; color: inherit; display: block }
.mini:hover { box-shadow: var(--ld-shadow-lg); transform: translateY(-2px) }
.mi { height: 130px; position: relative; background: linear-gradient(135deg, #e0e0e4, #d0d0d6); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ld-text-m); background-size: cover; background-position: center }
.ms { position: absolute; top: 8px; left: 8px; padding: 3px 7px; background: var(--ld-red); color: white; font-size: 9px; font-weight: 700; border-radius: 4px; text-transform: uppercase; letter-spacing: .4px }
.mb2 { padding: 12px }
.mp { font-size: 16px; font-weight: 700; margin-bottom: 2px }
.ma { font-size: 12px; color: var(--ld-text-m); margin-bottom: 5px }
.mst { font-size: 12px; color: var(--ld-text-s) }
.md { font-size: 11px; color: var(--ld-text-m); margin-top: 4px }

/* Calculator (wireframe) */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px }
.calc-result { background: var(--ld-bg-off); border: 1px solid var(--ld-border); border-radius: var(--ld-rl); padding: 24px; text-align: center }
.cb { font-size: 32px; font-weight: 800; color: var(--ld-accent) }
.cls { font-size: 11px; color: var(--ld-text-m); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 4px }
.cr { margin-top: 14px; text-align: left }
.cri { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px }
.cri .k { color: var(--ld-text-m) }
.cri .v { color: var(--ld-text); font-weight: 500 }
.cri.tot { border-top: 1px solid var(--ld-border); margin-top: 5px; padding-top: 7px; font-weight: 600 }
.cri.tot .v { color: var(--ld-accent); font-size: 15px }
.inp { width: 100%; padding: 10px 13px; background: white; border: 1px solid var(--ld-border); border-radius: var(--ld-r); color: var(--ld-text); font-size: 14px; font-family: var(--ld-font); outline: none; transition: .15s }
.inp:focus { border-color: var(--ld-accent) }
.inp::placeholder { color: var(--ld-text-d) }
.inp-l { font-size: 11px; color: var(--ld-text-m); text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 4px; font-weight: 500 }

/* CTA band */
.cta-band { background: #111827; border-radius: var(--ld-rl); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; margin: 28px 0; color: white; flex-wrap: wrap; gap: 12px }
.cta-band-btn { padding: 10px 20px; background: var(--ld-accent); color: white; border: none; border-radius: var(--ld-r); font-size: 13px; font-weight: 600; font-family: var(--ld-font); cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-block; transition: .15s }
.cta-band-btn:hover { background: var(--ld-accent-h); color: white }

/* Map placeholder */
.map-box { height: 280px; background: var(--ld-bg-off); border-radius: var(--ld-rl); border: 1px solid var(--ld-border); position: relative; overflow: hidden }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px); background-size: 36px 36px }

/* Scores (wireframe) */
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px }
.sc { background: white; border: 1px solid var(--ld-border); border-radius: var(--ld-rl); padding: 20px; text-align: center }
.sr { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 20px; font-weight: 700; border-width: 3px; border-style: solid }
.st { font-size: 13px; font-weight: 600; margin-bottom: 1px }
.ss { font-size: 11px; color: var(--ld-text-m) }

/* Accordion */
.accord { border: 1px solid var(--ld-border); border-radius: var(--ld-rl); overflow: hidden }
.accord-item { border-bottom: 1px solid var(--ld-border-lt) }
.accord-item:last-child { border-bottom: none }
.accord-hdr { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 14px; font-weight: 500; user-select: none }
.accord-hdr:hover { background: var(--ld-bg-off) }
.accord-arrow { color: var(--ld-text-m); font-size: 12px; transition: transform .2s }
.accord-item.open .accord-arrow { transform: rotate(180deg) }
.accord-body { max-height: 0; overflow: hidden; transition: max-height .3s ease }
.accord-item.open .accord-body { max-height: 800px }
.accord-inner { padding: 0 16px 16px }


/* ═══════════════════════════════════════════════════════════════════
   v6.0 MOBILE / TABLET RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════════════════════════════ */

/* ── Sticky Mobile CTA Bar ── */
.ld-mobile-cta { display: none }
@media (max-width: 991px) {
  .ld-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--ld-border);
    display: flex;
    gap: 8px;
    transition: transform .3s ease, opacity .3s ease;
  }
  .ld-mobile-cta.is-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }
  .ld-mcta-btn {
    flex: 1;
    padding: 13px 12px;
    border-radius: var(--ld-r);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--ld-font);
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: block;
    line-height: 1;
  }
  .ld-mcta-btn.primary { background: var(--ld-accent); color: white }
  .ld-mcta-btn.primary:active { background: var(--ld-accent-h) }
  .ld-mcta-btn.secondary { background: white; color: var(--ld-text); border: 1px solid var(--ld-border) }
  .ld-mcta-btn.secondary:active { background: var(--ld-bg-off) }

  /* Bottom spacing so page content isn't hidden behind the bar */
  body { padding-bottom: 72px }
}

/* ── Horizontal Scroll Carousel (mobile/tablet) ── */
@media (max-width: 991px) {
  .ld-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-left: 16px;
    padding-right: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .ld-cards::-webkit-scrollbar { height: 0; display: none }
  .ld-cards .ld-card {
    min-width: 260px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .ld-cards .ld-card:last-child { margin-right: 16px }
  .ld-cards-wrap { position: relative; overflow: hidden }
  .ld-cards-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    z-index: 1;
    transition: opacity .2s;
  }
  .ld-cards-wrap.scrolled-end::after { opacity: 0 }

  /* Wireframe alias */
  .cards-3 {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .cards-3::-webkit-scrollbar { height: 0; display: none }
  .cards-3 .mini {
    min-width: 260px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

/* ── Breadcrumb Section Nav (mobile/tablet) ── */
.ld-section-nav { display: none }
@media (max-width: 991px) {
  .ld-section-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--ld-border-lt);
    margin: 0 -16px 16px;
    padding: 0 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 100;
  }
  .ld-section-nav::-webkit-scrollbar { height: 0; display: none }
  .ld-section-nav a {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ld-text-m);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .15s, border-color .15s;
  }
  .ld-section-nav a.is-active {
    color: var(--ld-accent);
    border-bottom-color: var(--ld-accent);
  }
}

/* ── Tablet (≤991px) ── */
@media (max-width: 991px) {
  .ld-calc, .calc-grid { grid-template-columns: 1fr; gap: 16px }
  .ld-section { scroll-margin-top: 52px }

  /* CTA band stacks */
  .cta-band { flex-direction: column; text-align: center; padding: 16px 18px }
  .cta-band-btn { width: 100% }

  /* Tour date cells tighter */
  .tour-date-cell { padding: 6px 4px }

  /* Card image taller for touch */
  .ld-card-img { height: 160px }

  /* Gallery arrows — smaller on tablet */
  .ld-gallery-arrow { width: 34px; height: 34px; font-size: 18px }
  .ld-gallery-arrow.prev { left: 8px }
  .ld-gallery-arrow.next { right: 8px }

  /* Sidebar — 2-column layout on tablet when stacked below main content */
  #listing-sidebar.listing-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  #listing-sidebar .sb-card:last-child {
    grid-column: 1 / -1;
  }

  /* Sidebar CTA — adjust for tablet */
  .sb-cta-hero { height: 220px }
  .sb-cta-name { font-size: 18px }
  .sb-cta-info { flex-direction: column; align-items: flex-start; gap: 6px }
  .sb-cta-question { font-size: 13px }

  /* Auth banner — keep horizontal on tablet, same as desktop */
}

/* ── Mobile (≤767px) ── */
@media (max-width: 767px) {
  /* Sidebar back to single column on phone */
  #listing-sidebar.listing-sidebar {
    grid-template-columns: 1fr;
  }
  #listing-sidebar .sb-card:last-child {
    grid-column: auto;
  }

  /* Stats: horizontal scroll instead of wrapping */
  .ld-stats, .stats {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .ld-stats::-webkit-scrollbar, .stats::-webkit-scrollbar { height: 0; display: none }
  .ld-stat, .stat {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 12px 10px;
  }
  .ld-sv, .sv { font-size: 16px }
  .ld-sl, .sl { font-size: 9px; letter-spacing: .5px }

  /* Details: single column */
  .ld-dtls-2, .dtls-2 { grid-template-columns: 1fr }
  .ld-dtls-2 .ld-dtl:nth-child(odd), .dtls-2 .dtl:nth-child(odd) { border-right: none }

  /* Scores: stay 3-col but compact */
  .ld-scores, .scores { grid-template-columns: repeat(3, 1fr); gap: 8px }
  .ld-sc, .sc { padding: 12px 8px }
  .ld-sr, .sr { width: 48px; height: 48px; font-size: 16px; border-width: 2px; margin-bottom: 6px }

  .ld-sale-grid { grid-template-columns: 1fr 1fr }

  /* Auth banner — hide on mobile, too bulky */
  .ld-auth-banner { display: none !important }
}

/* ── Small Mobile (≤479px) ── */
@media (max-width: 479px) {
  /* Scores: even more compact */
  .ld-scores, .scores { grid-template-columns: repeat(3, 1fr); gap: 6px }
  .ld-sc, .sc { padding: 10px 6px }
  .ld-sr, .sr { width: 42px; height: 42px; font-size: 14px }

  .ld-sale-grid { grid-template-columns: 1fr }

  /* Timeline tighter */
  .ld-tli, .tli { padding: 6px 0 }
  .ld-tle, .tle { font-size: 13px }
  .ld-tlp, .tlp { font-size: 13px }
}


/* ═══════════════════════════════════════════════
   MOBILE PHOTO CAROUSEL (≤767px)
   ═══════════════════════════════════════════════ */
.ld-mob-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  aspect-ratio: 4/3;
}
.ld-mob-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .3s ease;
}
.ld-mob-track.is-swiping { transition: none }
.ld-mob-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.ld-mob-back {
  position: absolute; top: 12px; left: 12px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,.45);
  color: white; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer;
  z-index: 10; pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.ld-mob-actions {
  position: absolute; top: 12px; right: 12px;
  display: flex; gap: 8px;
  z-index: 10; pointer-events: auto;
}
.ld-mob-actions > div {
  width: 36px; height: 36px;
  background: rgba(0,0,0,.45);
  color: white; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.ld-mob-actions > div svg {
  width: 18px; height: 18px; flex-shrink: 0;
}
/* ── Desktop Gallery Actions (heart + share) ── */
.ld-gallery-actions {
  position: absolute; top: 12px; right: 12px;
  display: flex; gap: 8px;
  z-index: 10;
}
.ld-ga-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  font-family: var(--ld-font, 'Inter', sans-serif);
  font-size: .82rem; font-weight: 600;
  color: var(--ld-text, #1a1a2e);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ld-ga-btn:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transform: translateY(-1px);
}
.ld-ga-btn svg { width: 16px; height: 16px; flex-shrink: 0 }
.ld-ga-btn span { pointer-events: none }
.ld-ga-btn.is-saved { color: var(--ld-accent, #c8102e) }
@media(max-width: 767px){ .ld-gallery-actions { display: none } }

.ld-mob-badges {
  position: absolute; bottom: 12px; left: 12px;
  display: flex; gap: 6px;
  z-index: 2;
}
.ld-mob-counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.5);
  color: white; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 12px;
  z-index: 2;
}
.ld-mob-dots {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 5px;
  z-index: 2;
}
.ld-mob-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: background .2s;
}
.ld-mob-dot.on { background: white }

/* ── Gallery counter (desktop) ── */
.ld-gallery-counter {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(0,0,0,.55);
  color: white; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
  pointer-events: none; z-index: 2;
}

/* ── Property type label ── */
.ld-type-label {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--ld-accent, #c8102e);
  background: var(--ld-accent-lt, #fff1f2);
  padding: 3px 10px; border-radius: 4px;
  margin-bottom: 12px;
}

.ld-title-label {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  padding: 3px 10px; border-radius: 4px;
  margin-bottom: 12px; margin-left: 6px;
}
.ld-title-free { color: #15803d; background: #f0fdf4; }
.ld-title-other { color: #92400e; background: #fffbeb; }

/* ── Sold card semantic class ── */
.ld-sold-card { /* inherits .ld-card — no extra styles needed */ }

/* ── v5.10 Mobile CTA bar (price + address + button) ── */
.ld-mob-cta-bar {
  display: none;
}
@media (max-width: 767px) {
  .ld-mob-cta-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--ld-border, #e5e7eb);
    z-index: 800;
    font-family: var(--ld-font, Inter, sans-serif);
  }
  .ld-mob-cta-price { font-size: 16px; font-weight: 700; line-height: 1.2 }
  .ld-mob-cta-addr { font-size: 11px; color: var(--ld-text-m, #9ca3af); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px }
  .ld-mob-cta-btn {
    padding: 10px 18px;
    background: var(--ld-accent, #c8102e);
    color: white; font-weight: 600; font-size: 13px;
    border-radius: var(--ld-r, 8px);
    text-decoration: none; white-space: nowrap;
  }
}

/* ── Navbar hide-on-scroll-down / show-on-scroll-up (mobile) ── */
@media (max-width: 991px) {
  .w-nav {
    transition: transform .3s ease;
    will-change: transform;
  }
  .w-nav.ld-nav-hidden {
    transform: translateY(-100%);
