/* ==========================================================================
   Dow Real Estate Group, listing presentation template

   THEME: light by default. Sections that keep a dark surface (hero, CTA,
   footer, lightbox) carry class "on-dark", which re-declares the same token
   names with dark values: so every rule below is written once, against the
   tokens, and works on both surfaces.

   Accent colors DIFFER per surface. The dark-surface trio (#b8871f / #199e70 /
   #3987e5) fails the 4.5:1 text threshold on white (3.0–3.6:1), so the light
   surface uses darkened variants. Both trios were checked for contrast and for
   protan/deutan separation:

     light  gold #8a6414 5.37:1  teal #0d6b47 6.54:1  steel #1f5fae 6.35:1
            min CVD ΔE 27.1 (gold/teal, protan)
     dark   gold #b8871f 5.82:1  teal #199e70 5.50:1  steel #3987e5 5.15:1
            min CVD ΔE 34.9 (gold/teal, protan)

   Keep that property when changing a color: never let an accent drop below
   4.5:1 on its own surface, and keep pairwise CVD ΔE above ~8.
   ========================================================================== */

:root {
  /* light surfaces */
  --paper: #ffffff;
  --paper-050: #f7f8fa;
  --paper-100: #f1f3f7;
  --paper-150: #e9edf3;

  /* aliases, the dark theme's surface names, remapped onto light.
     Existing rules reference these; do not rename without sweeping the file. */
  --navy-000: var(--paper);
  --navy-050: var(--paper-050);
  --navy-100: var(--paper-050);
  --navy-150: var(--paper-100);

  --ink-000: #14181f;
  --ink-100: #4a5260;
  --ink-200: #6b7280;

  --hairline: rgba(20, 24, 31, 0.12);
  --hairline-strong: rgba(20, 24, 31, 0.22);

  --gold: #8a6414;
  --gold-soft: rgba(138, 100, 20, 0.12);
  --teal: #0d6b47;
  --teal-soft: rgba(13, 107, 71, 0.12);
  --steel: #1f5fae;
  --steel-soft: rgba(31, 95, 174, 0.10);

  --header-bg: rgba(255, 255, 255, 0.88);
  --band-fill: rgba(20, 24, 31, 0.06);
  --shadow-card: 0 1px 2px rgba(20,24,31,0.05), 0 8px 24px rgba(20,24,31,0.07);
  --shadow-pop: 0 8px 24px rgba(20,24,31,0.16);
  --pin-ring: #0b1220;        /* pins sit on satellite imagery: always dark */

  --serif: -apple-system, "Segoe UI", system-ui, sans-serif;
  --content-max: 1080px;
}

/* Dark islands inside the light page. Same token names, dark values. */
.on-dark {
  --navy-000: #0b1220;
  --navy-050: #080d17;
  --navy-100: #121b2e;
  --navy-150: #182238;

  --ink-000: #f5f4f0;
  --ink-100: #a9b0bd;
  --ink-200: #8b93a1;

  --hairline: rgba(245, 244, 240, 0.10);
  --hairline-strong: rgba(245, 244, 240, 0.18);

  --gold: #b8871f;
  --gold-soft: rgba(184, 135, 31, 0.16);
  --teal: #199e70;
  --teal-soft: rgba(25, 158, 112, 0.16);
  --steel: #3987e5;
  --steel-soft: rgba(57, 135, 229, 0.14);

  --band-fill: rgba(169, 176, 189, 0.10);
  --shadow-card: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-pop: 0 8px 24px rgba(0,0,0,0.45);

  background: var(--navy-000);
  color: var(--ink-000);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  background: var(--navy-000);
  color: var(--ink-000);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 640px) {
  section { padding: 56px 0; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.08; }
h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.15; }
h3 { font-size: 18px; }
p { margin: 0; }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.section-head p { margin-top: 14px; color: var(--ink-100); font-size: 16px; }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px) saturate(1.6);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-lockup img { height: 28px; width: auto; }
.brand-lockup span { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a {
  color: var(--ink-100);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.site-header nav a:hover { color: var(--ink-000); }
@media (max-width: 720px) { .site-header nav { display: none; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(184,135,31,0.14), transparent 60%),
    linear-gradient(180deg, var(--navy-050), var(--navy-000));
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 32%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11,18,32,0.10) 0%,
    rgba(11,18,32,0.10) 28%,
    rgba(11,18,32,0.45) 55%,
    rgba(11,18,32,0.80) 78%,
    rgba(11,18,32,0.94) 100%
  );
}
.hero:not(.has-photo) .hero-photo,
.hero:not(.has-photo) .hero-scrim { display: none; }
/* The full-bleed scrim is weakest at the top (0.10), which is exactly where the
   eyebrow and address sit, and the photo has a near-white metal wall behind
   them. Gold on that lands at 1.5:1 and is effectively invisible. Deepening the
   whole scrim would wash out the building, so the text block carries its own
   local scrim instead: the photo stays bright, the copy gets a readable bed. */
