/* Boca Springs Apartments: site styles
   Palette is pulled from the property itself: stucco walls, clay roof tile,
   the clubhouse's navy shiplap wall, palms and the pool. */

:root {
  /* Surfaces */
  --plaster: oklch(0.974 0.009 78);
  --sand: oklch(0.942 0.019 74);
  --stucco: oklch(0.885 0.048 64);
  --stucco-deep: oklch(0.82 0.068 60);
  --paper: oklch(0.992 0.004 80);

  /* Color roles */
  --tile: oklch(0.52 0.135 38);
  --tile-deep: oklch(0.45 0.125 36);
  --navy: oklch(0.31 0.062 258);
  --navy-deep: oklch(0.25 0.05 258);
  --ink: oklch(0.255 0.032 258);
  --ink-2: oklch(0.43 0.026 258);
  --ink-3: oklch(0.50 0.022 258);
  --palm: oklch(0.47 0.085 152);
  --pool: oklch(0.68 0.115 212);
  --line: oklch(0.86 0.02 70);
  --line-strong: oklch(0.76 0.03 66);
  --on-dark: oklch(0.95 0.012 78);
  --on-dark-2: oklch(0.80 0.02 250);

  /* Type */
  --f-sign: "Tenor Sans", "Optima", "Candara", sans-serif;
  --f-head: "Petrona", "Georgia", serif;
  --f-body: "Radio Canada", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.05vw, 2rem);
  --step-3: clamp(1.95rem, 1.5rem + 2vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.7rem + 3.6vw, 4.6rem);

  /* Space */
  --gutter: 1rem;
  --section: clamp(3.75rem, 2.5rem + 5vw, 7rem);
  --wrap: 76rem;
  --header-h: 4.25rem;

  --radius: 4px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--tile); }

:focus-visible {
  outline: 2.5px solid var(--tile);
  outline-offset: 3px;
  border-radius: 2px;
}

[hidden] { display: none !important; }

/* Language visibility: content in the other language stays in the page but hidden. */
html[lang="en"] [lang="es"]:not([data-show]),
html[lang="es"] [lang="en"]:not([data-show]),
html[lang="en"] [data-show="es"],
html[lang="es"] [data-show="en"] { display: none !important; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--plaster);
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Type helpers ---------- */

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38ch;
}

.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; }

.h-section { font-size: var(--step-3); }
.h-sub { font-size: var(--step-2); }

.fine {
  font-size: var(--step--1);
  color: var(--ink-3);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: 600 1rem/1.2 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--tile); color: var(--paper); }
.btn-primary:hover { background: var(--tile-deep); }

.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--plaster); border-color: var(--ink); }

.btn-light { background: var(--plaster); color: var(--ink); }
.btn-light:hover { background: var(--stucco); }

.btn-ghost-light { border-color: oklch(0.95 0.012 78 / 0.55); color: var(--on-dark); }
.btn-ghost-light:hover { background: var(--on-dark); color: var(--navy-deep); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--tile);
  padding-bottom: 0.15rem;
}
.link-arrow::after {
  content: "";
  width: 0.95em; height: 0.95em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s var(--ease-out);
}
.link-arrow:hover::after { transform: translateX(3px); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.icon-btn:hover { background: var(--sand); }

/* ---------- Wordmark (after the monument sign on S. Gessner) ---------- */

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  color: inherit;
  text-decoration: none;
  font-family: var(--f-sign);
  line-height: 1;
}
.wordmark-name {
  font-size: 1.3rem;
  font-variant: small-caps;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.wordmark-sub {
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px solid currentColor;
  font-size: 0.56rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  text-align: center;
  padding-left: 0.5em; /* balances trailing letter-spacing */
}

/* ---------- Top bar & header ---------- */

.topbar {
  background: var(--navy-deep);
  color: var(--on-dark);
  font-size: 0.85rem;
  line-height: 1.3;
}
.topbar-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.25rem;
  padding-block: 0.4rem;
}
.topbar a { color: inherit; font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-phone { margin-left: 0.6rem; }
.topbar-status { color: var(--on-dark-2); }
.topbar-status:empty { display: none; }

@media (max-width: 40rem) {
  .topbar-phone, .topbar-status { display: none; }
  .topbar-in { justify-content: center; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.974 0.009 78 / 0.96);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.header-in .wordmark { margin-right: auto; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 0.25rem; }
.main-nav a {
  display: block;
  padding: 0.55rem 0.7rem;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: var(--radius);
  position: relative;
}
.main-nav a:hover { background: var(--sand); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.7rem; right: 0.7rem; bottom: 0.2rem;
  height: 2px;
  background: var(--tile);
}

.header-actions { display: flex; align-items: center; gap: 0.35rem; }
.header-tour { display: none; min-height: 2.6rem; padding-block: 0.5rem; }

.lang-btn {
  min-height: 2.6rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 500 0.92rem/1 var(--f-body);
  cursor: pointer;
}
.lang-btn:hover { background: var(--sand); }

@media (min-width: 40rem) {
  .header-tour { display: inline-flex; }
  .header-actions { gap: 0.6rem; }
}

@media (min-width: 70rem) {
  .main-nav { display: block; }
  .menu-btn, .header-call { display: none; }
  .header-in .wordmark { margin-right: 0; }
  .main-nav { margin-right: auto; margin-left: 1rem; }
}

.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: var(--menu-top, 6.5rem) 0 0 0;
  overflow-y: auto;
  background: var(--plaster);
  border-top: 1px solid var(--line);
  padding-block: 1rem 2rem;
}
.mobile-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font: 600 1.45rem/1.2 var(--f-head);
  text-decoration: none;
}
.mobile-links a[aria-current="page"] { color: var(--tile); }
.mobile-menu-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.mobile-menu-status { margin-top: 1rem; color: var(--ink-2); font-size: 0.95rem; }

