/* Good Ground Communities — site styles (single stylesheet, mobile-first).
   R3 (approved rendering, brand-source/r3-rendering-approved.jpg): the R2 layout in the ORIGINAL (pre-R2) colour
   scheme. Flow of the home page: dark forest header + hero (faint leaf line-art on the left, white search card,
   gold-edged wave) → cream trust strip (3 items) → cream "Available Homes" (white horizontal card + map) → beige
   band with 4 dark forest neighborhood tiles → cream "How to rent" (white cards, gold-ringed numbers) → cream
   owner-operated explainer → curved dark "Questions about a home?" band → dark lead band → forest-deep footer.
   Dark bands re-declare the same custom properties (see "Dark bands"), so every component reads correctly on either
   surface. Light ↔ dark transitions use soft SVG wave masks (data: URIs; the CSP's img-src allows data:) or
   gradient fades instead of hard colour blocks. Textures are SVG files in /assets/img/ at ≤.09 stroke opacity.
   Gold underlines, rings and the wave's gold edge are decorative (never the only cue), so they carry no minimum.

   Contrast notes (WCAG 2.x AA; every pair is checked by tests/contrast-check.mjs):
   Light — ink #1f2a24: 13.1:1 cream, 14.6:1 card, 11.7:1 band #ece4d4 · forest #1c3a2b (headings, links, prices,
     focus ring): 10.9:1 cream, 12.2:1 card, 9.8:1 band · muted #55625a: 5.6:1 cream, 6.3:1 card, 5.1:1 band,
     4.7:1 on line #e3dccd (placeholders) · gold-dark #7a5c17 (eyebrows, accents): 5.5:1 cream, 6.1:1 card,
     4.9:1 band · cream on forest (pills, buttons, pins) 10.9:1 · input border #7d7462 ≥3.6:1 on #fff/card/cream/band.
   Dark — cream on forest 10.9:1, on forest-deep 13.4:1 · muted-dark #c3c9bd ≥6.1:1 on forest/-deep/-600 ·
     gold #c9a24a text 5.2:1 on forest, 6.4:1 on forest-deep · gold-soft #e2c886 6.3:1 on forest-600 (tiles) ·
     gold buttons: forest-deep on gold 6.4:1 · focus ring gold-soft ≥7.6:1 · hero text sits on a ≥.90 forest-deep
     overlay; worst case (white photo pixel + a .06 leaf line): cream ≥8.3:1, gold-light accent ≥4.8:1 · search card inside the hero is
     light (forest labels 12.2:1 on card, forest-deep on gold button 6.4:1) · step numerals forest on card 12.2:1.
   Rented photos — "RENTED" bottom caption bar cream on forest-deep 13.4:1 (opaque, so the .45 forest-deep photo
     overlay never touches it) · no-photo label chip cream on forest-deep 13.4:1, lifted above the overlay.
   Gold is never used as text on a light surface (it is 2.3:1 on cream); gold-dark is used there instead. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Original pre-R2 palette (exact values) */
  --forest: #1c3a2b;
  --forest-deep: #132a1f;
  --cream: #f5f0e6;
  --card: #fffdf8;
  --gold: #c9a24a;
  --gold-dark: #7a5c17;
  --ink: #1f2a24;
  --muted: #55625a;
  --line: #e3dccd;
  /* R3 additions */
  --band: #ece4d4;
  --forest-600: #24473a;
  --muted-dark: #c3c9bd;
  --gold-soft: #e2c886;
  --gold-light: #d8b660;
  --sage: #e9eee6;
  --input-border: #7d7462;
  --danger: #9b2c1f;

  /* Semantic tokens (light surfaces by default; dark bands override these) */
  --bg: var(--cream);
  --surface: var(--card);
  --input-bg: #fff;
  --heading: var(--forest);
  --ink-muted: var(--muted);
  --accent-text: var(--gold-dark);
  --link: var(--forest);
  --line-strong: #cfc5af;
  --ghost-border: var(--forest);
  --tint: var(--sage);
  --focus: var(--forest);
  --danger-bg: #f8e9e6;
  --success: #1a4a2e;
  --success-bg: #e7f1ea;

  /* Spacing scale + rhythm */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section-y: clamp(4rem, 2.6rem + 4.5vw, 7.5rem);
  --wave-h: clamp(28px, 4.5vw, 72px);

  /* Shape + depth */
  --radius: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(19, 42, 31, .05), 0 2px 8px rgba(19, 42, 31, .04);
  --shadow: 0 1px 2px rgba(19, 42, 31, .04), 0 6px 16px rgba(19, 42, 31, .06), 0 18px 40px rgba(19, 42, 31, .06);
  --shadow-lg: 0 2px 4px rgba(19, 42, 31, .05), 0 14px 30px rgba(19, 42, 31, .1), 0 34px 70px rgba(19, 42, 31, .12);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Organic wave edges (used as masks, so the colour comes from background-color). */
  --wave-fill-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V30C1260 58 1080 66 880 50C680 34 520 10 320 16C180 20 80 34 0 44Z'/%3E%3C/svg%3E");
  --wave-fill-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V46C180 18 360 14 560 34C760 54 940 74 1140 58C1300 45 1390 28 1440 22V80Z'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* ---------- Dark bands: same tokens, dark values ---------- */
.site-header, .hero, .inv-hero, .cta-band, .lead-band, .site-footer, .hood-link, .hood-card {
  --ink: var(--cream);
  --heading: #fffdf8;
  --ink-muted: var(--muted-dark);
  --accent-text: var(--gold);
  --link: var(--gold-soft);
  --line: rgba(245, 240, 230, .14);
  --line-strong: rgba(245, 240, 230, .4);
  --ghost-border: rgba(245, 240, 230, .55);
  --tint: rgba(245, 240, 230, .1);
  --focus: var(--gold-soft);
  color: var(--ink);
}
/* Light cards inside dark bands (lead form) switch back. */
.lead-form {
  --ink: #1f2a24;
  --heading: var(--forest);
  --ink-muted: var(--muted);
  --accent-text: var(--gold-dark);
  --link: var(--forest);
  --line: #e3dccd;
  --line-strong: #cfc5af;
  --ghost-border: var(--forest);
  --tint: var(--sage);
  --focus: var(--forest);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); background: var(--forest-deep); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--heading); line-height: 1.1; font-weight: 500; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--heading); text-decoration-thickness: 2px; }
ul, ol { padding-left: 1.2em; }
dl, dd { margin: 0; }
abbr[title] { text-decoration: none; }
main { display: block; }
main:focus:not(:focus-visible) { outline: none; }
/* Accent lines: italic, lighter weight; gold on dark, gold-dark on light. (No highlighter effects.) */
.accent { color: var(--accent-text); font-style: italic; }
h1 .accent, h2 .accent, .display .accent { font-weight: 350; }
.display .accent { display: block; font-style: italic; }

/* Focus rings: forest on light surfaces, gold-soft on dark ones (via --focus). Gold-filled buttons get a two-tone
   ring (outline + forest-deep gap) so the ring never disappears against the gold fill. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.btn-gold:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 3px var(--forest-deep); }
h1, h2, h3 { overflow-wrap: break-word; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--forest); color: var(--cream); padding: .6rem 1rem; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 1rem; outline-color: var(--gold-soft); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: 1480px; }
.narrow { max-width: 780px; }
.muted { color: var(--ink-muted); }
.small { font-size: .875rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
/* JS-only controls keep their space before site.js runs (visibility, not display, so nothing jumps when
   the .js class lands); nojs.css (inside <noscript>) removes them entirely when JS is off. */
.js-only { display: inline-flex; visibility: hidden; }
.js .js-only { visibility: visible; }

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 var(--s-4);
  font: 600 .75rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex: none; border-radius: 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .65rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon-arrow { transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--forest-deep); }
.btn-gold:hover { background: var(--gold-light); color: var(--forest-deep); box-shadow: 0 10px 24px rgba(122, 92, 23, .22); }
.btn-forest { background: var(--forest); color: var(--cream); }
.btn-forest:hover { background: var(--forest-deep); color: #fff; box-shadow: 0 10px 24px rgba(19, 42, 31, .2); }
.btn-ghost, .btn-outline { background: transparent; color: var(--heading); border-color: var(--ghost-border); }
.btn-ghost:hover, .btn-outline:hover { background: var(--tint); color: var(--heading); border-color: var(--heading); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-link { background: none; border: 0; color: var(--link); text-decoration: underline; padding-left: .25rem; padding-right: .25rem; }
.btn-link:hover { transform: none; }
.btn-lg { min-height: 54px; padding: .85rem 1.75rem; font-size: 1.02rem; }
.btn-sm { min-height: 38px; padding: .4rem .95rem; font-size: .875rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--link); text-decoration: none; }
.link-arrow:hover { color: var(--heading); }
.link-arrow .icon-arrow { transition: transform .25s var(--ease); }
.link-arrow:hover .icon-arrow { transform: translateX(4px); }
.icon { width: 1.4em; height: 1.4em; flex: none; }
.icon-arrow { width: 1.1em; height: 1.1em; }

/* ---------- Preview banner ---------- */
.preview-banner {
  background: var(--gold); color: var(--forest-deep); text-align: center;
  font-size: .8125rem; font-weight: 600; padding: .3rem 1rem; letter-spacing: .02em;
}

/* ---------- Header (dark forest, sticky) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28, 58, 43, .96); box-shadow: 0 1px 0 rgba(19, 42, 31, .25), 0 10px 30px rgba(19, 42, 31, .12);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(28, 58, 43, .9); backdrop-filter: blur(14px) saturate(1.2); } }
/* Mobile-first: brand + Menu share the row; the nav drops down as an absolutely positioned panel (no layout shift).
   /assets/nojs.css (inside <noscript>) shows it statically for visitors without JavaScript. */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: var(--header-h); flex-wrap: wrap; }
