/* invest.findahome.com - design system
   Print-prospectus editorial: warm paper, navy ink, gold accents, hairline rules.
   Type: Archivo (display + body, variable wdth/wght), Source Serif 4 italic (editorial accents). */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-display: swap;
  src: url('../fonts/archivo-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-serif-4-italic-latin.woff2') format('woff2');
}

:root {
  --paper: #FBFAF7;
  --paper-deep: #F4F1EA;
  --ink: #2A2A28;
  --ink-soft: #55524B;
  --muted: #7A7568;
  --navy: #16263F;
  --navy-tint: #E9EBEF;
  --gold: #B0883B;
  --gold-deep: #8F6D2C;
  --hairline: #DAD4C6;
  --hairline-dark: #C4BCA9;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --measure: 66ch;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

::selection { background: var(--navy); color: var(--paper); }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 62px); font-stretch: 112%; font-weight: 650; }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 23px); letter-spacing: -0.005em; }

.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.kicker::after { content: ''; height: 1px; background: var(--hairline-dark); flex: 0 0 56px; }
.kicker .n { color: var(--muted); font-variant-numeric: tabular-nums; }

.serif-note { font-family: var(--serif); font-style: italic; font-size: 1.12em; color: var(--ink-soft); line-height: 1.55; }

.num, td.n, .stat-v, .fin-v { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.section { padding: clamp(56px, 8vw, 104px) 0 0; }
.section > .wrap > .rule-top { border-top: 1px solid var(--hairline-dark); padding-top: clamp(28px, 4vw, 48px); }

/* asymmetric editorial split: narrow label rail + wide content */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.split .rail { position: sticky; top: 32px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .rail { position: static; } }

/* ---------- reveal on scroll (subtle fade only) ---------- */
.fx { opacity: 0; transform: translateY(8px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fx.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fx { opacity: 1; transform: none; transition: none; } }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-media { height: min(74vh, 720px); min-height: 420px; overflow: hidden; position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; top: 22px; left: 22px;
  background: var(--navy); color: var(--paper);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero-panel {
  position: relative;
  background: var(--paper);
  max-width: 880px;
  margin: -120px auto 0 var(--gutter);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 52px) 0;
  border-top: 3px solid var(--gold);
}
@media (min-width: 1290px) { .hero-panel { margin-left: calc((100vw - 1200px) / 2); } }
@media (max-width: 640px) { .hero-panel { margin: -64px var(--gutter) 0 var(--gutter); padding-left: 0; padding-right: 0; border-top-width: 2px; padding-top: 24px; } }
.hero-addr { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.hero-desc { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); max-width: 56ch; margin-top: 14px; }
.hero-desc strong { color: var(--navy); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- buttons: rectangular, hairline, no shadow ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  padding: 15px 26px; cursor: pointer;
  border: 1px solid var(--navy);
  background: var(--navy); color: var(--paper);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--paper); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-deep); outline-offset: 2px;
}

/* ---------- stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--hairline-dark); border-bottom: 1px solid var(--hairline-dark); margin-top: 40px; }
.stat { padding: 22px 22px 24px 0; border-left: 1px solid var(--hairline); padding-left: 22px; }
.stat:first-child { border-left: none; padding-left: 0; }
.stat-v { font-size: clamp(24px, 2.6vw, 34px); font-weight: 650; color: var(--navy); letter-spacing: -0.01em; }
.stat-v sub, .stat-v .u { font-size: 0.5em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.stat-k { font-size: 11px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) { .stat { border-left: none; padding-left: 0; border-top: 1px solid var(--hairline); } .stat:first-child { border-top: none; } }

/* ---------- tables: ledger style ---------- */
table { border-collapse: collapse; width: 100%; font-size: 15px; }
caption { text-align: left; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; }
th, td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
thead th { font-size: 11.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--hairline-dark); }
td.n, th.n { text-align: right; padding-right: 0; white-space: nowrap; }
tbody th[scope="row"] { font-weight: 500; color: var(--ink); }
tr.total td, tr.total th { border-top: 1px solid var(--navy); border-bottom: 2px solid var(--navy); font-weight: 650; color: var(--navy); }
.tbl-note { font-size: 13px; color: var(--muted); margin-top: 12px; max-width: var(--measure); }
.tbl-scroll { overflow-x: auto; }
sup.src { font-size: 10px; }
sup.src a { color: var(--gold-deep); text-decoration: none; }