body.menu-open { overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 1.5rem;
}
.site-footer a { color: inherit; text-decoration-color: oklch(0.95 0.012 78 / 0.35); }
.site-footer a:hover { text-decoration-color: currentColor; }

.footer-grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.footer-brand { display: grid; gap: 0.9rem; align-content: start; }
.footer-brand .wordmark { justify-self: start; margin-bottom: 0.4rem; }
.footer-brand .wordmark-name { font-size: 1.55rem; }
.footer-phone { font-size: 1.25rem; font-weight: 600; text-decoration: none; }

.footer-col h2 {
  font: 600 0.8rem/1.2 var(--f-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: 1rem;
}
.footer-col li + li { margin-top: 0.55rem; }

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.4rem;
  border-bottom: 1px solid oklch(0.95 0.012 78 / 0.14);
}
.hours dt { font-weight: 500; }
.hours .is-today dt::after {
  content: "•";
  margin-left: 0.4rem;
  color: var(--stucco-deep);
}
.hours .is-today { color: var(--paper); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.95 0.012 78 / 0.18);
  font-size: 0.9rem;
  color: var(--on-dark-2);
}
.eho { display: flex; align-items: center; gap: 0.6rem; }
.lang-btn-light { border-color: oklch(0.95 0.012 78 / 0.4); color: var(--on-dark); }
.lang-btn-light:hover { background: oklch(0.95 0.012 78 / 0.1); }

/* Phones: tour + availability stay in reach (header already has tap-to-call). */
.action-bar { display: none; }
@media (max-width: 39.99rem) {
  .action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0.5rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: oklch(0.974 0.009 78 / 0.97);
    border-top: 1px solid var(--line-strong);
  }
  .action-bar .btn { min-height: 2.9rem; padding-inline: 0.75rem; }
  body { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
  body.menu-open .action-bar { display: none; }
}

/* ---------- Shared section bits ---------- */

.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.65); }
.bg-sand { background: var(--sand); }
.bg-stucco { background: var(--stucco); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem);
}
.section-head p { max-width: 46ch; color: var(--ink-2); }

.arch {
  --arch-y: 40%;
  overflow: hidden;
  border-radius: 50% 50% 0 0 / var(--arch-y) var(--arch-y) 0 0;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

.photo { margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.photo figcaption, .caption {
  margin-top: 0.6rem;
  font-size: var(--step--1);
  color: var(--ink-3);
}

/* ---------- Home: hero ---------- */

.hero {
  background: var(--stucco);
  padding-top: clamp(2rem, 1rem + 4vw, 4.5rem);
  overflow: clip;
}
.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: end;
}
.hero-copy { padding-bottom: 0.5rem; }
.hero-place {
  font-family: var(--f-sign);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 11ch;
}
.hero .lead { margin-top: 1.4rem; color: oklch(0.32 0.03 258); max-width: 34ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-call {
  margin-top: 1.25rem;
  font-size: 0.98rem;
  color: oklch(0.36 0.03 258);
}
.hero-call a { font-weight: 600; }
.hero-call [data-office-status]:not(:empty)::before { content: " · "; }

.hero-photo {
  --arch-y: 38%;
  aspect-ratio: 4 / 4.6;
  width: 100%;
  margin-bottom: -1px;
  box-shadow: 0 -1px 0 var(--stucco);
}
.hero-photo img { object-position: 42% 50%; }

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 5.5rem);
  }
  .hero-copy { padding-bottom: clamp(3rem, 1rem + 5vw, 6rem); }
  .hero-photo { --arch-y: 40%; aspect-ratio: 4 / 5; }
}

@media (max-width: 55.99rem) {
  .hero-photo { --arch-y: 46%; aspect-ratio: 1 / 0.92; }
}
@media (min-width: 40rem) and (max-width: 55.99rem) {
  .hero-photo { --arch-y: 42%; aspect-ratio: 4 / 4.2; max-width: 30rem; justify-self: end; }
}