/* .brand starts from a zero flex-basis so it always shares the first row with the Menu button (the name wraps instead). */
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--cream); text-decoration: none; min-width: 0; flex: 1 1 0; }
.brand:hover { color: #fff; }
.brand-logo { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; letter-spacing: .005em; line-height: 1.1; min-width: 0; overflow-wrap: break-word; }
.site-header .brand-logo { width: 44px; height: 44px; }
.nav-toggle {
  display: inline-flex; flex: none; align-items: center; gap: .6rem; background: transparent; color: var(--cream);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .45rem 1rem; min-height: 44px;
  font: 600 .9rem var(--sans); cursor: pointer; transition: border-color .2s ease, background-color .2s ease;
}
.nav-toggle:hover { border-color: var(--gold); background: var(--tint); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .3s var(--ease), top .3s var(--ease), background-color .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--forest); border-top: 1px solid var(--line); box-shadow: 0 24px 50px rgba(19, 42, 31, .35);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: .5rem 1.25rem 1.5rem;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .28s ease, transform .32s var(--ease), visibility 0s linear .32s;
}
.site-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .28s ease, transform .32s var(--ease), visibility 0s; }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: .1rem; max-width: var(--container); }
.site-nav li { border-bottom: 1px solid var(--line); }
.site-nav li.nav-cta, .site-nav li.nav-call { border-bottom: 0; }
.site-nav a { color: var(--cream); text-decoration: none; display: block; padding: .85rem .25rem; font-weight: 500; font-size: 1.05rem; }
.site-nav a:hover { color: var(--gold-soft); }
.site-nav a[aria-current="page"] { color: var(--gold-soft); }
.site-nav .nav-cta a { display: inline-flex; margin-top: 1rem; padding: .65rem 1.4rem; color: var(--forest-deep); font-size: 1rem; }
.site-nav .nav-cta a:hover { color: var(--forest-deep); }
.site-nav.open li { animation: nav-in .4s var(--ease) both; }
.site-nav.open li:nth-child(2) { animation-delay: .04s; }
.site-nav.open li:nth-child(3) { animation-delay: .08s; }
.site-nav.open li:nth-child(4) { animation-delay: .12s; }
.site-nav.open li:nth-child(5) { animation-delay: .16s; }
.site-nav.open li:nth-child(6) { animation-delay: .2s; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.call-pill {
  display: inline-flex !important; align-items: center; gap: .45rem; margin-top: .75rem;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .5rem 1rem !important; font-weight: 600;
}
.call-pill .icon { width: 1.1em; height: 1.1em; color: var(--gold); }
.call-pill:hover { border-color: var(--gold); }
@media (min-width: 600px) {
  .brand-name { font-size: 1.15rem; }
  .site-header .brand-logo { width: 48px; height: 48px; }
  .site-nav { padding-left: 2rem; padding-right: 2rem; }
}

/* Desktop nav. Brand + 4 links + Apply Now need ~920px plus container padding, so the
   hamburger is kept up to 1080px (keep in sync with NAV_DESKTOP_MQ in site.js and nojs.css). */
@media (min-width: 1080px) {
  :root { --header-h: 84px; }
  .header-inner { flex-wrap: nowrap; gap: 1.5rem; }
  .brand { flex: 0 1 auto; }
  .brand-name { font-size: 1.2rem; }
  .site-header .brand-logo { width: 52px; height: 52px; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open {
    position: static; opacity: 1; visibility: visible; transform: none; transition: none;
    background: none; border: 0; box-shadow: none; padding: 0; flex: 0 0 auto; border-radius: 0;
  }
  .site-nav.open li { animation: none; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.9rem; }
  .site-nav li { border: 0; }
  .site-nav a { padding: .4rem 0; white-space: nowrap; font-size: .95rem; position: relative; }
  .site-nav li:not(.nav-cta):not(.nav-call) a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .site-nav li:not(.nav-cta):not(.nav-call) a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .nav-cta a, .call-pill { margin-top: 0; }
  .site-nav li.nav-call + li.nav-cta { margin-left: -1rem; }
}

/* ---------- Wave dividers (organic section edges) ----------
   ::before at the top of a section = the previous section's colour hanging down in soft lobes;
   ::after at the bottom = the next section's colour rising up. Masks only — without mask support they're hidden. */
.hero::before, .hero::after, .inv-hero::after, .section-band::before, .section-band::after, .section-alt::before, .section-alt::after,
.cta-band::before, .lead-band::before {
  content: none; position: absolute; left: 0; right: 0; height: var(--wave-h); pointer-events: none; z-index: 1;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
@supports ((-webkit-mask-image: none) or (mask-image: none)) {
  .hero::after, .inv-hero::after, .section-band::after, .section-alt::after {
    content: ""; bottom: -1px; -webkit-mask-image: var(--wave-fill-bottom); mask-image: var(--wave-fill-bottom);
  }
  .section-band::before, .section-alt::before, .cta-band::before, .lead-band::before {
    content: ""; top: -1px; -webkit-mask-image: var(--wave-fill-top); mask-image: var(--wave-fill-top);
  }
  /* Hero → cream: the same wave twice, the gold copy lifted 3px so a thin gold edge shows along the curve. */
  .hero::before {
    content: ""; bottom: 2px; background: var(--gold); opacity: .9;
    -webkit-mask-image: var(--wave-fill-bottom); mask-image: var(--wave-fill-bottom);
  }
  .hero::after { background: var(--cream); }
  .inv-hero::after { background: var(--cream); }
  .section-band::before, .section-band::after, .section-alt::before, .section-alt::after { background: var(--cream); }
  .cta-band::before, .lead-band::before { background: var(--cream); }
  .section-alt + .lead-band::before { background: var(--band); }
  .section-alt:has(+ .lead-band)::after, .cta-band + .lead-band::before { content: none; }
}

/* ---------- Hero (dark forest over the photo) ---------- */
.hero { position: relative; overflow: hidden; background: var(--forest-deep); isolation: isolate; }
.hero-picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: center 40%; }
/* Overlay never drops below .84 where text sits (see contrast notes). Faint leafy branches drift in from the left. */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    url("/assets/img/leaves-cream.svg") left -90px top 40% / auto 120% no-repeat,
    linear-gradient(180deg, rgba(19, 42, 31, .9) 0%, rgba(19, 42, 31, .9) 60%, rgba(19, 42, 31, .95) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: var(--s-8); padding-bottom: calc(var(--wave-h) + var(--s-7)); }
.hero h1 { color: #fffdf8; max-width: 16ch; margin-bottom: .4em; }
/* "on good ground." — the lighter gold keeps ≥4.5:1 even in the worst case (white photo pixel + leaf line). */
.hero .display .accent { color: var(--gold-light); }
.display { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); font-weight: 450; letter-spacing: -.025em; line-height: 1.04; }
.hero-sub { font-size: 1.125rem; max-width: 34rem; color: var(--cream); margin-bottom: var(--s-6); }
@media (min-width: 768px) {
  .hero-overlay {
    background:
      url("/assets/img/leaves-cream.svg") left -60px top 45% / auto 125% no-repeat,
      linear-gradient(90deg, rgba(19, 42, 31, .94) 0%, rgba(19, 42, 31, .9) 58%, rgba(19, 42, 31, .5) 100%),
      linear-gradient(180deg, transparent 55%, rgba(19, 42, 31, .6) 100%);
  }
  .hero-content { padding-top: 6.5rem; padding-bottom: calc(var(--wave-h) + 4.5rem); min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: center; }
}

/* Emerald-style search card: a white card inside the hero, just above the gold-edged wave. */
.search-card {
  background: var(--card); color: var(--ink); border-radius: var(--radius); border: 1px solid rgba(227, 220, 205, .8);
  padding: var(--s-5); box-shadow: var(--shadow-lg); display: grid; gap: .9rem; max-width: 900px;
  --ink: #1f2a24; --heading: var(--forest); --focus: var(--forest);
}
.search-card label { color: var(--forest); }
.search-card .btn { width: 100%; }
@media (min-width: 768px) {
  .search-card { grid-template-columns: repeat(3, 1fr) auto; align-items: end; padding: 1.4rem 1.6rem; }
  .search-card .btn { width: auto; }
}

/* ---------- Forms (white inputs, ≥3:1 borders, dark text) ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label, .fieldset legend { font-weight: 600; font-size: .875rem; color: var(--heading); }
.opt { font-weight: 400; color: var(--ink-muted); }
.hint { font-size: .825rem; color: var(--ink-muted); margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"],
input[type="password"], input[type="search"], select, textarea {
  width: 100%; font: inherit; color: #1f2a24; background-color: var(--input-bg);
  border: 1px solid var(--input-border); border-radius: var(--radius-sm); padding: .7rem .9rem; min-height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
select { -webkit-appearance: none; appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 52%, calc(100% - .8rem) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
select option { background: #fff; color: #1f2a24; }
input[type="date"] { color-scheme: light; }
textarea { min-height: 88px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--forest); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(28, 58, 43, .1);
}
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .85rem; margin: 0; font-weight: 500; }
.check { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; min-height: 36px; }
.check input, .chip-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--forest); flex: none; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.field-wide { grid-column: 1 / -1; }
@media (min-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.listing-aside .form-grid { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.form-actions { margin-top: 1.25rem; display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.form-status { margin: 0 0 1rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { background: var(--success-bg); color: var(--success); border-left: 3px solid var(--success); padding: .8rem 1rem; border-radius: var(--radius-sm); }
.form-status.is-error { background: var(--danger-bg); color: var(--danger); border-left: 3px solid var(--danger); padding: .8rem 1rem; border-radius: var(--radius-sm); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.inquiry-form { position: relative; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin: 1rem 0 0; }
.field-inline { flex-direction: row; align-items: center; gap: .5rem; }
.filter-fields .field-inline, .filter-bar .field-inline { flex-direction: column; align-items: stretch; }
.field-check { justify-content: flex-end; }
.fine-dark { font-size: .8125rem; color: var(--ink-muted); margin-top: 1rem; }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section-tight { padding: var(--s-5) 0 var(--section-y); }
/* "Raised" light sections: cream at the edges (so neighbours blend) with a soft white glow in the middle. */
.section-raised, .section-manage { background: radial-gradient(70% 60% at 85% 40%, rgba(255, 253, 248, .9), transparent 70%), var(--cream); }
.section-steps + .section-manage { padding-top: var(--s-5); }
/* Beige band with soft wave edges (neighborhood tiles on home; investors' alternating sections). */
.section-band, .section-alt {
  background: url("/assets/img/topo-forest.svg") left -10% top 40% / min(900px, 140vw) auto no-repeat, var(--band);
  padding: calc(var(--section-y) + var(--wave-h) * .6) 0;
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: var(--s-7); }
.section-head h2 { margin: 0; max-width: 22ch; }
.page-head {
  padding: var(--s-7) 0 var(--s-5); margin-bottom: var(--s-5);
  background: radial-gradient(1100px 320px at 8% 0%, rgba(201, 162, 74, .12), transparent 70%), radial-gradient(800px 300px at 100% 100%, rgba(255, 253, 248, .8), transparent 70%), var(--cream);
}
.page-head h1 { margin-bottom: .35em; }
.page-head-tight { padding-bottom: 1.25rem; margin-bottom: 0; }
.lede { font-size: 1.125rem; color: var(--ink-muted); max-width: 44rem; margin: 0; }
@media (min-width: 768px) {
  .page-head { padding: 4.5rem 0 2.5rem; }
  .page-head-tight { padding: 3.5rem 0 1.5rem; }
}
.panel, .card { background: var(--surface); border: 1px solid rgba(227, 220, 205, .7); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow); }
@media (min-width: 768px) { .panel { padding: var(--s-6); } }
.panel-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--sage); color: var(--forest); margin-bottom: 1rem; }
.panel-icon .icon { width: 1.5rem; height: 1.5rem; }