/* ---------- financial chart ---------- */
.chart-frame { border: 1px solid var(--hairline); padding: 24px; background: #fff; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.gallery a { display: block; position: relative; overflow: hidden; background: var(--paper-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery a:hover img { transform: scale(1.025); }
.g-wide { grid-column: span 8; aspect-ratio: 3 / 1.9; }
.g-tall { grid-column: span 4; aspect-ratio: 4 / 3.8; }
.g-std { grid-column: span 4; aspect-ratio: 4 / 3; }
.g-half { grid-column: span 6; aspect-ratio: 3 / 2; }
@media (max-width: 720px) { .g-wide, .g-tall, .g-std, .g-half { grid-column: span 6; aspect-ratio: 4/3; } .gallery { gap: 8px; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15, 20, 30, 0.94); display: none; z-index: 60; }
.lightbox.open { display: flex; flex-direction: column; }
.lightbox figure { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 64px 12px; min-height: 0; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { color: #C9CDD4; font-size: 13.5px; padding: 14px 20px 26px; text-align: center; }
.lb-btn { position: absolute; background: none; border: 1px solid rgba(251,250,247,0.35); color: var(--paper); width: 46px; height: 46px; cursor: pointer; font-size: 19px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(251,250,247,0.12); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 30px; left: 22px; color: #9AA1AC; font-size: 12.5px; letter-spacing: 0.1em; }

/* ---------- map ---------- */
.map-shell { position: relative; border: 1px solid var(--hairline-dark); }
#tradeMap { width: 100%; height: clamp(420px, 58vh, 640px); background: #1a2434; }
.map-ui { position: absolute; top: 14px; right: 14px; z-index: 5; display: flex; gap: 8px; }
.map-ui button { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; padding: 9px 14px; border: 1px solid var(--navy); background: var(--paper); color: var(--navy); cursor: pointer; }
.map-ui button[aria-pressed="true"] { background: var(--navy); color: var(--paper); }
.map-legend { position: absolute; bottom: 26px; left: 14px; z-index: 5; background: rgba(251, 250, 247, 0.95); border: 1px solid var(--hairline-dark); padding: 12px 16px; font-size: 12px; display: grid; gap: 6px; }
.map-legend .li { display: flex; align-items: center; gap: 9px; }
.map-legend .sw { width: 14px; height: 3px; }
.map-legend .sw.round { width: 10px; height: 10px; border-radius: 50%; }

/* brand chips on map */
.chip { background: var(--navy); color: var(--paper); font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; padding: 4px 9px; white-space: nowrap; border: 1px solid rgba(251,250,247,0.25); }
.chip.subject { background: var(--gold); color: var(--navy); font-weight: 700; }
.chip.aadt { background: rgba(22,38,63,0.92); font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; font-size: 16.5px; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--gold-deep); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq .a { padding: 0 0 20px; max-width: var(--measure); color: var(--ink-soft); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
input, textarea, select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--hairline-dark); padding: 13px 14px;
}
input:focus, textarea:focus, select:focus { border-color: var(--navy); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { padding: 16px 18px; font-size: 15px; margin-top: 18px; display: none; }
.form-msg.ok { display: block; background: var(--navy-tint); color: var(--navy); border-left: 3px solid var(--gold); }
.form-msg.err { display: block; background: #F6ECEC; color: #7A2E2E; border-left: 3px solid #B04A3B; }

/* ---------- cards (cross listings) : flat, hairline, photo-led ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.listing-card { border: 1px solid var(--hairline-dark); background: #fff; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.listing-card .ph { aspect-ratio: 3/2; overflow: hidden; }
.listing-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.listing-card:hover .ph img { transform: scale(1.03); }
.listing-card .bd { padding: 20px 22px 22px; border-top: 2px solid var(--gold); }
.listing-card .st { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.listing-card h3 { margin: 8px 0 4px; }
.listing-card .loc { font-size: 14px; color: var(--muted); }
.listing-card .pr { margin-top: 12px; font-weight: 650; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ---------- broker block ---------- */
.broker { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 720px) { .broker { grid-template-columns: 1fr; } }
.broker .contact-lines { margin-top: 18px; display: grid; gap: 8px; font-size: 16px; }
.broker .contact-lines a { font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #B9C0CC; margin-top: clamp(64px, 9vw, 120px); padding: 56px 0 48px; font-size: 13.5px; line-height: 1.7; }
.footer a { color: #DDE2EA; text-decoration-color: var(--gold); }
.footer .brand { color: var(--paper); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr; } }
.footer .legal { border-top: 1px solid rgba(251,250,247,0.16); margin-top: 36px; padding-top: 24px; color: #8C96A8; font-size: 12.5px; }

/* ---------- misc ---------- */
.needs-source { background: #FFF3CD; color: #7A5B00; border: 1px dashed #C9A227; padding: 2px 8px; font-size: 0.85em; font-weight: 600; }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--paper); padding: 12px 18px; z-index: 100; }
.skip-link:focus { left: 0; }
.topbar { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; }
.topbar .logo { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; color: var(--navy); text-decoration: none; }
.topbar .logo .g { color: var(--gold-deep); }
.topbar nav { display: flex; gap: 22px; font-size: 13.5px; }
.topbar nav a { text-decoration: none; color: var(--ink-soft); }
.topbar nav a:hover { color: var(--gold-deep); }
@media (max-width: 700px) { .topbar nav { display: none; } }

/* map school chips + maplibre marker reset */
.chip.school { background: rgba(251,250,247,0.92); color: var(--navy); font-weight: 500; font-size: 10.5px; }
.maplibregl-marker .chip { cursor: default; }
