/* ============================================================================
   REOP — ZIP Market Deep-Dive  ·  extension styles
   Layered on colors_and_type.css + report.css. Letter portrait.
   Components: neighborhood photo hero, seller-leverage gauge, source
   cross-check, property-type table, value-trend chart, seasonality bars.
   ============================================================================ */

/* ── NEIGHBORHOOD HERO (replaces sec-head on ZIP pages) ────────────────────── */
.nb-hero {
  display: grid; grid-template-columns: 1fr 2.45in; gap: 22px; align-items: stretch;
  margin-bottom: 14px; padding: 18px 20px 18px 24px; border-radius: 14px;
  background: linear-gradient(150deg, #074d5b 0%, var(--reop-dark-blue) 52%, #06303a 100%);
  position: relative; overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,61,71,.20);
}
.nb-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 520px 320px at 70% -30%, hsl(184 100% 50% / .18), transparent 60%),
    radial-gradient(ellipse 320px 260px at -8% 150%, hsl(74 61% 52% / .14), transparent 60%);
}
.nb-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image:
    linear-gradient(hsl(184 60% 70% / .06) 1px, transparent 1px),
    linear-gradient(90deg, hsl(184 60% 70% / .06) 1px, transparent 1px);
  background-size: 26px 26px;
}
.nb-hero > * { position: relative; z-index: 1; }
.nb-info { display: flex; flex-direction: column; min-width: 0; }
.nb-eyebrow {
  display: flex; align-items: center; gap: 9px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: hsl(184 72% 70%); margin-bottom: 6px;
}
.nb-eyebrow .nb-zip {
  background: hsl(184 90% 60% / .16); border: 1px solid hsl(184 70% 55% / .35);
  color: hsl(184 85% 78%); padding: 2px 9px; border-radius: 99px;
  letter-spacing: 0.08em; font-size: 10px;
}
.nb-name {
  font-size: 25px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.04;
  color: #fff; margin: 0 0 9px;
}
.nb-verdict {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
  color: #fff; margin-bottom: 13px;
}
.nb-verdict .vd-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.nb-verdict .vd-dot.buyer  { background: hsl(184 85% 60%); box-shadow: 0 0 0 4px hsl(184 85% 60% / .18); }
.nb-verdict .vd-dot.seller { background: var(--reop-green); box-shadow: 0 0 0 4px hsl(74 61% 52% / .2); }

