/* ═══════════════════════════════════════════════════════
   THE STADIUM — stadiumsubdivision.com
   Brand: sage green from the logo, white, warm neutrals.
   ═══════════════════════════════════════════════════════ */
:root {
  --sage:        #5a6450;
  --sage-dark:   #454d3d;
  --sage-light:  #7d8873;
  --sage-tint:   #eef0eb;
  --cream:       #f7f6f2;
  --white:       #ffffff;
  --ink:         #1f241c;
  --ink-soft:    #4d5447;
  --line:        #dcdfd6;
  --gold:        #c2a35a;
  --radius:      10px;
  --radius-lg:   18px;
  --shadow:      0 4px 22px rgba(31, 36, 28, 0.08);
  --shadow-md:   0 10px 40px rgba(31, 36, 28, 0.14);
  --max:         1240px;
  --font-head:   'Jost', 'Inter', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--sage-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: 0.02em; margin: 0; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; border: 2px solid transparent; transition: all .2s ease; cursor: pointer; font-family: var(--font-body); white-space: nowrap; }
.btn-primary { background: var(--sage); color: #fff; border-color: var(--sage); }
.btn-primary:hover { background: var(--sage-dark); border-color: var(--sage-dark); }
.btn-outline { background: transparent; color: var(--sage-dark); border-color: var(--sage); }
.btn-outline:hover { background: var(--sage-tint); }
.btn-white { background: #fff; color: var(--sage-dark); border-color: #fff; }
.btn-white:hover { background: var(--sage-tint); }

/* ── Brokerage compliance bar ── */
.brokerage-bar { background: var(--ink); color: #d7dbd2; font-size: .74rem; padding: .4rem 0; letter-spacing: .02em; }
.brokerage-bar a { color: #fff; text-decoration: none; font-weight: 700; }
.bar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.bar-phones { white-space: nowrap; }
@media (max-width: 760px) { .bar-inner { justify-content: center; text-align: center; } .bar-phones { display: none; } }

/* ── Header ── */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; min-width: 0; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand img { height: 50px; width: auto; }
.brand-text { white-space: nowrap; font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.brand-text small { display: block; font-size: .62rem; letter-spacing: .22em; color: var(--sage-light); }
.site-nav ul { list-style: none; display: flex; gap: 1.3rem; margin: 0 1.25rem; padding: 0; }
.site-nav a { white-space: nowrap; text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .88rem; letter-spacing: .03em; }
.site-nav a:hover { color: var(--sage); }
.header-cta { display: flex; align-items: center; gap: .75rem; }
.hamburger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ── Hero (satellite photo) ── */
.hero { position: relative; color: #fff; background: var(--sage-dark) url('../images/hero-satellite.jpg') center/cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,36,28,.55) 0%, rgba(69,77,61,.72) 100%); }
.hero-inner { position: relative; padding-block: 3.5rem 2.5rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: end; }
.hero-logo { height: 96px; width: auto; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 400; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-tag { font-size: 1.1rem; color: #eef0eb; max-width: 560px; margin: .6rem 0 1.4rem; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hero-ctas { display: flex; gap: .6rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 400; line-height: 1; }
.hero-stat span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #cfd5c8; }
.hero-agents { background: rgba(255,255,255,.96); color: var(--ink); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-md); }
.hero-agents .eyebrow { margin-bottom: .8rem; }
.agent-chip { display: flex; align-items: center; gap: .85rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.agent-chip:first-of-type { border-top: 0; padding-top: 0; }
.agent-chip img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.agent-chip strong { display: block; font-size: 1rem; }
.agent-chip small { display: block; font-size: .74rem; color: var(--sage-light); margin-bottom: .2rem; }
.agent-chip a { font-weight: 700; text-decoration: none; font-size: 1rem; color: var(--sage-dark); }
.agent-chip .txt { margin-left: .6rem; font-size: .8rem; font-weight: 600; }

/* Header phone strip */
.header-phones { display: flex; gap: 1.2rem; white-space: nowrap; font-size: .82rem; color: var(--ink-soft); }
.header-phones a { color: var(--ink); text-decoration: none; font-weight: 700; }
.header-phones span { color: var(--sage-light); font-weight: 500; }

/* ── Map ── */
.map-section { background: #fff; padding: 1.5rem 0 2.5rem; }
.map-note { display: flex; gap: .75rem; align-items: center; font-size: .9rem; color: var(--ink-soft); background: var(--sage-tint); border-radius: var(--radius); padding: .85rem 1.1rem; margin-bottom: 1rem; }
#stadiumMap { height: min(72vh, 720px); min-height: 420px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; background: #dfe3d8; }
.zoom-hint { font-size: .78rem; color: var(--sage-light); margin-top: .6rem; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper { border-radius: 10px; }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-popup-content a { color: var(--sage-dark); }
.leaflet-tooltip { font-size: .8rem; font-weight: 600; }
.map-legend { background: rgba(255,255,255,.95); padding: 9px 11px; border-radius: 8px; font-size: .76rem; line-height: 1.65; box-shadow: 0 1px 6px rgba(0,0,0,.35); }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 3px; }
.map-legend b { display: inline-block; width: 12px; height: 0; border-top: 3px solid; vertical-align: 4px; margin-right: 3px; }
.phase-callout { display: inline-flex; align-items: center; gap: 6px; width: max-content; transform: translate(-50%, -100%); background: #fff; color: #1a1a1a; font-weight: 800; font-size: .72rem; letter-spacing: .04em; padding: 4px 10px; border-radius: 6px; border: 2px solid #888; box-shadow: 0 2px 6px rgba(0,0,0,.35); font-family: var(--font-body); }
.phase-callout span { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: none; }

/* ── Phase cards ── */
.phase-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.phase-card { border: 1px solid var(--line); border-top: 4px solid var(--pc); border-radius: var(--radius); padding: 1rem 1.1rem; background: #fff; box-shadow: var(--shadow); }
.phase-head { display: flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-light); margin-bottom: .35rem; }
.phase-head span { width: 10px; height: 10px; border-radius: 3px; background: var(--pc); flex: none; }
.phase-card strong { display: block; font-size: 1.02rem; margin-bottom: .3rem; }
.phase-card p { font-size: .86rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* ── Availability band ── */
.avail-band { background: var(--sage-tint); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.avail-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--sage-light); margin-bottom: .5rem; }
#summaryStats { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .92rem; }
#summaryStats span { color: var(--ink-soft); }
.avail-ctas { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ── Generic section ── */
.section { padding: 4rem 0; }
.section-alt { background: #fff; }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-light); margin-bottom: .5rem; }
.lead { font-size: 1.05rem; color: var(--ink-soft); }

/* ── Inventory table ── */
.inventory-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #fff; }
.inventory { width: 100%; border-collapse: collapse; min-width: 640px; }
.inventory th { background: var(--sage); color: #fff; padding: .85rem 1rem; text-align: left; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.inventory td { padding: .8rem 1rem; font-size: .9rem; border-bottom: 1px solid var(--line); }
.inventory tr:last-child td { border-bottom: none; }
.inventory tbody tr:hover td { background: var(--sage-tint); }
.inventory .sub { font-size: .75rem; color: var(--sage-light); }
.inventory .note { font-size: .82rem; color: var(--ink-soft); }
.tbl-status { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; padding: .2rem .65rem; border-radius: 50px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tbl-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: block; }
.tbl-status.available { background: #dcfce7; color: #15803d; }
.tbl-status.forsale   { background: #fee2e2; color: #b91c1c; }
.tbl-status.reserved  { background: #ffedd5; color: #c2410c; }
.tbl-status.pending   { background: #fef9c3; color: #854d0e; }
.tbl-status.sold      { background: #dbeafe; color: #1d4ed8; }
.tbl-status.future    { background: #eef0f2; color: #4b5563; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter { padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .82rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; font-family: var(--font-body); }
.filter.active, .filter:hover { background: var(--sage); border-color: var(--sage); color: #fff; }

/* ── Facts ── */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.fact strong { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 400; color: var(--sage-dark); line-height: 1.1; margin-bottom: .25rem; }
.fact span { font-size: .84rem; color: var(--ink-soft); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.about-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.builders { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.builders span { background: var(--sage-tint); color: var(--sage-dark); font-size: .8rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.agent-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.agent-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.2rem; flex: none; }
.agent-card h3 { margin-bottom: .15rem; }
.agent-card .role { font-size: .8rem; color: var(--sage-light); margin-bottom: .5rem; }
.agent-card a { display: block; text-decoration: none; font-size: .92rem; font-weight: 500; margin-top: .15rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.form label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: .9rem 0 .3rem; }
.form label:first-of-type { margin-top: 0; }
.form input, .form textarea, .form select { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 8px; font-family: var(--font-body); font-size: .95rem; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--sage); }
.form textarea { min-height: 110px; resize: vertical; }
.form button { margin-top: 1.2rem; width: 100%; justify-content: center; }
.hp { position: absolute; left: -9999px; }

/* ── Footer ── */
.site-footer { background: var(--sage-dark); color: #d7dbd2; padding: 3rem 0 1.5rem; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-grid img { height: 64px; width: auto; margin-bottom: .8rem; }
.site-footer h4 { font-family: var(--font-head); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: #fff; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #e6e9e0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brokerage { display: flex; align-items: center; gap: .8rem; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.2rem; font-size: .8rem; flex-wrap: wrap; }
.footer-brokerage img { height: 34px; background: #fff; padding: 4px 8px; border-radius: 6px; margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .76rem; color: #aab3a2; margin-top: 1rem; }
.disclaimer { font-size: .72rem; color: #aab3a2; line-height: 1.5; margin-top: 1rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .site-nav li a { display: block; padding: .8rem clamp(16px, 4vw, 40px); }
  .hamburger { display: block; }
  .header-cta .btn { padding: .6rem 1rem; font-size: .85rem; }
  .brand-text { display: none; }
  .hero-inner { padding-block: 1.5rem; }
  .hero-stats { gap: 1rem; }
  .hero-stat { min-width: 70px; }
  .hero-stat strong { font-size: 1.5rem; }
  #stadiumMap { height: 62vh; min-height: 380px; border-radius: var(--radius); }
  .section { padding: 2.75rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ═══ Lead-capture additions ═══ */
/* Alerts mini-form (under the map) */
.alerts-box { background: var(--sage); color: #fff; border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; margin-top: 1.25rem; }
.alerts-box h3 { font-size: 1.35rem; font-weight: 400; letter-spacing: .04em; margin-bottom: .3rem; }
.alerts-box p { color: #e6e9e0; font-size: .92rem; margin: 0; }
.alerts-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; }
.alerts-form input { padding: .75rem .9rem; border: 0; border-radius: 8px; font-family: var(--font-body); font-size: .95rem; min-width: 0; }
.alerts-form .btn { justify-content: center; }
.alerts-form small { grid-column: 1 / -1; font-size: .72rem; color: #cfd5c8; }
.alerts-done { grid-column: 1 / -1; background: rgba(255,255,255,.12); border-radius: 8px; padding: .8rem 1rem; font-size: .92rem; }

/* Buyer path steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sage); color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: .7rem; }
.step h3 { margin-bottom: .35rem; }
.step p { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.step a { font-size: .85rem; font-weight: 600; display: inline-block; margin-top: .6rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.2rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; font-size: .98rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-head); font-size: 1.4rem; color: var(--sage-light); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-soft); font-size: .92rem; padding-bottom: 1rem; margin: 0; }

/* Inquiry form extras */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-row label { margin-top: .9rem; }
.form .fine { font-size: .74rem; color: var(--sage-light); margin: .8rem 0 0; }
.form-success { text-align: center; padding: 1.5rem .5rem; }
.form-success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 1rem; }
.form-success .btn { margin: .5rem .25rem 0; width: auto; }
.form-error { background: #fee2e2; color: #b91c1c; border-radius: 8px; padding: .7rem .9rem; font-size: .86rem; margin-top: .8rem; }

/* Row CTA in the inventory table */
.row-cta { font-size: .78rem; font-weight: 700; color: var(--sage-dark); text-decoration: none; white-space: nowrap; }
.row-cta:hover { text-decoration: underline; }

/* Scroll-triggered slide-in */
.slide-in { position: fixed; right: 20px; bottom: 20px; width: 340px; max-width: calc(100vw - 32px); background: #fff; border-radius: var(--radius-lg); box-shadow: 0 16px 50px rgba(31,36,28,.28); padding: 1.3rem 1.4rem; z-index: 1100; transform: translateY(30px); opacity: 0; pointer-events: none; transition: .35s ease; border-top: 5px solid var(--sage); }
.slide-in.show { transform: none; opacity: 1; pointer-events: auto; }
.slide-in h3 { font-size: 1.05rem; margin-bottom: .3rem; padding-right: 1.5rem; }
.slide-in p { font-size: .86rem; color: var(--ink-soft); margin-bottom: .8rem; }
.slide-in .close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.3rem; color: var(--sage-light); cursor: pointer; line-height: 1; }
.slide-in .btn { width: 100%; justify-content: center; }
.slide-in .later { display: block; text-align: center; font-size: .78rem; color: var(--sage-light); margin-top: .6rem; background: none; border: 0; cursor: pointer; width: 100%; font-family: var(--font-body); }

/* Sticky mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .alerts-box { grid-template-columns: 1fr; padding: 1.25rem; }
  .alerts-form { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 1px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; background: var(--line); border-top: 1px solid var(--line); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .85rem .5rem; background: #fff; color: var(--sage-dark); font-weight: 700; font-size: .84rem; text-decoration: none; }
  .mobile-bar a.primary { background: var(--sage); color: #fff; }
  body { padding-bottom: 56px; }
  .slide-in { bottom: 68px; right: 16px; }
}

/* ═══ Photos & video ═══ */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .3s; cursor: zoom-in; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .82rem; color: var(--ink-soft); padding: .6rem .9rem; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; margin-top: 1rem; }
.video { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video .frame { aspect-ratio: 16 / 9; width: 100%; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; display: block; }
.video figcaption { background: #fff; font-size: .82rem; color: var(--ink-soft); padding: .6rem .9rem; }
.media-empty { background: var(--sage-tint); border: 1px dashed var(--sage-light); border-radius: var(--radius); padding: 1.5rem; text-align: center; color: var(--ink-soft); font-size: .92rem; }
.lightbox { position: fixed; inset: 0; background: rgba(20,24,18,.92); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 2rem; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { position: absolute; bottom: 1.5rem; left: 0; right: 0; text-align: center; color: #e6e9e0; font-size: .9rem; }

/* ═══ Lifestyle ═══ */
.page-hero { position: relative; color: #fff; background: var(--sage-dark) url('../images/homes/27181/00-sunset-deck.jpg') center 65%/cover no-repeat; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,36,28,.35), rgba(31,36,28,.75)); }
.page-hero-inner { position: relative; padding-block: 4.5rem 3.5rem; }
.page-hero-inner > * { max-width: 720px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 400; letter-spacing: .06em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.page-hero p { font-size: 1.12rem; color: #eef0eb; margin-top: .8rem; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 0; border-bottom: 1px solid var(--line); }
.feature:last-of-type { border-bottom: 0; }
.feature.flip .feature-media { order: 2; }
.feature h2 { margin-bottom: .8rem; }
.feature p { color: var(--ink-soft); font-size: 1.02rem; }
.feature ul { color: var(--ink-soft); padding-left: 1.2rem; margin: 0 0 1rem; font-size: .96rem; }
.feature li { margin-bottom: .35rem; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.feature-media .media-empty { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.teaser { background: var(--sage-dark) url('../images/homes/27181/00-sunset-deck.jpg') center 60%/cover no-repeat; position: relative; color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.teaser::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,36,28,.85), rgba(31,36,28,.35)); }
.teaser-inner { position: relative; padding: 3rem; max-width: 560px; }
.teaser h2 { margin-bottom: .6rem; }
.teaser p { color: #e6e9e0; }
.big-contact { background: var(--sage); color: #fff; border-radius: var(--radius-lg); padding: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.big-contact .agent-chip { border-top: 0; padding: 0; }
.big-contact .agent-chip a { color: #fff; font-size: 1.15rem; }
.big-contact .agent-chip small { color: #cfd5c8; }
.big-contact .agent-chip img { width: 64px; height: 64px; border: 3px solid rgba(255,255,255,.5); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
  .feature.flip .feature-media { order: 0; }
}
@media (max-width: 760px) {
  .hero-inner { padding-block: 2.25rem 1.75rem; }
  .hero-logo { height: 64px; }
  .hero-stat strong { font-size: 1.5rem; }
  .teaser-inner { padding: 1.75rem 1.25rem; }
  .big-contact { padding: 1.4rem; }
}
.agent-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
section[id], #alerts { scroll-margin-top: 84px; }
@media (max-width: 760px) { .map-legend { font-size: .66rem; line-height: 1.45; padding: 6px 8px; } .phase-callout { font-size: .62rem; padding: 3px 7px; } }

/* ═══ Featured homes ═══ */
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.home-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.home-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.home-card .cover { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.home-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; color: #fff; }
.badge.forsale { background: #b91c1c; } .badge.pending { background: #854d0e; } .badge.sold { background: #1d4ed8; }
.home-card .body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.home-card .price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 500; color: var(--sage-dark); }
.home-card .price small { font-family: var(--font-body); font-size: .8rem; color: var(--sage-light); font-weight: 500; margin-left: .4rem; }
.home-card h3 { font-size: 1.15rem; }
.home-card .sub { font-size: .84rem; color: var(--ink-soft); }
.specs { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .86rem; color: var(--ink-soft); margin-top: .35rem; }
.specs strong { color: var(--ink); }
.home-card .more { margin-top: auto; padding-top: .8rem; font-weight: 700; color: var(--sage-dark); font-size: .9rem; }

/* Home detail page */
.home-hero { position: relative; background: var(--sage-dark); color: #fff; }
.home-hero img { width: 100%; height: min(62vh, 640px); object-fit: cover; display: block; opacity: .92; }
.home-hero .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,36,28,.1) 30%, rgba(31,36,28,.85)); }
.home-hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 2rem; }
.home-hero-text h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; letter-spacing: .04em; }
.home-hero-text .sub { color: #e6e9e0; font-size: 1.05rem; margin: .3rem 0 .8rem; }
.home-hero-text .badge { position: static; display: inline-block; margin-bottom: .6rem; }
.home-hero-text .price { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.home-hero-text .specs { color: #e6e9e0; font-size: .95rem; }
.home-hero-text .specs strong { color: #fff; }
.home-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 3rem; align-items: start; }
.home-desc p { color: var(--ink-soft); font-size: 1.02rem; }
.highlights { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.highlights li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .65rem .9rem; font-size: .92rem; display: flex; gap: .6rem; }
.highlights li::before { content: '✓'; color: var(--sage); font-weight: 800; flex: none; }
.home-side { position: sticky; top: 90px; }
.home-side .form { margin-top: 1rem; }
.facts-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts-table td { padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
.facts-table td:first-child { color: var(--sage-light); font-weight: 600; width: 40%; }
.facts-table tr:last-child td { border-bottom: 0; }
.floor-plan img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.gallery.home-gallery { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.home-gallery figure:first-child { grid-column: 1 / -1; }
.home-gallery figure:first-child img { aspect-ratio: 21 / 9; }
.sold-note { background: var(--sage-tint); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .92rem; color: var(--ink-soft); margin-bottom: 1rem; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } .home-side { position: static; } }
@media (max-width: 760px) {
  .home-hero img { height: 44vh; min-height: 240px; opacity: 1; }
  .home-hero .overlay { display: none; }
  .home-hero-text { position: static; background: var(--sage-dark); padding-block: 1.25rem 1.5rem; }
  .home-hero-text h1 { font-size: 1.7rem; }
}
.courtesy { font-size: .74rem; color: var(--sage-light); margin-top: .2rem; }
.courtesy-line { font-size: .8rem; color: var(--sage-light); margin: .4rem 0 0; }
.home-group { margin-top: 2.5rem; }
.home-group h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.idx-disclaimer { font-size: .7rem; color: #aab3a2; line-height: 1.5; margin-top: .6rem; }
/* ═══ Documents ═══ */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.doc { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.doc:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.doc-icon { font-size: 1.8rem; flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: var(--sage-tint); border-radius: 10px; }
.doc h3 { margin-bottom: .3rem; }
.doc p { font-size: .88rem; color: var(--ink-soft); margin: 0 0 .5rem; }
.doc p a { color: var(--sage-dark); }
.doc-meta { font-size: .74rem; font-weight: 600; color: var(--sage-light); letter-spacing: .04em; text-transform: uppercase; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.rule { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: var(--radius); padding: 1rem 1.1rem; }
.rule strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-light); margin-bottom: .3rem; }
.rule p { font-size: .9rem; color: var(--ink); margin: 0; }
.find-us { background: var(--sage-tint); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; font-size: .92rem; }
.find-us strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-light); margin-bottom: .3rem; }
.find-us p { margin: 0 0 .3rem; }
.find-us .fine { font-size: .8rem; color: var(--ink-soft); }

/* ═══ Mobile map + polish ═══ */
.map-lock { position: absolute; inset: 0; z-index: 800; background: rgba(31,36,28,.18); border: 0; cursor: pointer; display: grid; place-items: center; padding: 0; }
.map-lock span { background: rgba(255,255,255,.95); color: var(--ink); font-weight: 700; font-size: .9rem; padding: .7rem 1.1rem; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.3); font-family: var(--font-body); }
.map-relock { position: absolute; top: 10px; right: 10px; z-index: 800; background: #fff; border: 0; border-radius: 999px; padding: .5rem .9rem; font-weight: 700; font-size: .8rem; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: pointer; font-family: var(--font-body); color: var(--ink); }
.map-legend .legend-toggle { display: none; }
.map-legend .legend-body { display: block; }
.legend-toggle { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); display: flex; align-items: center; gap: .4rem; }
.legend-toggle b { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--ink); transition: transform .2s; }
@media (max-width: 760px) {
  .map-legend .legend-toggle { display: flex; }
  .map-legend:not(.open) .legend-body { display: none; }
  .map-legend.open .legend-toggle b { transform: rotate(180deg); }
  .map-legend.open .legend-body { margin-top: 4px; }
  .inventory-wrap::before { content: 'Swipe sideways to see all columns →'; display: block; font-size: .74rem; color: var(--sage-light); padding: .5rem .9rem 0; background: #fff; }
  .slide-in { padding: 1rem 1.1rem; width: calc(100vw - 32px); }
  .slide-in h3 { font-size: .98rem; }
  .slide-in p { font-size: .82rem; margin-bottom: .6rem; }
  #stadiumMap { height: 70vh; min-height: 420px; }
}
.map-lock[hidden], .map-relock[hidden] { display: none; }

/* ═══ Why The Stadium (views + equestrian) ═══ */
.hero-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: -.4rem 0 1.2rem; }
.hero-chips span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: .8rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; backdrop-filter: blur(4px); }
.why { background: #fff; padding: 1.5rem 0 .5rem; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.why-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); color: #fff; text-decoration: none; min-height: 380px; background: var(--sage-dark); }
.why-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.why-card:hover img { transform: scale(1.04); }
.why-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,36,28,.05) 20%, rgba(31,36,28,.88) 100%); }
.why-body { position: relative; z-index: 1; padding: 1.5rem; margin-top: 200px; }
.why-body .eyebrow { color: #cfd5c8; }
.why-body h2 { font-size: 1.6rem; margin-bottom: .5rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.why-body p { color: #e6e9e0; font-size: .95rem; margin-bottom: .8rem; }
.why-link { font-weight: 700; color: #fff; }
.stock-note { position: absolute; right: 10px; top: 10px; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; background: rgba(0,0,0,.45); color: #e6e9e0; padding: .2rem .5rem; border-radius: 4px; z-index: 2; }
.feature-media { position: relative; }
.feature-media .stock-note { top: 10px; right: 10px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } .why-card { min-height: 320px; } .why-body { margin-top: 150px; padding: 1.2rem; } .why-body h2 { font-size: 1.35rem; } }
