/* Dolce Vita Apartments
   Brand: Playfair Display (headings, plan names) + Montserrat (body, nav, buttons).
   Palette from the brand guide; deeper tints only where text needs WCAG AA contrast. */

:root {
  color-scheme: light;

  /* Brand palette */
  --ivory: #fbf9f5;
  --white: #ffffff;
  --sand: #e6ded1;
  --charcoal: #30332f;
  --olive: #777b65;
  --gold: #c2a46d;

  /* Accessible tints of the brand colors */
  --olive-ink: #6a6e59;   /* button fill: 5.3:1 with white text */
  --olive-deep: #5a5e4a;  /* hover */
  --gold-ink: #8a6f3a;    /* small gold text on ivory: 4.5:1 */
  --muted: #5e615a;       /* secondary text: 6:1 on ivory */
  --line: #e2dbcf;
  --line-strong: #cfc6b6;
  --on-dark: #fbf9f5;
  --on-dark-2: #c9c4b8;
  --focus: #1f6fd1;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(0.98rem, 0.95rem + 0.15vw, 1.05rem);
  --step-1: clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.85rem, 1.5rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.7rem + 2.8vw, 3.9rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4.5rem, 3rem + 5vw, 7.5rem);

  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgb(48 51 47 / 0.05), 0 12px 32px -14px rgb(48 51 47 / 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  --wrap: 1200px;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgb(119 123 101 / 0.18);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
em, i { font-style: normal; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: #e9dcc2; }

.visually-hidden {
  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: 100;
  background: var(--charcoal); color: var(--ivory);
  padding: 0.75rem 1rem; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 4rem, var(--wrap)); } }

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: var(--space-2);
}
.eyebrow--light { color: var(--gold); }

.h-caps {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--step-1);
}
.h-caps--lg { font-size: var(--step-3); letter-spacing: 0.08em; }

.tagline {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.tagline--sm { font-size: var(--step-1); color: var(--muted); margin-top: 0.75rem; letter-spacing: 0; }

.subtitle { font-size: var(--step-1); color: var(--muted); margin-top: 0.75rem; }
.muted { color: var(--muted); margin-top: var(--space-3); max-width: 50ch; }
.fine { font-size: var(--step--1); color: var(--muted); }
.prose p + p { margin-top: 1.1em; }
.prose { color: var(--muted); max-width: 62ch; }

.section { padding-block: var(--space-6); }
.section-tight { padding-block: var(--space-4) var(--space-6); }
.section--sand { background: var(--sand); }
.section--sand .muted, .section--sand .subtitle, .section--sand .fine { color: #52554e; }

.section-head { max-width: 720px; margin-bottom: var(--space-5); }
.section-head h2 { font-size: var(--step-3); }
.section-head > p:not(.eyebrow):not(.subtitle), .section-head div > p:not(.eyebrow) { margin-top: var(--space-2); color: var(--muted); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-3); }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--olive-ink);
  --btn-fg: var(--white);
  --btn-bd: var(--olive-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 0.8rem/1.2 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}
.btn:hover { --btn-bg: var(--olive-deep); --btn-bd: var(--olive-deep); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--sm { min-height: 44px; padding: 0.6rem 1.2rem; font-size: 0.74rem; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--charcoal); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--charcoal); --btn-fg: var(--ivory); --btn-bd: var(--charcoal); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--charcoal); --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: #d2b882; --btn-bd: #d2b882; }

.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--ivory); --btn-bd: rgb(251 249 245 / 0.45); }
.btn--outline-light:hover { --btn-bg: var(--ivory); --btn-fg: var(--charcoal); --btn-bd: var(--ivory); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-4); }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 500; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--olive-ink); text-decoration: none; min-height: 44px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 200ms var(--ease); }

/* ---------- Announcement + header ---------- */

.announce { background: var(--charcoal); color: var(--on-dark); font-size: var(--step--1); text-align: center; padding: 0.55rem 1rem; }
.announce strong { font-weight: 600; color: var(--gold); }
.announce a { color: var(--white); font-weight: 500; white-space: nowrap; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivory) 94%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--charcoal); }
.brand-mark { width: 44px; height: 44px; flex: none; color: var(--charcoal); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.14em; white-space: nowrap; }
.brand-sub { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-top: 0.35rem; }