/* leverage gauge (on the dark hero) */
.lev { margin-top: auto; }
.lev-top {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px;
}
.lev-top .lt-lab { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(205 30% 78%); }
.lev-top .lt-score { font-size: 11px; font-weight: 700; color: #fff; }
.lev-top .lt-score b { color: hsl(184 85% 70%); }
.lev-track {
  position: relative; height: 12px; border-radius: 99px;
  background: linear-gradient(90deg, hsl(205 22% 52% / .45) 0%, hsl(184 60% 50% / .5) 50%, hsl(74 61% 52% / .75) 100%);
  border: 1px solid hsl(184 40% 60% / .25);
}
.lev-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: hsl(205 30% 86% / .5); }
.lev-thumb {
  position: absolute; top: 50%; width: 17px; height: 17px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #fff;
  border: 3px solid var(--reop-dark-blue); box-shadow: 0 2px 7px rgba(0,0,0,.4);
}
.lev-ends { display: flex; justify-content: space-between; margin-top: 6px; }
.lev-ends span { font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; color: hsl(205 28% 72%); }
.lev-comps {
  display: flex; gap: 5px; flex-wrap: wrap; margin-top: 11px;
}
.lev-comps .lc {
  font-size: 9px; font-weight: 600; letter-spacing: 0.02em;
  color: hsl(205 30% 80%); background: hsl(192 50% 14% / .55);
  border: 1px solid hsl(184 40% 50% / .22); border-radius: 6px; padding: 4px 8px;
}
.lev-comps .lc b { color: #fff; font-weight: 700; }
.nb-attn {
  margin-top: 11px; font-size: 10.5px; line-height: 1.4; color: hsl(205 30% 80%);
}
.nb-attn b { color: hsl(184 85% 74%); font-weight: 700; }

/* the framed photo */
.nb-photo {
  width: 100%; height: 100%; min-height: 1.7in;
  border-radius: 11px; overflow: hidden;
  border: 1px solid hsl(184 50% 60% / .3);
  box-shadow: 0 8px 22px rgba(0,0,0,.32), inset 0 0 0 1px hsl(184 60% 70% / .08);
  background: hsl(192 50% 12%);
}
.nb-photo::part(empty) { color: hsl(184 60% 74%); }

/* ── NARRATIVE LEAD (client-facing summary line under hero) ────────────────── */
.zip-lead {
  font-size: 12.8px; line-height: 1.5; font-weight: 500; color: var(--reop-dark-blue);
  margin: 0 0 12px; letter-spacing: -0.01em;
}
.zip-lead b { font-weight: 700; }
.zip-lead .hl { color: var(--primary); font-weight: 700; }

/* ── TWO-COLUMN ANALYTICAL GRID ───────────────────────────────────────────── */
.zip-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zip-cols.wide-left { grid-template-columns: 1.18fr 1fr; }

/* ── PROPERTY-TYPE TABLE ──────────────────────────────────────────────────── */
.tt { width: 100%; border-collapse: collapse; }
.tt th {
  text-align: right; font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted-foreground);
  padding: 0 7px 8px; border-bottom: 1.5px solid var(--border);
}
.tt th:first-child { text-align: left; }
.tt td {
  padding: 8px 7px; border-bottom: 1px solid var(--border); font-size: 11px;
  text-align: right; vertical-align: middle; color: var(--reop-dark-gray);
}
.tt td:first-child { text-align: left; }
.tt tr:last-child td { border-bottom: none; }
.tt .t-type { font-weight: 700; color: var(--reop-dark-blue); }
.tt .t-med { font-weight: 600; color: var(--reop-dark-blue); }
.tt td.up { color: hsl(82 55% 32%); font-weight: 700; }
.tt td.down { color: hsl(28 78% 42%); font-weight: 700; }
.tt td.flat { color: var(--muted-foreground); }
.tt tr.thin .t-type { color: hsl(205 14% 52%); font-weight: 600; }
.tt .t-flag {
  display: inline-block; font-size: 8px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: hsl(30 75% 45%); background: hsl(35 100% 93%);
  border-radius: 4px; padding: 1px 5px; margin-left: 5px; vertical-align: 1px;
}

/* ── SOURCE CROSS-CHECK ───────────────────────────────────────────────────── */
.xc-sigs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 11px; }
.xc-sig {
  border: 1px solid hsl(200 20% 89%); border-radius: 9px; padding: 9px 10px; background: hsl(200 30% 98.5%);
}
.xc-sig .xs-name { font-size: 9px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted-foreground); line-height: 1.3; margin-bottom: 6px; min-height: 22px; }
.xc-sig .xs-val { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 4px; }
.xc-sig .xs-val.up { color: hsl(82 55% 32%); }
.xc-sig .xs-val.down { color: hsl(28 78% 42%); }
.xc-sig .xs-val .lucide { width: 14px; height: 14px; }
.xc-verdict {
  display: flex; align-items: flex-start; gap: 9px;
  background: hsl(35 100% 96.5%); border: 1px solid hsl(35 80% 86%);
  border-left: 3px solid hsl(33 85% 55%); border-radius: 9px; padding: 10px 12px;
}
.xc-verdict .lucide { width: 15px; height: 15px; color: hsl(30 80% 46%); flex-shrink: 0; margin-top: 1px; }
.xc-verdict p { margin: 0; font-size: 10.8px; line-height: 1.45; color: var(--reop-dark-gray); }
.xc-verdict p strong { color: hsl(28 75% 38%); font-weight: 700; }

