/* Slim-port shim (NOT in the original package): the React mockup conditionally
   renders/omits elements; this SSR port renders both states and hides one with
   the `hidden` attribute. Several design rules (.units__list, .ba-tier-panel…)
   set display on a class, which outranks the UA [hidden] rule — normalize it so
   `hidden` always wins. The only behavioral addition; design rules below are verbatim. */
[hidden] { display: none !important; }

/* ================================================================
   340 E Randolph — Dibze building page
   Original visual system in the spirit of Dibze conventions
   ================================================================ */

:root {
  /* Accent — Dibze purple ramp (matches landing + map + unit page) */
  --accent: #6B4FE6;
  --accent-ink: #4B30C0;
  --accent-soft: #F2EEFE;
  --purple-50: #F2EEFE;
  --purple-100: #E1D9FC;
  --purple-300: #A99BF1;
  --purple-500: #6B4FE6;
  --purple-600: #5B3FD6;
  --purple-700: #4B30C0;

  /* Neutrals — family scale */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #F8F8FB;
  --ink: #1A1A1F;
  --ink-2: #3A3A42;
  --ink-3: #6B6B76;
  --line: #E7E7EE;
  --line-2: #C9C9D1;

  /* Green — family "available / verified" */
  --ok: #10B981;
  --ok-text: #047857;
  --ok-soft: rgba(16,185,129,.12);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "EB Garamond", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-1: 0 1px 2px rgba(15,15,20,.05), 0 8px 24px rgba(15,15,20,.07);
  --shadow-2: 0 2px 6px rgba(15,15,20,.07), 0 18px 44px rgba(15,15,20,.14);

  --pad: 48px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* container */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================================================ TOP NAV */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topnav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1440px; margin: 0 auto; padding: 0 var(--pad);
  height: 72px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); }
.brand__mark { display: inline-flex; }
.bullseye {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--accent);
  display: grid; place-items: center; flex: none;
}
.bullseye-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.bullseye--sm { width: 24px; height: 24px; border-width: 2.5px; }
.bullseye--sm .bullseye-dot { width: 8px; height: 8px; }
.brand__word {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 23px; letter-spacing: -0.04em;
  color: var(--ink);
}
.topnav__links { display: flex; gap: 24px; color: var(--ink-2); font-size: 14px; flex: 1; }
.topnav__links a { padding: 8px 0; font-weight: 500; }
.topnav__links a:hover { color: var(--ink); }
.topnav__right { display: flex; align-items: center; gap: 12px; }
.topnav__signin {
  font-size: 14px; color: var(--ink); font-weight: 500;
  padding: 9px 20px;
  border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.topnav__signin:hover { border-color: var(--purple-300); color: var(--purple-700); box-shadow: var(--shadow-1); }

/* ============================================================ BUILDING HEAD */
.building-head { padding: 32px 0 12px; }
.breadcrumbs {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-3); font-size: 14px;
  margin-bottom: 22px;
}
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs__sep { color: var(--line-2); }
.breadcrumbs__current { color: var(--ink); }