.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-list li + li::before { content: ""; width: 1px; height: 14px; background: var(--line-strong); display: inline-block; vertical-align: middle; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  text-decoration: none; font-weight: 500; font-size: 0.86rem; letter-spacing: 0.03em; color: var(--charcoal);
  white-space: nowrap;
  transition: color 200ms var(--ease);
}
@media (max-width: 1180px) { .nav-list a { padding: 0 0.7rem; } }
.nav-list a:hover { color: var(--olive-ink); }
.nav-list a[aria-current="page"] { color: var(--olive-ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.6em; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 0.6rem;
  text-decoration: none; font-weight: 500; font-size: 0.88rem; white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--olive-ink); }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--charcoal); cursor: pointer; align-items: center; justify-content: center;
  touch-action: manipulation;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-close { display: inline-flex; }

@media (max-width: 1120px) { .header-phone .phone-text { display: none; } }
@media (max-width: 960px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 760px) { .header-tour { display: none; } }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: 1fr min(88vw, 380px); visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-scrim { background: rgb(30 32 29 / 0.5); opacity: 0; transition: opacity 250ms var(--ease); border: 0; padding: 0; cursor: pointer; }
.drawer-panel {
  background: var(--ivory); padding: 1.25rem 1.5rem 2rem; display: flex; flex-direction: column; gap: 1.25rem;
  transform: translateX(100%); transition: transform 300ms var(--ease); overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a {
  display: flex; align-items: center; min-height: 56px; text-decoration: none;
  font-family: var(--font-display); font-size: 1.45rem; border-bottom: 1px solid var(--line);
}
.drawer .btn { width: 100%; }
.drawer-contact { color: var(--muted); font-size: var(--step--1); line-height: 1.7; }

/* Persistent mobile contact bar */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr auto; gap: 0.5rem;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--ivory) 96%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn--ghost { padding-inline: 1.1rem; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

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

.home-hero { padding-top: clamp(1rem, 0.5rem + 2vw, 2rem); }
.home-hero-inner { position: relative; }
.home-hero-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); aspect-ratio: 16 / 9; }
.home-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-card {
  position: relative; z-index: 1;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2.4vw, 3rem);
  margin: -3.5rem 0.75rem 0;
  box-shadow: var(--shadow);
}
.home-hero-card .tagline { font-size: var(--step-4); }
.hero-sub { margin-top: var(--space-3); font-size: var(--step-1); color: var(--muted); max-width: 52ch; line-height: 1.6; }
.home-hero-card .btn-row { margin-top: var(--space-4); }
@media (min-width: 900px) {
  .home-hero-media { aspect-ratio: 21 / 10; }
  .home-hero-card { position: absolute; left: 2.5rem; bottom: 2.5rem; margin: 0; max-width: 620px; }
}
@media (max-width: 899px) {
  .home-hero-media { aspect-ratio: 4 / 3; }
}

/* Highlights strip */
.highlights { padding-block: var(--space-4) 0; }
.highlight-list {
  list-style: none; padding: 0; margin-block: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  border-block: 1px solid var(--line); padding-block: 1.4rem;
}
@media (min-width: 900px) { .highlight-list { grid-template-columns: repeat(4, 1fr); } }
.highlight-list li { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; font-size: 0.92rem; }
.highlight-list svg { width: 26px; height: 26px; color: var(--gold-ink); flex: none; }

/* Welcome */
.welcome-grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .welcome-grid { grid-template-columns: 1.2fr 1fr; gap: var(--space-6); } }
.welcome-copy .prose { margin-top: var(--space-4); }
.welcome-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.welcome-media img { width: 100%; height: 100%; object-fit: cover; }
.welcome .h-caps--lg::after { content: ""; display: block; width: 56px; height: 2px; background: var(--gold); margin-top: 1.1rem; }

