/* ============================================================
   REALIST — Lualdi / WARREN design language.
   Shared across index.html · listings.html · property.html
   Layered blue-black inks · steely-teal accent · Comfortaa + Inter.
============================================================ */
:root {
  --bg-0: #050507;
  --bg-1: #0a0a0f;
  --bg-2: #101018;
  --bg-3: #161624;
  --bg-4: #1f1f2d;

  --line:        #1c1c28;
  --line-bright: #2a2a3a;
  --line-accent: rgba(34, 211, 238, 0.22);

  --silver-bright: #eef1f7;
  --silver:        #b8bfcc;
  --ink-1:         #8891a2;
  --ink-2:         #5d6576;
  --ink-3:         #3d4452;

  --amber:        #22d3ee;
  --amber-bright: #67e8f9;
  --amber-dim:    rgba(34, 211, 238, 0.18);
  --amber-glow:   rgba(34, 211, 238, 0.45);

  --red:   #c26565;
  --gold:  #c8965a;
  --green: #7aaa87;

  --f-mono:    'Comfortaa', system-ui, monospace;
  --f-display: 'Comfortaa', system-ui, sans-serif;   /* body / labels / chrome */
  --f-brand:   'Inter', system-ui, sans-serif;        /* h1 + REALIST wordmark only */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(14, 22, 40, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(20, 15, 35, 0.4) 0%, transparent 60%),
    var(--bg-0);
  color: var(--silver);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  font-feature-settings: 'tnum' 1, 'cv11' 1;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.13  0 0 0 0 0.82  0 0 0 0 0.93  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

b, strong { color: var(--silver-bright); font-weight: 600; }
a { color: inherit; text-decoration: none; }

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: var(--bg-0); }
*::-webkit-scrollbar-thumb { background: var(--bg-3); border: 1px solid var(--line); }
*::-webkit-scrollbar-thumb:hover { background: var(--amber-dim); }

.label, .label-sm {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-1);
}
.label-sm { font-size: 8.5px; letter-spacing: 0.22em; color: var(--ink-2); }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px var(--amber-glow); transform: scale(1); }
  50%      { box-shadow: 0 0 22px var(--amber);     transform: scale(1.18); }
}
@keyframes glow {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.85; }
}

/* ============================================================
   LOGO / WORDMARK — semi-transparent REALIST + prominent dot
============================================================ */
.realist-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  font-family: var(--f-brand);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-decoration: none;
  cursor: pointer;
  line-height: 0.95;
  color: var(--silver-bright);
}
.realist-mark .wm {
  opacity: 0.5;
  text-shadow: 0 8px 60px rgba(34, 211, 238, 0.20);
  transition: opacity 0.25s ease;
}
.realist-mark:hover .wm { opacity: 0.8; }
.realist-mark .dot {
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0.4em var(--amber-glow);
  animation: pulse 2.4s ease-in-out infinite;
  align-self: baseline;
  margin-bottom: 0.06em;
  flex-shrink: 0;
}

/* Sized variants */
.realist-mark.size-hero   { font-size: clamp(40px, 12vw, 180px); max-width: 100%; }
.realist-mark.size-large  { font-size: 56px; }
.realist-mark.size-medium { font-size: 32px; }
.realist-mark.size-small  { font-size: 22px; }

/* Dot scales up at smaller wordmark sizes so it stays visible on the topbar. */
.realist-mark.size-large  .dot { width: 0.22em; height: 0.22em; }
.realist-mark.size-medium .dot { width: 0.28em; height: 0.28em; }
.realist-mark.size-small  .dot { width: 0.36em; height: 0.36em; box-shadow: 0 0 0.55em var(--amber-glow); }

/* ============================================================
   TOP BAR (listings + property pages)
============================================================ */
.topbar {
  height: 64px;
  background: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-brand {
  flex-shrink: 0;
}
.topbar-divider {
  width: 1px;
  height: 24px;
  background: var(--line-bright);
  margin: 0 4px;
}
.topbar-crumbs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-1);
}
.topbar-crumbs a {
  color: var(--ink-1);
  transition: color 0.18s;
}
.topbar-crumbs a:hover { color: var(--silver-bright); }
.topbar-crumbs .crumb-sep { color: var(--ink-3); }
.topbar-crumbs .current { color: var(--amber); }
.topbar-stats {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}
.topbar-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-1);
}
.topbar-stat .v {
  font-family: var(--f-mono);
  font-weight: 600;
  color: var(--silver-bright);
  font-size: 11px;
}
.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-bright);
  color: var(--ink-1);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: all 0.2s;
  border-radius: 2px;
}
.topbar-back:hover {
  color: var(--amber-bright);
  border-color: var(--amber);
  background: var(--amber-dim);
}

