/* 218-2045 Heritage Park Lane: single-property microsite */

:root {
  /* Autumn Lightfoot brand kit: charcoal text, ivory background, taupe, Oakwyn gold */
  --ink: #3A3A3A;           /* charcoal: text, primary buttons */
  --ink-2: #4A4846;
  --deep: #2C2B2A;          /* darker charcoal for dark bands (agent card, footer, calculators) */
  --paper: #F3EFEA;         /* ivory: page background */
  --cream: #EAE4DC;         /* alternate section background */
  --sand: #E0D8CE;
  --line: #DAD2C8;
  --muted: #6B655F;         /* body copy on ivory/cream (AA contrast) */
  --taupe: #B9AFA4;         /* brand taupe: decorative only (too light for text) */
  --taupe-ink: #776C61;     /* taupe darkened to meet AA for small text (eyebrows, labels) */
  --taupe-em: #8A7D70;      /* italic accent words in large headings (AA large) */
  --clay: #3A3A3A;          /* legacy name: primary action colour */
  --clay-dark: #222222;
  --clay-tint: #ECE7E1;
  --gold: #C4A962;          /* Oakwyn gold accent */
  --gold-light: #D9C48E;
  --sage: #5f6b55;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --shadow-sm: 0 1px 2px rgba(40, 38, 36, .05);
  --shadow: 0 1px 2px rgba(40, 38, 36, .04), 0 10px 30px rgba(40, 38, 36, .08);
  --shadow-lg: 0 2px 4px rgba(40, 38, 36, .05), 0 24px 60px rgba(40, 38, 36, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 16px/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--clay); text-underline-offset: .2em; }