.building-head__eyebrow {
  font-size: 13px; color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.building-head__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.building-head__title {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 42px; line-height: 1.08; letter-spacing: -0.03em;
  margin: 0;
}
.building-head__alt {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  font-size: 24px;
  color: var(--ink-3);
  letter-spacing: 0;
  margin: 2px 0 12px;
}
.building-head__addr {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-size: 15px;
  border-bottom: 1px dashed transparent;
}
.building-head__addr:hover { border-bottom-color: var(--line-2); }

.building-head__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 13px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.chip--accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* Stat strip below the title */
.building-head__stats {
  list-style: none; padding: 0; margin: 24px 0 0 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.building-head__stats li {
  padding: 18px 20px;
  font-size: 13px; color: var(--ink-3);
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.building-head__stats strong {
  display: block;
  font-size: 26px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1;
  margin-bottom: 5px;
}

/* ============================================================ HERO */
.hero { padding: 18px 0 8px; }
.hero__mount { min-height: 520px; }

/* Mosaic hero */
.heromosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 6px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.heromosaic__tile { position: relative; overflow: hidden; background: var(--line); }
.heromosaic__tile:first-child { grid-row: 1 / span 2; }
.heromosaic__tile:last-child {
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 14px;
}
.heromosaic__more {
  background: rgba(20,23,26,0.78); color: #fff;
  font-family: var(--font-mono); font-size: 12px;
  padding: 8px 12px; border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* Single hero */
.herosingle {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 540px;
  position: relative;
}

/* Carousel */
.herocarousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 540px;
}
.herocarousel__track {
  display: flex;
  height: 100%;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.herocarousel__slide { flex: 0 0 100%; height: 100%; position: relative; }
.herocarousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.herocarousel__btn--prev { left: 16px; }
.herocarousel__btn--next { right: 16px; }
.herocarousel__dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.herocarousel__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 0; padding: 0;
}
.herocarousel__dot--active { background: #fff; }

/* Placeholder photo: striped svg + monospace label */
.photo {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--ph-a, #c9c2b3) 0%, var(--ph-b, #a59c8a) 100%);
  position: relative;
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.06) 0 14px,
    rgba(0,0,0,0.06) 14px 28px
  );
}
.photo__label {
  position: relative; z-index: 1;
  font-size: 12px; font-weight: 500;
  background: rgba(20,23,26,0.62); color: #fff;
  padding: 5px 10px; margin: 12px; border-radius: 6px;
  backdrop-filter: blur(2px);
}
/* Real materialized MLS photo: a responsive <picture> (Img::picture) fills the
   slide, object-fit-cover, like every other listing card on the site. */
.cardgal__slide picture { display: block; width: 100%; height: 100%; }
.cardgal__slide .photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* photo color variants */
.photo[data-tone="exterior"] { --ph-a: #2c3b48; --ph-b: #6b8597; }
.photo[data-tone="lobby"]    { --ph-a: #8c7d65; --ph-b: #b8a98d; }
.photo[data-tone="living"]   { --ph-a: #a89a82; --ph-b: #d4c5ab; }
.photo[data-tone="kitchen"]  { --ph-a: #6f7a5a; --ph-b: #b5b89a; }
.photo[data-tone="bed"]      { --ph-a: #757186; --ph-b: #a8a4b8; }
.photo[data-tone="bath"]     { --ph-a: #98a5a7; --ph-b: #cdd6d6; }
.photo[data-tone="pool"]     { --ph-a: #5a8095; --ph-b: #a7c4d2; }
.photo[data-tone="gym"]      { --ph-a: #4c4845; --ph-b: #908479; }
.photo[data-tone="amenity"]  { --ph-a: #6a6253; --ph-b: #a09280; }
.photo[data-tone="view"]     { --ph-a: #344b5c; --ph-b: #82a3b8; }

/* ============================================================ ANCHOR NAV */
.anchornav {
  position: sticky; top: 72px; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.anchornav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 8px var(--pad);
}
.anchornav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 4px; flex-wrap: nowrap;
  flex: 1; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.anchornav ul::-webkit-scrollbar { display: none; }
.anchornav ul li { flex: 0 0 auto; }
.anchornav ul a {
  display: block; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.anchornav ul a:hover { background: var(--surface-2); color: var(--ink); }
.anchornav__cta {
  flex: 0 0 auto;
  font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px;
  background: var(--accent); color: #fff;
}
.anchornav__cta:hover { background: var(--accent-ink); }

/* ============================================================ MAIN GRID */
.main { padding: 8px 0 80px; }
/* "Listings in this building" hugs the anchor nav — the first section keeps only a
   whisper of top padding so there's no dead band between the building name area and
   the listings (Revisions 6/10 v8 · condo building #1). */
.main__content > .section:first-child { padding-top: 8px; }
.main__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 72px;
  align-items: start;
}
.main__content { min-width: 0; }

/* value strip */
.valuestrip {
  list-style: none; padding: 16px 22px; margin: 0 0 16px 0;
  display: flex; gap: 28px; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px; color: var(--ink-2);
}
.valuestrip li { display: inline-flex; align-items: center; gap: 8px; }
.valuestrip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-soft);
}

/* sections */
.section { padding: 24px 0; scroll-margin-top: 140px; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { margin-bottom: 18px; }
.section__title {
  font-size: 28px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 6px 0;
}
.section__sub { color: var(--ink-3); font-size: 15px; margin: 0; max-width: 60ch; }

/* ============================================================ UNITS */
.modetabs {
  display: flex; align-items: stretch; gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.modetabs__tab {
  background: transparent; border: 0;
  padding: 16px 22px 14px;
  display: flex; flex-direction: column; gap: 2px;
  text-align: left;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--ink-3);
  transition: color .15s ease, border-color .15s ease;
}
.modetabs__tab:hover { color: var(--ink-2); }
.modetabs__tab--active { color: var(--ink); border-bottom-color: var(--accent); }
.modetabs__label { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.modetabs__count { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.modetabs__src {
  margin-left: auto; align-self: center;
  font-size: 12px; color: var(--ink-3);
  display: flex; align-items: center; gap: 6px;
}
.modetabs__src::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft);
}

.units__bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.units__filters { display: flex; gap: 4px; background: var(--surface); padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.units__filterbtn {
  border: 0; background: transparent;
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2);
  white-space: nowrap;
}
.units__filterbtn[aria-pressed="true"] {
  background: var(--ink); color: #fff;
}
.units__sort {
  font-size: 13px; color: var(--ink-3);
}

.units__list { display: grid; gap: 14px; }

/* unit card — 500x375 photo + flex right column */
.unit {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.unit:hover { border-color: var(--line-2); }
.unit__img {
  width: 400px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  position: relative;
}
.unit__namelink { display: inline-block; }
.unit__namelink:hover .unit__name { color: var(--accent); }
.unit__name { transition: color .15s ease; }

/* Per-card photo carousel */
.cardgal { position: relative; width: 100%; height: 100%; }
.cardgal__track {
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cardgal__track::-webkit-scrollbar { display: none; }
.cardgal__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: block; position: relative; cursor: pointer; }
.cardgal__slide .photo { width: 100%; height: 100%; }
/* Hover affordance — whole photo is clickable → unit page */
.cardgal__slide::after {
  content: "View unit →";
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(15,15,20,.55), transparent);
  opacity: 0; transition: opacity .2s ease;
  pointer-events: none;
}
.unit:hover .cardgal__slide::after { opacity: 1; }
@media (hover: none) { .cardgal__slide::after { display: none; } }
.cardgal__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--ink);
  border: 0; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  cursor: pointer; opacity: 0; transition: opacity .15s ease, background .15s ease;
  z-index: 2;
}
.cardgal__arrow--prev { left: 10px; }
.cardgal__arrow--next { right: 10px; }
.cardgal__arrow:disabled { opacity: 0 !important; pointer-events: none; }
.unit:hover .cardgal__arrow { opacity: 1; }
.cardgal__arrow:hover { background: #fff; }
.cardgal__count {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 11px; font-weight: 600; color: #fff;
  background: rgba(15,15,20,.55); backdrop-filter: blur(2px);
  padding: 3px 9px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.cardgal__dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 2;
}
.cardgal__dot {
  width: 6px; height: 6px; border-radius: 50%; padding: 0; border: 0;
  background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s ease, background .2s ease;
}
.cardgal__dot.is-on { background: #fff; width: 16px; border-radius: 999px; }
/* On touch devices the arrows are noise — swipe instead */
@media (hover: none) {
  .cardgal__arrow { display: none; }
}
.unit__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.unit__body {
  padding: 20px 22px 20px 0;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}
.unit__topline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.unit__name { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -0.01em; color: var(--ink-2); }
.unit__feature {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.unit__agent { font-size: 13px; color: var(--ink-2); }

/* Price-led card body */
.unit__priceline { display: flex; align-items: baseline; gap: 10px; }
.unit__price {
  font-size: 26px; font-weight: 700; letter-spacing: -0.03em;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1;
}
.unit__psf {
  font-size: 13px; color: var(--ink-3); font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.unit__specs {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px;
  font-size: 15px; color: var(--ink-2);
}
.unit__specs b { font-weight: 600; color: var(--ink); }
.unit__fin {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px;
  font-size: 13.5px; color: var(--ink-2);
}
.unit__fin b { font-weight: 500; color: var(--ink-3); }
.unit__dot { color: var(--line-2); }

/* Bottom row: attribution left, View-unit button right */
.unit__footer {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.unit__attrib {
  font-size: 12.5px; color: var(--ink-3); min-width: 0;
}
.unit__attrib-by, .unit__attrib-meta { display: block; }
.unit__attrib-meta { margin-top: 1px; }
/* Listing-broker contact (IDX attribution): actionable but kept in the attrib
   color so it reads as part of the credit line, not a generic accent link. */
.unit__attrib-tel { color: inherit; text-decoration: none; }
.unit__attrib-tel:hover { text-decoration: underline; }
.unit__allin {
  text-align: right;
  font-size: 12px; color: var(--ink-3);
}
.unit__allin-val {
  font-size: 14px; font-weight: 500; color: var(--ink);
}
/* Compact density — narrower photo */
.units--compact .unit { grid-template-columns: 320px minmax(0, 1fr); }
.units--compact .unit__img { width: 320px; aspect-ratio: 4 / 3; }
.units--compact .unit__body { padding: 14px 16px 14px 0; gap: 6px; }
.units--compact .unit__name { font-size: 15px; }
.units--compact .unit__price { font-size: 20px; }
.units--compact .unit__allin { display: none; }
.units--compact .unit__features { display: none; }
.units--compact .unit__pulse { display: none; }
.units--compact .unit__footer { padding-top: 8px; }

/* Pulse — social proof on hot units */
.unit__pulse {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 10px; border-radius: 999px;
  align-self: flex-start;
  margin: 2px 0;
}
.unit__pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: unitPulse 1.6s ease-in-out infinite;
}
@keyframes unitPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, border-color .15s ease, box-shadow .2s ease, transform .05s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(107,79,230,.28); }
.btn--primary:hover { background: var(--accent-ink); box-shadow: 0 10px 26px rgba(107,79,230,.36); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink); }
.btn--sm { padding: 8px 14px; font-size: 13px; box-shadow: none; }
.btn--sm.btn--primary { box-shadow: 0 4px 12px rgba(107,79,230,.24); }
.btn--sm.btn--primary:hover { box-shadow: 0 6px 16px rgba(107,79,230,.32); }

/* ============================================================ AMENITIES */
.amenities {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.amenities li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.amenities__icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============================================================ DETAILS */
.details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.details__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.details__cardtitle {
  margin: 0 0 14px 0;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
}
.details__card dl { margin: 0; display: grid; gap: 12px; }
.details__card dl > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: baseline; }
.details__card dt { color: var(--ink-3); font-size: 13px; }
.details__card dd { margin: 0; font-size: 14px; color: var(--ink); font-weight: 500; }

/* ============================================================ MAP */
.map {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.map__placeholder { aspect-ratio: 1000/480; }
.map__placeholder svg { display: block; }
.map__legend {
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.map__legend ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px;
  font-size: 14px; color: var(--ink-2);
}

/* ============================================================ PROSE */
.prose { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 70ch; }
.about__more { display: none; }
@media (max-width: 768px) {
  .about__prose { max-height: 320px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
  .about__prose.is-open { max-height: none; -webkit-mask-image: none; mask-image: none; }
  .about__more {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
    background: transparent; border: 0; color: var(--accent);
    font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; padding: 4px 0;
  }
}
.prose p { margin: 0 0 14px 0; }
.prose p:last-child { margin-bottom: 0; }

/* ============================================================ FAQ */
.faq { display: grid; gap: 8px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  font-weight: 500; font-size: 16px;
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--ink-3); font-weight: 300;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0 0; color: var(--ink-2); line-height: 1.6; max-width: 70ch; }

/* ============================================================ SIMILAR */
/* explore-more forward exit ramp */
.exploremore {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 8px; padding: 20px 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s ease, background .15s ease;
}
.exploremore:hover { border-color: var(--purple-300); background: var(--accent-soft); }
.exploremore__t { display: block; font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.exploremore__s { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.exploremore__arrow { font-size: 22px; color: var(--accent); flex: none; }

.similar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  scroll-padding: 4px;
}
/* Same rail treatment as every other card strip on the site (landing .rail,
   cardgal track, anchornav): swipe/scroll with the scrollbar hidden — no odd
   slider under the cards. */
.similar { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.similar::-webkit-scrollbar { display: none; }

/* Rail arrows — the SAME chrome as the listing-card photo carousels
   (cardgal__arrow), wrapped around the similar/sold strips. Own class so the
   cardgal click handlers never grab these. Always visible on desktop (the
   strip isn't a hover-card); hidden on touch where swiping is native; faded
   out at the ends. */
.strip-nav { position: relative; }
.strip-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--ink);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  cursor: pointer; transition: opacity .15s ease, background .15s ease;
  z-index: 3;
}
.strip-arrow--prev { left: -8px; }
.strip-arrow--next { right: -8px; }
.strip-arrow:hover { background: #fff; }
.strip-arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .strip-arrow { display: none; } }
.similar__card {
  scroll-snap-align: start;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.similar__card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.similar__img {
  aspect-ratio: 4 / 3;
  position: relative;
  background: linear-gradient(135deg, #a89a82 0%, #d4c5ab 100%);
}
.similar__img[data-shade="a"] { background: linear-gradient(135deg, #4a6a7a, #b7c8ce); }
.similar__img[data-shade="b"] { background: linear-gradient(135deg, #7a6b54, #c2b290); }
.similar__img[data-shade="c"] { background: linear-gradient(135deg, #5b5b66, #a7a7b4); }
.similar__img[data-shade="d"] { background: linear-gradient(135deg, #3e5c5b, #94b3b1); }
.similar__img::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 12px, rgba(0,0,0,0.06) 12px 24px);
}
.similar__photo,
.similar__img picture,
.similar__img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  z-index: 1; /* over the shade + stripe overlay */
}
.similar__img .ph {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 11px;
  background: rgba(20,23,26,0.62); color: #fff;
  padding: 4px 10px; border-radius: 999px;
}
.similar__body { padding: 14px 16px 18px; }
.similar__body h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px 0; letter-spacing: -0.01em; }
.similar__body p { font-size: 13px; color: var(--ink-3); margin: 0; }

/* ============================================================ TOUR / ASIDE */
.tour { position: sticky; top: 128px; max-height: calc(100vh - 144px); overflow-y: auto; scrollbar-width: none; scroll-margin-top: 96px; }
.tour::-webkit-scrollbar { display: none; }
.tour__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-2);
}
.aside__modetoggle {
  display: flex; gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin: 0 0 14px;
}
.aside__modebtn {
  flex: 1; border: 0; background: transparent;
  padding: 8px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  transition: background .15s ease, color .15s ease;
}
.aside__modebtn:hover { color: var(--ink-2); }
.aside__modebtn--active { background: var(--ink); color: #fff; }
.aside__modebtn--active:hover { color: #fff; }

/* --- building-alerts card (primary) --- */
.ba-activity {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  margin-bottom: 14px;
}
.ba-activity__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: baPulse 1.8s infinite;
}
@keyframes baPulse { 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.ba-h { margin: 0 0 5px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.ba-sub { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.ba-form { display: flex; flex-direction: column; gap: 10px; }
.ba-input {
  height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 0 14px; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface); outline: none; transition: border-color .15s ease;
  width: 100%;
}
.ba-input:focus { border-color: var(--accent); }
.ba-input::placeholder { color: var(--ink-3); }
.ba-tierlink {
  align-self: center; border: 0; background: transparent;
  display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink-3);
  cursor: pointer; padding: 2px 4px;
}
.ba-tierlink:hover { color: var(--accent); }
.ba-tierlink svg { transition: transform .2s ease; }
.ba-tierlink.is-open { color: var(--accent); }
.ba-tierlink.is-open svg { transform: rotate(180deg); }
.ba-tier-panel {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px; animation: revealIn .18s ease;
}
@keyframes revealIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ba-tier-opt {
  border: 0; background: transparent; text-align: left;
  padding: 9px 11px; border-radius: 6px;
  font: inherit; font-size: 13px; color: var(--ink-2);
  transition: background .12s ease, color .12s ease;
}
.ba-tier-opt:hover { background: var(--surface-2); color: var(--ink); }
.ba-tier-opt.is-on { background: var(--accent-soft); color: var(--purple-700); font-weight: 600; }
.ba-submit { width: 100%; height: 48px; font-size: 15px; margin-top: 2px; }
.ba-risk { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 500; }

/* alerts success */
.ba-done { text-align: center; padding: 8px 2px; }
.ba-done__ic {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--ok-soft); color: var(--ok-text);
  display: grid; place-items: center;
}
.ba-done h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.ba-done p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.ba-relink {
  margin-top: 16px; border: 0; background: transparent; color: var(--accent);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline;
}

/* --- expert strip (secondary) --- */
.ba-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; }
.ba-divider::before, .ba-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ba-divider span { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.ba-expert__row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ba-expert__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: #fff; font-weight: 600; font-size: 16px;
  display: grid; place-items: center;
}
.ba-expert__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-expert__nm { font-size: 15px; font-weight: 600; }
.ba-expert__meta { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.ba-expert__status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ok-text); margin-top: 3px; }
.ba-expert__live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: baPulse 1.8s infinite; flex: none; }
.ba-talk { width: 100%; height: 44px; }

/* --- old tour form (deprecated, kept harmless) --- */
.tour__price { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tour__pricerange { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.tour__priceunit { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.tour__perks {
  list-style: none; padding: 0; margin: 0 0 16px 0;
  font-size: 13px; color: var(--ink-2);
  display: grid; gap: 6px;
}
.tour__perks li { color: var(--ink-2); }
.tour__perks li::first-letter { color: var(--ok); font-weight: 700; }
.tour__form { display: grid; gap: 10px; margin-bottom: 12px; }
.tour__form label { font-size: 12px; color: var(--ink-3); display: grid; gap: 4px; }
.tour__form input, .tour__phone {
  font: inherit;
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--surface-2);
}
.tour__form input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.tour__phone { display: flex; align-items: center; gap: 8px; padding: 0 0 0 10px; }
.tour__phone input { border: 0; background: transparent; flex: 1; padding-left: 0; }
.tour__phone input:focus { outline: none; }
.tour__form button { margin-top: 4px; width: 100%; padding: 12px 16px; font-size: 15px; }
.tour__fine { font-size: 11px; color: var(--ink-3); margin: 0; line-height: 1.4; }
.tour__or {
  text-align: center; color: var(--ink-3); font-size: 12px;
  margin: 14px 0 10px;
  position: relative;
}
.tour__or::before, .tour__or::after {
  content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--line);
}
.tour__or::before { left: 0; }
.tour__or::after { right: 0; }
.tour__phonelink {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 500;
}
.tour__phonelink:hover { background: var(--surface-2); }

/* ============================================================ FOOTER */
.footer { background: #0F0F14; color: rgba(255,255,255,.82); margin-top: 40px; }
.footer__top { padding: 32px var(--pad) 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer__cta p { margin: 0; font-size: 18px; max-width: 50ch; color: #e8e6df; }
.footer__cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.2); }
.footer__cta .btn--ghost:hover { background: rgba(255,255,255,0.06); }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  padding: 28px var(--pad);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__brand .brand { color: rgba(255,255,255,.82); }
.footer__brand .brand__word { color: #fff; }
.footer__eho { display: flex; align-items: center; gap: 10px; color: #a8a89e; font-size: 12px; }
.footer__grid h4 { font-size: 13px; font-weight: 500; color: #a8a89e; margin: 0 0 12px 0; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.footer__grid a:hover { color: #fff; }
.footer__social { display: flex !important; flex-direction: row !important; gap: 8px !important; }
.footer__social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: #d8d6cd;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.footer__bottom { padding: 18px var(--pad); font-size: 12px; color: #a8a89e; }

/* ============================================================ MOBILE STICKY CTA */
.mobilecta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 24px rgba(0,0,0,.06);
}
.mobilecta__call {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); color: var(--accent);
  background: var(--surface);
}
.mobilecta__call:active { background: var(--accent-soft); }
.mobilecta__btn { flex: 1; height: 50px; font-size: 16px; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1100px) {
  .main__grid { grid-template-columns: 1fr; gap: 28px; }
  .tour { position: static; max-height: none; overflow: visible; }
  .tour__card { max-width: 520px; margin: 0 auto; }
  .amenities { grid-template-columns: 1fr; }
  .building-head__stats { grid-template-columns: repeat(3, 1fr); }
  /* aside has collapsed → stack listing cards (photo on top) so the body gets full width */
  .unit, .units--compact .unit { grid-template-columns: 1fr; gap: 0; }
  .unit__img, .units--compact .unit__img { width: 100%; aspect-ratio: 4 / 3; }
  .unit__body { padding: 18px 20px 20px; }
  /* aside drops to bottom → keep the alerts CTA one tap away */
  .mobilecta { display: flex; }
  body { padding-bottom: 92px; }
  .anchornav__cta { display: none; }
}
@media (max-width: 768px) {
  :root { --pad: 16px; }

  .topnav__inner { height: 58px; }
  .brand__word { font-size: 20px; }
  .topnav__links { display: none; }
  .topnav__signin { padding: 8px 16px; font-size: 13px; }

  .building-head { padding: 18px 0 8px; }
  /* Collapse the trail to a single back link — the H1 below states the page */
  .breadcrumbs { font-size: 13px; margin-bottom: 14px; }
  .breadcrumbs > * { display: none; }
  .breadcrumbs a:last-of-type { display: inline-flex; align-items: center; color: var(--ink-2); font-weight: 500; }
  .breadcrumbs a:last-of-type::before { content: "‹"; margin-right: 6px; font-size: 16px; color: var(--ink-3); }
  .building-head__title { font-size: 28px; }
  .building-head__stats { grid-template-columns: repeat(2, 1fr); }

  .anchornav { display: none; }

  /* single column; aside drops below content */
  .main { padding: 8px 0 28px; }
  .tour { scroll-margin-top: 74px; }
  .tour__card { margin-bottom: 8px; }

  /* listing cards: photo stacks on top, full-width */
  .unit, .units--compact .unit { grid-template-columns: 1fr; gap: 0; }
  .unit__img, .units--compact .unit__img { width: 100%; aspect-ratio: 4 / 3; }
  .unit__body { padding: 16px 18px 18px; }

  /* Specs/financials wrap naturally as inline runs on mobile */

  .amenities { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }

  /* recently-sold + similar → horizontal scroll-snap (match sold strip) */
  .similar {
    grid-auto-columns: 78%;
    margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 12px;
    scroll-padding: var(--pad);
  }
  .similar::-webkit-scrollbar { display: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  /* Tighter section subheaders on mobile — reclaim vertical space */
  .section__head { margin-bottom: 16px; }
  .section__title { font-size: 22px; }
  .section__sub { font-size: 13px; line-height: 1.4; }
  .modetabs { flex-wrap: wrap; }
  .modetabs__src { width: 100%; padding: 8px 0 12px; }
}


/* ============================================================ UNITS — EXTENSIONS */
.unit__img { position: relative; }
.unit__compare {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  padding: 5px 10px 5px 7px;
  border-radius: 999px;
  font-size: 12px; color: var(--ink-2);
  cursor: pointer;
  backdrop-filter: blur(4px);
  user-select: none;
}
.unit__compare input { margin: 0; cursor: pointer; }
.unit__compare:hover { background: #fff; border-color: var(--line-2); }
.unit--selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.unit--selected .unit__compare { background: var(--accent); color: #fff; border-color: var(--accent); }

.units__rightbar { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.units__sortselect {
  background: transparent; border: 0;
  font: inherit; color: var(--ink);
  cursor: pointer;
}

/* Hide compare + pulse + allin in compact density to keep cards tight */
.units--compact .unit__compare { display: none; }
.units--compact .unit__pulse { display: none; }
.units--compact .unit__allin { display: none; }

/* ============================================================ RECENTLY SOLD */
.sold {}
.sold .section__head { margin-bottom: 20px; }
.sold__per { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.sold__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  scroll-padding: 4px;
}
.sold__strip { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sold__strip::-webkit-scrollbar { display: none; }

.sold__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
}
/* a resolvable sold/rented card links to the unit's page (#15) */
a.sold__card { text-decoration: none; color: inherit; transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease; }
a.sold__card:hover { border-color: var(--purple-300, #A99BF1); box-shadow: 0 6px 20px rgba(15,15,20,.08); transform: translateY(-2px); }
.sold__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.sold__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sold__badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 500;
  background: var(--ink); color: #fff;
  padding: 4px 10px; border-radius: 999px;
}
.sold__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.sold__addr { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.sold__specs { font-size: 13px; color: var(--ink-3); }
.sold__priceline {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 4px;
}
.sold__price { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.sold__psf {
  font-size: 12px; color: var(--ink-3);
}
.sold__closed { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.sold__foot {
  margin-top: 8px;
  display: flex; align-items: stretch;
  gap: 0; flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.sold__stat {
  flex: 1 1 0; min-width: 120px;
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 20px;
  border-right: 1px solid var(--line);
}
.sold__stat:last-child { border-right: 0; }
.sold__stat-v { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.sold__stat-l { font-size: 12.5px; color: var(--ink-3); }

/* ============================================================ EXPERT PROFILE */
.expert {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 14px 12px;
  margin: -6px -6px 14px;
}
.expert__row { display: flex; gap: 12px; align-items: center; }
.expert__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.expert__nm { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.expert__title {
  font-size: 12px; color: var(--ink-3); margin-top: 1px;
}
.expert__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 12px;
  padding: 10px 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.expert__stats > div { display: flex; flex-direction: column; gap: 1px; padding-right: 12px; }
.expert__stats > div + div { border-left: 1px solid var(--line); padding-left: 12px; padding-right: 0; }
.expert__stats strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.expert__stats span { font-size: 11px; color: var(--ink-3); line-height: 1.3; }
.expert__pitch {
  font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
  margin: 10px 0 0;
}

/* ============================================================ SAVE SEARCH CTA */
.savesearch {
  margin-top: 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: center;
}
.savesearch__copy h3 {
  font-size: 24px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 8px; color: #fff;
}
.savesearch__copy p { margin: 0; font-size: 14px; line-height: 1.5; opacity: 0.85; max-width: 38ch; }

.savesearch__form { display: flex; flex-direction: column; gap: 10px; }
.savesearch__radios { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.savesearch__radios label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.savesearch__radios input { accent-color: #fff; }

.savesearch__inputs { display: flex; gap: 8px; }
.savesearch__inputs input {
  flex: 1; font: inherit;
  padding: 12px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px; color: #fff;
}
.savesearch__inputs input::placeholder { color: rgba(255,255,255,0.55); }
.savesearch__inputs input:focus { outline: 2px solid rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.4); }
.savesearch__inputs .btn {
  background: #fff; color: var(--accent); border-color: #fff;
  font-weight: 600; padding: 12px 20px;
}
.savesearch__inputs .btn:hover { background: var(--surface-2); color: var(--accent-ink); }

.savesearch__fine { font-size: 11px; opacity: 0.7; }

.savesearch--done {
  display: flex; flex-direction: row; align-items: center; gap: 18px;
  grid-template-columns: none;
}
.savesearch--done .savesearch__icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.savesearch--done h3 { font-size: 20px; margin-bottom: 4px; }
.savesearch--done p { font-size: 14px; opacity: 0.85; margin: 0; max-width: none; }

/* ============================================================ COMPARE BAR */
.comparebar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -10px 30px -8px rgba(0,0,0,0.25);
  animation: cmpbarin .25s ease-out;
}
@keyframes cmpbarin {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.comparebar__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 14px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.comparebar__left { display: flex; align-items: center; gap: 12px; }
.comparebar__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-weight: 600; font-size: 14px;
}
.comparebar__label { font-size: 14px; }
.comparebar__clear {
  background: transparent; border: 0; color: rgba(255,255,255,0.6);
  font-size: 12px; padding: 6px 10px; border-radius: 6px; cursor: pointer;
  text-decoration: underline;
}
.comparebar__clear:hover { color: #fff; }
.comparebar .btn--primary[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ============================================================ COMPARE MODAL */
.cmp {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: stretch; justify-content: stretch;
}
.cmp__scrim {
  position: absolute; inset: 0;
  background: rgba(20,23,26,0.6);
  backdrop-filter: blur(6px);
}
.cmp__panel {
  position: relative;
  margin: auto;
  width: min(1280px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: cmpin .2s ease-out;
}
@keyframes cmpin {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cmp__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}
.cmp__head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.cmp__close {
  background: transparent; border: 1px solid var(--line-2);
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 16px; color: var(--ink-2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cmp__close:hover { background: var(--surface-2); }
.cmp__scroll { overflow: auto; padding: 0 28px 28px; }
.cmp__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  min-width: 720px;
}
.cmp__table th, .cmp__table td {
  text-align: left;
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  word-wrap: break-word;
}
.cmp__table thead th {
  position: sticky; top: 0;
  background: var(--surface);
  z-index: 1;
  padding-top: 20px;
  border-bottom: 1px solid var(--line-2);
}
.cmp__rowlabel {
  font-size: 13px; color: var(--ink-3);
  width: 180px;
}
.cmp__unitimg { width: 100%; height: 110px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 8px; }
.cmp__unitname { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.cmp__unitmls { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.cmp__table tfoot td { border-bottom: 0; padding-top: 16px; }

/* ============================================================ RESPONSIVE — extensions */
@media (max-width: 1100px) {
  .savesearch { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
}
@media (max-width: 768px) {
  .savesearch__inputs { flex-direction: column; }
  .sold__stat { flex-basis: 50%; min-width: 0; }
  .sold__stat:nth-child(2n) { border-right: 0; }
  .sold__stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sold__strip {
    grid-auto-columns: 78%;
    margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 12px;
    scroll-padding: var(--pad);
  }
  .cmp__rowlabel { width: 130px; }
}

/* ============================================================ DEVICE PREVIEW TOGGLE */
.dev-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 950;
  display: inline-flex; background: rgba(15,15,20,.82);
  backdrop-filter: blur(8px); border-radius: 999px; padding: 4px; gap: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.dev-toggle button {
  border: 0; background: transparent; color: rgba(255,255,255,.7);
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: color .15s ease;
}
.dev-toggle button:hover:not(.on) { color: #fff; }
.dev-toggle button.on { background: #fff; color: var(--ink); }

.phone-stage {
  position: fixed; inset: 0; z-index: 900;
  background: radial-gradient(120% 90% at 50% 0%, #221b3a, #131019);
  display: grid; place-items: center; padding: 28px 16px;
  animation: devFade .18s ease;
}
@keyframes devFade { from { opacity: 0; } to { opacity: 1; } }
.phone {
  position: relative; width: 393px; max-width: 94vw; height: min(852px, 90vh);
  background: #0b0b10; border-radius: 46px; padding: 12px;
  box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone-notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #0b0b10; border-radius: 0 0 16px 16px; z-index: 2;
}
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: #fff; display: block; }

/* Hide the toggle when this page is shown inside the phone frame */
body.is-framed .dev-toggle { display: none; }

@media (max-width: 1100px) {
  /* Float above the sticky alerts bar instead of hiding */
  .dev-toggle { bottom: 84px; }
}

/* Save this building (favorites) — Revisions 6/10 v9 dashboard/condo hearts */
.cb-save{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border:1px solid #E2E1EA;border-radius:999px;background:#fff;color:#34343C;font-weight:600;font-size:14px;line-height:1;cursor:pointer;white-space:nowrap;align-self:flex-start}
.cb-save svg{color:#8B5CF6}
.cb-save.on{background:#FBEAF4;border-color:#F5C6E0;color:#BE1E77}
.cb-save.on svg{fill:#EC4899;stroke:#EC4899;color:#EC4899}

/* ===== Toast (Notify-me-first success, Revisions 6/10 #8) ===== */
.cbtoast{ position:fixed; left:50%; bottom:28px; transform:translateX(-50%) translateY(14px); z-index:1400;
  display:flex; align-items:center; gap:9px; max-width:calc(100vw - 32px);
  background:#0F1117; color:#fff; padding:13px 18px; border-radius:12px;
  font-size:14px; font-weight:600; line-height:1.3; box-shadow:0 12px 34px rgba(0,0,0,.28);
  opacity:0; transition:opacity .25s ease, transform .25s ease; pointer-events:none; }
.cbtoast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.cbtoast svg{ color:#6EE7B7; flex-shrink:0; }
.cbtoast.is-err svg{ color:#FCA5A5; }
