:root {
  --bg: #fafafa;
  --bg-2: #f4f5f4;
  --ink: #0a0e14;
  --ink-2: #1f232b;
  --ink-soft: #5b616c;
  --ink-mute: #9099a3;
  --brand: #0a0e14;
  --brand-ink: #000;
  --accent: #0f4535;
  --accent-2: #0b3325;
  --accent-tint: #e7ede9;
  --card: #ffffff;
  --line: #e8eaed;
  --line-2: #d8dbdf;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --shadow-sm: 0 1px 2px rgba(10,14,20,.04);
  --shadow: 0 1px 2px rgba(10,14,20,.04), 0 8px 28px rgba(10,14,20,.06);
  --shadow-hover: 0 2px 6px rgba(10,14,20,.06), 0 18px 42px rgba(10,14,20,.09);
  --wrap: 1200px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: none; }
h1, h2, h3 { font-family: var(--sans); letter-spacing: -.02em; }
h1 { font-size: 2.75rem; margin: 0 0 .5rem; line-height: 1.05; font-weight: 600; }
h2 { font-size: 1.65rem; margin: 0 0 .5rem; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; font-weight: 600; letter-spacing: -.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  background: rgba(250, 250, 250, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1.5rem; padding-top: .7rem; padding-bottom: .7rem;
}
.logo-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1rem .55rem; background: var(--ink); color: #fff;
  border-radius: 999px; line-height: 1;
}
.logo-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,69,53,.22);
}
.logo-pill .name {
  font-size: .92rem; font-weight: 500; letter-spacing: -.005em;
}
.logo-pill:hover { text-decoration: none; color: #fff; background: var(--ink-2); }

.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  color: var(--ink-2); font-weight: 450; font-size: .9rem; letter-spacing: -.005em;
  position: relative; padding: .25rem 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a:hover::after { transform: scaleX(1); }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .logo-pill .name { font-size: .88rem; }
}

/* Hero */
.hero {
  min-height: 520px;
  display: flex; align-items: flex-end;
  color: #fff;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,20,.05) 0%, rgba(10,14,20,.35) 55%, rgba(10,14,20,.82) 100%);
  pointer-events: none;
}
.hero-scrim { width: 100%; padding: 5rem 0 3rem; position: relative; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; font-weight: 500;
  margin: 0 0 1rem; opacity: .86;
}
.hero h1 {
  color: #fff; font-size: 3.5rem; margin-bottom: .5rem;
  font-weight: 600; letter-spacing: -.025em;
}
.hero-tagline { font-size: 1.05rem; opacity: .85; max-width: 640px; margin: 0 0 2rem; font-weight: 400; }
.hero-counts { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-counts a {
  color: #fff; background: rgba(255,255,255,.08);
  padding: .58rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  font-size: .88rem; font-weight: 450;
  backdrop-filter: blur(10px);
  transition: background .15s ease, border-color .15s ease;
}
.hero-counts a:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); color: #fff; }
.hero-counts strong { font-weight: 600; margin-right: .5rem; }