/* ============================================================
   INTRO / SPLASH PAGE
============================================================ */
.intro {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.intro-bg {
  position: absolute; inset: 0;
  background-image: url("../images/intro-bg.jpg");
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.05);
  filter: saturate(0.65) contrast(0.95) hue-rotate(-10deg) brightness(0.85);
  z-index: 0;
}
.intro-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(5,5,7,0.15) 0%, rgba(5,5,7,0.55) 70%, var(--bg-0) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.35) 0%, transparent 30%, transparent 70%, rgba(5,5,7,0.85) 100%);
  z-index: 1;
}
.intro-corners {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
}
.intro-corners > div {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--amber);
  opacity: 0.6;
}
.intro-corners .tl { top: 32px; left: 32px; border-right: 0; border-bottom: 0; }
.intro-corners .tr { top: 32px; right: 32px; border-left: 0; border-bottom: 0; }
.intro-corners .bl { bottom: 32px; left: 32px; border-right: 0; border-top: 0; }
.intro-corners .br { bottom: 32px; right: 32px; border-left: 0; border-top: 0; }

.intro-topnav {
  position: relative;
  z-index: 3;
  /* Corner brackets sit at offset 32px with height 22px → vertical center at 43px.
     Padding-top: 36px + half line-height (≈ 7px) = 43px → text center aligns with bracket center. */
  padding: 36px 64px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.intro-topnav .meta {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-1);
  overflow-wrap: break-word;
}
.intro-topnav .meta .accent { color: var(--amber); }
@media (max-width: 640px) {
  .intro-topnav {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px 24px;
    gap: 8px;
  }
}

.intro-content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 32px;
  text-align: center;
}
.intro-eyebrow {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.44em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.intro-eyebrow::before, .intro-eyebrow::after {
  content: "";
  display: inline-block;
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.intro-tagline {
  margin-top: 32px;
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(15px, 2vw, 22px);
  letter-spacing: 0.05em;
  color: var(--silver);
  max-width: 560px;
  line-height: 1.55;
}
.intro-tagline .accent { color: var(--amber-bright); font-weight: 400; }

.intro-chips {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.intro-chips .chip {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 8px 14px;
  border: 1px solid var(--line-accent);
  background: rgba(5, 5, 7, 0.55);
  backdrop-filter: blur(6px);
  color: var(--silver);
  text-transform: uppercase;
}

.intro-cta {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 36px;
  border: 1px solid var(--amber);
  background: var(--amber-dim);
  color: var(--amber-bright);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
}
.intro-cta:hover {
  background: var(--amber);
  color: var(--bg-0);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(34,211,238,0.20);
}
.intro-cta::after { content: "→"; font-family: var(--f-mono); }

/* ============================================================
   INTRO password gate
============================================================ */
.intro-gate {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.intro-gate-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: center;
}
.intro-gate-input {
  width: 280px;
  padding: 16px 22px;
  background: rgba(5, 5, 7, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-bright);
  color: var(--silver-bright);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 2px;
  outline: none;
}
.intro-gate-input::placeholder {
  color: var(--ink-2);
  letter-spacing: 0.30em;
}
.intro-gate-input:focus {
  border-color: var(--amber);
  background: rgba(34, 211, 238, 0.06);
  box-shadow: 0 0 0 4px var(--amber-dim);
}
.intro-gate-input.error {
  border-color: var(--red);
  animation: shake 0.4s ease;
}
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.intro-gate-cta {
  padding: 16px 32px;
  border: 1px solid var(--amber);
  background: var(--amber-dim);
  color: var(--amber-bright);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 2px;
}
.intro-gate-cta:hover {
  background: var(--amber);
  color: var(--bg-0);
}
.intro-gate-cta::after { content: "→"; font-family: var(--f-mono); }
.intro-gate-note {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.30em;
  color: var(--ink-1);
  text-transform: uppercase;
}
.intro-gate-note .accent { color: var(--amber); }
.intro-gate-error {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
  height: 14px;
  visibility: hidden;
}
.intro-gate-error.show { visibility: visible; }

/* Sign-out button (topbar) */
.topbar-signout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-bright);
  color: var(--ink-1);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
  border-radius: 2px;
}
.topbar-signout:hover {
  color: var(--red);
  border-color: var(--red);
}

.intro-foot {
  position: relative;
  z-index: 3;
  /* Same logic as .intro-topnav above — padding 36px + half text height (≈ 7px)
     puts the text vertical center at 43px from the bottom edge, exactly on the
     bottom corner bracket centerline. Symmetric with the topnav above. */
  padding: 24px 64px 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-2);
  overflow-wrap: break-word;
}
.intro-foot .foot-line       { line-height: 1.5; }
.intro-foot .foot-build      { text-align: left;   justify-self: start;  }
.intro-foot .foot-copy {
  /* Emphasize via color + tracking only — no border / padding to keep the
     line-box height identical to the other two foot items so vertical alignment
     stays consistent with the topnav. */
  text-align: center;
  justify-self: center;
  color: var(--silver);
  font-weight: 400;
  letter-spacing: 0.32em;
}
.intro-foot .foot-disclaimer { text-align: right;  justify-self: end;    }