/* ---------- Home: sizes strip ---------- */

.sizes { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.sizes-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 2rem;
  margin-bottom: 1.25rem;
}
.sizes-head h2 { font-size: var(--step-2); }
.size-list { border-top: 1px solid var(--line-strong); }
.size-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "beds price" "meta arrow";
  align-items: baseline;
  gap: 0.2rem 1rem;
  padding: 1.25rem 0.25rem;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  transition: background-color 0.2s;
}
.size-beds { grid-area: beds; font: 600 var(--step-2)/1.1 var(--f-head); }
.size-meta { grid-area: meta; color: var(--ink-2); font-size: 0.98rem; }
.size-price { grid-area: price; font-weight: 600; color: var(--tile-deep); white-space: nowrap; }
.size-arrow {
  grid-area: arrow;
  justify-self: end;
  width: 1.4rem; height: 1.4rem;
  color: var(--ink-2);
  transition: transform 0.25s var(--ease-out), color 0.2s;
}
.size-list a:hover { background: var(--sand); }
.size-list a:hover .size-arrow { transform: translateX(4px); color: var(--tile); }

@media (min-width: 48rem) {
  .size-list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .size-list a {
    height: 100%;
    padding: 1.5rem 1.5rem 1.4rem;
    grid-template-areas: "beds beds" "meta meta" "price arrow";
    gap: 0.45rem 1rem;
    align-items: center;
  }
  .size-list li + li a { border-left: 1px solid var(--line-strong); }
  .size-price { margin-top: 0.9rem; font-size: 1.1rem; }
  .size-arrow { margin-top: 0.9rem; }
}

/* ---------- Home: inside the gate ---------- */

.gate-grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
/* Day, night and the entrance: one even block, no overlapping inset. */
.gate-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.gate-photos .tile { position: relative; overflow: hidden; border-radius: 3px; }
.gate-day { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gate-night, .gate-sign { aspect-ratio: 4 / 3; }
.gate-day img { object-position: 50% 60%; }
.gate-night img { object-position: 55% 50%; }
.gate-sign img { object-position: 35% 45%; }
.gate-copy h2 { font-size: var(--step-3); }
.gate-copy > p { margin-top: 1rem; color: var(--ink-2); max-width: 44ch; }

/* Three plain statements under a tile-colored rule. No icons, no boxes. */
.safety-points {
  display: grid;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}
.safety-points li {
  display: grid;
  gap: 0.2rem;
  align-content: start;
  padding-top: 0.7rem;
  border-top: 2px solid var(--tile-deep);
}
.safety-points strong { font-family: var(--f-head); font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.safety-points li > span { color: var(--ink-2); font-size: 0.92rem; line-height: 1.35; }
@media (min-width: 40rem) {
  .safety-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.facts { margin-top: 2rem; border-top: 1px solid var(--line); }
.facts div {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-weight: 600; }
.facts dd { color: var(--ink-2); }
.gate-copy .link-arrow { margin-top: 1.75rem; }

@media (min-width: 40rem) {
  .facts div { grid-template-columns: 11rem 1fr; }
}
@media (min-width: 60rem) {
  .gate-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gate-photos { position: sticky; top: calc(var(--header-h) + 2rem); }
}
@media (max-width: 59.99rem) {
  .gate-photos { margin-bottom: 0.5rem; }
}

/* ---------- Home: interiors strip ---------- */

/* Every tile fills its cell, so the block reads as one even rectangle at any width.
   Phone: living room across the top, kitchen tall on the left, dining and bedroom stacked beside it.
   Desktop: living room large on the left, dining and bedroom stacked, kitchen tall on the right. */
.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto clamp(8.5rem, 26vw, 13rem) clamp(8.5rem, 26vw, 13rem);
  grid-template-areas:
    "living  living"
    "kitchen dining"
    "kitchen bedroom";
  gap: 0.5rem;
}
.tile-living  { grid-area: living; }
.tile-dining  { grid-area: dining; }
.tile-bedroom { grid-area: bedroom; }
.tile-kitchen { grid-area: kitchen; }
.tile-living img { aspect-ratio: 4 / 3; }

.tile { position: relative; overflow: hidden; border-radius: 2px; min-height: 0; }
.tile img { height: 100%; border-radius: 0; transition: transform 0.6s var(--ease-out); }
.tile-living img  { object-position: 50% 60%; }
.tile-dining img  { object-position: 50% 55%; }
.tile-bedroom img { object-position: 45% 60%; }
.tile-kitchen img { object-position: 45% 50%; }
.tile figcaption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  margin: 0;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  background: oklch(0.974 0.009 78 / 0.92);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

@media (min-width: 60rem) {
  .mosaic {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, clamp(13rem, 17vw, 16rem));
    grid-template-areas:
      "living dining  kitchen"
      "living bedroom kitchen";
    gap: 0.75rem;
  }
  .tile-living img { aspect-ratio: auto; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover img { transform: scale(1.03); }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Home: neighborhood teaser ---------- */

.near-grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.near-grid .photo img { aspect-ratio: 4 / 3.2; }
.near-copy h2 { font-size: var(--step-3); }
.near-copy > p { margin-top: 1rem; color: var(--ink-2); max-width: 46ch; }
.near-list { margin-top: 1.75rem; border-top: 1px solid var(--line-strong); }
.near-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line-strong);
}
.near-list .kind { color: var(--ink-3); font-size: 0.92rem; }
.near-list .dist { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }
.near-copy .link-arrow { margin-top: 1.75rem; }

@media (min-width: 60rem) {
  .near-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); }
}