/* Feature cards (home) */
.feature-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature-card {
  display: flex; flex-direction: column; background: var(--ivory); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: var(--charcoal);
  transition: box-shadow 250ms var(--ease), transform 250ms var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.feature-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.feature-card:hover img { transform: scale(1.03); }
.feature-body { padding: 1.75rem 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.feature-body > p:first-of-type { color: var(--muted); }
.feature-list { font-size: 0.9rem; color: var(--muted); }
.feature-body .link-arrow { margin-top: auto; }
.feature-card:hover .link-arrow svg, .collection-card:hover .link-arrow svg { transform: translateX(3px); }

/* Collection cards (home floor plan preview) */
.collection-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.collection-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--charcoal);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow 250ms var(--ease), transform 250ms var(--ease);
}
.collection-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.collection-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.collection-card img { width: 100%; height: 100%; object-fit: cover; }
.collection-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.collection-beds { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }
.collection-card h3 { font-size: var(--step-2); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.collection-meta { color: var(--muted); font-size: 0.9rem; }
.collection-price { margin-top: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.92rem; }
.collection-price strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.collection-body .link-arrow { margin-top: 0.4rem; }

/* ---------- Inner page hero ---------- */

.page-hero { padding-block: var(--space-5) var(--space-4); max-width: none; }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.page-hero > p:not(.eyebrow) { margin-top: var(--space-3); color: var(--muted); font-size: var(--step-1); max-width: 62ch; line-height: 1.6; }
.page-banner { margin-block: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) { .page-banner { aspect-ratio: 21 / 8; } }

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

.plan-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-4); }
.chip {
  min-height: 44px; padding: 0 1.15rem; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--charcoal);
  font: 500 0.82rem var(--font-body); letter-spacing: 0.04em; cursor: pointer; touch-action: manipulation;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.chip:hover { border-color: var(--olive); }
.chip[aria-pressed="true"] { background: var(--olive-ink); border-color: var(--olive-ink); color: var(--white); }
.chip .count { color: var(--muted); margin-left: 0.35rem; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .count { color: rgb(255 255 255 / 0.75); }

.plan-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.plan-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow 250ms var(--ease);
}
.plan-card:hover { box-shadow: var(--shadow); }
.plan-card[hidden] { display: none; }
.plan-image { display: block; aspect-ratio: 4 / 3; background: var(--white); border-bottom: 1px solid var(--line); }
.plan-image img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.plan-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.plan-name { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); text-transform: uppercase; letter-spacing: 0.1em; }
.plan-name a { text-decoration: none; }
.plan-name a:hover { color: var(--olive-ink); }
.plan-name--lg { font-size: var(--step-3); }
.plan-note { color: var(--gold-ink); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; }
.plan-specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
.plan-specs li { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.plan-specs svg { width: 18px; height: 18px; color: var(--olive); flex: none; }
.plan-price { padding-top: 0.9rem; border-top: 1px solid var(--line); margin-top: auto; color: var(--muted); font-size: 0.9rem; }
.plan-price strong { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; color: var(--charcoal); font-variant-numeric: lining-nums tabular-nums; margin-right: 0.25rem; }
.plan-price--lg strong { font-size: var(--step-3); }
.plan-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.plan-actions .btn { flex: 1 1 auto; }
.plans-footnote { margin-top: var(--space-4); max-width: 75ch; }

/* Plan detail page */
.plan-detail { padding-block: var(--space-4) var(--space-6); }
.breadcrumb ol { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-strong); }
.breadcrumb a { color: var(--olive-ink); }
.plan-detail-grid { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 960px) { .plan-detail-grid { grid-template-columns: 1.35fr 1fr; } }
.plan-detail-image {
  position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.plan-detail-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 3%; }
.plan-detail-info { display: flex; flex-direction: column; gap: 1.1rem; }
.plan-detail-info .plan-price { margin-top: 0.5rem; }
.plan-detail-info .plan-actions { margin-top: 0.5rem; }
.other-plans { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.other-plans h2 { font-size: 0.95rem; margin-bottom: 0.75rem; }
.other-plans ul { list-style: none; margin: 0; padding: 0; }
.other-plans a { display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; align-items: center; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.other-plans a span:first-child { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; }
.other-plans a span:last-child { color: var(--muted); }
.other-plans a:hover span:first-child { color: var(--olive-ink); }
.tour-frame { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); background: var(--charcoal); }
.tour-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .tour-frame { aspect-ratio: 4 / 5; } }
.tour-fallback { margin-top: 0.75rem; }
.tour-fallback a { color: var(--olive-ink); }

/* Plan card extras: tour tag + live availability */
.plan-card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem 0.75rem; flex-wrap: wrap; }
.plan-tag {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0 0.85rem;
  border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--olive-ink);
  font: 500 0.68rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.plan-tag:hover { background: var(--sand); border-color: var(--olive); }
.plan-tag svg { width: 15px; height: 15px; }
.plan-availability { min-height: 1.5em; font-size: 0.86rem; font-weight: 500; }
.plan-availability:empty { display: none; }
.plan-availability a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 32px; color: var(--olive-ink); text-decoration: none; }
.plan-availability a:hover { text-decoration: underline; }
.plan-availability.is-none { color: var(--muted); font-weight: 400; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5d7f45; box-shadow: 0 0 0 3px rgb(93 127 69 / 0.18); flex: none; }