/* "Talk to Pam" CTA — appears wherever sources diverge */
.ask-pam {
  display: flex; align-items: center; gap: 9px; margin-top: 10px;
  background: linear-gradient(180deg, var(--reop-teal-soft) 0%, hsl(184 60% 95%) 100%);
  border: 1px solid hsl(184 50% 78%); border-left: 3px solid var(--primary);
  border-radius: 9px; padding: 8px 11px; text-decoration: none;
}
.ask-pam:hover { text-decoration: none; opacity: 1; background: linear-gradient(180deg, hsl(184 55% 90%) 0%, hsl(184 55% 93%) 100%); }
.ask-pam .ap-ico {
  width: 25px; height: 25px; border-radius: 7px; flex-shrink: 0;
  background: var(--reop-dark-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ask-pam .ap-ico .lucide { width: 13px; height: 13px; }
.ask-pam .ap-txt { font-size: 10.3px; line-height: 1.3; color: var(--reop-dark-blue); font-weight: 600; }
.ask-pam .ap-txt b { color: var(--primary); font-weight: 700; }
.ask-pam .ap-arrow { margin-left: auto; color: var(--primary); display: flex; flex-shrink: 0; }
.ask-pam .ap-arrow .lucide { width: 16px; height: 16px; }

/* closing CTA on the dark summary band */
.bl-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  background: #fff; color: var(--reop-dark-blue); font-weight: 700; font-size: 11.5px;
  padding: 8px 15px; border-radius: 99px; text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
}
.bl-cta:hover { text-decoration: none; opacity: 1; background: hsl(184 60% 96%); }
.bl-cta .lucide { width: 15px; height: 15px; color: var(--primary); }

/* mirage callout — headline vs real */
.mirage {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 11px;
  border: 1px solid hsl(200 20% 89%); border-radius: 9px; overflow: hidden;
}
.mirage .mg-cell { padding: 9px 12px; }
.mirage .mg-cell.headline { background: hsl(200 30% 97.5%); border-right: 1px solid hsl(200 20% 89%); }
.mirage .mg-cell.real { background: hsl(184 50% 96%); }
.mirage .mg-lab { font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 3px; }
.mirage .mg-val { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.mirage .mg-cell.headline .mg-val { color: hsl(205 14% 55%); }
.mirage .mg-cell.real .mg-val { color: var(--primary); }
.mirage .mg-sub { font-size: 8.5px; color: var(--muted-foreground); margin-top: 3px; }

/* ── RENT VS OWN MINI ─────────────────────────────────────────────────────── */
.rent-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid hsl(200 20% 89%); border-radius: 10px; overflow: hidden; background: #fff;
}
.rent-strip .rs { padding: 9px 12px; border-right: 1px solid var(--border); }
.rent-strip .rs:last-child { border-right: none; }
.rent-strip .rs-num { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--reop-dark-blue); line-height: 1; }
.rent-strip .rs-lab { font-size: 8.8px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted-foreground); margin-top: 5px; line-height: 1.3; }

/* ── VALUE-TREND CHART ────────────────────────────────────────────────────── */
.trend-box { }
.trend-chart {
  position: relative; border: 1px solid hsl(200 20% 90%); border-radius: 10px;
  background: linear-gradient(180deg, hsl(200 30% 99%), hsl(200 24% 97%));
  padding: 12px 14px 8px;
}
.trend-chart svg { display: block; width: 100%; height: auto; }
.trend-ax { display: flex; justify-content: space-between; margin-top: 7px; }
.trend-ax span { font-size: 9.5px; font-weight: 600; color: var(--muted-foreground); }
.trend-ax span b { color: var(--reop-dark-blue); font-weight: 700; }
.metro-note {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: 10.5px; line-height: 1.4; color: var(--reop-dark-gray);
}
.metro-note .lucide { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }
.metro-note b { color: var(--reop-dark-blue); font-weight: 700; }

/* ── SEASONALITY BARS ─────────────────────────────────────────────────────── */
.season-bars {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px;
  align-items: end; height: 96px; padding: 8px 2px 0;
}
.sb-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.sb-bar { width: 100%; border-radius: 4px 4px 0 0; background: hsl(200 24% 86%); transition: none; }
.sb-bar.hot { background: linear-gradient(180deg, var(--primary), var(--reop-dark-blue)); }
.sb-lab { font-size: 8px; font-weight: 600; color: var(--muted-foreground); margin-top: 4px; }
.sb-col.is-hot .sb-lab { color: var(--primary); font-weight: 700; }
.season-cap { font-size: 10.5px; line-height: 1.45; color: var(--reop-dark-gray); margin: 10px 0 0; }
.season-cap b { color: var(--reop-dark-blue); font-weight: 700; }
.season-cap .hot-month { color: var(--primary); font-weight: 700; }