/* ---------- Reviews ---------- */

.reviews-grid {
  display: grid;
  gap: 2.5rem;
}
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote-lg blockquote p {
  font: 500 var(--step-2)/1.32 var(--f-head);
  letter-spacing: -0.01em;
  max-width: 30ch;
}
.quote-sm {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.quote-sm blockquote p { font-size: 1.08rem; line-height: 1.55; }
.quote figcaption { margin-top: 1rem; font-size: 0.95rem; color: var(--ink-2); }
.quote figcaption strong { color: var(--ink); font-weight: 600; }
.quote .translated { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: var(--ink-3); font-style: italic; }
.stars { display: flex; gap: 2px; color: var(--tile); margin-bottom: 0.9rem; }
.stars svg { width: 1rem; height: 1rem; }

@media (min-width: 60rem) {
  .reviews-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 6rem);
  }
  .quote-lg { grid-row: span 2; }
}

/* ---------- Visit band ---------- */

.visit {
  background: var(--navy);
  color: var(--on-dark);
  padding-block: var(--section);
  overflow: clip;
}
.visit-grid {
  display: grid;
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}
.visit h2 { font-size: var(--step-3); color: var(--paper); }
.visit-copy > p { margin-top: 1rem; color: var(--on-dark-2); max-width: 42ch; line-height: 1.65; }
.visit .hours { margin-top: 1.75rem; max-width: 24rem; }
.visit-address { margin-top: 1.5rem; line-height: 1.5; }
.visit-address a { color: inherit; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.visit-photo { --arch-y: 42%; aspect-ratio: 4 / 4.4; max-width: 30rem; width: 100%; justify-self: center; }
.visit-photo img { object-position: 60% 50%; }

@media (min-width: 56rem) {
  .visit-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .visit-photo { order: -1; }
}

/* ---------- Inner page heads ---------- */

.page-head {
  background: var(--stucco);
  padding-block: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem) clamp(2rem, 1rem + 3vw, 3.5rem);
}
.page-head h1 { font-size: var(--step-4); line-height: 1.03; max-width: 16ch; }
.page-head .lead { margin-top: 1rem; max-width: 46ch; color: oklch(0.34 0.03 258); }
.crumb {
  font-family: var(--f-sign);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.page-banner { position: relative; }
.page-banner img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
@media (max-width: 47.99rem) {
  .page-banner img { aspect-ratio: 16 / 9; }
}

/* ---------- Filters (segmented) ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filters button {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--plaster);
  color: var(--ink);
  font: 500 0.98rem/1 var(--f-body);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--plaster); }
.filters .count { margin-left: 0.35rem; opacity: 0.6; font-variant-numeric: tabular-nums; }

/* ---------- Floor plans ---------- */

.plans-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line-strong);
}
.plans-bar .fine { max-width: 40ch; }