/* Available units (plan pages) */
.units-section { padding-block: var(--space-5) var(--space-6); }
.units-section .section-head { margin-bottom: var(--space-4); }
.units-status { color: var(--muted); }
.units-status a { color: var(--olive-ink); }
.unit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.unit-row { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem 1.5rem; align-items: center; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .unit-row { grid-template-columns: 1.1fr 0.8fr auto; } }
.unit-name { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.08em; }
.unit-when { font-size: 0.86rem; color: var(--muted); margin-top: 0.15rem; }
.unit-when.is-now { color: var(--olive-ink); font-weight: 600; }
.unit-meta { font-size: 0.82rem; color: var(--muted); }
.unit-rent { color: var(--muted); font-size: 0.88rem; text-align: right; }
.unit-rent strong { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; color: var(--charcoal); font-variant-numeric: lining-nums tabular-nums; margin-right: 0.2rem; }
@media (min-width: 900px) { .unit-rent { text-align: left; } }
.unit-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
@media (min-width: 900px) { .unit-actions { grid-column: auto; justify-content: flex-end; } }
.unit-link { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 44px; padding: 0 0.4rem; font-size: 0.85rem; color: var(--olive-ink); }
.unit-link svg { width: 14px; height: 14px; }
.units-empty { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.units-empty .btn-row { margin-top: 1rem; }
.units-note { margin-top: 1rem; }

.zoom-hint {
  position: absolute; right: 0.75rem; bottom: 0.75rem; display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.85rem;
  font: 500 0.72rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal);
}
.zoom-hint svg { width: 14px; height: 14px; }

/* Site plan */
.split { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
.split h2 { font-size: var(--step-3); }
.siteplan-btn { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); cursor: zoom-in; }
.siteplan-btn img { width: 100%; aspect-ratio: 2000 / 1573; object-fit: cover; }

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

.photo-pair { display: grid; gap: 1rem; margin-bottom: var(--space-5); }
@media (min-width: 720px) { .photo-pair { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.photo-pair figure { margin: 0; }
.photo-pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
.photo-pair figcaption { margin-top: 0.7rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.amenity-columns { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .amenity-columns { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }
.amenity-group { border-top: 2px solid var(--gold); padding-top: 1.5rem; }
.amenity-group > svg { width: 28px; height: 28px; color: var(--gold-ink); margin-bottom: 1rem; }
.amenity-group h3 { font-size: 1rem; margin-bottom: 1rem; }
.amenity-group ul { list-style: none; margin: 0; padding: 0; }
.amenity-group li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.amenity-note { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1.25rem; font-size: 0.88rem; color: var(--muted); }
.amenity-note svg { width: 20px; height: 20px; flex: none; color: var(--olive); margin-top: 0.15rem; }
.amenity-note a { color: var(--olive-ink); }

.residences-grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .residences-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
.check-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: 0.15rem 2rem; }
@media (min-width: 560px) { .check-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) and (max-width: 1199px) { .check-list { grid-template-columns: 1fr; } }
.check-list li { display: flex; gap: 0.7rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid rgb(48 51 47 / 0.12); }
.check-list svg { width: 20px; height: 20px; color: var(--olive-ink); flex: none; }
.photo-stack { display: grid; gap: 1rem; }
.photo-stack figure { margin: 0; }
.photo-stack img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
@media (min-width: 900px) {
  .photo-stack { grid-template-columns: 1fr 1fr; }
  .photo-stack img { aspect-ratio: 3 / 4; }
  .photo-stack figure:last-child { margin-top: 3rem; }
}

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

.gallery-filters { position: sticky; top: var(--header-h); z-index: 10; background: var(--ivory); padding-block: 0.75rem; margin-top: var(--space-4); border-bottom: 1px solid var(--line); }
.gallery-filters .plan-filters { margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gallery-filters .plan-filters::-webkit-scrollbar { display: none; }
.gallery-filters .chip { flex: none; }
.gallery-section { margin-bottom: var(--space-5); content-visibility: auto; contain-intrinsic-size: auto 900px; }
.gallery-section[hidden] { display: none; }
.gallery-section h2 { font-size: var(--step-1); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; margin-bottom: var(--space-3); }
.gallery-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.gallery-grid button { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--sand); cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.gallery-grid button:hover img { transform: scale(1.04); }

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

.contact-grid { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-6); } }
.contact-details { margin: var(--space-3) 0 0; display: grid; gap: 1.4rem; }
.contact-details div { display: grid; grid-template-columns: 44px 1fr; gap: 0 1rem; }
.contact-details dt { grid-row: span 2; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--olive-ink); }
.contact-details dt svg { width: 20px; height: 20px; }
.contact-details dd { margin: 0; }
.contact-details .label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.contact-details a { text-decoration-color: var(--line-strong); }
.contact-details a:hover { text-decoration-color: var(--charcoal); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 1rem; font-variant-numeric: tabular-nums; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: var(--step-2); }
.form-card > p { color: var(--muted); margin-top: 0.5rem; font-size: 0.95rem; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: var(--space-3); }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 500; font-size: 0.85rem; letter-spacing: 0.02em; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  font: 400 1rem var(--font-body); color: var(--charcoal);
  background: var(--ivory); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--olive); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(31 111 209 / 0.2); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: 0.85rem; }