h1, h2, h3 {
  font-family: var(--serif); font-weight: 300; line-height: 1.08; margin: 0 0 .5em;
  letter-spacing: -.015em; font-variant-numeric: lining-nums; font-optical-sizing: auto;
}
h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 em, h1 em { font-style: italic; color: var(--taupe-em); font-weight: 300; }
h3 { font-size: 1.6rem; font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe-ink); font-weight: 500; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.lede { font-size: 1.12rem; font-weight: 300; line-height: 1.7; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.todo { background: #fff2b8; color: #4a3b00; outline: 1px dashed #c9a400; padding: 0 .25em; border-radius: 3px; }
section { padding-block: clamp(64px, 9vw, 120px); }
section.alt { background: var(--cream); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.55em; border-radius: 999px; border: 1px solid var(--clay);
  background: var(--clay); color: #fff; font: 500 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(58, 58, 58, .2); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--clay); }
.btn.ghost:hover { background: var(--clay); color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--cream); border-color: var(--cream); box-shadow: none; }
.btn.glass {
  background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn.glass:hover { background: rgba(255,255,255,.22); border-color: #fff; box-shadow: none; }

/* Announcement bar */
.announce {
  position: relative; z-index: 51; color: #F3EFEA; font-size: .84rem;
  background: linear-gradient(90deg, #262524, #3A3A3A 50%, #262524);
}
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.announce-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: .3em .85em; border-radius: 999px;
  border: 1px solid rgba(217, 196, 142, .5); color: var(--gold-light);
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.announce-pill i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); }
.announce-pill i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold-light); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }
.announce-text { opacity: .9; }
.announce-link { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.announce-link:hover { color: var(--gold-light); border-color: var(--gold-light); }
@media (max-width: 640px) { .announce-text { display: none; } .announce-inner { gap: 12px; padding-block: 9px; } }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(243, 239, 234, .85); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { background: rgba(243, 239, 234, .95); border-color: var(--line); box-shadow: 0 6px 24px rgba(40, 30, 20, .06); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; text-decoration: none; color: var(--ink); white-space: nowrap; line-height: 1.15; }
.brand small { font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 3px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: .82rem; font-weight: 400; letter-spacing: .04em; }
.nav a { position: relative; color: var(--ink); text-decoration: none; padding-block: 6px; white-space: nowrap; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--clay); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-broker { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; font-size: .74rem; color: var(--muted); text-align: right; line-height: 1.35; text-decoration: none; padding-left: 22px; border-left: 1px solid var(--line); }
.header-broker > strong, .header-broker > span { grid-column: 1; }
.header-monogram { grid-column: 2; grid-row: 1 / span 2; width: 34px; height: auto; }
.header-broker strong { color: var(--ink); display: block; font-size: .85rem; white-space: nowrap; }
.header-broker:hover strong { color: var(--clay); }
@media (max-width: 1120px) { .nav { display: none; } .header-broker { margin-left: auto; } }

/* Hamburger + mobile menu (below 1120px, where the full nav would wrap) */
.menu-toggle { display: none; position: relative; flex: none; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.menu-toggle:hover { background: var(--cream); }
.menu-toggle:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.75px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100svh - 110px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 28px 40px rgba(40, 30, 20, .14); animation: menu-in .3s var(--ease);
}
.mobile-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.site-header .mobile-nav { display: grid; gap: 0; min-height: 0; padding-block: 6px; }
.mobile-nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.55rem; font-weight: 400; color: var(--ink); text-decoration: none;
}
.mobile-nav a::after { content: "→"; font-family: var(--sans); font-size: 1rem; color: var(--clay); transition: transform .2s var(--ease); }
.mobile-nav a:hover::after { transform: translateX(3px); }
.mobile-nav a.active { color: var(--clay); }
.site-header .mobile-menu-foot { display: grid; gap: 16px; min-height: 0; padding-block: 18px 22px; }
.mobile-menu-agent { display: flex; align-items: center; gap: 12px; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.mobile-menu-agent img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; box-shadow: 0 0 0 2px var(--gold); }
.mobile-menu-agent strong { color: var(--ink); }
.mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-menu-actions .btn { padding: .9em .8em; letter-spacing: .08em; white-space: nowrap; }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-cta { display: none; }
@media (max-width: 1120px) { .menu-toggle { display: block; } }
@media (min-width: 1121px) { .mobile-menu { display: none !important; } }
.hero-listed { display: none; }
@media (max-width: 520px) {
  .header-broker { display: none; }
  .menu-toggle { margin-left: auto; }
  .hero-listed { display: block; margin: -.6rem 0 1.2rem; font-size: .82rem; opacity: .85; }
}

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(560px, calc(100svh - 112px), 880px); display: flex; align-items: flex-end; color: #fff; padding: 0; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 55% 45%; animation: kenburns 16s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Darker band behind the text (left side and lower half) so small light text stays readable */
  background:
    linear-gradient(90deg, rgba(26,25,24,.5) 0%, rgba(26,25,24,.2) 45%, rgba(26,25,24,0) 70%),
    linear-gradient(180deg, rgba(26,25,24,.25) 0%, rgba(26,25,24,.05) 25%, rgba(26,25,24,.45) 48%, rgba(26,25,24,.86) 100%);
}
.hero-content { width: 100%; padding-block: 64px 56px; }
.hero-content > * { animation: rise 1s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .08s; }
.hero-content > :nth-child(3) { animation-delay: .16s; }
.hero-content > :nth-child(4) { animation-delay: .26s; }
.hero-content > :nth-child(5) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero .eyebrow { color: #F3EFEA; font-weight: 600; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 6.3rem); font-weight: 300; line-height: 1; letter-spacing: -.025em; margin-bottom: .25em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.h1-unit { display: block; font-style: italic; font-weight: 400; font-size: .5em; letter-spacing: 0; margin-bottom: .15em; color: #F3EFEA; }
.hero .sub { font-size: 1.05rem; opacity: .9; margin-bottom: 1.8rem; letter-spacing: .01em; }
.hero-stats {
  display: inline-grid; grid-template-columns: repeat(4, auto); gap: 1px; margin-bottom: 2rem;
  background: rgba(255,255,255,.2); border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.hero-stats > div { padding: 16px 28px 14px; background: rgba(30, 29, 28, .42); display: grid; gap: 2px; }
.hero-stats strong { font-family: var(--serif); font-weight: 400; font-size: 2.45rem; line-height: 1; font-variant-numeric: lining-nums; }
.hero-stats span { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero-price { display: grid; gap: 2px; margin: 0; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; line-height: 1.1; }
.hero-price-label { font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn:not(.glass) { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.hero-actions .btn:not(.glass):hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 1100px) { .scroll-cue { display: none; } }
@media (max-width: 640px) {
  .hero { min-height: calc(100svh - 104px - 76px); }
  .hero-content { padding-block: 40px 28px; }
  .hero .eyebrow { font-size: .7rem; letter-spacing: .14em; margin-bottom: .75rem; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.5rem); }
  .hero .sub { font-size: .95rem; margin-bottom: 1.25rem; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-bottom: 1.25rem; border-radius: 14px; }
  .hero-stats > div { padding: 12px 16px 11px; }
  .hero-stats strong { font-size: 1.85rem; }
  .hero-stats span { font-size: .62rem; letter-spacing: .12em; }
  .hero-bottom { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-price { font-size: 1.75rem; }
  /* The sticky Call / Book bar replaces the hero buttons on phones. */
  .hero-actions { display: none; }
}

/* Highlights */
.highlights { padding-block: 40px 8px; }
.highlights ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; }
.highlights li { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.highlights svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--clay-tint); stroke: var(--taupe-ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.highlights strong { display: block; font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.highlights span { font-size: .84rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 560px) { .highlights ul { grid-template-columns: 1fr 1fr; gap: 10px; } .highlights li { padding: 16px; } }

/* Intro */
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.intro img { border-radius: 24px; aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
@media (max-width: 800px) { .intro { grid-template-columns: 1fr; } .intro img { aspect-ratio: 4/3; } }

/* Chips (gallery, floorplans, map) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .55em 1.15em;
  font: 600 .84rem var(--sans); cursor: pointer; color: var(--ink); transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery button { position: relative; padding: 0; border: 0; background: var(--sand); border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(20,14,10,.35)); opacity: 0; transition: opacity .4s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery button:hover::after { opacity: 1; }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; gap: 8px; } .gallery button:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(15,11,8,.96); color: #fff; }
.lightbox::backdrop { background: rgba(15,11,8,.96); }
.lightbox[open] { animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 16px 16px; }
.lightbox img { max-height: calc(100vh - 120px); max-width: 100%; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { padding: 10px; font-size: .9rem; opacity: .85; }
/* Floorplans: show on a white sheet, as large as the screen allows */
.lightbox[data-kind="plans"] img { background: #fff; padding: clamp(12px, 3vw, 32px); border-radius: 12px; height: calc(100vh - 120px); width: auto; }
@media (max-width: 700px) { .lightbox[data-kind="plans"] img { height: auto; width: 100%; } }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Floorplans */
.plan-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.plan-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.plan-panel figure { margin: 0; background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.plan-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.plan-zoom img { margin: 0 auto; max-height: 560px; width: auto; transition: transform .4s var(--ease); }
.plan-zoom:hover img { transform: scale(1.02); }
.plan-zoom-hint {
  position: absolute; right: 0; bottom: 0; padding: .45em .9em; border-radius: 999px; background: var(--ink); color: #fff;
  font: 600 .74rem var(--sans); letter-spacing: .02em; opacity: .85; transition: opacity .2s;
}
.plan-zoom:hover .plan-zoom-hint, .plan-zoom:focus-visible .plan-zoom-hint { opacity: 1; }
.plan-panel ul { padding-left: 1.1em; }
.plan-panel li { margin-bottom: .4em; }
.plan-panel li::marker { color: var(--gold); }
.area-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.plan-downloads { display: flex; flex-wrap: wrap; gap: 10px; }
.area-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.area-table td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 800px) { .plan-panel { grid-template-columns: 1fr; gap: 28px; } .plan-panel figure { padding: 20px; } }

/* Details */
/* Property + Strata side by side; the longer Features list runs full width underneath in columns. */
.details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; align-items: stretch; }
.features-card { grid-column: 1 / -1; }
.features-card ul { columns: 3 240px; column-gap: 44px; }
.features-card li { break-inside: avoid; }
@media (max-width: 760px) { .details-grid { grid-template-columns: 1fr; } }
.detail-card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
/* Equal-height cards: the strata-documents note sits at the bottom of its card. */
.detail-card > p.small { margin-top: auto !important; padding-top: 16px; margin-bottom: 0; }
.detail-card h3 { font-size: 1.6rem; margin-bottom: .7em; }
.detail-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; font-size: .93rem; }
.detail-card dt, .detail-card dd { padding: 9px 0; border-bottom: 1px solid var(--cream); }
.detail-card dt { color: var(--muted); }
.detail-card dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; padding-left: 16px; }
.detail-card ul { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.detail-card li { margin-bottom: .45em; }
.detail-card li::marker { color: var(--gold); }

/* Calculators */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; align-items: stretch; }
.calc form, .calc .result { border-radius: 20px; padding: 30px; }
.calc form { background: #fff; box-shadow: var(--shadow); }
.calc .result { background: radial-gradient(120% 120% at 100% 0%, #4A4846 0%, var(--deep) 60%); color: #fff; box-shadow: var(--shadow-lg); }
.calc .result .big { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 5.6vw, 3.9rem); line-height: 1; margin: .25em 0 .5em; font-variant-numeric: lining-nums; }
.calc .result dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0; font-size: .93rem; }
.calc .result dt { opacity: .72; }
.calc .result dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.calc .result .rule { border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px; margin-top: 6px; }
@media (max-width: 800px) { .calc { grid-template-columns: 1fr; } .calc form, .calc .result { padding: 22px; } }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field legend { font-size: .82rem; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: .8em .9em; border: 1px solid var(--line); border-radius: 12px; background: #FAF8F5; color: var(--ink); width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C9C0B5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--clay); box-shadow: 0 0 0 4px rgba(58, 58, 58, .12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field { align-content: end; } /* inputs line up even if one label wraps */
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 12px; }
.check input { margin-top: .3em; accent-color: var(--clay); width: 18px; height: 18px; flex: none; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; }
.radio-row label { display: flex; gap: 6px; align-items: center; font-weight: 500; }
.radio-row input { accent-color: var(--clay); }

/* Resale vs new */
.vs-table-wrap { overflow-x: auto; margin-top: 36px; border-radius: 20px; box-shadow: var(--shadow); }
.vs-table { width: 100%; border-collapse: collapse; min-width: 600px; background: #fff; }
.vs-table th, .vs-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--cream); vertical-align: top; font-size: .95rem; }
.vs-table tbody tr:last-child > * { border-bottom: 0; }
.vs-table thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .88rem; letter-spacing: .02em; }
.vs-table thead th:nth-child(2) { background: var(--taupe-ink); }
.vs-table tbody th { font-weight: 700; width: 22%; }
.vs-table td:nth-child(2) { background: #F6F2EE; }
.vs-table tbody tr { transition: background .2s; }
.vs-table tbody tr:hover td:nth-child(3), .vs-table tbody tr:hover th { background: #FAF8F5; }

@media (max-width: 640px) {
  .vs-table-wrap { overflow: visible; border-radius: 0; box-shadow: none; }
  .vs-table { min-width: 0; background: transparent; }
  .vs-table thead { display: none; }
  .vs-table, .vs-table tbody, .vs-table tr, .vs-table th, .vs-table td { display: block; width: auto; }
  .vs-table tbody { display: grid; gap: 12px; }
  .vs-table tr { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding-bottom: 12px; }
  .vs-table tbody th { width: auto; padding: 16px 18px 6px; border: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 450; }
  .vs-table td { margin: 6px 12px 0; padding: 10px 14px; border: 0 !important; border-radius: 12px; font-size: .93rem; }
  .vs-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .vs-table td:nth-child(2) { background: #F6F2EE; box-shadow: inset 3px 0 0 var(--taupe-ink); }
  .vs-table td:nth-child(2)::before { color: var(--clay); }
  .vs-table td:nth-child(3) { color: var(--muted); background: transparent !important; }
}

/* Neighbourhood */
.map-toolbar .chips { margin: 28px 0 16px; }
.map-chip i, .hood-group h3 i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.chip.map-chip[aria-pressed="true"] i { box-shadow: 0 0 0 2px #fff; }
.hood { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; }
.map-shell { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
#map { height: 600px; background: #f2efe9; z-index: 0; }
.map-reset {
  position: absolute; top: 14px; right: 14px; z-index: 500; border: 0; border-radius: 999px; padding: .55em 1em;
  background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(0,0,0,.15); font: 600 .8rem var(--sans); color: var(--ink); cursor: pointer;
}
.map-reset:hover { background: #fff; color: var(--clay); }
.hood-list { max-height: 600px; overflow-y: auto; padding-right: 6px; display: grid; gap: 22px; align-content: start; scrollbar-width: thin; }
.hood-group h3 { font: 700 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hood-group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: default; }
.hood-group summary::-webkit-details-marker { display: none; }
.hood-count { display: none; }
.hood-group ul { list-style: none; padding: 0; margin: 0; }
.hood-group li button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
  padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; font: inherit; color: var(--ink); cursor: pointer; transition: background .2s;
}
.hood-group li button:hover, .hood-group li button:focus-visible { background: #fff; outline: none; box-shadow: var(--shadow-sm); }
.hood-group strong { display: block; font-size: .95rem; font-weight: 600; }
.hood-group small { display: block; font-size: .8rem; color: var(--muted); }
.hood-group .dist { font-size: .76rem; font-weight: 600; color: var(--ink); white-space: nowrap; background: var(--clay-tint); padding: .3em .7em; border-radius: 999px; }

/* Map markers + popups (MapLibre overrides) */
.place-marker { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.place-marker .pin { filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); transition: transform .15s; transform-origin: 50% 100%; }
.place-marker:hover .pin, .place-marker:focus-visible .pin { transform: scale(1.15); }
.place-marker:focus-visible { outline: none; }
.home-marker { position: relative; width: 56px; height: 56px; cursor: pointer; }
.home-dot {
  position: absolute; inset: 8px; border-radius: 50%; background: var(--clay); border: 3px solid #fff;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(58, 58, 58, .45);
}
.home-pulse { position: absolute; inset: 0; border-radius: 50%; background: rgba(196, 169, 98, .45); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.maplibregl-map { font-family: var(--sans); }
.maplibregl-popup-content { border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 14px 30px 14px 18px; }
.maplibregl-popup-close-button { top: 6px; right: 8px; font-size: 18px; color: var(--muted); border-radius: 50%; }
.maplibregl-popup-close-button:hover { background: var(--cream); }
.pop { display: grid; gap: 2px; min-width: 170px; }
.pop-cat { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pop strong { font-size: 1rem; color: var(--ink); }
.pop small { color: var(--muted); font-size: .82rem; }
.pop-dist { margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--clay); }
.maplibregl-ctrl-group { border-radius: 10px !important; box-shadow: 0 2px 10px rgba(0,0,0,.15) !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 34px; height: 34px; }
.maplibregl-cooperative-gesture-screen { font-family: var(--sans); }
.map-fallback { padding: 24px; color: var(--muted); }
@media (max-width: 900px) {
  .map-toolbar .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -24px; padding-inline: 24px; scrollbar-width: none; }
  .map-toolbar .chips::-webkit-scrollbar { display: none; }
  .map-toolbar .chip { flex: none; }
  .hood { grid-template-columns: 1fr; }
  #map { height: 420px; }
  .hood-list { max-height: none; overflow: visible; gap: 10px; padding-right: 0; }
  /* Accordion rows */
  .hood-group { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
  .hood-group summary { cursor: pointer; padding: 15px 16px; -webkit-tap-highlight-color: transparent; }
  .hood-group summary:focus-visible { outline: 2px solid var(--clay); outline-offset: -2px; }
  .hood-group summary h3 { margin: 0; font-size: .8rem; color: var(--ink); }
  .hood-count { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
  .hood-count::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
  .hood-group[open] .hood-count::after { transform: translateY(2px) rotate(225deg); }
  .hood-group[open] summary { border-bottom: 1px solid var(--cream); }
  .hood-group ul { padding: 6px; }
  .hood-group li button:hover, .hood-group li button:focus-visible { background: var(--cream); box-shadow: none; }
}

/* Owner's note */
.note { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.note img { border-radius: 24px; aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.note blockquote { margin: 0; position: relative; font-family: var(--serif); font-style: italic; font-weight: 320; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.4; }
.note blockquote::before { content: "\201C"; position: absolute; top: -.55em; left: -.05em; font-size: 4em; line-height: 1; color: var(--clay); opacity: .25; font-style: normal; }
.note cite { display: block; margin-top: 1.2em; font: 600 .82rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-style: normal; }
@media (max-width: 800px) { .note { grid-template-columns: 1fr; } .note img { aspect-ratio: 4/3; } }

/* Open houses */
.oh-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.oh-list li { position: relative; display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.oh-list li:focus-within, .oh-list li:has(details[open]) { z-index: 5; }
.oh-day { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe-ink); }
.oh-list strong { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 400; line-height: 1.1; }
.oh-time { color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.oh-list li.oh-alt {
  grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  background: transparent; box-shadow: none; border: 1px dashed #C9C0B5; font-size: .95rem; color: var(--muted);
}
.oh-list li.oh-alt strong { font-size: 1.4rem; color: var(--ink); margin-bottom: 2px; }
.oh-list li.oh-alt .btn { flex: none; }
@media (max-width: 560px) { .oh-list li.oh-alt { flex-direction: column; align-items: stretch; } }
.cal { position: relative; margin-top: auto; }
.cal summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  font: 600 .85rem var(--sans); color: var(--clay); padding: .6em 1.05em; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.cal summary::-webkit-details-marker { display: none; }
.cal summary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.cal summary:hover, .cal[open] summary { border-color: var(--clay); background: var(--clay-tint); }
.cal summary:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.cal-menu {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 230px; display: grid; padding: 6px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: fade .18s var(--ease);
}
.cal-menu a { padding: .6em .9em; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }
.cal-menu a:hover, .cal-menu a:focus-visible { background: var(--cream); color: var(--clay); outline: none; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.agent-card {
  margin-top: 28px; border-radius: 24px; padding: 30px; display: grid; gap: 22px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, #4A4846 0%, var(--deep) 60%); box-shadow: var(--shadow-lg);
}
.agent-card a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); transition: border-color .2s, color .2s; }
.agent-card a:hover { color: var(--gold-light); border-color: var(--gold-light); }
.agent-top { display: flex; align-items: center; gap: 18px; }
.agent-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px rgba(178, 140, 49, .18); }
.agent-role { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }
.agent-card .name { font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.1; }
.agent-card .brokerage { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.agent-card .lines { display: grid; gap: 8px; font-size: .98rem; justify-items: start; }
.agent-brokerage { display: flex; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.agent-brokerage { justify-content: center; }
/* Autumn's logo + official Oakwyn mark (the brand kit's primary lockup) */
.brand-lockup { display: inline-flex; align-items: center; gap: 20px; }
.brand-al { width: 190px; height: auto; }
.brand-divider { width: 1px; align-self: stretch; min-height: 48px; background: rgba(255,255,255,.25); }
.brand-oakwyn { width: 64px; height: auto; }
.footer-brand { margin-bottom: 22px; }
.footer-brand .brand-al { width: 170px; }
.footer-brand .brand-oakwyn { width: 56px; }
/* Autumn's logo at the top of the sign-in and thank-you pages */
.page-brand { width: 200px; height: auto; margin-bottom: 28px; }
.lead-form { background: #fff; border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.lead-form .btn { width: 100%; margin-top: 8px; padding-block: 1.05em; }
.form-closed { padding: 28px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  /* Phones/tablets: heading, then the form, then the agent card, so the form isn't missed */
  .contact { grid-template-columns: 1fr; gap: 0; }
  .contact-intro { display: contents; }
  .contact-form { order: 2; margin-top: 8px; }
  .contact .agent-card { order: 3; margin-top: 28px; }
}

/* Footer / compliance */
.site-footer { background: var(--deep); color: #D6D0C9; font-size: .85rem; line-height: 1.7; padding-block: 64px calc(56px + env(safe-area-inset-bottom, 0px)); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }

.site-footer .broker-block strong { color: #fff; font-size: 1rem; }
.site-footer p { margin-bottom: .9em; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(243, 239, 234, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; padding: .9em .8em; letter-spacing: .08em; white-space: nowrap; }
@media (max-width: 700px) { .mobile-cta { display: flex; } body { padding-bottom: 76px; } }

/* Consent banner */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin-left: auto;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 20px 22px; font-size: .88rem;
}
.consent .actions { display: flex; gap: 8px; margin-top: 12px; }
.consent .btn { padding: .6em 1.1em; font-size: .85rem; }
@media (max-width: 700px) { .consent { bottom: 84px; } }

/* Simple content pages (privacy, thanks, 404) */
.page { max-width: 760px; margin: 0 auto; padding: 72px 24px; }
.page h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.page h2 { font-size: 1.7rem; margin-top: 1.6em; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
/* Open house sign-in: phone-first, big tap targets (also works as an iPad kiosk) */
.signin { max-width: 600px; padding-top: 48px; }
.signin h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
.signin-form .field input { font-size: 1.1rem; padding: 1em; }
.signin-form .btn { width: 100%; font-size: 1.05rem; padding-block: 1.1em; margin-top: 8px; }
.radio-row.big { gap: 10px; }
.radio-row.big label { flex: 1; justify-content: center; padding: .9em 1em; border: 1px solid var(--line); border-radius: 12px; background: #FAF8F5; font-size: 1.05rem; cursor: pointer; }
.radio-row.big label:has(input:checked) { border-color: var(--clay); background: var(--clay-tint); }
.signin-done { padding: 28px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
.signin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.signin-agent { display: flex; align-items: center; gap: 12px; margin-top: 32px; font-size: .9rem; color: var(--muted); }
.signin-agent img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; box-shadow: 0 0 0 2px var(--gold); }
.signin-agent strong { color: var(--ink); }
.not-found-photo { margin-top: 40px; border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; height: auto; }

/* Reveal on scroll (classes added by site.js) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--reveal-delay, 0ms), transform .9s var(--ease) var(--reveal-delay, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Small phones: keep the header on one line */
@media (max-width: 480px) {
  .wrap { padding-inline: 18px; }
  .site-header .wrap { gap: 12px; min-height: 60px; }
  .brand { font-size: 1.02rem; }
  .brand small { font-size: .56rem; letter-spacing: .12em; }
  .header-broker { font-size: .66rem; white-space: nowrap; padding-left: 12px; }
  .header-broker strong { font-size: .76rem; }
  .map-toolbar .chips { margin-inline: -18px; padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