.plan {
  display: grid;
  gap: 1.75rem;
  padding-block: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem);
  border-bottom: 1px solid var(--line);
}
.plan-drawing {
  --pad: clamp(1rem, 0.5rem + 2vw, 2rem);
  display: block;
  position: relative;
  min-width: 0;
  aspect-ratio: 5 / 4;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: zoom-in;
}
.plan-drawing img {
  position: absolute;
  inset: var(--pad);
  width: calc(100% - 2 * var(--pad));
  height: calc(100% - 2 * var(--pad));
  object-fit: contain;
  mix-blend-mode: multiply;
}
.plan-media { display: grid; gap: 0.75rem; min-width: 0; align-content: start; }
.plan-switch button { min-height: 2.5rem; padding: 0.4rem 0.9rem; font-size: 0.92rem; }
.plan-drawing[hidden] { display: none; }
/* The 3D view and the drawing share one frame, so switching between them never moves the page. */
.plan-stage { display: grid; min-width: 0; }
.plan-stage > .plan-drawing {
  grid-area: 1 / 1;
  aspect-ratio: auto;
  transition: opacity 0.22s var(--ease-out), visibility 0s;
}
.plan-stage > .plan-drawing[hidden] {
  display: block !important; /* stays in layout so the frame keeps its size */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s var(--ease-out), visibility 0s 0.22s;
}
/* The render carries its own background, so show it at its natural shape (no letterbox bands). */
.plan-3d { aspect-ratio: auto; background: var(--plan3d-bg, #f4f0ea); border: 0; overflow: hidden; }
.plan-3d img { position: static; width: 100%; height: auto; mix-blend-mode: normal; }
.plan-note { margin: 0; }
.plan-drawing .zoom-hint {
  position: absolute;
  right: 0.75rem; bottom: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--plaster);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-2);
}
.plan-kind {
  font-family: var(--f-sign);
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.plan h2 { font-size: var(--step-3); margin-top: 0.35rem; }
.plan-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  margin-top: 1rem;
  font-size: 1.05rem;
}
.plan-facts li { white-space: nowrap; }
.plan-price {
  margin-top: 1.25rem;
  font: 600 var(--step-2)/1 var(--f-head);
  color: var(--tile-deep);
}
.plan-price small { font: 400 0.95rem var(--f-body); color: var(--ink-2); margin-left: 0.25rem; }
.plan-desc { margin-top: 1rem; color: var(--ink-2); max-width: 46ch; }
.plan-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.plan-tags li {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--sand);
  font-size: 0.88rem;
}
.plan-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

@media (min-width: 52rem) {
  .plan {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
  }
  .plan:nth-of-type(even) > .plan-media,
  .plan:nth-of-type(even) > .plan-drawing { order: 2; }
}

.plan.is-hidden { display: none; }

.notice-pair { display: grid; gap: 1rem; margin-top: 1.75rem; }
@media (min-width: 48rem) { .notice-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.notice {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--paper);
}
.notice h2, .notice h3 { font-size: var(--step-1); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line-strong); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.1rem;
  font: 600 1.12rem/1.35 var(--f-body);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.85rem; height: 0.85rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 100% no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.25rem; color: var(--ink-2); max-width: 62ch; }

/* ---------- Amenities page ---------- */

.feature {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
}
.feature + .feature { margin-top: clamp(3rem, 2rem + 4vw, 6rem); }
.feature .photo img { aspect-ratio: 4 / 3; }
.feature h2 { font-size: var(--step-3); }
.feature p { margin-top: 1rem; color: var(--ink-2); max-width: 44ch; }
.feature .arch { aspect-ratio: 4 / 4.4; --arch-y: 45%; }

@media (min-width: 56rem) {
  .feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .feature.flip { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .feature.flip > :first-child { order: 2; }
}

.spec {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.spec > div {
  display: grid;
  gap: 0.25rem 2rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line-strong);
}
.spec dt { font: 600 1.2rem/1.3 var(--f-head); }
.spec dd { color: var(--ink-2); max-width: 52ch; }
.safety-lead { margin-top: 1rem; color: var(--ink-2); max-width: 40ch; }

@media (min-width: 48rem) {
  .spec > div { grid-template-columns: minmax(12rem, 0.4fr) 1fr; }
}

.two-col {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
@media (min-width: 60rem) {
  .two-col { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.gallery-grid a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--sand);
}
.gallery-grid img {
  width: 100%; height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery-grid a:hover img { transform: scale(1.03); }
.gallery-grid .wide { grid-column: span 2; }
.gallery-grid .wide img { aspect-ratio: 2 / 1; }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .tall img { aspect-ratio: auto; }
.gallery-grid a.is-hidden { display: none; }

@media (min-width: 48rem) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
}

.video-tour {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-deep);
  border-radius: 3px;
  overflow: hidden;
}
.video-tour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  cursor: pointer;
}
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.72); transition: filter 0.3s; }
.video-poster:hover img { filter: brightness(0.62); }
.video-poster .play {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.4rem 0.9rem 1.1rem;
  border-radius: 999px;
  background: var(--plaster);
  color: var(--ink);
  font: 600 1.05rem/1 var(--f-body);
}
.video-poster .play svg { width: 1.6rem; height: 1.6rem; color: var(--tile); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: oklch(0.2 0.03 258 / 0.97);
  color: var(--on-dark);
}
.lightbox::backdrop { background: oklch(0.2 0.03 258 / 0.6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-figure {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 4rem 1rem 3.5rem;
  max-width: 100%;
}
.lightbox-figure img {
  max-width: min(92vw, 80rem);
  max-height: calc(100vh - 10rem);
  width: auto; height: auto;
  object-fit: contain;
}
.lightbox.is-plan .lightbox-figure img { background: var(--paper); padding: 1rem; }
.lightbox-figure figcaption { font-size: 0.98rem; color: var(--on-dark-2); text-align: center; }
.lightbox-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 0;
  border-radius: 999px;
  background: oklch(0.95 0.012 78 / 0.1);
  color: var(--on-dark);
  cursor: pointer;
}
.lightbox-btn:hover { background: oklch(0.95 0.012 78 / 0.22); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox-count { position: fixed; top: 1.6rem; left: 1.25rem; font-size: 0.9rem; color: var(--on-dark-2); }
.lightbox.is-single .lightbox-prev,
.lightbox.is-single .lightbox-next,
.lightbox.is-single .lightbox-count { display: none; }
@media (max-width: 47.99rem) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; translate: none; }
}