.hero-price-range {
  margin: 1.25rem 0 0;
  display: inline-flex; align-items: baseline; gap: .6rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  padding: .55rem .95rem;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-price-range .label {
  text-transform: uppercase; letter-spacing: .16em; font-size: .65rem; font-weight: 500;
  opacity: .78;
}
.hero-price-range .range { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* Highlights band */
.highlights-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.highlights-band ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}
.highlights-band li {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1.3rem 1.5rem;
  border-right: 1px solid var(--line);
  min-height: 92px; justify-content: center;
}
.highlights-band li:last-child { border-right: 0; }
.highlights-band .hl-label {
  text-transform: uppercase; letter-spacing: .14em; font-size: .65rem;
  color: var(--ink-mute); font-weight: 500;
}
.highlights-band .hl-value {
  font-size: 1.15rem; color: var(--ink); font-weight: 600; letter-spacing: -.01em;
}
@media (max-width: 600px) {
  .highlights-band li { border-right: 0; border-bottom: 1px solid var(--line); }
  .highlights-band li:last-child { border-bottom: 0; }
}

/* Listings */
.listings { padding-top: 3.5rem; padding-bottom: 1rem; }
.tabs {
  display: flex; gap: 0; margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.tab {
  background: transparent; border: 0; position: relative;
  padding: .85rem 1.5rem .9rem 0; margin-right: 1.75rem;
  font: inherit; font-weight: 500; font-size: .95rem; color: var(--ink-soft); cursor: pointer;
  letter-spacing: -.005em;
}
.tab::after {
  content: ""; position: absolute; left: 0; right: 1.5rem; bottom: -1px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.tab.active { color: var(--ink); }
.tab.active::after { transform: scaleX(1); }
.tab .count { color: var(--ink-mute); font-weight: 400; margin-left: .35rem; font-variant-numeric: tabular-nums; }
.tab.active .count { color: var(--ink-soft); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 1.1rem; }
.grid.hidden { display: none; }

.card {
  display: block; background: var(--card); color: var(--ink);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-2px); text-decoration: none;
  box-shadow: var(--shadow-hover); border-color: var(--line-2);
}
.card-img { aspect-ratio: 4 / 3; background: #eceff3; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.03); }

/* Unit number pill — anchored to top-left of the card image as the identifier */
.card-unit-pill {
  position: absolute; top: .7rem; left: .7rem;
  background: rgba(10, 14, 20, .85);
  color: #fff;
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .85rem; font-weight: 600; letter-spacing: -.005em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-variant-numeric: tabular-nums;
}
.card-new-badge {
  position: absolute; top: .7rem; right: .7rem;
  background: var(--accent);
  color: #fff;
  padding: .18rem .55rem; border-radius: 999px;
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

.card-body { padding: 1rem 1.1rem 1rem; }
.card-price { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.card-sub { color: var(--ink-soft); margin: .15rem 0 .75rem; font-size: .86rem; }
.card-stats {
  display: grid; grid-template-columns: repeat(4, auto);
  justify-content: start; align-items: center; gap: .4rem 1rem;
  color: var(--ink-soft); font-size: .82rem; font-weight: 500; font-variant-numeric: tabular-nums;
  padding: .7rem 0 .55rem; border-top: 1px solid var(--line);
}
.card-stats svg { flex-shrink: 0; color: var(--ink-mute); }
.card-stats > svg + span { margin-left: -.5rem; }
.card-stats > span { justify-self: start; }
.card-dom {
  color: var(--ink-mute); font-size: .74rem; font-weight: 500;
  letter-spacing: .02em; padding-top: .25rem;
}

.empty {
  color: var(--ink-soft); padding: 3rem 2rem; background: #fff; border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg); text-align: center; font-size: .95rem;
}

/* Sold table */
.sold-section { padding-top: 3rem; padding-bottom: 1rem; }
.sold-section .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.sold-section .section-head h2 { margin: 0; }
.sold-section .sub { color: var(--ink-soft); margin: 0; max-width: 640px; font-size: .95rem; }
.sold-table-wrap {
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  margin-top: 1rem;
}
.sold-table { width: 100%; border-collapse: collapse; }
.sold-table th, .sold-table td {
  padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line);
  font-size: .9rem; vertical-align: middle;
}
.sold-table th {
  background: var(--bg-2); font-weight: 500; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .1em; font-size: .68rem;
}
.sold-table tbody tr:last-child td { border-bottom: 0; }
.sold-table tbody tr:hover { background: var(--bg-2); }
.sold-blur .sold-price { filter: blur(5px); user-select: none; letter-spacing: .15em; color: var(--ink-mute); }
.sold-price { font-variant-numeric: tabular-nums; font-weight: 500; }
.sold-thumb-cell { width: 64px; padding: .55rem 0 .55rem 1rem; }
.sold-thumb {
  width: 48px; height: 36px; object-fit: cover; border-radius: 4px; display: block;
  background: #eceff3;
}
.sold-hidden-row[hidden] { display: none; }
.sold-expand { padding: 1rem 1rem 1.1rem; display: flex; justify-content: center; border-top: 1px solid var(--line); background: var(--bg-2); }
.btn-outline {
  background: transparent; color: var(--ink); border: 1px solid var(--line-2);
}
.btn-outline:hover { background: #fff; border-color: var(--ink); color: var(--ink); }

.unlock-cta {
  margin-top: 1.5rem; padding: 1.35rem 1.5rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.unlock-cta p { margin: 0; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.25rem; background: var(--ink); color: #fff;
  border: 0; border-radius: 999px; font-weight: 500; cursor: pointer; font: inherit; font-size: .9rem;
  letter-spacing: -.005em; text-decoration: none;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }

/* About / SEO blurb + Map */
.about { padding-top: 3rem; padding-bottom: 4rem; }
.about-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem;
  align-items: start;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-inner { max-width: 760px; }
.about-map {
  position: sticky; top: 88px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-map h3 {
  padding: 1rem 1.25rem 0;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0;
}
.about-map iframe {
  width: 100%; height: 320px; border: 0; display: block;
  margin-top: .75rem; background: var(--bg-2);
}
.about-map .map-addr {
  padding: .85rem 1.25rem 1rem; margin: 0; font-size: .9rem; color: var(--ink-2); font-weight: 500;
}
.blurb { color: var(--ink-2); max-height: none; overflow: hidden; font-size: 1rem; line-height: 1.7; }

/* Rich SEO body content rendered from admin-supplied HTML. */
.rich-body { color: var(--ink-2); font-size: 1rem; line-height: 1.7; max-width: none; }
.rich-body-rest[hidden] { display: none; }
.rich-body + .expand-btn,
.rich-body .expand-btn { margin-top: .8rem; }
.rich-body h1, .rich-body h2, .rich-body h3, .rich-body h4 {
  color: var(--ink); letter-spacing: -.015em;
  margin: 2rem 0 .6rem; line-height: 1.2;
}
.rich-body h1 { font-size: 1.8rem; font-weight: 700; margin-top: 0; }
.rich-body h2 { font-size: 1.4rem; font-weight: 600; }
.rich-body h3 { font-size: 1.15rem; font-weight: 600; }
.rich-body h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.rich-body p { margin: 0 0 1rem; }
.rich-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.rich-body a:hover { color: var(--accent-2); }
.rich-body strong, .rich-body b { color: var(--ink); font-weight: 600; }
.rich-body em, .rich-body i { font-style: italic; }
.rich-body ul, .rich-body ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.rich-body li { margin-bottom: .35rem; }
.rich-body blockquote {
  border-left: 3px solid var(--accent);
  padding: .4rem 0 .4rem 1.1rem; margin: 1.25rem 0;
  color: var(--ink-2); font-style: italic;
}
.rich-body img {
  max-width: 100%; height: auto; display: block;
  border-radius: 8px; margin: 1.25rem 0;
}
.rich-body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.rich-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-2); padding: 1px 6px; border-radius: 4px; font-size: .92em;
}
.rich-body table {
  width: 100%; border-collapse: collapse; margin: 1.25rem 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff;
}
.rich-body th, .rich-body td {
  text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.rich-body th {
  background: var(--bg-2); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: var(--ink-soft);
}
.rich-body tbody tr:last-child td { border-bottom: 0; }
.rich-body img { max-width: 100%; height: auto; display: block; border-radius: 8px; margin: 1.5rem auto; }
.blurb.clamped {
  max-height: 8.5em;
  mask-image: linear-gradient(180deg, #000 62%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent);
}
.expand-btn {
  margin-top: .8rem; background: transparent; border: 1px solid var(--line-2);
  padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; font: inherit;
  color: var(--ink); font-size: .86rem; font-weight: 500;
}
.expand-btn:hover { background: #fff; border-color: var(--ink); }

/* Listing detail */
.listing-detail { padding-top: 1.75rem; padding-bottom: 4rem; }
.back {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .85rem; color: var(--ink-soft); font-weight: 500;
}
.back:hover { color: var(--ink); text-decoration: none; }
.listing-title { margin: .75rem 0 .25rem; font-size: 2.2rem; font-weight: 600; letter-spacing: -.02em; }
.detail-address {
  color: var(--ink-soft); font-size: .95rem;
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
}
.detail-address .sep { color: var(--ink-mute); font-size: .85em; }

/* Gallery
 * Each thumb carries its own 4:3 aspect-ratio (matching MLS photo shape), so
 * the thumbs-column height is intrinsic. Hero stretches via align-self to the
 * same row height and becomes landscape naturally from column ratio. No
 * aspect-ratio on the outer gallery — layout is driven by the thumbs.
 */
.gallery {
  margin: 1.75rem 0 2rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery > * { min-height: 0; min-width: 0; }
/* Hero uses an absolutely-positioned img so its natural aspect doesn't leak
 * into the outer grid row height. The row height is driven entirely by the
 * thumbs column (4 tiles of aspect-ratio 4/3). Hero then stretches via
 * default align-self:stretch and the img fills it with object-fit: cover. */
.gallery-hero {
  position: relative;
  background: #d6d8d3;
  overflow: hidden;
  cursor: pointer;
}
.gallery-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.gallery-hero:hover img { transform: scale(1.02); }
.gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-self: start;
}
.gallery-thumbs > * { min-height: 0; min-width: 0; }
.gallery-thumb {
  position: relative; overflow: hidden; background: #d6d8d3;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}
.gallery-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.gallery-thumb:hover img { transform: scale(1.03); }
.gallery-thumb.empty { background: var(--bg-2); }
.gallery-thumb .lock-scrim {
  position: absolute; inset: 0;
  /* Heavy dark overlay + moderate blur — the photo shape stays visible so
   * the thumb reads as "locked content", not empty gray. */
  background: rgba(10, 14, 20, .62);
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.gallery-thumb .lock-icon {
  opacity: .95;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
}
.gallery-thumb .more-count {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #fff; font-weight: 500; font-size: .82rem; letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .4);
}
.gallery-thumb .more-count strong { font-weight: 600; font-size: 1.55rem; line-height: 1; letter-spacing: -.02em; }

.gallery-unlock-cta {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.gallery-unlock-cta .cta {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  background: var(--accent); color: #fff;
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(10,14,20,.5), 0 3px 8px rgba(10,14,20,.22);
  pointer-events: auto;
  cursor: pointer; border: 0; font: inherit;
  text-align: center;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.gallery-unlock-cta .cta:hover {
  background: var(--accent-2); text-decoration: none; color: #fff;
  box-shadow: 0 20px 48px rgba(10,14,20,.55), 0 4px 10px rgba(10,14,20,.25);
}
.gallery-unlock-cta .cta:active { transform: translateY(1px); }
.gallery-unlock-cta .main { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.gallery-unlock-cta .sub { font-size: .76rem; opacity: .88; font-weight: 400; letter-spacing: .02em; }

@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; }
  /* Hero is absolute-img'd on desktop (driven by thumbs column height). On
   * mobile there's nothing next to it to drive height — give it an explicit
   * landscape aspect-ratio so it actually renders. */
  .gallery-hero { aspect-ratio: 16 / 10; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; }
  .gallery-unlock-cta .cta { padding: .85rem 1.25rem; max-width: calc(100% - 1rem); }
  .gallery-unlock-cta .main { font-size: .95rem; }
  .gallery-unlock-cta .sub { font-size: .7rem; }
}

/* Detail summary + stats */
.detail-top { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .detail-top { grid-template-columns: 1fr; } }

.detail-main .detail-price { font-size: 2.25rem; letter-spacing: -.025em; margin: 0; font-weight: 600; }
.detail-main .detail-sub { color: var(--ink-soft); margin: .2rem 0 1.5rem; font-size: 1rem; }
.detail-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 1.5rem;
}
.detail-stats .stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
  padding: 1rem 1.1rem; background: #fff;
}
.detail-stats .stat .label {
  text-transform: uppercase; letter-spacing: .12em; font-size: .6rem;
  color: var(--ink-mute); font-weight: 500;
}
.detail-stats .stat .value { font-size: 1.1rem; color: var(--ink); font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }

.detail-summary {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem;
  align-self: start; position: sticky; top: 88px;
}
.detail-summary h3 { margin: 0 0 1rem; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.detail-meta { list-style: none; margin: 0; padding: 0; }
.detail-meta li { display: flex; justify-content: space-between; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.detail-meta li:first-child { border-top: 0; padding-top: 0; }
.detail-meta .label { color: var(--ink-soft); }
.detail-meta .value { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Unlock form */
.unlock-form {
  margin-top: 2.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; max-width: 640px;
}
.unlock-form h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.unlock-form > p { color: var(--ink-soft); margin: 0 0 1.5rem; }
.unlock-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1rem; }
.unlock-form label {
  display: flex; flex-direction: column; gap: .35rem;
  font-size: .7rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: .85rem;
}
.unlock-form label:last-of-type { margin-bottom: 1rem; }
.unlock-form input {
  font: inherit; font-size: 1rem; padding: .7rem .85rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff;
  text-transform: none; font-weight: 400;
  transition: border-color .1s ease, box-shadow .1s ease;
}
.unlock-form input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,69,53,.14); }
.unlock-form input::placeholder { color: var(--ink-mute); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .92rem; }
.unlock-form .btn-primary { width: 100%; margin-top: .5rem; }
.fine { color: var(--ink-soft); font-size: .8rem; margin-top: 1rem; }
.form-error { color: #b22; font-size: .9rem; margin-top: .5rem; }

@media (max-width: 540px) {
  .unlock-form .row { grid-template-columns: 1fr; }
}

.detail-body { margin-top: 2.5rem; max-width: 760px; }
.detail-body h2 { font-size: 1.4rem; }
.detail-body p { color: var(--ink-2); line-height: 1.7; font-size: 1rem; }
.brokerage { color: var(--ink-soft); font-size: .86rem; margin-top: 1.25rem; font-style: italic; }

.notfound { padding: 5rem 0; text-align: center; }
.notfound h1 { font-size: 2.3rem; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; margin-top: 4rem; }
.site-footer p { margin: .3rem 0; font-size: .85rem; color: var(--ink-soft); max-width: 820px; }
.site-footer .fine { font-size: .78rem; color: var(--ink-mute); }

/* Unlock modal (popup form) */
.modal-overlay {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(10, 14, 20, .55);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.modal-overlay.open {
  opacity: 1; pointer-events: auto; visibility: visible;
  transition: opacity .2s ease, visibility 0s linear 0s;
}
.modal {
  background: #fff; border-radius: 14px; padding: 2rem 2rem 1.75rem;
  max-width: 480px; width: 100%;
  box-shadow: 0 30px 70px rgba(10, 14, 20, .35), 0 2px 8px rgba(10, 14, 20, .1);
  position: relative;
  max-height: 92vh; overflow-y: auto;
  transform: translateY(8px) scale(.98);
  transition: transform .2s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: .9rem; right: .9rem;
  background: transparent; border: 0;
  width: 34px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: var(--bg-2); color: var(--ink); }
.modal .unlock-form {
  margin: 0; padding: 0; border: 0; box-shadow: none; max-width: none; background: transparent;
}
.modal .unlock-form h2 { padding-right: 2rem; margin-top: 0; }
.modal .unlock-form > p { margin-bottom: 1.25rem; }

/* Locked-state card shown in place of the description on listing pages */
.locked-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 760px; margin-top: 2.5rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
}
.locked-card h3 {
  margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em;
  display: flex; align-items: center; gap: .5rem;
}
.locked-card h3 svg { color: var(--accent); }
.locked-card p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.locked-card .btn { margin-top: .25rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 14, 20, .96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: calc(100vw - 6rem); max-height: calc(100vh - 6rem);
  object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  border-radius: 4px;
}
.lightbox-btn {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18);
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: background .15s ease;
}
.lightbox-btn:hover { background: rgba(255,255,255,.2); }
.lightbox-btn svg { width: 20px; height: 20px; }
.lightbox-prev { left: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.78); font-size: .85rem; letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .lightbox-prev { left: .5rem; } .lightbox-next { right: .5rem; }
  .lightbox-img { max-width: calc(100vw - 1rem); max-height: calc(100vh - 7rem); }
}

/* ---- Mobile tuning (≤ 720px) ----
 * Sold table: hide non-essential columns, tighten cells, prevent wrapping.
 * Modal: more overlay breathing room, compact inner padding, single-column form.
 * Hero: smaller heading + price-range pill fits within viewport.
 */
@media (max-width: 720px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero { min-height: 420px; }
  .hero-scrim { padding: 3.5rem 0 2.25rem; }
  .hero-counts { gap: .4rem; }
  .hero-counts a { padding: .5rem .75rem; font-size: .82rem; }
  .hero-counts strong { font-size: .95rem; }
  .hero-price-range { padding: .5rem .75rem; gap: .45rem; }
  .hero-price-range .range { font-size: .92rem; }

  .listing-title { font-size: 1.7rem; }
  .detail-main .detail-price { font-size: 1.9rem; }

  /* Sold table — hide thumbnail + status cols, compact everything else. */
  .sold-thumb-cell,
  .sold-table thead th:first-child,
  .sold-table thead th:last-child,
  .sold-table tbody tr td:last-child { display: none; }
  .sold-table th,
  .sold-table td {
    padding: .55rem .6rem;
    font-size: .82rem;
    white-space: nowrap;
  }
  .sold-table th {
    font-size: .62rem;
    letter-spacing: .06em;
    padding: .5rem .6rem;
  }

  /* Modal — give the sheet real breathing room. */
  .modal-overlay { padding: 1.25rem; align-items: flex-start; padding-top: 3rem; }
  .modal { padding: 1.5rem 1.25rem 1.25rem; border-radius: 12px; }
  .modal .unlock-form h2 { font-size: 1.2rem; }
  .modal .unlock-form > p { font-size: .88rem; margin-bottom: 1rem; }
  .unlock-form input { padding: .6rem .7rem; font-size: 16px; /* prevent iOS zoom */ }
  .unlock-form label { margin-bottom: .7rem; }
  .unlock-form .btn-primary { padding: .8rem; }

  /* Tabs — tighter on mobile. */
  .tab { padding: .7rem 1rem .8rem 0; margin-right: 1rem; font-size: .88rem; }
  .tab::after { right: 1rem; }

  /* Highlights band — tighter cell padding on narrow screens. */
  .highlights-band li { padding: 1rem 1.1rem; min-height: 76px; }
  .highlights-band .hl-value { font-size: 1rem; }
}