@media (max-width: 820px) {
  .intro-foot {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 24px 36px;
    gap: 10px;
  }
  .intro-foot .foot-build,
  .intro-foot .foot-disclaimer { text-align: center; justify-self: center; }
}

/* ============================================================
   LISTINGS PAGE — property grid
============================================================ */
.listings-page {
  min-height: 100vh;
  background: var(--bg-0);
}
.listings-head {
  padding: 48px 36px 28px;
  border-bottom: 1px solid var(--line);
  max-width: 1480px;
  margin: 0 auto;
}
.listings-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.listings-head h1 {
  font-family: var(--f-brand);
  font-weight: 200;
  font-size: 44px;
  color: var(--silver-bright);
  letter-spacing: -0.02em;
  line-height: 1;
}
.listings-head h1 .accent {
  color: var(--amber);
  font-weight: 900;
}
.listings-head p {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-1);
  margin-top: 12px;
  max-width: 560px;
  line-height: 1.55;
}

.listings-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.listings-meta .item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px;
  border-left: 1px solid var(--line-bright);
}
.listings-meta .item:first-child { border-left: 0; padding-left: 0; }
.listings-meta .item .label { margin: 0; }
.listings-meta .item .val {
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--silver-bright);
  font-weight: 600;
}
.listings-meta .item .val.accent { color: var(--amber); }

.listings-grid {
  max-width: 1480px;
  margin: 0 auto;
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}
.listing-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  border-radius: 2px;
}
.listing-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(5,5,7,0.5), 0 0 24px rgba(34,211,238,0.08);
}
.listing-card-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  filter: saturate(0.95) brightness(1.0);
  transition: filter 0.25s ease;
}
.listing-card:hover .listing-card-img { filter: saturate(1.05) brightness(1.08); }
.listing-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(5,5,7,0.75) 100%);
}
.listing-card-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 10px;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-accent);
  color: var(--amber);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 2;
  border-radius: 2px;
}
.listing-card-tag.status-watch { color: var(--gold); border-color: rgba(200,150,90,0.4); }
.listing-card-tag.status-pass { color: var(--red); border-color: rgba(194,101,101,0.4); }
.listing-card-id {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--silver);
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border: 1px solid var(--line);
  z-index: 2;
}
.listing-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.listing-card-addr {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--silver-bright);
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin-bottom: 6px;
}
.listing-card-sub {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-1);
  line-height: 1.4;
}
.listing-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-bright);
}
.listing-card-metric .m-label {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 8.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.listing-card-metric .m-val {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--silver-bright);
}
.listing-card-metric .m-val.accent { color: var(--amber); }
.listing-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber);
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.listing-card-cta::after { content: "→"; font-family: var(--f-mono); }