.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 1;
}
.hero.has-photo .hero-content::before {
  content: "";
  position: absolute;
  inset: -120px -240px -120px -50vw;
  background: radial-gradient(
    75% 80% at 28% 50%,
    rgba(8, 13, 23, 0.92) 0%,
    rgba(8, 13, 23, 0.86) 38%,
    rgba(8, 13, 23, 0.62) 62%,
    rgba(8, 13, 23, 0.28) 82%,
    rgba(8, 13, 23, 0) 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* Gold at #b8871f only reaches 4.1:1 over the local scrim on the worst patch of
   photo. Over imagery the hero uses a lighter gold (5.9:1) instead of dimming
   the picture. Page-body gold is unchanged. */
.hero.has-photo .eyebrow { color: #d9a53a; }

.hero-address {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-000);
}
.hero-address strong {
  color: var(--ink-000);
  font-size: 23px;
  letter-spacing: -0.01em;
}
.hero-address #hero-cityzip { color: var(--ink-100); }
.hero h1 { margin-top: 14px; }
.hero-sub { margin-top: 22px; font-size: 17px; color: var(--ink-100); max-width: 520px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat .num { font-size: 26px; font-weight: 700; color: var(--gold); }
.hero-stat .label { font-size: 12px; color: var(--ink-100); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 24px;
  font-size: 12px;
  color: var(--ink-200);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
@media (max-width: 720px) {
  /* Phone hero shows the photo's full height (no vertical cropping), so the
     sky band at top gets more exposure than on desktop: deepen the top of
     the gradient slightly rather than washing the whole image again. */
  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(11,18,32,0.22) 0%,
      rgba(11,18,32,0.22) 22%,
      rgba(11,18,32,0.55) 48%,
      rgba(11,18,32,0.85) 72%,
      rgba(11,18,32,0.96) 100%
    );
  }
}

/* ---------- photo slots ---------- */
.photo-slot {
  border: 1px dashed var(--hairline-strong);
  border-radius: 10px;
  background: var(--navy-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-200);
  font-size: 12px;
  text-align: center;
  padding: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.photo-slot span { max-width: 200px; }

/* ---------- property / story ---------- */
.story-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }
.story-copy p + p { margin-top: 16px; }
.story-copy { color: var(--ink-100); font-size: 16px; max-width: 720px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 640px) { .fact-grid { grid-template-columns: 1fr 1fr; } }
.fact { border-top: 1px solid var(--hairline); padding-top: 10px; }
.fact .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-200); }
.fact .v { margin-top: 4px; font-size: 15px; font-weight: 600; }
.feature-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li { font-size: 14px; color: var(--ink-100); padding-left: 18px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

/* ---------- property gallery ---------- */
.property-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 14px;
}
@media (max-width: 860px) {
  .property-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}