/* ---------- Section titles: serif heading with a short gold underline accent (decorative, not text) ---------- */
.section-title { position: relative; padding-bottom: .55rem; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 3.25rem; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.section-head .section-title { margin: 0; }

/* ---------- Trust strip (cream, directly under the hero's wave; 3 icon items) ---------- */
.facts-strip { padding: var(--s-5) 0 var(--s-7); background: var(--cream); }
.facts-grid { list-style: none; margin: 0 auto; display: grid; gap: var(--s-5) var(--s-6); grid-template-columns: minmax(0, 1fr); }
.fact { display: flex; gap: 1rem; align-items: flex-start; }
.fact-icon { flex: none; display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--card); color: var(--forest); }
.fact-icon .icon { width: 1.45rem; height: 1.45rem; }
.fact-h { font-family: var(--sans); font-size: 1rem; font-weight: 650; color: var(--heading); margin: .15rem 0 .25rem; letter-spacing: 0; }
.fact p { margin: 0; color: var(--ink-muted); font-size: .935rem; }
@media (min-width: 768px) { .facts-grid { grid-template-columns: repeat(3, 1fr); } .facts-strip { padding: var(--s-6) 0 var(--s-7); } }
.facts-strip + .section { padding-top: var(--s-7); }

/* ---------- Split explainer + "Where we rent" panel ---------- */
.split { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: center; }
.split-copy p { color: var(--ink-muted); font-size: 1.05rem; max-width: 38rem; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-8); } }
.check-list { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.icon-check { color: var(--forest); width: 1.25rem; height: 1.25rem; margin-top: .2rem; }
.area-panel { background: var(--surface); border-radius: var(--radius); padding: var(--s-6); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.area-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--forest), var(--gold) 60%, transparent); }
.area-h { font-size: 1.6rem; margin-bottom: .25rem; }
.area-sub { color: var(--ink-muted); }
.chip-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem; min-height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--forest); text-decoration: none; font-weight: 550;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.chip .icon { width: 1.05em; height: 1.05em; color: currentColor; }
.chip:hover { border-color: var(--forest); background: var(--forest); color: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip-list-lg .chip { font-size: 1.05rem; padding: .7rem 1.3rem; }

/* ---------- Neighborhood tiles (dark forest on the beige band) + index cards ---------- */
.container-bleed { padding-right: 0; }
.hood-gallery {
  list-style: none; margin: 0; padding: .25rem 1.25rem 1.5rem 0; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 78%); gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--forest) transparent; overscroll-behavior-x: contain;
}
@media (min-width: 640px) { .hood-gallery { grid-auto-columns: minmax(280px, 44%); } }
/* Desktop: all four tiles in one row, no scrolling. */
@media (min-width: 1024px) {
  .container-bleed { padding-right: 2rem; }
  .hood-gallery { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding: .25rem 0 .5rem; }
}
.hood-tile { scroll-snap-align: start; }
.hood-link, .hood-card {
  --accent-text: var(--gold-soft);
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; height: 100%;
  min-height: 320px; padding: var(--s-6) 1.75rem 1.75rem; border-radius: var(--radius); text-decoration: none; color: var(--cream);
  border-top: 2px solid rgba(201, 162, 74, .55);
  overflow: hidden; isolation: isolate; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.hood-link::before, .hood-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transition: transform .7s var(--ease);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(201, 162, 74, .2), transparent 55%),
    linear-gradient(160deg, #24473a 0%, #1c3a2b 55%, #132a1f 100%);
}
.hood-tile-2 .hood-link::before { background: radial-gradient(120% 80% at 0% 0%, rgba(201, 162, 74, .18), transparent 55%), linear-gradient(200deg, #24473a 0%, #132a1f 75%); }
.hood-tile-3 .hood-link::before { background: radial-gradient(100% 70% at 50% 0%, rgba(245, 240, 230, .1), transparent 60%), linear-gradient(170deg, #1c3a2b 0%, #132a1f 100%); }
.hood-tile-4 .hood-link::before { background: radial-gradient(120% 90% at 100% 100%, rgba(201, 162, 74, .16), transparent 55%), linear-gradient(140deg, #132a1f 0%, #24473a 100%); }
.hood-link:hover, .hood-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--cream); }
.hood-link:hover::before, .hood-card:hover::before { transform: scale(1.06); }
.hood-count {
  position: absolute; top: 1.25rem; left: 1.25rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: .3rem .8rem; border-radius: 999px; background: rgba(19, 42, 31, .6); border: 1px solid var(--line-strong); color: var(--cream);
}
.hood-count.has-homes { background: var(--gold); color: var(--forest-deep); border-color: var(--gold); }
/* Home tiles: name, short fact, then "View homes" + live count along the bottom. */
.hood-link { justify-content: flex-start; min-height: 250px; padding: 1.6rem 1.5rem 1.4rem; }
.hood-link .hood-name { font-size: 1.6rem; margin-bottom: .2rem; }
.hood-link .hood-fact { font-size: .9rem; line-height: 1.55; }
.hood-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.hood-link .hood-count { position: static; font-size: .72rem; padding: .25rem .65rem; }
.hood-link .hood-go { margin-top: 0; }
.hood-name { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--heading); margin: 0; line-height: 1.05; }
.hood-kind, .hood-fact { color: var(--ink-muted); font-size: .92rem; }
.hood-go { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-soft); font-weight: 600; font-size: .92rem; margin-top: .35rem; }
.hood-go .icon-arrow { transition: transform .25s var(--ease); }
.hood-link:hover .hood-go .icon-arrow, .hood-card:hover .hood-go .icon-arrow { transform: translateX(4px); }
.hood-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .hood-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .hood-cards { grid-template-columns: repeat(4, 1fr); } }
.hood-card { min-height: 340px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); counter-reset: step; }
.step { position: relative; padding: var(--s-6) 1.75rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s ease; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* Gold-ringed step number (ring is decorative; the numeral is forest on white, 12.2:1). */
.step-num {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--gold);
  font: 550 1.15rem/1 var(--serif); color: var(--forest); background: var(--card); margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--ink-muted); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- "Questions about a home?" band (dark, wave top) ---------- */