/* "Add listing" empty card */
.listing-card.empty {
  border: 1px dashed var(--line-bright);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  flex-direction: column;
  cursor: default;
  padding: 24px;
}
.listing-card.empty:hover {
  transform: none;
  border-color: var(--ink-2);
  box-shadow: none;
}
.listing-card.empty .plus {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: 48px;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.listing-card.empty .label-empty {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: center;
}
.listing-card.empty .label-empty .path {
  display: block;
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: none;
}

/* ============================================================
   PROPERTY PAGE — Hero (uses property-specific image)
============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  filter: saturate(0.70) contrast(0.95) hue-rotate(-8deg) brightness(0.82);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,7,0.18) 0%, rgba(5,5,7,0.40) 50%, rgba(5,5,7,0.85) 90%, var(--bg-0) 100%);
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(5,5,7,0.50) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 32px;
  text-align: center;
}
.hero-tag {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero-tag::before, .hero-tag::after {
  content: "";
  display: inline-block;
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.hero-property {
  margin-top: 16px;
  font-family: var(--f-display);
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--silver);
  text-transform: uppercase;
}
.hero-property .sep { color: var(--amber); margin: 0 12px; }
.hero-chips {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-chips .chip {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 8px 14px;
  border: 1px solid var(--line-accent);
  background: rgba(5, 5, 7, 0.55);
  backdrop-filter: blur(6px);
  color: var(--silver);
  text-transform: uppercase;
}
.hero-cta {
  margin-top: 52px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 32px;
  border: 1px solid var(--amber);
  background: var(--amber-dim);
  color: var(--amber-bright);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}
.hero-cta:hover { background: var(--amber); color: var(--bg-0); transform: translateY(-1px); }
.hero-cta::after { content: "↓"; font-family: var(--f-mono); font-weight: 500; }
.hero-credit {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 8.5px;
  letter-spacing: 0.32em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.hero-corners > div {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--amber);
  opacity: 0.55;
}
.hero-corners .tl { top: 32px; left: 32px; border-right: 0; border-bottom: 0; }
.hero-corners .tr { top: 32px; right: 32px; border-left: 0; border-bottom: 0; }
.hero-corners .bl { bottom: 32px; left: 32px; border-right: 0; border-top: 0; }
.hero-corners .br { bottom: 32px; right: 32px; border-left: 0; border-top: 0; }

/* ============================================================
   ASSET PROFILE BAND
============================================================ */
.asset-band {
  padding: 64px 32px 48px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.asset-band-head {
  max-width: 1440px;
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.asset-band-head h2 {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: 30px;
  color: var(--silver-bright);
  letter-spacing: -0.01em;
}
.asset-band-head h2 .accent { color: var(--amber); font-weight: 900; }
.asset-band-head .sub {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 10px;
  color: var(--ink-1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.asset-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.asset-card {
  background: var(--bg-1);
  padding: 24px;
}
.asset-card .label { margin-bottom: 16px; }
.floor-table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 12px; }
.floor-table th, .floor-table td { padding: 7px 0; text-align: left; border-bottom: 1px dashed var(--line); }
.floor-table th { color: var(--ink-1); font-weight: 500; font-size: 9px; letter-spacing: 0.20em; text-transform: uppercase; }
.floor-table td.r { text-align: right; color: var(--silver); }
.floor-table tr.tot td { border-bottom: 0; border-top: 1px solid var(--amber); padding-top: 10px; color: var(--amber); font-weight: 600; }
.feature-list { list-style: none; }
.feature-list li { padding: 8px 0 8px 18px; position: relative; font-size: 12px; border-bottom: 1px dashed var(--line); color: var(--silver); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before { content: "+"; position: absolute; left: 0; color: var(--amber); font-family: var(--f-mono); font-weight: 700; }
.comp-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.comp-cloud span { font-family: var(--f-mono); font-size: 10px; padding: 4px 9px; border: 1px solid var(--line-bright); color: var(--ink-1); letter-spacing: 0.06em; }
.comp-cloud span.gold { border-color: var(--amber); color: var(--amber-bright); }
.asset-card .blurb { margin-top: 14px; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-1); line-height: 1.7; }

/* ============================================================
   LOCATION & COMPS — Leaflet map + curated comp side panel
============================================================ */
.location-band {
  padding: 56px 32px 56px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.location-head {
  max-width: 1600px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.location-head h2 {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: 30px;
  color: var(--silver-bright);
  letter-spacing: -0.01em;
}
.location-head h2 .accent { color: var(--amber); font-weight: 900; }
.location-sub {
  margin-top: 8px;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 12px;
  color: var(--ink-1);
  letter-spacing: 0.04em;
  max-width: 560px;
  line-height: 1.55;
}
.location-sub code {
  font-family: var(--f-mono);
  color: var(--amber);
  font-size: 11px;
  background: var(--bg-2);
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.location-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.location-stat {
  padding: 10px 18px;
  border-left: 1px solid var(--line-bright);
}
.location-stat:first-child { border-left: 0; padding-left: 0; }
.location-stat .label { display: block; margin-bottom: 4px; }
.location-stat .val {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 16px;
  color: var(--silver-bright);
}
.location-stat .val.accent { color: var(--amber); }

.location-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.map-wrap {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-1);
  height: 520px;
  border-radius: 2px;
  overflow: hidden;
}
#property-map {
  width: 100%;
  height: 100%;
  background: var(--bg-1);
}
.map-legend {
  position: absolute;
  bottom: 12px; left: 12px;
  z-index: 500;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-bright);
  border-radius: 2px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-1);
}
.map-legend .legend-item { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-0);
}
.map-legend .dot.self        { background: var(--amber); box-shadow: 0 0 6px var(--amber-glow); width: 11px; height: 11px; }
.map-legend .dot.retail      { background: var(--amber); }
.map-legend .dot.residential { background: var(--gold); }
.map-legend .dot.mixed       { background: var(--green); }
.map-legend .dot.office      { background: var(--silver); }

/* ----- Custom Leaflet markers ----- */
.realist-prop-pin {
  pointer-events: auto;
}
.realist-prop-pin .core {
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber), 0 0 0 2px var(--bg-0);
  z-index: 2;
}
.realist-prop-pin .ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1.5px solid var(--amber);
  opacity: 0;
  animation: mapRing 2.4s ease-out infinite;
}
.realist-prop-pin .ring.ring-delay { animation-delay: 1.2s; }
@keyframes mapRing {
  0%   { transform: scale(0.4); opacity: 0.8; }
  70%  { opacity: 0.0; }
  100% { transform: scale(1.6); opacity: 0; }
}
.realist-comp-pin .core {
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid var(--bg-0);
  transition: transform 0.15s ease;
}
.realist-comp-pin:hover .core { transform: scale(1.3); }
.realist-comp-pin.pin-retail      .core { background: var(--amber); }
.realist-comp-pin.pin-residential .core { background: var(--gold); }
.realist-comp-pin.pin-mixed       .core { background: var(--green); }
.realist-comp-pin.pin-office      .core { background: var(--silver); }