/* ---------- Neighborhood map ---------- */

.map-page .page-head { padding-bottom: 1.75rem; }
.page-head .head-jump { margin-top: 1.1rem; }
.head-jump a { font-weight: 600; color: var(--tile-deep); text-underline-offset: 0.2em; }

.map-shell {
  position: relative;
  display: grid;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.map-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--paper);
}

/* Category tabs: a glyph in a round chip with a short label under it. */
.map-filters {
  display: flex;
  gap: 0.15rem;
  padding: 0.7rem calc(var(--gutter) - 0.4rem) 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.map-filters::-webkit-scrollbar { display: none; }
.map-filters button {
  flex: 1 0 auto;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  min-width: 4.6rem;
  padding: 0.35rem 0.3rem 0.4rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-2);
  font: 500 0.875rem/1.15 var(--f-body);
  cursor: pointer;
}
.cat-dot {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: color-mix(in oklch, var(--c) 13%, var(--paper));
  color: var(--c);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.cat-dot .cat-icon { width: 1.3rem; height: 1.3rem; }
.map-filters button:hover .cat-dot { background: color-mix(in oklch, var(--c) 24%, var(--paper)); }
.map-filters button:active .cat-dot { transform: scale(0.94); }
.map-filters button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.map-filters button[aria-pressed="true"] .cat-dot { background: var(--c); color: var(--paper); }

/* Glyphs: shared by the pins, the tabs, the list and the popups. */
.cat-icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.place-list { overflow-y: auto; overscroll-behavior: contain; }
.place-group h2 {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem var(--gutter) 0.5rem;
  background: var(--paper);
  font: 600 1.12rem/1.2 var(--f-head);
  letter-spacing: 0;
  color: var(--ink);
}
.place-count { font: 500 0.875rem/1 var(--f-body); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.place-group ul { padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.place-btn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.1rem 0.8rem;
  align-items: start;
  width: 100%;
  padding: 0.6rem var(--gutter);
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.place-btn:hover { background: var(--plaster); }
.place-btn[aria-current="true"] { background: color-mix(in oklch, var(--c) 10%, var(--paper)); }
.place-badge {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: color-mix(in oklch, var(--c) 13%, var(--paper));
  color: var(--c);
}
.place-badge .cat-icon { width: 1.1rem; height: 1.1rem; }
.place-btn[aria-current="true"] .place-badge { background: var(--c); color: var(--paper); }
.place-more {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin: 0.25rem var(--gutter) 0.5rem calc(var(--gutter) + 3.05rem);
  padding: 0.3rem 0;
  border: 0;
  background: none;
  color: var(--tile-deep);
  font: 600 0.95rem/1.2 var(--f-body);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.place-name { font-weight: 600; line-height: 1.3; }
.place-sub { grid-column: 2; font-size: 0.9rem; color: var(--ink-2); line-height: 1.35; }
.place-dist {
  grid-row: span 2;
  margin-top: 0.1rem;
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.map-canvas { position: relative; min-height: 24rem; height: 62svh; background: oklch(0.91 0.03 84); scroll-margin-top: calc(var(--header-h) + 6.2rem); }
.map-canvas #map { position: absolute; inset: 0; }
.map-stage { width: 100%; height: 100%; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 0.95rem; }

@media (max-width: 63.99rem) {
  /* Phones and tablets: tabs stick under the header, then the map, then the list. */
  .map-panel { display: contents; }
  .map-filters { order: 1; position: sticky; top: var(--header-h); z-index: 5; }
  .map-canvas { order: 2; }
  .place-list { order: 3; background: var(--paper); }
}

@media (min-width: 64rem) {
  /* Wide screens: the map fills the band and the panel floats over its left edge. */
  .map-shell {
    display: block;
    height: calc(100svh - var(--header-h));
    min-height: 40rem;
    max-height: 60rem;
  }
  .map-canvas { position: absolute; inset: 0; height: auto; }
  .map-panel {
    position: absolute;
    z-index: 2;
    top: 1.25rem; bottom: 1.25rem;
    /* Docked to the map's own edge, not the text column: on very wide screens the
       column sits far from the edge and the panel would strand a dead strip of map. */
    left: 1.25rem;
    width: 24.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px oklch(0.25 0.03 258 / 0.12), 0 14px 40px oklch(0.25 0.03 258 / 0.2);
  }
  .map-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem 0.15rem;
    padding: 0.9rem 0.75rem 0.75rem;
    overflow: visible;
  }
  .map-filters button { min-width: 0; }
  .place-group h2, .place-btn { padding-inline: 1.25rem; }
}

.getting-around { display: grid; gap: 1.75rem 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.getting-around > div { padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.getting-around h3 { font-size: var(--step-1); }
.getting-around p { margin-top: 0.5rem; color: var(--ink-2); }

/* "New to Houston" guide */
.newcomer { background: var(--sand); }
.newcomer-grid { display: grid; gap: 2rem; }
.newcomer-intro p { margin-top: 1rem; max-width: 52ch; color: var(--ink-2); font-size: var(--step-1); line-height: 1.4; }
/* The errands sit side by side on wide screens so the whole guide fits in about one screen. */
.steps { display: grid; gap: 0 clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line-strong); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 0 1.1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-strong);
}
.step-badge {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--c);
  color: var(--paper);
}
.step-badge .cat-icon { width: 1.3rem; height: 1.3rem; }
.step h3 { font-size: var(--step-1); padding-top: 0.35rem; }
.step p { margin-top: 0.5rem; max-width: 62ch; color: var(--ink-2); }
.step .step-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; margin-top: 0.9rem; }
.step-links a { font-weight: 600; color: var(--tile-deep); text-underline-offset: 0.2em; }
.show-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: 600 0.95rem/1.1 var(--f-body);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.show-btn:hover { background: var(--ink); color: var(--plaster); }
.numbers-block { margin-top: 3rem; }
.numbers-block h3 { font-size: var(--step-1); }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 1.5rem 2rem; margin-top: 1.25rem; }
.numbers dt a { font: 600 var(--step-2)/1.1 var(--f-head); color: var(--tile-deep); text-decoration: none; white-space: nowrap; }
.numbers dt a:hover { text-decoration: underline; }
.numbers dd { margin-top: 0.4rem; color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; }

.far-block { margin-top: 3rem; }
.far-block h3 { font-size: var(--step-1); }
.far-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 2.5rem; margin-top: 1rem; }
.far-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.far-list dd { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Pins (plain HTML on both the Google map and the OpenStreetMap fallback).
   The button is a zero-size anchor at the place; the drop hangs above it. */
.map-pin {
  position: absolute; left: 0; top: 0;
  width: 0; height: 0;
  padding: 0; border: 0;
  background: none;
  cursor: pointer;
  overflow: visible;
  font-family: var(--f-body);
}
.map-pin:hover { z-index: 4 !important; }
.map-pin.is-active { z-index: 5 !important; }
.map-pin.is-home { z-index: 3; }

.pin {
  position: absolute;
  left: 0; top: -34px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50% 50% 50% 0;
  background: var(--c);
  color: var(--paper);
  border: 2px solid var(--paper);
  box-shadow: -2px 3px 7px oklch(0.25 0.03 258 / 0.3);
  /* Turned on its bottom-left corner, so that corner becomes the tip and stays on the place. */
  transform-origin: 0 100%;
  transform: rotate(-45deg);
  transition: transform 0.22s var(--ease-out);
}
.pin .cat-icon { width: 17px; height: 17px; transform: rotate(45deg); }
@media (hover: hover) {
  .map-pin:hover .pin { transform: rotate(-45deg) scale(1.12); }
  .map-pin:hover .pin-label { opacity: 1; transform: none; }
}
.map-pin.is-active .pin { transform: rotate(-45deg) scale(1.3); }
.pin-label {
  position: absolute;
  left: 30px; top: -42px;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--plaster);
  font: 600 0.85rem/1.2 var(--f-body);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}