/* ── CONTENTS: how-to-read panel ──────────────────────────────────────────── */
.source-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.sl-card {
  border: 1px solid hsl(200 20% 89%); border-radius: 12px; padding: 15px 16px; background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 3px 12px rgba(15,23,42,.05);
}
.sl-card .sl-ico {
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--reop-teal-soft); color: var(--primary); margin-bottom: 11px;
}
.sl-card .sl-ico .lucide { width: 16px; height: 16px; }
.sl-card .sl-src { font-size: 13px; font-weight: 700; color: var(--reop-dark-blue); letter-spacing: -0.01em; margin-bottom: 4px; }
.sl-card .sl-what { font-size: 10.5px; line-height: 1.5; color: var(--reop-dark-gray); }
.sl-card .sl-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); margin-top: 8px; display: block; }

/* ── SUMMARY PAGE ─────────────────────────────────────────────────────────── */
.minute-list { display: flex; flex-direction: column; }
.minute-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start;
  padding: 13px 4px; border-bottom: 1px solid var(--border);
}
.minute-row:last-child { border-bottom: none; }
.minute-row .mr-zip { display: flex; flex-direction: column; gap: 3px; }
.minute-row .mr-name { font-size: 13.5px; font-weight: 700; color: var(--reop-dark-blue); letter-spacing: -0.01em; }
.minute-row .mr-code { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted-foreground); }
.minute-row .mr-badge {
  align-self: flex-start; font-size: 8.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 99px; margin-top: 2px;
  background: hsl(184 60% 92%); color: var(--primary);
}
.minute-row .mr-badge.strong { background: hsl(210 16% 92%); color: hsl(205 18% 42%); }
.minute-row .mr-take { font-size: 11.5px; line-height: 1.55; color: var(--reop-dark-gray); }
.minute-row .mr-take b { color: var(--reop-dark-blue); font-weight: 700; }

/* metro comparison bars */
.metro-grid { display: flex; flex-direction: column; gap: 9px; }
.metro-row { display: grid; grid-template-columns: 150px 1fr 56px; gap: 12px; align-items: center; }
.metro-lab { font-size: 11px; font-weight: 700; color: var(--reop-dark-blue); }
.metro-lab small { display: block; font-size: 9px; font-weight: 600; color: var(--muted-foreground); letter-spacing: 0.04em; }
.metro-track {
  position: relative; height: 16px; background: hsl(210 16% 93%); border-radius: 5px; overflow: hidden;
}
.metro-track .mt-zero { position: absolute; left: 78%; top: 0; bottom: 0; width: 1.5px; background: hsl(205 14% 60%); z-index: 2; }
.metro-fill { position: absolute; right: 22%; height: 100%; background: linear-gradient(90deg, hsl(28 78% 58%), hsl(33 85% 50%)); border-radius: 5px 0 0 5px; }
.metro-fill.metro { background: linear-gradient(90deg, hsl(205 22% 62%), hsl(205 18% 50%)); }
.metro-val { font-size: 11px; font-weight: 700; color: hsl(28 78% 42%); text-align: right; }
.metro-val.muted { color: hsl(205 16% 48%); }

/* three big takeaways */
.takeaways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tk {
  border: 1px solid hsl(200 20% 89%); border-radius: 12px; padding: 15px 16px; background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 3px 12px rgba(15,23,42,.05);
  display: flex; flex-direction: column;
}
.tk .tk-ico {
  width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: var(--reop-dark-blue); color: #fff; margin-bottom: 11px;
}
.tk .tk-ico .lucide { width: 17px; height: 17px; }
.tk .tk-h { font-size: 12.5px; font-weight: 700; color: var(--reop-dark-blue); letter-spacing: -0.01em; margin-bottom: 6px; line-height: 1.2; }
.tk .tk-b { font-size: 10.8px; line-height: 1.5; color: var(--reop-dark-gray); }
.tk .tk-b b { color: var(--reop-dark-blue); font-weight: 700; }