/* ----- Leaflet popup theming ----- */
.leaflet-popup-content-wrapper {
  background: var(--bg-2) !important;
  color: var(--silver) !important;
  border: 1px solid var(--amber);
  border-radius: 2px !important;
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.15);
}
.leaflet-popup-content { margin: 14px 18px !important; line-height: 1.5 !important; }
.leaflet-popup-tip {
  background: var(--bg-2) !important;
  border: 1px solid var(--amber);
}
.leaflet-popup-close-button {
  color: var(--ink-1) !important;
  font-size: 18px !important;
  padding: 6px 10px 0 0 !important;
}
.leaflet-popup-close-button:hover { color: var(--amber-bright) !important; }
.realist-popup-self .leaflet-popup-content-wrapper { border-color: var(--amber-bright); }
.comp-popup-addr {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--silver-bright);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.comp-popup-meta {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-1);
  margin-bottom: 10px;
}
.comp-popup-meta .pin-retail,
.comp-popup-meta .pin-residential,
.comp-popup-meta .pin-mixed,
.comp-popup-meta .pin-office,
.comp-popup-meta .pin-self  { color: var(--amber); font-weight: 600; }
.comp-popup-meta .pin-residential { color: var(--gold); }
.comp-popup-meta .pin-mixed       { color: var(--green); }
.comp-popup-meta .pin-office      { color: var(--silver-bright); }
.comp-popup-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-bright);
}
.comp-popup-metrics > div { display: flex; flex-direction: column; gap: 2px; }
.comp-popup-metrics .lbl {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.comp-popup-metrics .v {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 12px;
  color: var(--silver-bright);
}
.comp-popup-note {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-1);
  line-height: 1.5;
}
.comp-popup-flag {
  margin-top: 8px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Leaflet controls + attribution */
.leaflet-control-zoom a {
  background: var(--bg-2) !important;
  color: var(--silver) !important;
  border: 1px solid var(--line-bright) !important;
}
.leaflet-control-zoom a:hover { background: var(--bg-3) !important; color: var(--amber) !important; }
.leaflet-control-attribution {
  background: rgba(5, 5, 7, 0.65) !important;
  color: var(--ink-2) !important;
  font-family: var(--f-mono) !important;
  font-size: 9px !important;
  padding: 2px 8px !important;
}
.leaflet-control-attribution a { color: var(--ink-1) !important; }

/* ----- Comp list (side panel) ----- */
.comp-list-wrap {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  max-height: 520px;
}
.comp-list-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.comp-list-meta {
  display: inline-flex;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-1);
  letter-spacing: 0.04em;
}
.comp-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.comp-row {
  padding: 12px 18px;
  border-bottom: 1px dashed var(--line);
  cursor: pointer;
  transition: background 0.15s ease;
}
.comp-row:last-child { border-bottom: 0; }
.comp-row:hover { background: var(--bg-2); }
.comp-row.active {
  background: linear-gradient(90deg, var(--amber-dim), transparent);
  border-left: 2px solid var(--amber);
  padding-left: 16px;
}
.comp-row.empty {
  padding: 24px;
  text-align: left;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-1);
  cursor: default;
  line-height: 1.7;
}
.comp-row.empty:hover { background: transparent; }
.comp-row.empty strong {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--amber);
  text-transform: uppercase;
}
.comp-row.empty code {
  color: var(--amber);
  background: var(--bg-2);
  padding: 1px 5px;
  border: 1px solid var(--line);
  font-size: 10.5px;
}
.comp-row.empty a { text-decoration: underline; text-underline-offset: 3px; }
.comp-row.empty a:hover { color: var(--amber-bright); }
.comp-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.comp-row-addr {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--silver-bright);
  letter-spacing: 0.01em;
}
.comp-row-pin {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.comp-row-pin.pin-retail      { background: var(--amber); }
.comp-row-pin.pin-residential { background: var(--gold); }
.comp-row-pin.pin-mixed       { background: var(--green); }
.comp-row-pin.pin-office      { background: var(--silver); }
.comp-row-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-1);
}
.comp-row-metrics .m-price { color: var(--silver-bright); font-weight: 600; }
.comp-row-metrics .cap     { color: var(--amber); }
.comp-row-metrics .date    { color: var(--ink-2); }
.comp-row-metrics .src-tag {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  padding: 1px 6px;
  border: 1px solid var(--line-bright);
  color: var(--ink-1);
  border-radius: 2px;
}
.comp-row-metrics .src-tag.src-indicative { color: var(--gold);  border-color: rgba(200,150,90,0.4); }
.comp-row-metrics .src-tag.src-asking    { color: var(--amber); border-color: var(--amber-dim); }
.comp-row-metrics .src-tag.src-acris     { color: var(--green); border-color: rgba(122,170,135,0.4); }
.comp-row-metrics .src-tag.src-broker    { color: var(--silver-bright); }
.comp-row-note {
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-2);
  line-height: 1.5;
}
.comp-list-foot {
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

/* ============================================================
   UNDERWRITER LAYOUT — sticky left + scrolling right
============================================================ */
.underwriter {
  display: grid;
  grid-template-columns: 380px 1fr;
  max-width: 1600px;
  margin: 0 auto;
  background: var(--bg-0);
  min-height: 100vh;
}
.inputs {
  border-right: 1px solid var(--line);
  background: var(--bg-1);
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 28px 24px 48px;
}
.inputs-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.inputs-head h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--silver-bright);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.inputs-head p {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--ink-1);
  text-transform: uppercase;
}