.cta-band {
  position: relative; background: var(--forest);
  padding: calc(var(--s-8) + var(--wave-h) * .7) 0 var(--s-7);
}
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-6); flex-wrap: wrap; position: relative; z-index: 2; }
.cta-band-h { margin: 0 0 .35rem; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.cta-band-sub { margin: 0; color: var(--ink-muted); max-width: 38rem; }
.cta-band + .lead-band .lead-inner { padding-top: var(--s-7); border-top: 1px solid rgba(201, 162, 74, .28); }
.cta-band + .lead-band { padding-top: 0; }

/* ---------- Lead band (repeated end-of-page; dark, fades into the footer) ---------- */
.lead-band {
  position: relative; padding: calc(var(--s-8) + var(--wave-h) * .7) 0 var(--s-8); overflow: hidden;
  background:
    radial-gradient(900px 420px at 0% 10%, rgba(201, 162, 74, .12), transparent 60%),
    linear-gradient(180deg, var(--forest) 0%, var(--forest) 45%, var(--forest-deep) 100%);
}
.lead-inner { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: center; position: relative; z-index: 2; }
.lead-copy h2 { max-width: 16ch; }
.lead-copy p { color: var(--ink-muted); max-width: 32rem; }
.lead-fine { font-size: .875rem; }
.lead-form { background: var(--card); border-radius: var(--radius); padding: var(--s-5); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
@media (min-width: 1024px) {
  .lead-band { padding-bottom: var(--s-9); }
  .lead-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-8); }
  .lead-form { padding: var(--s-6); }
}

/* ---------- Footer (forest-deep; continues the lead band's fade) ---------- */
.site-footer { background: var(--forest-deep); padding: var(--s-8) 0 var(--s-6); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.footer-brand { grid-column: 1 / -1; }
.brand-footer .brand-logo { width: 56px; height: 56px; }
.brand-footer .brand-name { font-size: 1.3rem; }
.footer-tag { color: var(--ink-muted); margin-top: 1rem; max-width: 24rem; }
.footer-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.site-footer .footer-cta .btn-gold { color: var(--forest-deep); }
.footer-h { font-family: var(--sans); color: var(--gold); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-small-link { font-size: .9rem; }
.footer-col a.footer-btn { display: inline-block; padding: .4rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: .875rem; }
.footer-col a.footer-btn:hover { background: var(--tint); text-decoration: none; border-color: var(--gold); color: var(--cream); }
.footer-legal { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); display: grid; gap: 1.25rem; }
.eho { display: flex; gap: 1rem; align-items: flex-start; }
.eho-tile { flex: none; background: #fffdf8; border-radius: 10px; padding: 6px; display: inline-flex; }
.eho-tile img { width: 52px; height: auto; }
.eho-text, .fine { font-size: .8125rem; color: var(--ink-muted); margin: 0 0 .4rem; max-width: 62rem; }
.footer-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 2rem; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Listing cards (white, soft shadow, gentle lift) ---------- */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } .card-grid-2 { grid-template-columns: 1fr 1fr; } }
.listing-card {
  position: relative; background: var(--surface); border: 1px solid rgba(227, 220, 205, .7); border-radius: var(--radius); overflow: hidden;
  height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s ease, border-color .3s ease;
}
.listing-card:hover, .card-item.is-highlight .listing-card { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-item.is-highlight .listing-card { outline: 2px solid var(--forest); outline-offset: 3px; }
.card-media-wrap { position: relative; }
.card-media { display: block; aspect-ratio: 4 / 3; background: var(--band); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.listing-card:hover .card-media img, .listing-card:hover .card-media .photo-placeholder { transform: scale(1.04); }
.card-flags { position: absolute; z-index: 2; top: .9rem; left: .9rem; display: flex; gap: .4rem; flex-wrap: wrap; pointer-events: none; }
.status-pill {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  padding: .38rem .8rem; border-radius: 999px; line-height: 1.1; border: 1px solid transparent;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-available { background: var(--forest); color: var(--cream); }
.status-soon { background: var(--card); color: var(--forest); border-color: var(--forest); }
.status-rented { background: var(--line); color: var(--ink); }
.card-flag { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px; background: rgba(19, 42, 31, .85); color: var(--cream); }
.card-flag .icon { width: 1rem; height: 1rem; color: var(--gold); }
.card-photo-count {
  position: absolute; z-index: 2; left: .9rem; bottom: .9rem; display: inline-flex; align-items: center; gap: .35rem; pointer-events: none;
  font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: rgba(19, 42, 31, .85); color: var(--cream);
}
.card-photo-count .icon { width: 1rem; height: 1rem; }
.card-media-wrap .save-btn { position: absolute; top: .7rem; right: .7rem; }
.card-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-price { font-family: var(--serif); font-size: 1.65rem; font-weight: 550; color: var(--forest); margin: 0; line-height: 1.2; }
.per { font-family: var(--sans); font-size: .875rem; font-weight: 500; color: var(--ink-muted); margin-left: .15rem; }
.price-tba { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink-muted); }
.card-title { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: 0; letter-spacing: 0; }
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { color: var(--forest); text-decoration: underline; }
/* The whole card is clickable through the title link (the image link is aria-hidden/tabindex -1). */
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-media-wrap .save-btn { z-index: 2; }
.card-loc { margin: 0; color: var(--ink-muted); font-size: .9rem; }
.spec-row { list-style: none; margin: .75rem 0 0; padding: .8rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .9rem; color: var(--ink); }
.spec-row li { display: inline-flex; align-items: center; gap: .4rem; }
.spec-row .icon { width: 1.15rem; height: 1.15rem; color: var(--forest); }
.card-foot { margin: .6rem 0 0; font-size: .85rem; color: var(--ink-muted); }
.card-status { margin: .75rem 0 0; }

/* Horizontal card (home "Available Homes"): photo left, details right; stacks on narrow phones. */
.card-grid-rows { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) {
  .listing-card-row { flex-direction: row; align-items: stretch; }
  .listing-card-row .card-media-wrap { flex: 0 0 46%; padding: .9rem 0 .9rem .9rem; }
  .listing-card-row .card-media { height: 100%; min-height: 200px; aspect-ratio: auto; border-radius: var(--radius-md); }
  .listing-card-row .card-media-wrap .save-btn { top: 1.5rem; right: .6rem; }
  .listing-card-row .card-photo-count { left: 1.7rem; bottom: 1.7rem; }
  .listing-card-row .card-flags { top: 1.6rem; left: 1.6rem; }
  .listing-card-row .card-body { justify-content: center; padding: 1.4rem 1.6rem; }
  .listing-card-row .spec-row { border-top: 0; padding-top: 0; margin: .25rem 0 .35rem; }
  .listing-card-row .card-price { font-size: 1.85rem; }
}

/* ---------- Rented homes: forest-tinted photo + slim "RENTED" caption bar (cards and the listing hero) ----------
   Darken, never grey: a forest-deep overlay at .45 sits over the photo so its colour still shows through (no filter).
   The bar is real text, cream on forest-deep (13.4:1), opaque, along the bottom edge of the photo with a 1px gold
   top edge. It lives on the media box / figure, not on the img, so it stays when the gallery swaps photos.
   Thumbnails are left alone. The media box is isolated so the overlay stays under the status pill, photo count and
   save button, which paint above it. */
.listing-card.is-rented .card-media, .pg-main.is-rented { position: relative; isolation: isolate; }
.listing-card.is-rented .card-media::after, .pg-main.is-rented::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(19, 42, 31, .45);
}
.rented-banner {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; pointer-events: none;
  padding: .45rem 1rem; background: var(--forest-deep); color: var(--cream); border-top: 1px solid var(--gold);
  font-family: var(--sans); font-size: .75rem; font-weight: 600; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase;
  text-align: center; text-indent: .2em; /* balances the trailing letter-spacing */
}
/* In cards the bar is a sibling after the photo link, so it paints over the overlay; the pill, count and save
   button carry an explicit z-index: 2 so they stay above it whatever the sibling order. The photo count moves up
   off the bar. */
.card-media-wrap .rented-banner { z-index: auto; }
.listing-card.is-rented .card-photo-count { bottom: 2.6rem; }
@media (min-width: 560px) {
  /* Row cards: follow the inset, rounded photo (the wrap has .9rem padding top / bottom / left). */
  .listing-card-row .rented-banner { left: .9rem; bottom: .9rem; border-radius: 0 0 var(--radius-md) var(--radius-md); }
  .listing-card-row.is-rented .card-photo-count { bottom: 3.4rem; }
}
.pg-main.is-rented .rented-banner { padding: .55rem 1rem; font-size: .85rem; }
/* Rented with no photos: same overlay + bar; the label sits above the overlay as a cream-on-forest-deep chip
   (13.4:1), since muted text would not stay readable under the overlay. The camera icon is lifted above the overlay
   too, in cream so it doesn't read muddy on the darkened placeholder. */
.listing-card.is-rented .photo-placeholder > span, .photo-placeholder.pg-main.is-rented > span {
  position: relative; z-index: 2; padding: .3rem .8rem; border-radius: 999px; background: var(--forest-deep); color: var(--cream);
}
.listing-card.is-rented .photo-placeholder > .icon, .photo-placeholder.pg-main.is-rented > .icon { position: relative; z-index: 2; color: var(--cream); opacity: .9; }
/* Keep the hover lift but drop the photo zoom on placeholders (a transform would trap the chip under the overlay)
   and soften it on photos so the bar doesn't feel loose. */
.listing-card.is-rented:hover .card-media .photo-placeholder { transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .listing-card.is-rented:hover .card-media img { transform: scale(1.02); }
}
/* Rented listing aside: the next step under "See available homes". */
.rented-next { margin: .9rem 0 0; font-size: .9rem; color: var(--ink-muted); }

/* Inset focus ring so overflow:hidden on gallery tiles can't clip it. */
.pg-small:focus-visible, .pg-more:focus-visible { outline-offset: -3px; }

/* Compact explorer (home): no filter bar; list + map side by side on desktop, toggle stays in the bar on phones. */
.explorer-compact .explorer-bar { margin-bottom: 1rem; }
.explorer-compact .explorer-map { height: 300px; }
@media (max-width: 1023.98px) {
  .explorer-compact { padding-bottom: 0; }
  .explorer-compact .explorer-body.view-map .explorer-map { height: 360px; min-height: 0; }
}
@media (min-width: 1024px) {
  .explorer-compact .explorer-body.view-auto, .explorer-compact .explorer-body.view-map { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .explorer-compact .explorer-body.view-auto .card-grid, .explorer-compact .explorer-body.view-map .card-grid { grid-template-columns: minmax(0, 1fr); }
  .explorer-compact .explorer-body.view-auto .explorer-map-wrap, .explorer-compact .explorer-body.view-map .explorer-map-wrap { position: static; }
  .explorer-compact .explorer-body.view-auto .explorer-map, .explorer-compact .explorer-body.view-map .explorer-map { height: 100%; min-height: 280px; max-height: 520px; }
  .explorer-compact .explorer-body.view-auto, .explorer-compact .explorer-body.view-map { align-items: stretch; }
  .explorer-compact .explorer-body.view-grid .card-grid { grid-template-columns: 1fr 1fr; }
}

.save-btn {
  display: inline-flex; visibility: hidden; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); color: var(--forest); cursor: pointer;
  box-shadow: var(--shadow-sm); transition: background-color .2s ease, transform .25s var(--ease), border-color .2s ease, color .2s ease;
}
.js .save-btn { visibility: visible; }
.save-btn:hover { border-color: var(--forest); transform: scale(1.06); }
.save-btn .icon-heart { width: 22px; height: 22px; fill: transparent; }
.save-btn[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: var(--cream); }
.save-btn[aria-pressed="true"] .icon-heart { fill: currentColor; }
.save-btn:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }

.badges { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; position: relative; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 600; line-height: 1.2; padding: .3rem .7rem; border-radius: 999px; border: 1px solid; }
.badge .icon { width: 1rem; height: 1rem; }
.badge-preview { color: var(--gold-dark); border-color: var(--gold); background: #f7efd9; }
.badge-warn { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); }
.badge-tour { color: var(--forest); border-color: var(--forest); background: var(--sage); }

.photo-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; height: 100%; min-height: 100%; aspect-ratio: 4 / 3; transition: transform .8s var(--ease);
  background:
    radial-gradient(90% 70% at 80% 10%, rgba(255, 253, 248, .7), transparent 60%),
    linear-gradient(150deg, var(--band) 0%, var(--line) 100%);
  color: var(--muted); font-weight: 600; font-size: .9rem; text-align: center;
}
.card-media .photo-placeholder { aspect-ratio: auto; }
.photo-placeholder .icon { width: 2.1rem; height: 2.1rem; color: var(--forest); opacity: .7; }

.empty-state { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: var(--s-7) var(--s-5); text-align: center; }
.empty-state p { max-width: 36rem; margin: 0 auto 1.25rem; color: var(--ink-muted); }

/* ---------- Explorer (/homes): filters + map-first split view (all light) ---------- */
.section-explorer { padding-top: var(--s-5); }
.filter-bar {
  background: var(--surface); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
  display: grid; gap: 1rem; margin-bottom: var(--s-5);
}
.filter-fields { display: grid; gap: .85rem; grid-template-columns: 1fr 1fr; }
.filter-checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-check {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid var(--input-border); background: #fff; font-weight: 500; font-size: .9rem; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.chip-check:hover { border-color: var(--forest); }
.chip-check:has(input:checked) { border-color: var(--forest); background: var(--sage); color: var(--forest); }
.chip-check:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.filter-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.js .filter-submit { display: none; }
@media (min-width: 768px) { .filter-fields { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) {
  .filter-bar { grid-template-columns: minmax(0, 2.2fr) auto auto; align-items: end; padding: 1.4rem 1.6rem; }
  .filter-checks { padding-bottom: .25rem; }
}
/* min-height keeps the bar steady when the toggle lifts out of it to float. */
.explorer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; min-height: 46px; }
.result-count { margin: 0; font-weight: 600; color: var(--heading); }
.view-toggle { display: inline-flex; border: 1px solid var(--forest); border-radius: 999px; overflow: hidden; background: var(--card); }
.view-btn { font: 600 .9rem var(--sans); background: transparent; color: var(--forest); border: 0; padding: .55rem 1.3rem; min-height: 44px; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.view-btn:hover { background: var(--sage); }
.view-btn[aria-pressed="true"] { background: var(--forest); color: var(--cream); }
/* Inset ring (the toggle clips overflow): forest on the light button, cream on the pressed forest one. */
.view-btn:focus-visible { outline: 2px solid var(--forest); outline-offset: -4px; }
.view-btn[aria-pressed="true"]:focus-visible { outline-color: var(--cream); }
.explorer-map { height: 460px; border-radius: var(--radius); overflow: hidden; background: #e4ddcd; box-shadow: var(--shadow); }
.explorer-map-wrap { display: none; }
/* Phones/tablets: list by default. The Map/List toggle floats at the bottom of the screen only while the listings
   are behind that spot (homes.js toggles .is-floating with an IntersectionObserver), so it never covers the lead
   band, the footer or a focused control (WCAG 2.4.11). Safe-area inset keeps it clear of the home indicator. */
@media (max-width: 1023.98px) {
  .explorer { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
  .view-toggle.is-floating {
    position: fixed; left: 50%; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40;
    box-shadow: var(--shadow-lg); animation: float-in .3s var(--ease) both;
  }
  html.has-floating-toggle { scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
  .explorer-body.view-map .explorer-list { display: none; }
  .explorer-body.view-map .explorer-map-wrap { display: block; }
  .explorer-body.view-map .explorer-map { height: calc(100vh - var(--header-h) - 9rem); min-height: 380px; }
}
@keyframes float-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translateX(-50%); } }
/* Desktop: map-first split — list left, sticky map right (default and "Map"); "Grid" = full-width list. */
@media (min-width: 1024px) {
  .explorer-body.view-auto, .explorer-body.view-map { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
  .explorer-body.view-auto .explorer-map-wrap, .explorer-body.view-map .explorer-map-wrap { display: block; position: sticky; top: calc(var(--header-h) + 1rem); }
  .explorer-body.view-auto .explorer-map, .explorer-body.view-map .explorer-map { height: calc(100vh - var(--header-h) - 2rem); min-height: 480px; }
  .explorer-body.view-auto .card-grid, .explorer-body.view-map .card-grid { grid-template-columns: 1fr 1fr; }
  .explorer-body.view-grid .card-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1400px) { .explorer-body.view-grid .card-grid { grid-template-columns: repeat(4, 1fr); } }

/* Leaflet: normal OpenStreetMap tiles (no filter on the tile pane — it forced costly repaints while panning). */
.price-pin { background: none; border: 0; }
.price-pin-label {
  display: inline-block; transform: translate(-50%, -100%); white-space: nowrap;
  background: var(--forest); color: var(--cream); font: 700 .85rem/1 var(--sans); padding: .45rem .7rem; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(19, 42, 31, .35); border: 2px solid #fff; position: relative; top: -6px;
  transition: background-color .2s ease, color .2s ease, transform .25s var(--ease);
}
.price-pin.is-active .price-pin-label, .price-pin:hover .price-pin-label { background: var(--gold); color: var(--forest-deep); transform: translate(-50%, -100%) scale(1.08); }
.price-pin:focus-visible { outline: none; }
/* Dark ring + white halo: visible on any map tile. */
.price-pin:focus-visible .price-pin-label { outline: 3px solid var(--forest-deep); outline-offset: 1px; box-shadow: 0 0 0 6px #fff, 0 2px 8px rgba(0, 0, 0, .35); }
.map-popup strong { font-family: var(--serif); font-size: 1.15rem; color: var(--forest); display: block; }
.map-popup p { margin: .2rem 0 .4rem; color: #1f2a24; }
.mini-map { height: 340px; border-radius: var(--radius); overflow: hidden; background: #e4ddcd; box-shadow: var(--shadow); }
.leaflet-container { font-family: var(--sans); }
.leaflet-container a { color: var(--forest); }
.leaflet-container :focus-visible { outline-color: var(--forest-deep); }
.leaflet-popup-content-wrapper { border-radius: var(--radius-md); }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--ink-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--ink-muted); opacity: .7; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Listing detail (light page, white cards) ---------- */
.listing-page { padding-top: var(--s-6); padding-bottom: var(--s-9); }
.photo-grid { display: grid; gap: .65rem; grid-template-columns: minmax(0, 1fr); margin-bottom: var(--s-6); }
.pg-main { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--band); aspect-ratio: 3 / 2; }
.pg-main img { width: 100%; height: 100%; object-fit: cover; }
.pg-smalls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.pg-cell { position: relative; }
.pg-small { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--band); cursor: pointer; }
.pg-small img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pg-small:hover img { transform: scale(1.06); }
.pg-small[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--forest); }
/* The "+N" cell is one button (image + label); nothing focusable hides under the overlay. */
.pg-more { position: relative; }
.pg-more-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(19, 42, 31, .66); color: #fffdf8; font: 500 1.6rem var(--serif); transition: background-color .25s ease;
}
.pg-more:hover .pg-more-label { background: rgba(19, 42, 31, .74); }
.pg-ph { border-radius: var(--radius); }
.pg-main.pg-ph { font-size: 1.05rem; }
.pg-small.pg-ph { border-radius: var(--radius-md); aspect-ratio: 4 / 3; }
.photo-grid-empty .pg-smalls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .photo-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .photo-grid-single { grid-template-columns: minmax(0, 1fr); }
  .pg-main { aspect-ratio: auto; height: clamp(320px, 42vw, 520px); }
  .photo-grid-single .pg-main { height: clamp(320px, 48vw, 600px); }
  .pg-main.pg-ph { height: clamp(320px, 42vw, 520px); aspect-ratio: auto; }
  .pg-smalls, .photo-grid-empty .pg-smalls { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
  .pg-small, .pg-small.pg-ph { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .pg-cell { min-height: 0; }
}
/* Full photo strip: only rendered with more than 5 photos, hidden until "+N". Padding gives focus rings room. */
.gallery-thumbs { grid-column: 1 / -1; list-style: none; margin: 0 -6px; padding: 6px; display: flex; gap: .5rem; overflow-x: auto; }
.gt { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: none; cursor: pointer; width: 96px; height: 72px; flex: none; }
.gt img { width: 100%; height: 100%; object-fit: cover; }
.gt[aria-pressed="true"] { border-color: var(--forest); }
.listing-layout { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .listing-layout { grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); gap: 3.5rem; align-items: start; } }
.listing-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.listing-head .save-btn { visibility: hidden; }
.js .listing-head .save-btn { visibility: visible; }
.listing-pills { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1rem; }
.type-label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.listing-head h1 { margin-bottom: .25rem; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); }
.listing-loc { color: var(--ink-muted); margin: 0; font-size: 1.05rem; }
.listing-price { font-family: var(--serif); font-size: 2.3rem; font-weight: 550; color: var(--forest); margin: 1.25rem 0 .25rem; }
.listing-price .per { font-size: 1rem; }
.spec-box {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: var(--s-6) 0;
  background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.spec-box > div { background: var(--surface); padding: 1.15rem 1.25rem; }
.spec-box dt { display: flex; align-items: center; gap: .45rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); font-weight: 600; }
.spec-box dt .icon { width: 1.2rem; height: 1.2rem; color: var(--forest); }
.spec-box dd { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--heading); margin-top: .3rem; overflow-wrap: anywhere; }
@media (min-width: 640px) { .spec-box { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.listing-summary { font-size: 1.15rem; color: var(--ink); }
.detail-section { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.detail-section h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.detail-section p { color: var(--ink-muted); }
.lease-terms { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1rem; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.lease-terms th, .lease-terms td { padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lease-terms tr:last-child th, .lease-terms tr:last-child td { border-bottom: 0; }
.lease-terms th { font-weight: 500; color: var(--ink-muted); width: 45%; }
.lease-terms td { font-weight: 600; color: var(--heading); text-align: right; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem 1.5rem; grid-template-columns: minmax(0, 1fr); }
.feature-list li { display: flex; gap: .65rem; align-items: flex-start; }
@media (min-width: 640px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.tour-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 1rem; }
.tour-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.eho-note { display: flex; gap: .75rem; align-items: center; margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-muted); }
.eho-note img { width: 32px; height: 32px; background: #fffdf8; border-radius: 6px; padding: 3px; flex: none; }
.showing-card { position: relative; background: var(--surface); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-lg); overflow: hidden; }
.showing-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--forest), var(--gold)); }
.showing-card h2 { font-size: 1.8rem; margin-bottom: .2rem; }
.showing-price { font-family: var(--serif); font-size: 1.35rem; color: var(--forest); margin: 0 0 1.25rem; }
.showing-card .form-actions .btn { width: 100%; }
.rented-card .btn { width: 100%; }
/* Sticky beside the details on desktop; scrolls inside itself if the screen is short, so its buttons stay reachable. */
@media (min-width: 1024px) {
  .sticky-card { position: sticky; top: calc(var(--header-h) + 1.25rem); max-height: calc(100vh - var(--header-h) - 2.5rem); overflow-y: auto; scrollbar-width: thin; }
}
.apply-box { margin-top: var(--s-5); padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.apply-box p { margin: 0; font-weight: 600; }

/* ---------- Neighborhood page ---------- */
.nb-layout { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .nb-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
  .nb-map { position: sticky; top: calc(var(--header-h) + 1rem); }
  .nb-layout .mini-map { height: 480px; }
}

/* ---------- Residents / notes ---------- */
.resident-sections { display: grid; gap: var(--s-5); padding-bottom: var(--section-y); }
@media (min-width: 1024px) { .resident-sections { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.resident-card { scroll-margin-top: calc(var(--header-h) + 1rem); }
.resident-card h2 { font-size: 1.6rem; }
.resident-card p { color: var(--ink-muted); }
.resident-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.notice { background: var(--danger-bg); border-left: 3px solid var(--danger); padding: .9rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; }
.notice p, .resident-card .notice p { margin: 0; color: var(--ink); }
.topic-note { background: #f7efd9; border-left: 3px solid var(--gold); padding: .9rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; }
.topic-note p { margin: 0; color: var(--ink); }

/* ---------- Investors (same scheme: dark hero with wave, cream + beige sections) ---------- */
.inv-hero { position: relative; overflow: hidden; padding: 5rem 0 calc(4rem + var(--wave-h));
  background: url("/assets/img/topo-cream.svg") right -10% top -40% / min(1000px, 120vw) auto no-repeat,
    radial-gradient(900px 400px at 85% 0%, rgba(201, 162, 74, .14), transparent 60%), var(--forest); }
.inv-hero .container { position: relative; z-index: 2; }
.inv-hero h1 { color: #fffdf8; max-width: 16ch; }
.inv-hero .btn-gold { margin-top: .5rem; }
@media (min-width: 768px) { .inv-hero { padding: 7rem 0 calc(5.5rem + var(--wave-h)); } }
.flip-list { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .flip-list { grid-template-columns: 1fr 1fr; } }
.flip-title { margin-bottom: .2rem; }
.ba { margin: 1rem 0; }
.ba-stage { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ba-pane { margin: 0; position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; }
.ba-pane img, .ba-pane .photo-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.ph-before { background: linear-gradient(135deg, #e3dccd, #d6cdb9); color: var(--ink); }
.ph-after { background: linear-gradient(135deg, #e3ebe0, #cfdccf); color: var(--ink); }
.ba-tag {
  position: absolute; top: .6rem; padding: .25rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: rgba(19, 42, 31, .88); color: #fff; letter-spacing: .04em;
}
.ba-before .ba-tag { left: .6rem; }
.ba-after .ba-tag { right: .6rem; }
.ba-range, .ba-handle { display: none; }
.ba.ba-ready .ba-stage { display: block; position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; }
.ba.ba-ready .ba-pane { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.ba.ba-ready .ba-after { clip-path: inset(0 0 0 50%); }
.ba.ba-ready .ba-handle {
  display: block; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff;
  box-shadow: 0 0 0 1px rgba(19, 42, 31, .35); pointer-events: none; z-index: 2;
}
.ba.ba-ready .ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--forest); border: 3px solid #fff; box-shadow: var(--shadow);
}
.ba.ba-ready .ba-range {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3;
  -webkit-appearance: none; appearance: none; background: transparent;
  touch-action: pan-y; /* vertical swipes still scroll the page; horizontal drags move the slider */
}
/* Invisible thumb sized like the visible handle: full height, 44px wide, so it's an easy touch target. */
.ba.ba-ready .ba-range::-webkit-slider-runnable-track { height: 100%; background: transparent; border: 0; }
.ba.ba-ready .ba-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 44px; height: 100%; min-height: 44px;
  background: transparent; border: 0; cursor: ew-resize;
}
.ba.ba-ready .ba-range::-moz-range-track { height: 100%; background: transparent; border: 0; }
.ba.ba-ready .ba-range::-moz-range-thumb {
  width: 44px; height: 100%; min-height: 44px; background: transparent; border: 0; border-radius: 0; cursor: ew-resize;
}
.ba.ba-ready .ba-stage:has(.ba-range:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
/* Placeholder labels: keep each one in its own visible half, below the handle knob. */
.ba.ba-ready .ba-pane .photo-placeholder { justify-content: flex-end; padding: 0 5% 12%; }
.ba.ba-ready .ba-before .photo-placeholder { align-items: flex-start; text-align: left; }
.ba.ba-ready .ba-after .photo-placeholder { align-items: flex-end; text-align: right; }
.ba.ba-ready .ba-pane .photo-placeholder span { max-width: 36%; line-height: 1.3; }
.ba.ba-ready .ba-range:focus-visible + * { outline: none; }
.ba-pane .photo-placeholder.ph-before, .ba-pane .photo-placeholder.ph-after { color: var(--ink); }
.flip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.flip-grid > div { background: var(--cream); border-radius: var(--radius-sm); padding: .75rem .9rem; }
.flip-grid dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); font-weight: 600; }
.flip-grid dd { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--heading); }
@media (min-width: 640px) { .flip-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 0 0 .75rem; }
.stat { position: relative; background: var(--surface); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow); overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--forest), var(--gold)); }
.stat dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted); font-weight: 600; }
.stat dd { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; color: var(--heading); }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.buy-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 768px) { .buy-grid { grid-template-columns: repeat(3, 1fr); } }
.buy-tile p { margin: 0; color: var(--ink-muted); }

/* ---------- 404 ---------- */
.page-404 { padding: var(--s-9) 0; }

/* ---------- Owner editor (light, same tokens; header stays the dark band) ---------- */
body.page-owner { --bg: #f3eee3; --input-border: #847c6c; }
body.page-owner a:not(.btn) { color: var(--forest); }
body.page-owner .site-header a, body.page-owner .site-header .brand { color: var(--cream); }
body.page-owner .btn-outline { color: var(--forest); border-color: var(--forest); }
body.page-owner .btn-outline:hover { background: var(--forest); color: var(--cream); }
body.page-owner .check input, body.page-owner .seg input { accent-color: var(--forest); }
.owner-login { padding: var(--s-7) 1.25rem; max-width: 480px; }
.login-form { display: grid; gap: 1rem; }
.owner-app { padding-top: var(--s-5); padding-bottom: var(--s-8); }
.owner-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.owner-top h1 { font-size: 1.8rem; margin: 0; }
.owner-top-actions { display: flex; gap: .5rem; align-items: center; }
.owner-top-actions form { margin: 0; }
/* Padding on the tab strip keeps keyboard focus rings inside its scroll box (not clipped). */
.owner-tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); overflow-x: auto; margin-bottom: 1rem; padding: 4px 4px 0; }
.owner-tabs [role="tab"] {
  font: 600 .95rem var(--sans); background: none; border: 0; padding: .75rem 1rem; color: var(--ink-muted); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center;
}
.owner-tabs [role="tab"]:focus-visible { outline-offset: -3px; }
.owner-tabs [role="tab"][aria-selected="true"] { color: var(--forest); border-bottom-color: var(--gold); }
.tab-badge { background: var(--forest); color: #fff; font-size: .72rem; border-radius: 999px; padding: .1rem .5rem; }
.owner-flash { min-height: 1.5rem; margin-bottom: .75rem; font-weight: 600; }
.owner-flash.is-success { color: #1a4a2e; }
.owner-flash.is-error { color: var(--danger); }
.owner-panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; border: 1px solid var(--line); }
@media (min-width: 768px) { .owner-panel { padding: 1.75rem; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.panel-head h2 { margin: 0; font-size: 1.5rem; }
.table-wrap { overflow-x: auto; }
.owner-table { width: 100%; border-collapse: collapse; font-size: .925rem; }
.owner-table th, .owner-table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.owner-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.cell-title { display: block; font-weight: 600; }
.cell-sub { display: block; font-size: .8rem; color: var(--ink-muted); font-weight: 400; }
.pill { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #ece6d8; color: #1f2a24; text-transform: capitalize; }
.pill-published { background: #dcebe0; color: #174126; }
.pill-draft { background: #f3ead2; color: #5e4710; }
.pill-rented { background: #e3e6ea; color: #2c3640; }
.pill-new { background: var(--forest); color: #fff; }
.owner-form { margin-bottom: 2rem; }
.picker-map { height: 300px; border-radius: var(--radius-sm); overflow: hidden; margin: .75rem 0; background: #e4ddcd; }
.seg-group { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.seg { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line-strong); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; font-weight: 600; }
.owner-photos { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.photo-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.photo-row { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.photo-row img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); }
.photo-row-fields { flex: 1; min-width: 220px; display: grid; gap: .4rem; }
.upload-progress { font-size: .9rem; color: var(--ink-muted); margin-top: .5rem; min-height: 1.2em; }
.owner-list { list-style: none; margin: 0; padding: 0; }
.owner-list-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.flip-photo-slots { display: grid; gap: 1rem; }
@media (min-width: 768px) { .flip-photo-slots { grid-template-columns: 1fr 1fr; } }
.flip-slot { display: grid; gap: .5rem; }
.flip-slot img { width: 100%; max-width: 320px; height: auto; border-radius: var(--radius-sm); }
.inbox-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.inbox-item { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1rem 1.15rem; background: #fff; }
.inbox-item.status-new { border-left: 4px solid var(--forest); }
.inbox-item.status-archived { background: #faf8f3; }
.inbox-item.status-approved { border-left: 4px solid var(--forest); }
.inbox-item.status-declined { background: #faf8f3; }
.pill-approved { background: var(--forest); color: #fff; }
.pill-declined { background: #8a7a68; color: #fff; }
.inbox-approve { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .75rem; }
.inbox-approve h3 { margin: 0; font-size: 1.1rem; }
.inbox-approve .btn-row { margin-top: .25rem; }

.inbox-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.inbox-head time { margin-left: auto; color: var(--ink-muted); font-size: .85rem; }
.inbox-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .2rem .9rem; font-size: .9rem; margin-bottom: .5rem; }
.inbox-meta dt { color: var(--ink-muted); }
.inbox-meta dd, .inbox-name, .cell-title, .cell-sub, .photo-row-fields, .flip-slot { min-width: 0; overflow-wrap: anywhere; }
.inbox-msg { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--cream); border-radius: var(--radius-sm); padding: .75rem; }

/* ---------- Motion: scroll reveals (only when site.js adds .reveal-on to <html>) ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
.reveal-on .facts-grid .reveal:nth-child(2), .reveal-on .steps .reveal:nth-child(2), .reveal-on .hood-gallery .reveal:nth-child(2), .reveal-on .hood-cards .reveal:nth-child(2), .reveal-on .resident-sections .reveal:nth-child(2) { transition-delay: .06s; }
.reveal-on .facts-grid .reveal:nth-child(3), .reveal-on .steps .reveal:nth-child(3), .reveal-on .hood-gallery .reveal:nth-child(3), .reveal-on .hood-cards .reveal:nth-child(3), .reveal-on .resident-sections .reveal:nth-child(3) { transition-delay: .12s; }
.reveal-on .facts-grid .reveal:nth-child(4), .reveal-on .hood-gallery .reveal:nth-child(4), .reveal-on .hood-cards .reveal:nth-child(4) { transition-delay: .18s; }
.reveal-on .lead-inner .reveal + .reveal { transition-delay: .08s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal, .reveal-on .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .step:hover, .listing-card:hover, .card-item.is-highlight .listing-card, .hood-link:hover, .hood-card:hover, .chip:hover, .save-btn:hover { transform: none; }
  .listing-card:hover .card-media img, .listing-card:hover .card-media .photo-placeholder, .hood-link:hover::before, .hood-card:hover::before, .pg-small:hover img { transform: none; }
  .btn:hover .icon-arrow, .link-arrow:hover .icon-arrow, .hood-link:hover .hood-go .icon-arrow { transform: none; }
  .view-toggle.is-floating { animation: none; }
}

/* Owner LLC (landlord) + affiliation line (preview LLC pass) */
.footer-affiliation { font-weight: 600; }
.footer-min { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.landlord-panel { margin-top: var(--s-5); }
.landlord-panel h2 { font-size: 1.125rem; margin: 0 0 .5rem; }
.landlord-list { margin: .75rem 0 0; padding-left: 1.1rem; font-size: .9375rem; }
.landlord-list li { margin-bottom: .35rem; }
.pill-owner-unset { background: #f8e9e6; color: #9b2c1f; }
.fieldset.owner-unset { border-color: #9b2c1f; }

/* Password reset links (owner sign-in / forgot / reset pages) */
.owner-login .login-forgot { margin: 0; font-size: .9375rem; }
.owner-login .login-forgot a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Owner mobile cleanup (<640px): /owner site editor + owner sign-in / forgot / reset ----
   Phone-only layer (360-430px). Nothing here applies at >= 640px. Delete this block to roll back.
   Listings table → stacked cards (labels from data-label in owner.js), 2x2 tab grid, 3-up top actions,
   every tap target >= 44px, 16px inputs (no iOS zoom), one-column forms with full-width actions. */
@media (max-width: 639.98px) {
  body.page-owner .container { padding-left: 1rem; padding-right: 1rem; }
  body.page-owner .site-header .brand { min-height: 44px; }

  /* Top: title, then Dashboard / View site / Sign out as an equal-width row */
  body.page-owner .owner-app { padding-top: 1rem; padding-bottom: 2.5rem; }
  body.page-owner .owner-top { display: block; margin-bottom: 1rem; }
  body.page-owner .owner-top h1 { font-size: 1.75rem; }
  /* Headings: balanced lines, no automatic hyphenation */
  body.page-owner h1, body.page-owner h2 { text-wrap: balance; hyphens: manual; }
  body.page-owner .owner-top-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .75rem; }
  body.page-owner .owner-top-actions .btn { width: 100%; min-height: 44px; padding: .5rem .4rem; font-size: .9rem; }

  /* Tabs: 2x2 segmented grid, no sideways scroll */
  body.page-owner .owner-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; overflow: visible; border-bottom: 0; padding: 0; }
  body.page-owner .owner-tabs [role="tab"] {
    justify-content: center; text-align: center; white-space: normal; min-height: 48px; margin: 0; padding: .5rem .6rem;
    background: var(--surface); color: var(--forest); border: 1px solid var(--input-border); border-radius: var(--radius-sm); line-height: 1.2;
  }
  body.page-owner .owner-tabs [role="tab"][aria-selected="true"] { background: var(--forest); color: var(--cream); border-color: var(--forest); box-shadow: inset 0 -3px 0 var(--gold); }
  body.page-owner .owner-tabs [role="tab"]:focus-visible { outline-offset: 2px; }
  body.page-owner .owner-tabs [role="tab"][aria-selected="true"] .tab-badge { background: var(--gold); color: var(--forest-deep); }
  body.page-owner .tab-badge { font-size: .75rem; }

  body.page-owner .owner-panel { padding: 1.1rem; }
  body.page-owner .panel-head { margin-bottom: .75rem; }
  body.page-owner .panel-head h2 { font-size: 1.4rem; }
  body.page-owner .panel-head > .btn:not(.btn-link) { width: 100%; }
  body.page-owner .panel-head .field-inline { width: 100%; }
  body.page-owner .panel-head .field-inline select { flex: 1; }

  /* Listings: one card per listing */
  body.page-owner .table-wrap:has(> .owner-table) { overflow: visible; }
  body.page-owner .owner-table, body.page-owner .owner-table tbody { display: block; }
  body.page-owner .owner-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  body.page-owner .owner-table tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: .75rem 1rem;
    border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: 1rem; margin: 0 0 .75rem;
  }
  body.page-owner .owner-table th, body.page-owner .owner-table td { display: block; padding: 0; border: 0; min-width: 0; }
  body.page-owner .owner-table th[scope="row"] { grid-column: 1 / -1; }
  body.page-owner .owner-table td[data-owner-cell], body.page-owner .owner-table td.cell-actions { grid-column: 1 / -1; }
  body.page-owner .owner-table td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: .2rem;
    font: 600 .75rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted);
  }
  body.page-owner .owner-table td.cell-actions .btn { width: 100%; }
  body.page-owner .owner-table .cell-title { font-size: 1.05rem; }
  /* Whole words wrap normally; only the /homes/… slug may break anywhere. */
  body.page-owner .cell-title, body.page-owner .inbox-name { overflow-wrap: break-word; }
  body.page-owner .cell-sub { overflow-wrap: anywhere; font-size: .8125rem; }

  /* Tap targets: >= 44px everywhere in the editor and on the sign-in pages */
  body.page-owner .btn, body.page-owner .btn-sm { min-height: 44px; padding-top: .5rem; padding-bottom: .5rem; font-size: .9375rem; }
  body.page-owner .btn-link { min-height: 44px; padding-left: 0; }
  body.page-owner .check { display: flex; min-height: 44px; }
  body.page-owner .check input { width: 1.25rem; height: 1.25rem; }
  body.page-owner .seg-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  body.page-owner .seg { min-height: 44px; padding: .5rem 1rem; border-radius: var(--radius-sm); background: var(--surface); }
  body.page-owner .seg input { width: 1.2rem; height: 1.2rem; }
  body.page-owner input[type="file"] {
    display: block; width: 100%; min-height: 48px; padding: .45rem; font: 400 .9375rem var(--sans); color: var(--ink);
    background: var(--surface); border: 1px dashed var(--input-border); border-radius: var(--radius-sm);
  }
  body.page-owner input[type="file"]::file-selector-button {
    min-height: 44px; margin-right: .75rem; padding: .35rem 1rem; cursor: pointer;
    font: 600 .9rem var(--sans); color: var(--forest); background: var(--sage); border: 1px solid var(--forest); border-radius: 999px;
  }
  /* Leaflet zoom +/- (attribution links stay as Leaflet draws them) */
  body.page-owner .picker-map .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }

  /* Forms: one column, 16px inputs, labels above; form actions stack in a full-width column (a danger button gets extra space above) */
  body.page-owner input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), body.page-owner select, body.page-owner textarea { font-size: 1rem; }
  body.page-owner .owner-form .form-grid, body.page-owner .owner-form .fieldset .form-grid { gap: .75rem; }
  body.page-owner .fieldset { padding: .85rem; }
  body.page-owner .form-actions { flex-direction: column; align-items: stretch; gap: .6rem; }
  body.page-owner .form-actions .btn { width: 100%; }
  body.page-owner .form-actions .btn-danger { margin-top: .5rem; }
  body.page-owner .picker-map { height: 240px; }
  body.page-owner .hint { font-size: .875rem; }

  /* Photos: image on top, full width; fields and buttons below */
  body.page-owner .photo-row { flex-direction: column; align-items: stretch; gap: .6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  body.page-owner .photo-row img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  body.page-owner .photo-row-fields { min-width: 0; width: 100%; }
  body.page-owner .photo-row .btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  body.page-owner .photo-row .btn-row > :first-child, body.page-owner .photo-row .btn-row > :last-child { grid-column: 1 / -1; }
  body.page-owner .flip-slot img { max-width: 100%; }
  body.page-owner .owner-list-row { padding: .6rem 0; }

  /* Inbox: date on its own line, 2-up status buttons, Delete full width */
  body.page-owner .inbox-item { padding: 1rem; }
  body.page-owner .inbox-head time { margin-left: 0; flex-basis: 100%; }
  body.page-owner .inbox-meta { font-size: .9375rem; gap: .3rem .75rem; }
  body.page-owner .inbox-item .btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  body.page-owner .inbox-item .btn-row .btn { width: 100%; }
  body.page-owner .inbox-item .btn-row .btn-forest { grid-column: 1 / -1; }
  body.page-owner .inbox-item .btn-row .btn-danger { grid-column: 1 / -1; }
  body.page-owner .inbox-approve .btn-row { grid-template-columns: 1fr; }

  /* Owner sign-in / forgot / reset */
  body.page-owner .owner-login { padding: 1.5rem 1rem 2.5rem; }
  body.page-owner .owner-login .card { padding: 1.25rem; }
  body.page-owner .owner-login h1 { font-size: 1.75rem; }
  body.page-owner .owner-login .login-form .btn, body.page-owner .owner-login p > .btn { width: 100%; min-height: 48px; }
  body.page-owner .owner-login input[type="email"], body.page-owner .owner-login input[type="password"] { min-height: 48px; }
  body.page-owner .owner-login .login-forgot a { display: inline-flex; align-items: center; min-height: 44px; }
  body.page-owner .owner-login .form-status { font-size: 1rem; line-height: 1.45; }
}