.home-pin {
  position: absolute;
  left: -32px; top: -68px;
  display: grid;
  place-items: center;
  width: 64px; height: 58px;
  padding-top: 7px;
  background: var(--tile);
  color: var(--paper);
  border: 3px solid var(--paper);
  border-radius: 50% 50% 5px 5px / 44% 44% 5px 5px;
  box-shadow: 0 5px 16px oklch(0.25 0.03 258 / 0.4);
  font: 400 0.64rem/1.15 var(--f-sign);
  text-align: center;
  letter-spacing: 0.06em;
}
.home-pin::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -10px;
  width: 14px; height: 14px;
  margin-left: -7px;
  background: var(--tile);
  border-right: 3px solid var(--paper);
  border-bottom: 3px solid var(--paper);
  border-radius: 0 0 3px 0;
  transform: rotate(45deg);
}

.ring-label {
  position: absolute;
  left: 0; top: 0;
  translate: -50% -50%;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: oklch(0.91 0.03 84);
  color: var(--tile-deep);
  font: 600 0.75rem/1.3 var(--f-body);
  white-space: nowrap;
  pointer-events: none;
}

/* Popup card */
.map-pop {
  position: relative;
  padding: 1.05rem 2.7rem 1.1rem 1.15rem;
  font: 400 0.94rem/1.45 var(--f-body);
  color: var(--ink);
}
.map-pop p { margin: 0; }
.pop-kind { display: flex; align-items: center; gap: 0.4rem; color: var(--c); font-weight: 600; font-size: 0.875rem; }
.pop-kind .cat-icon { width: 1rem; height: 1rem; flex: none; }
.map-pop .pop-name { margin-top: 0.3rem; font: 600 1.28rem/1.18 var(--f-head); text-wrap: balance; }
.map-pop .pop-meta { margin-top: 0.3rem; color: var(--ink-2); }
.map-pop .pop-note {
  margin-top: 0.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: 4px;
  background: var(--sand);
  font-size: 0.9rem;
}
.map-pop .pop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem; margin-top: 0.9rem; }
.map-pop .pop-actions a { color: var(--tile-deep); font-weight: 600; }
.map-pop .pop-actions a.pop-go {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: var(--tile);
  color: var(--paper);
  text-decoration: none;
}
.map-pop .pop-actions a.pop-go:hover { background: var(--tile-deep); }
.pop-close {
  position: absolute;
  top: 0.35rem; right: 0.35rem;
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  padding: 0; border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.pop-close:hover { background: var(--sand); color: var(--ink); }
.pop-close svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Google Maps skin */
.gm-style { font-family: var(--f-body); }
.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 1px 2px oklch(0.25 0.03 258 / 0.12), 0 10px 30px oklch(0.25 0.03 258 / 0.22);
}
.gm-style .gm-style-iw-d { overflow: auto !important; }
.gm-style .gm-style-iw-tc::after { background: var(--paper); }