@media (max-width: 560px) {
  .property-gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-photo.is-featured { grid-column: span 1; grid-row: span 1; }
}
.gallery-photo {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-100);
  border: 1px solid var(--hairline);
  cursor: zoom-in;
}
.gallery-photo.is-featured { grid-column: span 2; grid-row: span 2; }
.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 12px 10px;
  font-size: 12px;
  line-height: 1.4;
  /* Captions sit on a dark scrim over the photo on BOTH themes, they must not
     follow --ink-000, which is near-black on the light surface. */
  color: #f5f4f0;
  background: linear-gradient(180deg, rgba(11,18,32,0) 0%, rgba(11,18,32,0.88) 65%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-photo:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.property-gallery .photo-slot { height: 100%; }

/* ---------- gallery lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 10, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: min(1100px, 92vw); max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-figure img { max-width: 100%; max-height: 76vh; width: auto; object-fit: contain; border-radius: 8px; }
.lightbox-figure figcaption { margin-top: 14px; color: #a9b0bd; font-size: 14px; text-align: center; max-width: 640px; }
.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(245,244,240,0.22);
  color: #f5f4f0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lightbox-btn { width: 40px; height: 40px; font-size: 17px; }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ---------- park diagram ---------- */
.park-diagram { display: flex; gap: 10px; margin-top: 22px; }
.park-bldg {
  flex: 1;
  border-radius: 8px;
  padding: 18px 14px;
  border: 1px solid var(--hairline);
  background: var(--navy-100);
  font-size: 13px;
  color: var(--ink-100);
}
.park-bldg .label { font-weight: 700; color: var(--ink-000); font-size: 14px; }
.park-bldg.is-subject { background: var(--gold-soft); border-color: rgba(184,135,31,0.45); }
.park-bldg.is-subject .label { color: var(--gold); }
.park-note { margin-top: 10px; font-size: 12px; color: var(--ink-200); }

/* ---------- lease status ---------- */
.status-panel {
  background: var(--navy-100);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 28px;
}
.status-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.status-row:last-child { border-bottom: none; }
.status-row .k { color: var(--ink-100); }
.status-row .v { font-weight: 600; text-align: right; }
.caveat-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.caveat-list li {
  font-size: 13.5px;
  color: var(--ink-100);
  padding: 12px 14px;
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 8px 8px 0;
}

/* ---------- comps ---------- */
.asking-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-soft);
  border: 1px solid rgba(184,135,31,0.35);
  color: var(--ink-000);
  font-size: 13.5px;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 28px;
}
.asking-banner strong { color: var(--gold); }

.toggle-row { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.toggle {
  display: inline-flex;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 4px;
  background: var(--navy-100);
}
.toggle button {
  border: none;
  background: transparent;
  color: var(--ink-100);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.toggle button.active { background: var(--gold); color: var(--navy-000); }
.toggle-note { font-size: 12.5px; color: var(--ink-200); }

.plot-wrap { margin-bottom: 48px; }
.plot-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; font-size: 12.5px; color: var(--ink-100); }
.plot-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.dot-subject { background: var(--gold); }
.dot-best { background: var(--teal); }
.dot-other { background: var(--steel); }

.plot-track {
  position: relative;
  height: 132px;
  margin: 0 4px;
}
.plot-band {
  position: absolute;
  top: 44px;
  height: 30px;
  background: var(--band-fill);
  border-radius: 6px;
}
.plot-band-label {
  position: absolute;
  top: 6px;
  font-size: 11px;
  color: var(--ink-200);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.plot-axis {
  position: absolute;
  top: 59px;
  left: 0; right: 0;
  height: 1px;
  background: var(--hairline-strong);
}
.plot-tick { position: absolute; top: 66px; font-size: 11px; color: var(--ink-200); transform: translateX(-50%); }
.plot-point {
  position: absolute;
  top: 47px;
  width: 14px; height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  border: 2px solid var(--navy-000);
  transition: left 0.5s cubic-bezier(.4,0,.2,1), background 0.3s;
}
.plot-point.other { width: 10px; height: 10px; background: var(--steel); opacity: 0.85; }
.plot-point.best { width: 16px; height: 16px; background: var(--teal); z-index: 3; }
.plot-point.subject { width: 20px; height: 20px; background: var(--gold); z-index: 4; box-shadow: 0 0 0 4px var(--gold-soft); }
.plot-point-label {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-000);
}
.plot-point-label.below { top: auto; bottom: -24px; }
.plot-tooltip {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-150);
  border: 1px solid var(--hairline-strong);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-100);
  width: 220px;
  display: none;
  z-index: 10;
  box-shadow: var(--shadow-pop);
}
.plot-tooltip strong { color: var(--ink-000); display: block; margin-bottom: 2px; }
.plot-point:hover .plot-tooltip, .plot-point:focus .plot-tooltip { display: block; }