.input-group { margin-bottom: 26px; }
.input-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.input-group-head .label { color: var(--amber); }
.input-group-head .badge {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--ink-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.input-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 7px 0; }
.input-row label { font-family: var(--f-mono); font-size: 11px; color: var(--ink-1); }
.input-row input[type="number"] {
  width: 110px;
  background: var(--bg-2);
  border: 1px solid var(--line-bright);
  color: var(--amber);
  padding: 6px 9px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  transition: border-color 0.2s;
  border-radius: 2px;
}
.input-row input[type="number"]:focus { outline: none; border-color: var(--amber); background: var(--bg-3); }

.slider-row { padding: 8px 0; }
.slider-row .slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.slider-row .slider-head label { font-family: var(--f-mono); font-size: 11px; color: var(--ink-1); }
.slider-row .slider-head .val { font-family: var(--f-mono); font-size: 12px; color: var(--amber); font-weight: 600; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 2px;
  background: var(--line-bright);
  outline: none; margin: 6px 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px;
  background: var(--amber);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 4px var(--amber-dim);
  border: 0;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--amber);
  border-radius: 50%;
  cursor: pointer;
  border: 0;
}
.slider-row .range-marks {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 9px;
  color: var(--ink-3); margin-top: 2px; letter-spacing: 0.04em;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-bright);
  overflow: hidden;
  border-radius: 2px;
}
.segmented button {
  background: transparent;
  color: var(--ink-1);
  border: 0;
  padding: 9px 6px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border-right: 1px solid var(--line-bright);
  transition: all 0.2s;
}
.segmented button:last-child { border-right: 0; }
.segmented button:hover { color: var(--silver-bright); background: var(--bg-2); }
.segmented button.active { background: var(--amber-dim); color: var(--amber-bright); font-weight: 600; }

.rent-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.rent-table th, .rent-table td { padding: 5px 0; font-family: var(--f-mono); font-size: 11px; border-bottom: 1px dashed var(--line); }
.rent-table th { color: var(--ink-1); font-weight: 500; font-size: 8.5px; letter-spacing: 0.20em; text-transform: uppercase; text-align: left; }
.rent-table th.r, .rent-table td.r { text-align: right; }
.rent-table td .mini-input {
  width: 70px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--amber);
  padding: 4px 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-align: right;
  border-radius: 2px;
}
.rent-table td .mini-input:focus { outline: none; border-color: var(--amber); background: var(--bg-3); }
.rent-table td.gross { color: var(--silver); font-family: var(--f-mono); }
.rent-table tr.tot td { border-bottom: 0; border-top: 1px solid var(--amber); color: var(--amber); font-weight: 600; padding-top: 8px; }

/* ============================================================
   ANALYSIS PANE
============================================================ */
.analysis { padding: 24px 36px 64px; min-width: 0; }
.analysis-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.analysis-head h2 {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: 28px;
  color: var(--silver-bright);
  letter-spacing: -0.01em;
}
.analysis-head h2 .accent { color: var(--amber); font-weight: 900; }
.analysis-head .timestamp {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.analysis-head .timestamp::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber-glow);
  animation: pulse 2.4s ease-in-out infinite;
}