/* Leaflet skin (fallback map) */
.leaflet-container { font-family: var(--f-body); background: var(--sand); }
.leaflet-tile-pane { filter: saturate(0.7) sepia(0.1); }
.leaflet-popup-content-wrapper { padding: 0; border-radius: 8px; background: var(--paper); box-shadow: 0 10px 30px oklch(0.25 0.03 258 / 0.22); }
.leaflet-popup-tip { background: var(--paper); }
.leaflet-popup-content { margin: 0; }
.leaflet-popup .pop-close { display: none; }
.leaflet-container a.leaflet-popup-close-button { top: 6px; right: 6px; width: 28px; height: 28px; font-size: 22px; color: var(--ink-2); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: start;
}
@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.contact-aside { display: grid; gap: 2rem; }
.tour-call .contact-phone { display: inline-block; margin-top: 1.25rem; font-size: var(--step-3); }
.tour-plan {
  margin-top: 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  background: var(--sand);
  font-weight: 600;
  max-width: 44ch;
}
.tour-tips { margin-top: 1.25rem; color: var(--ink-2); max-width: 46ch; }
.tour-photo { margin-top: 2.5rem; max-width: 36rem; }
.tour-photo img { aspect-ratio: 3 / 2; }

/* Lifestyle photos (stock), set beside the community facts */
.life-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1.75rem;
  max-width: 30rem;
}
.life-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.life-note { margin-top: 0.6rem; }
.contact-aside h2 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.contact-phone { font: 600 var(--step-2)/1.1 var(--f-head); text-decoration: none; }
.contact-aside .hours div { border-bottom-color: var(--line); }
.contact-aside .hours .is-today { color: var(--ink); font-weight: 600; }
.contact-aside .hours .is-today dt::after { color: var(--tile); }

/* ---------- Residents ---------- */

.res-grid { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .res-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.res-option {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.res-option h2 { font-size: var(--step-2); }
.res-option p { color: var(--ink-2); max-width: 44ch; }
.res-option .btn { justify-self: start; margin-top: 0.5rem; }
.emergency {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 1.4rem;
  border-radius: 3px;
  background: var(--navy);
  color: var(--on-dark);
}
.emergency strong { font-size: 1.1rem; }
.emergency a { font-weight: 600; color: var(--paper); }

/* ---------- Motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes unveil {
  from { clip-path: inset(18% 0 0 0); opacity: 0.4; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .page-head .wrap > * {
    animation: rise 0.8s var(--ease-out) both;
  }
  .hero-copy > :nth-child(2), .page-head .wrap > :nth-child(2) { animation-delay: 0.07s; }
  .hero-copy > :nth-child(3), .page-head .wrap > :nth-child(3) { animation-delay: 0.14s; }
  .hero-copy > :nth-child(4), .page-head .wrap > :nth-child(4) { animation-delay: 0.21s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.28s; }
  .hero-photo { animation: unveil 1.1s var(--ease-out) 0.1s both; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