/* rates band */
.rates-band {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, var(--reop-teal-soft) 0%, hsl(184 60% 95%) 100%);
  border: 1px solid hsl(184 50% 78%); border-left: 3px solid var(--primary);
  border-radius: 11px; padding: 13px 16px;
}
.rates-band .rb-ico {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--reop-dark-blue); color: #fff; display: flex; align-items: center; justify-content: center;
}
.rates-band .rb-ico .lucide { width: 17px; height: 17px; }
.rates-band .rb-txt { font-size: 11.5px; line-height: 1.45; color: var(--reop-dark-blue); }
.rates-band .rb-txt b { font-weight: 700; }
.rates-band .rb-big { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--primary); margin-left: auto; line-height: 1; white-space: nowrap; }

/* small section heading inside a page */
.mini-h {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--reop-dark-blue); margin: 0 0 9px; display: flex; align-items: center; gap: 7px;
}
.mini-h .lucide { width: 14px; height: 14px; color: var(--primary); }
.mini-h .mh-tag { margin-left: auto; font-size: 9px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted-foreground); }

/* ============================================================================
   COMPACT FIT — dense ZIP + summary pages must not exceed the fixed 11in page.
   (This stylesheet loads only on the deep-dive report, so overrides are safe.)
   ============================================================================ */
.nb-hero { padding: 13px 18px; margin-bottom: 7px; }
.nb-name { font-size: 22px; margin-bottom: 5px; }
.nb-verdict { margin-bottom: 8px; font-size: 11.5px; }
.lev-top { margin-bottom: 5px; }
.lev-ends { margin-top: 4px; }
.lev-comps { margin-top: 8px; gap: 4px; }
.lev-comps .lc { padding: 3px 6px; font-size: 8.5px; }
.nb-attn { margin-top: 7px; font-size: 10px; }
.nb-photo { min-height: 1.25in; }

.kpi-strip { margin-bottom: 6px; }
.kpi { padding: 11px 16px 10px; }
.kpi .k-num { font-size: 26px; margin-bottom: 4px; }

.zip-lead { margin-bottom: 5px; }

.panel { padding: 12px 14px; }
.panel-h { margin-bottom: 8px; padding-bottom: 7px; }
.tt td { padding: 4px 7px; }
.tt th { padding-bottom: 6px; }
.xc-sigs { margin-bottom: 7px; }
.xc-sig { padding: 6px 8px; }
.xc-sig .xs-name { min-height: 14px; margin-bottom: 3px; }
.xc-verdict { padding: 7px 10px; }
.xc-verdict p { font-size: 10.4px; }
.ask-pam { margin-top: 6px; padding: 6px 10px; }
.mirage { margin-top: 9px; }
.zip-cols.wide-left { margin-bottom: 6px !important; }
.takeaways { margin-bottom: 10px !important; }

.season-bars { height: 64px; }
.season-cap { margin-top: 8px; }
.metro-note { margin-top: 8px; }
.trend-ax { margin-top: 6px; }

.rent-strip .rs { padding: 5px 12px; }

/* summary page (#sec4) */
#sec4 .sec-head { padding: 9px 22px; margin-bottom: 6px; }
#sec4 .sec-title { font-size: 21px; margin-bottom: 5px; }
#sec4 .sec-lede { font-size: 12px; }
#sec4 .sec-index .lucide { width: 34px !important; height: 34px !important; }
.minute-row { padding: 2px 4px; }
.minute-row .mr-take { font-size: 11px; line-height: 1.45; }
.minute-row .mr-name { font-size: 13px; }
.metro-grid { gap: 5px; }
.takeaways .tk { padding: 9px 13px; }
.tk .tk-ico { margin-bottom: 8px; width: 30px; height: 30px; }
.tk .tk-h { margin-bottom: 5px; }
.tk .tk-b { font-size: 10.1px; line-height: 1.35; }
.bottom-line { padding: 9px 18px; }
.bottom-line p { font-size: 12px; line-height: 1.48; }
.mini-h { margin-bottom: 5px; }
.bl-cta { margin-top: 8px; }
.takeaways { margin-bottom: 6px !important; }
#sec4 .rates-band { gap: 7px !important; padding: 11px 16px; }
#sec4 .rb-big { font-size: 28px !important; }