.kpi-band {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 32px;
}
.kpi { background: var(--bg-1); padding: 18px 16px 18px; position: relative; overflow: hidden; }
.kpi-label {
  font-family: var(--f-display); font-weight: 300; font-size: 9px;
  letter-spacing: 0.22em; color: var(--ink-1);
  text-transform: uppercase; margin-bottom: 12px;
}
.kpi-val {
  font-family: var(--f-mono); font-size: 22px; font-weight: 600;
  color: var(--silver-bright); line-height: 1.1; letter-spacing: -0.01em;
}
.kpi-val .unit { font-size: 12px; color: var(--ink-1); margin-left: 4px; font-weight: 400; }
.kpi-sub { margin-top: 8px; font-family: var(--f-mono); font-size: 10px; color: var(--ink-2); }
.kpi-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ink-3); }
.kpi.tier-red .kpi-bar { background: var(--red); }
.kpi.tier-red .kpi-val { color: var(--red); }
.kpi.tier-amber .kpi-bar { background: var(--gold); }
.kpi.tier-amber .kpi-val { color: var(--gold); }
.kpi.tier-green .kpi-bar { background: var(--amber); box-shadow: 0 0 12px var(--amber-glow); }
.kpi.tier-green .kpi-val { color: var(--amber-bright); }
.kpi.tier-na .kpi-val { color: var(--ink-2); }

.card { background: var(--bg-1); border: 1px solid var(--line); margin-bottom: 28px; border-radius: 2px; }
.card-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-head .title {
  font-family: var(--f-display); font-weight: 600; font-size: 14px;
  color: var(--silver-bright); letter-spacing: 0.02em; text-transform: uppercase;
}
.card-head .subtitle {
  font-family: var(--f-display); font-weight: 300; font-size: 9px;
  letter-spacing: 0.22em; color: var(--ink-1); text-transform: uppercase;
}
.card-body { padding: 22px; }

.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scenario {
  background: var(--bg-2);
  border: 1px solid var(--line-bright);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}
.scenario:hover { border-color: var(--ink-1); }
.scenario.active {
  border-color: var(--amber);
  background: linear-gradient(180deg, rgba(34,211,238,0.07) 0%, var(--bg-2) 80%);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.08);
}
.scenario-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.scenario-name {
  font-family: var(--f-display); font-weight: 600; font-size: 13px;
  color: var(--silver-bright); letter-spacing: 0.02em; text-transform: uppercase;
}
.scenario.active .scenario-name { color: var(--amber-bright); }
.scenario-tag {
  font-family: var(--f-display); font-weight: 300; font-size: 9px;
  letter-spacing: 0.20em; color: var(--ink-1); text-transform: uppercase;
}
.scenario-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; font-family: var(--f-mono); font-size: 11px; }
.scenario-metrics .m-label {
  color: var(--ink-1); font-family: var(--f-display); font-weight: 300;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 3px;
}
.scenario-metrics .m-val { color: var(--silver-bright); font-size: 14px; font-weight: 600; }

.sens-grid { display: grid; grid-template-columns: 90px repeat(4, 1fr); margin-top: 14px; border: 1px solid var(--line-bright); }
.sens-grid .sens-cell {
  padding: 9px 10px;
  border-right: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line-bright);
  font-family: var(--f-mono); font-size: 10.5px; text-align: center;
}
.sens-grid .sens-cell:last-child { border-right: 0; }
.sens-grid .sens-cell.head {
  color: var(--ink-1); font-family: var(--f-display); font-weight: 400;
  font-size: 9px; letter-spacing: 0.18em; background: var(--bg-2); text-transform: uppercase;
}
.sens-grid .sens-cell.corner { background: var(--bg-2); }
.sens-grid .sens-cell.dscr-val { color: var(--silver); }
.sens-grid .sens-cell.dscr-val .coc { font-size: 9px; color: var(--ink-2); display: block; margin-top: 2px; }
.sens-grid .sens-cell.tier-red   { background: rgba(194, 101, 101, 0.08); color: var(--red); }
.sens-grid .sens-cell.tier-amber { background: rgba(200, 150, 90, 0.08); color: var(--gold); }
.sens-grid .sens-cell.tier-green { background: rgba(34, 211, 238, 0.08); color: var(--amber-bright); }

.finance-commentary {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-2);
  border-left: 2px solid var(--amber);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--silver);
  line-height: 1.65;
}
.finance-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.finance-summary .fs { background: var(--bg-2); padding: 14px 16px; }
.finance-summary .fs .label { margin-bottom: 8px; }
.finance-summary .fs .val {
  font-family: var(--f-mono); font-size: 16px;
  color: var(--silver-bright); font-weight: 600;
}

.capex-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.capex-controls .label { margin-bottom: 8px; display: block; }
.capex-slider-val {
  font-family: var(--f-display); font-weight: 800;
  font-size: 44px; color: var(--amber-bright);
  margin-bottom: 4px; letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(34,211,238,0.18);
}
.capex-slider-sub {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--ink-1); letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 18px;
}
.capex-outputs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 14px;
}
.capex-outputs .co { background: var(--bg-2); padding: 14px; }
.capex-outputs .co .label { margin-bottom: 6px; }
.capex-outputs .co .val {
  font-family: var(--f-mono); font-size: 16px;
  color: var(--silver-bright); font-weight: 600;
}
.capex-outputs .co .val.gold  { color: var(--amber); }
.capex-outputs .co .val.green { color: var(--amber-bright); }