.field-error:empty { display: none; }
.form-actions { margin-top: var(--space-3); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-actions .btn { min-width: 200px; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius); font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #e8ece0; color: #3d4530; }
.form-status.is-error { background: #fbeae7; color: #8c1d18; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.place-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: 1.1rem; }
.place-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.place-icon { width: 44px; height: 44px; border-radius: 999px; background: var(--ivory); display: grid; place-items: center; color: var(--olive-ink); }
.place-icon svg { width: 20px; height: 20px; }
.place-list strong { display: block; font-weight: 600; }
.place-list span span { color: #52554e; font-size: 0.92rem; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); background: var(--white); aspect-ratio: 4 / 3.4; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- CTA band + footer ---------- */

.cta-band { background: var(--charcoal); color: var(--on-dark); padding-block: var(--space-5); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.cta-band h2 { font-size: var(--step-3); }
.cta-copy { color: var(--on-dark-2); margin-top: 0.75rem; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band :focus-visible, .site-footer :focus-visible { outline-color: #9cc3ff; }

.site-footer { background: #262925; color: var(--on-dark-2); padding-block: var(--space-5) var(--space-4); font-size: 0.92rem; border-top: 1px solid rgb(194 164 109 / 0.35); }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer .brand, .site-footer .brand-mark { color: var(--on-dark); }
.site-footer .brand-sub { color: var(--on-dark-2); }
.footer-tagline { margin-top: 1rem; color: var(--gold); }
.site-footer h2 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark); font-weight: 600; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; display: inline-block; padding-block: 0.3rem; overflow-wrap: anywhere; }
.contact-details dd, .drawer-contact { overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgb(255 255 255 / 0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.82rem; }
.eho { display: inline-flex; align-items: center; gap: 0.5rem; }
.eho svg { width: 22px; height: 22px; }

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

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(26 28 25 / 0.97); color: var(--white); overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgb(26 28 25 / 0.9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; gap: 1rem; }
.lb-count { font-variant-numeric: tabular-nums; color: rgb(255 255 255 / 0.75); font-size: 0.9rem; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(0.5rem, 4vw, 5rem); }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 9.5rem); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb-stage.is-plan img { background: var(--white); padding: 2%; }
.lb-caption { text-align: center; padding: 0.9rem 1rem 1.25rem; color: rgb(255 255 255 / 0.85); font-size: 0.95rem; min-height: 3.2rem; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.06); color: var(--white); display: inline-grid; place-items: center; cursor: pointer;
  touch-action: manipulation; transition: background-color 200ms var(--ease);
}
.icon-btn:hover { background: rgb(255 255 255 / 0.18); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:focus-visible { outline-color: #9cc3ff; }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next, .lightbox.is-single .lb-count { display: none; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: -3.75rem; translate: none; }
  .lb-stage { padding: 0; }
}

/* ---------- 404 ---------- */

.notfound { min-height: 55vh; display: grid; place-items: center; text-align: center; padding-block: var(--space-6); }
.notfound h1 { font-size: var(--step-4); }
.notfound p:not(.eyebrow) { margin: var(--space-3) auto 0; color: var(--muted); max-width: 44ch; }

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

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .announce, .site-header, .drawer, .mobile-cta, .map-frame, .form-card, .lightbox, .cta-band { display: none !important; }
}