.comps-table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 12px; }
table.comps-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.comps-table th, .comps-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--hairline); }
.comps-table thead th {
  background: var(--navy-100);
  color: var(--ink-100);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.comps-table thead th:hover { color: var(--ink-000); }
.comps-table thead th.sorted::after { content: " " attr(data-dir); font-size: 9px; }
.comps-table tbody tr.is-subject { background: var(--gold-soft); }
.comps-table tbody tr.is-best { background: var(--teal-soft); }
.comps-table td.rate { font-variant-numeric: tabular-nums; font-weight: 600; }
.comps-table td.notes { color: var(--ink-100); font-size: 12.5px; max-width: 280px; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-subject { background: var(--gold); color: var(--navy-000); }
.badge-best { background: var(--teal); color: var(--navy-000); }
.badge-executed {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
}

.analysis-notes { display: grid; gap: 16px; margin-top: 40px; }
.analysis-notes p { color: var(--ink-100); font-size: 15px; }
.verify-box {
  margin-top: 32px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 22px 24px;
  background: var(--navy-100);
}
.verify-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-200); margin-bottom: 12px; }
.verify-box ul { margin: 0; padding-left: 18px; color: var(--ink-100); font-size: 13.5px; display: grid; gap: 8px; }

/* ---------- location ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .location-grid { grid-template-columns: 1fr; } }
.location-chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.chip { border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 8px 14px; font-size: 12.5px; color: var(--ink-100); }

/* ---------- location map ---------- */
.map-card { border: 1px solid var(--hairline); border-radius: 14px; padding: 18px; background: var(--navy-100); }
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-100); margin-bottom: 14px; }
.map-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.map-zoom-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.map-zoom-btn {
  border: 1px solid var(--hairline-strong);
  background: var(--navy-150);
  color: var(--ink-100);
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.map-zoom-btn.active { background: var(--gold); color: var(--navy-000); border-color: var(--gold); }
.map-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  background: var(--navy-000);
}
.map-frame img { width: 100%; height: auto; display: block; }
.map-pins { position: absolute; inset: 0; }
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.map-pin .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--pin-ring);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.35);
  background: var(--steel);
}
.map-pin.subject .dot { width: 20px; height: 20px; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.map-pin.best .dot { width: 17px; height: 17px; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.map-pin.is-active .dot { outline: 2px solid var(--ink-000); outline-offset: 2px; }
.map-attribution {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 9.5px;
  color: rgba(245,244,240,0.92);
  background: rgba(8,13,23,0.66);
  padding: 3px 7px;
  border-radius: 5px;
}
.map-hint { margin-top: 14px; font-size: 12px; color: var(--ink-200); }
.map-detail {
  margin-top: 8px;
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
  font-size: 13.5px;
  color: var(--ink-100);
  min-height: 20px;
}
.map-detail .name { font-weight: 700; color: var(--ink-000); }
.map-plotted-note { margin-top: 14px; font-size: 11.5px; color: var(--ink-200); }
.drive-times { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.drive-time {
  flex: 1;
  min-width: 150px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--navy-150);
}
.drive-time .time { font-size: 22px; font-weight: 700; color: var(--gold); }
.drive-time.strong { border-color: rgba(25,158,112,0.4); background: var(--teal-soft); }
.drive-time.strong .time { color: var(--teal); }
.drive-time .label { font-size: 12px; color: var(--ink-100); margin-top: 4px; }

/* ---------- marketing ---------- */
.marketing-intro { color: var(--ink-100); font-size: 16px; max-width: 640px; margin-bottom: 36px; }
.deliverables-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .deliverables-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .deliverables-grid { grid-template-columns: 1fr; } }
.deliverable-card {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 20px;
  background: var(--navy-100);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.deliverable-card:hover, .deliverable-card.is-open { border-color: rgba(184,135,31,0.45); background: var(--navy-150); }
.deliverable-card h3 { font-size: 15px; }
.deliverable-card .summary { font-size: 12.5px; color: var(--ink-200); margin-top: 6px; }
.deliverable-card .detail {
  font-size: 13px;
  color: var(--ink-100);
  margin-top: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.deliverable-card.is-open .detail { max-height: 200px; }
.deliverable-card .plus { float: right; color: var(--gold); font-weight: 700; }

/* ---------- CTA / footer ---------- */
.cta-section { text-align: center; }
.cta-section h2 { max-width: 520px; margin: 0 auto; }
.cta-section p { margin-top: 16px; color: var(--ink-100); max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-details { margin-top: 32px; display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.cta-agent { min-width: 200px; }
.cta-agent-name { font-size: 16px; font-weight: 700; color: var(--ink-000); }
.cta-agent-title { margin-top: 4px; font-size: 13px; color: var(--ink-100); }
.cta-agent-contact { margin-top: 8px; font-size: 14px; color: var(--ink-100); }
.cta-agent-contact a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.cta-agent-contact a:hover,
.cta-agent-contact a:focus-visible { color: var(--gold); border-bottom-color: var(--gold); }
.cta-agent-contact.needs { color: var(--gold); font-style: italic; }

.site-footer { border-top: 1px solid var(--hairline); padding: 32px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brands { display: flex; align-items: center; gap: 22px; }
.footer-brands img { height: 34px; }
/* The CB&A Commercial mark is a stacked square lockup (~0.8:1) where the old
   REALTORS bar was horizontal (3.08:1). Matching the Dow mark on height alone
   makes COMMERCIAL unreadable, so the brokerage lockup runs taller and the two
   are balanced by optical weight rather than by a shared height value. */
.footer-brands #footer-brokerage { height: 58px; }
.footer-legal { font-size: 11.5px; color: var(--ink-200); max-width: 520px; line-height: 1.6; }

.divider { height: 1px; background: var(--hairline); margin: 0; }

/* ---------- light-surface affordances ----------
   On dark, panels separated by being lighter than the page. On white they need
   a border and a soft lift instead, or everything reads as one flat sheet.
   Scoped so the dark islands keep their original flat treatment. */
:root .status-panel,
:root .map-card,
:root .deliverable-card,
:root .verify-box,
:root .comps-table-wrap,
:root .plot-wrap,
:root .fact-item,
:root .park-bldg,
:root .location-chip,
:root .drive-time {
  box-shadow: var(--shadow-card);
}
.on-dark .status-panel,
.on-dark .map-card,
.on-dark .deliverable-card,
.on-dark .verify-box,
.on-dark .comps-table-wrap,
.on-dark .plot-wrap { box-shadow: none; }

/* table zebra reads inverted on light */
:root .comps-table tbody tr:nth-child(even) { background: var(--paper-050); }
:root .comps-table thead th { background: var(--paper-100); }

/* the asking/executed banner needs more presence on white */
:root .asking-banner { background: var(--gold-soft); border-color: rgba(138,100,20,0.28); }

/* hero scrim assumes a dark page behind the photo: it is .on-dark, so leave it */

/* ---------- language switcher ---------- */
.lang-switch {
  display: inline-flex;
  margin-left: 18px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  overflow: hidden;
  vertical-align: middle;
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-100);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--hairline); }
.lang-btn:hover { color: var(--ink-000); }
.lang-btn.active { background: var(--gold); color: var(--paper, #fff); }
.on-dark .lang-btn.active { color: #0b1220; }
.lang-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

@media (max-width: 860px) {
  .lang-switch { margin-left: 10px; }
  .lang-btn { padding: 4px 9px; font-size: 11px; }
}