.chart-wrap {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 14px; height: 280px; position: relative; border-radius: 2px;
}
.chart-wrap canvas { max-height: 100%; }
.chart-wrap.tall { height: 360px; }

.reval-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.reval-side .label { margin-bottom: 8px; }
.reval-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.reval-table th, .reval-table td {
  padding: 7px 0;
  font-family: var(--f-mono); font-size: 11.5px;
  border-bottom: 1px dashed var(--line); text-align: right;
}
.reval-table th {
  color: var(--ink-1); font-family: var(--f-display);
  font-size: 9px; font-weight: 400; letter-spacing: 0.20em; text-transform: uppercase;
}
.reval-table th:first-child, .reval-table td:first-child { text-align: left; color: var(--ink-1); }
.reval-table td.gold { color: var(--amber); }
.reval-table td.green { color: var(--amber-bright); }
.reval-table tr.current td { background: var(--amber-dim); color: var(--amber-bright); }

.historical-note {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--bg-2);
  border-left: 2px solid var(--ink-2);
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-1); line-height: 1.65;
}
.historical-note strong { color: var(--silver-bright); }

/* ============================================================
   EXIT PROJECTION — year-N values + tier-colored return tiles
============================================================ */
.exit-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.exit-tile {
  background: var(--bg-2);
  padding: 14px 16px;
}
.exit-tile .label { margin-bottom: 8px; }
.exit-tile .val {
  font-family: var(--f-mono);
  font-size: 15px;
  color: var(--silver-bright);
  font-weight: 600;
}
.exit-tile .val.accent { color: var(--amber-bright); }
.exit-tile.gap { background: transparent; padding: 0; }

.exit-returns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.exit-returns .kpi { background: var(--bg-1); }

.verdict-card {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border: 1px solid var(--amber);
  position: relative;
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.08);
}
.verdict-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.verdict-body { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
.verdict-score { text-align: center; }
.verdict-score .num {
  font-family: var(--f-display); font-weight: 900;
  font-size: 96px; line-height: 1;
  color: var(--amber-bright);
  letter-spacing: -0.04em;
  text-shadow: 0 0 32px rgba(34,211,238,0.30);
}
.verdict-score .out {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-1); letter-spacing: 0.22em; text-transform: uppercase; margin-top: 6px;
}
.verdict-rating {
  margin-top: 10px;
  font-family: var(--f-display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.30em;
  color: var(--amber); text-transform: uppercase;
}
.verdict-text {
  font-family: var(--f-display); font-weight: 300;
  font-size: 18px; line-height: 1.55;
  color: var(--silver); letter-spacing: 0.01em;
}
.verdict-text .accent { color: var(--amber-bright); font-weight: 600; }

.caveat-band {
  margin-top: 22px;
  border: 1px solid var(--amber);
  background: var(--amber-dim);
  padding: 18px 22px;
  position: relative;
  border-radius: 2px;
}
.caveat-band .caveat-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.caveat-band .caveat-head .icon {
  width: 22px; height: 22px;
  border: 1px solid var(--amber);
  color: var(--amber-bright);
  font-family: var(--f-display); font-weight: 900; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.caveat-band .caveat-head .title {
  font-family: var(--f-display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.26em;
  color: var(--amber-bright); text-transform: uppercase;
}
.caveat-band p {
  font-family: var(--f-mono); font-size: 12px;
  color: var(--silver); line-height: 1.7;
}
.caveat-band p + p { margin-top: 8px; }

footer.page-foot {
  padding: 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  text-align: center;
}
footer.page-foot .label-sm { margin-bottom: 8px; }
footer.page-foot .sources {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--ink-1); letter-spacing: 0.14em;
}
footer.page-foot .disclaimer {
  margin-top: 14px;
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--ink-2);
  max-width: 760px; margin-left: auto; margin-right: auto;
  line-height: 1.65;
}
footer.page-foot .copyright {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-1);
}

/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 960px) {
  .underwriter { grid-template-columns: 1fr; }
  .inputs { position: relative; height: auto; top: 0; }
  .kpi-band { grid-template-columns: repeat(2, 1fr); }
  .scenarios { grid-template-columns: 1fr; }
  .reval-grid, .capex-grid { grid-template-columns: 1fr; }
  .verdict-body { grid-template-columns: 1fr; text-align: center; }
  .asset-grid { grid-template-columns: 1fr; }
  .listings-grid { padding: 24px; }
  .topbar { padding: 0 18px; }
  .topbar-stats { display: none; }
  .listings-meta .item { padding: 10px 12px; }
  .exit-summary { grid-template-columns: repeat(2, 1fr); }
  .exit-returns { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .comp-list-wrap { max-height: 380px; }
  .map-wrap { height: 360px; }
  .map-legend { font-size: 8.5px; padding: 8px 10px; }
}
