:root {
  --stone: #f3eee7;
  --paper: #fdfaf6;
  --line: #e6e2db;
  --charcoal: #26231f;
  --muted: #6f6860;
  /* Olive and terracotta are one step deeper than the original brand values so
     they clear WCAG AA (4.5:1) for small text on both paper and stone. */
  --olive: #5f6453;
  --terracotta: #985838;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;

  /* ── Label system: three roles, one weight. Nothing else is uppercase. ──── */
  --text-caption: 0.6875rem;                        /* 11px · micro: data labels, captions, form fields */
  --text-eyebrow: 0.75rem;                          /* 12px · the one branded section kicker */
  --text-label: 0.8125rem;                          /* 13px · small data labels */
  --text-nav: 0.9375rem;                            /* 15px · nav, buttons, links (sentence case) */
  --tracking-label: 0.1em;
  --tracking-eyebrow: 0.16em;
  --weight-label: 600;

  /* ── Body ramp ─────────────────────────────────────────────────────────── */
  --text-body: 1rem;                                /* 16px */
  --text-lead: clamp(1.25rem, 1.6vw, 1.5rem);       /* 20–24px · italic accent / lead */

  /* ── Serif ramp: six steps, each a clear jump from the last ────────────── */
  --serif-sm: clamp(1.25rem, 1.7vw, 1.6rem);        /* 20–26px · sub-headings, FAQ questions */
  --serif-md: clamp(1.5rem, 2.2vw, 2.05rem);        /* 24–33px · panel titles, ledes */
  --serif-lg: clamp(1.75rem, 3.4vw, 3rem);          /* 28–48px · codas, interludes, outdoor list */
  --serif-xl: clamp(2.25rem, 4.5vw, 3.5rem);        /* 36–56px · hero headline */
  --serif-2xl: clamp(2.375rem, 5vw, 4.5rem);        /* 38–72px · section headings */
  --serif-num: clamp(3rem, 5.6vw, 4rem);            /* 48–64px · display numerals, kept under the headings */
  --text-wordmark: clamp(1.5rem, 2.2vw, 1.875rem);  /* 24–30px · brand wordmark */
  --text-display: var(--serif-xl);                  /* legacy alias */

  /* ── Measures: two, site-wide ──────────────────────────────────────────── */
  --measure-wide: 1296px;
  --measure-narrow: 960px;
  --gutter: clamp(20px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* The WebP <picture> wrappers must not become layout boxes of their own —
   every existing rule targets the <img> as a direct child of its container. */
picture {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px var(--gutter);
  color: var(--white);
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, padding 220ms ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 22, 18, 0.32), rgba(24, 22, 18, 0));
  z-index: -1;
  pointer-events: none;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(253, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
  backdrop-filter: blur(18px);
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-header.is-scrolled::before,
.site-header.is-open::before {
  opacity: 0;
}

.brand {
  font-family: var(--serif);
  font-size: var(--text-wordmark);
  font-weight: 600;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 44px;
  font-size: var(--text-nav);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav a:not(.nav-cta) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  opacity: 0.86;
}

.nav-cta {
  border: 1px solid currentColor;
  padding: 11px 16px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

/* ─── Hero entrance animation ─────────────────────────────────────────────── */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Hero section ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(88px, 12vh, 130px) var(--gutter) clamp(70px, 10vh, 100px);
  color: var(--white);
}

.hero-image,
.hero-video,
.hero-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 62% center;
}

/* The aerial clip fades in over its own still once it can play; the still
   stays underneath as the poster and as the fallback everywhere else. */
.hero-video {
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1400ms ease;
  pointer-events: none;
}

.hero-video.is-playing {
  opacity: 1;
}

/* No Ken Burns drift under a clip that is about to replace the still. */
.hero.has-video .hero-image {
  animation: none;
  transform: none;
}

.hero-vignette {
  background:
    linear-gradient(90deg, rgba(20, 18, 15, 0.80), rgba(20, 18, 15, 0.46) 46%, rgba(20, 18, 15, 0.12)),
    linear-gradient(0deg, rgba(20, 18, 15, 0.60), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: var(--text-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--white);
  animation: heroReveal 700ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

.hero-rule {
  width: 36px;
  height: 1.5px;
  border: none;
  background: var(--terracotta);
  margin: 26px 0;
  animation: heroReveal 600ms cubic-bezier(0.22, 1, 0.36, 1) 230ms both;
}

.hero-facts {
  display: grid;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  animation: heroReveal 700ms cubic-bezier(0.22, 1, 0.36, 1) 290ms both;
}

.hero-details {
  display: grid;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  animation: heroReveal 700ms cubic-bezier(0.22, 1, 0.36, 1) 400ms both;
}

.hero-coda-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-lead);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 2px;
}

/* ─── Hero meta strip ──────────────────────────────────────────────────────── */
.hero-meta-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 18px var(--gutter) 26px;
  background: linear-gradient(0deg, rgba(20, 18, 15, 0.55), rgba(20, 18, 15, 0));
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-nav);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(253, 250, 246, 0.88);
}

.hero-meta-sep {
  color: rgba(253, 250, 246, 0.28);
  font-size: var(--text-label);
  letter-spacing: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.eyebrow.dark,
.section-kicker {
  color: var(--olive);
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.02;
}

h2 {
  font-size: var(--serif-2xl);
  text-wrap: balance;
}

p {
  margin: 0;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 32px;
  animation: heroReveal 600ms cubic-bezier(0.22, 1, 0.36, 1) 520ms both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 16px 24px;
  border: 1px solid transparent;
  font-size: var(--text-nav);
  font-weight: 500;
  letter-spacing: 0.015em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button-light {
  background: rgba(253, 250, 246, 0.96);
  color: var(--charcoal);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 40px rgba(24, 22, 18, 0.14);
}

.button-light:hover,
.button-dark:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
  transform: translateY(-1px);
}

.button-dark {
  background: var(--charcoal);
  color: var(--paper);
  box-shadow: 0 16px 38px rgba(38, 35, 31, 0.12);
}

.text-link {
  justify-self: start;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-bottom: 3px;
  font-size: var(--text-nav);
  font-weight: 500;
  letter-spacing: 0.015em;
  border-bottom: 1px solid currentColor;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link:hover {
  color: var(--terracotta);
}


.section {
  padding: clamp(84px, 10vw, 132px) var(--gutter);
}

/* Two measures, used everywhere. When a measure sits on a .section the gutter
   is added back, so the *content* lands on the same edges as every other
   section rather than being inset twice. */
.section.faq,
.section.guide,
.section.book,
.final-invite {
  margin-inline: auto;
}

.section.guide,
.section.book {
  max-width: calc(var(--measure-wide) + 2 * var(--gutter));
}

.section.faq,
.final-invite {
  max-width: calc(var(--measure-narrow) + 2 * var(--gutter));
}

.intro {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 28px;
  color: var(--muted);
  font-size: 18px;
}

.stats {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  padding: 1px;
}

.stats-heading {
  display: grid;
  align-content: end;
  gap: 20px;
  padding: 32px 24px 32px var(--gutter);
  background: linear-gradient(180deg, rgba(243, 238, 231, 0.7), rgba(243, 238, 231, 1));
}

.stat {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--stone);
  text-align: center;
}

.stats-heading h2 {
  font-size: var(--serif-md);
  line-height: 1.12;
}

.stat strong {
  font-family: var(--serif);
  font-size: var(--serif-num);
  font-weight: 500;
  line-height: 1.05; /* 0.9 clipped the superscript in 400m² */
}

.stat span {
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.stat-copy {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 28px;
  text-align: left;
  min-height: 0;
  padding: 32px 24px 32px var(--gutter);
}

.stat-copy strong {
  font-size: var(--serif-lg);
}

.stat-copy span {
  margin-top: 0;
  max-width: 62ch;
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  background: var(--paper);
}

.split-media img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.split-reverse {
  grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1fr);
}

.split-reverse .split-media {
  order: 2;
}

.split-reverse .split-content {
  order: 1;
}

.split-media img.crop-left {
  object-position: 8% center;
}

.split-media img.frame-full {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.split-content {
  display: grid;
  gap: 24px;
}

.split-content p:not(.eyebrow),
.interiors-copy p:not(.eyebrow),
.booking-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

/* ─── Four section shapes ──────────────────────────────────────────────────
   The garden, rooms, pool and quiet-corners sections used to share one module
   (heading + paragraph + four-item hairline list, image alternating left and
   right). Four in a row read as a metronome rather than a rhythm, so each now
   has its own shape and the photography is allowed to reach the page edge.
   ────────────────────────────────────────────────────────────────────────── */

/* Shape 1 — image full-bleed, copy beneath in two columns */
.bleed-section {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  padding-block: clamp(84px, 10vw, 132px);
  background: var(--paper);
}

.bleed-media {
  margin: 0;
}

.bleed-media img {
  width: 100%;
  height: clamp(340px, 56vh, 620px);
  object-fit: cover;
}

.bleed-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  padding-inline: var(--gutter);
}

.bleed-copy h2 {
  margin: 0;
  max-width: 15ch;
}

.bleed-copy-body {
  display: grid;
  gap: 22px;
}

/* Shape 2 — tall portrait image running off the right edge */
.edge-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding: clamp(84px, 10vw, 132px) 0 clamp(84px, 10vw, 132px) var(--gutter);
  background: var(--paper);
}

.edge-copy {
  display: grid;
  gap: 24px;
  max-width: 46ch;
}

.edge-copy h2 {
  max-width: 13ch;
  text-wrap: balance;
}

.edge-media {
  margin: 0;
}

.edge-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Shape 3 — a short lede over a pair of images */
.duo-section {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  background: var(--paper);
}

.duo-copy {
  display: grid;
  gap: 22px;
  max-width: 58ch;
}

.duo-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.5vw, 22px);
}

.duo-media figure {
  margin: 0;
  aspect-ratio: 3 / 4;
}

.duo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo-media figure:last-child img {
  object-position: center 58%;
}

/* Shape 4 — text-led, one quiet inset image held to a narrow column */
.quiet-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  background: var(--paper);
}

.quiet-copy {
  display: grid;
  gap: 22px;
  max-width: 44ch;
}

.quiet-copy h2 {
  max-width: 12ch;
  text-wrap: balance;
}

.quiet-media {
  margin: 0;
}

.quiet-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.feature-list {
  display: grid;
  gap: 15px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  color: var(--charcoal);
  text-wrap: pretty;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--terracotta);
  opacity: 0.55;
}

.interiors {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: end;
  background: var(--stone);
}

.interiors-copy {
  display: grid;
  gap: 24px;
}

.interiors img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.outdoor {
  display: grid;
  gap: clamp(36px, 7vw, 96px);
  background: var(--paper);
}

.outdoor h2 {
  max-width: 20ch;
  text-wrap: balance;
}

.outdoor-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.outdoor-list p {
  background: var(--paper);
  padding: 28px 0;
  font-family: var(--serif);
  font-size: var(--serif-lg);
  line-height: 1;
}

/* ─── Gallery section ──────────────────────────────────────────────────────── */
.gallery {
  background: var(--paper);
}

.gallery-heading {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin: 0 0 clamp(40px, 5vw, 68px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 26px);
}

.gallery-grid .gallery-item {
  aspect-ratio: 3 / 2;
}

.gallery-item {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--stone);
  cursor: pointer;
  overflow: hidden;
  grid-row: span 1;
  grid-column: span 1;
}

.gallery-item.gallery-wide {
  grid-column: span 2;
  aspect-ratio: 3 / 1.32;
}

.gallery-item.gallery-tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 600ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(24, 22, 18, 0.18));
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1.04);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ─── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 64px);
  background: rgba(18, 16, 13, 0.94);
  animation: lightboxFade 240ms ease both;
}

.lightbox[hidden] {
  display: none;
}

@keyframes lightboxFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-figure {
  margin: 0;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--sans);
  font-size: var(--text-nav);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.lightbox-close {
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  width: 46px;
  height: 46px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}

.lightbox-prev {
  left: clamp(12px, 3vw, 40px);
}

.lightbox-next {
  right: clamp(12px, 3vw, 40px);
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.location {
  max-width: none;
  margin: 0 auto;
  scroll-margin-top: 96px;
}

.getting-here {
  display: grid;
  gap: clamp(40px, 6vw, 84px);
  background: var(--paper);
}

/* --- Intro copy --- */
.getting-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.getting-copy h2 {
  text-wrap: balance;
}

.getting-lede {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: var(--serif-md);
  font-weight: 500;
  line-height: 1.2;
  color: var(--olive);
}

.getting-intro {
  max-width: 60ch;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  text-wrap: pretty;
}

/* --- Three key metrics --- */
.getting-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 80px);
  width: min(100%, var(--measure-narrow));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.getting-metric {
  position: relative;
  text-align: center;
}

.getting-metric + .getting-metric::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: clamp(-40px, -2.5vw, -14px);
  width: 1px;
  background: var(--line);
}

.getting-metric dt {
  font-family: var(--serif);
  font-size: var(--serif-num);
  font-weight: 500;
  line-height: 0.92;
  color: var(--charcoal);
}

.getting-metric dd {
  margin: 16px auto 0;
  max-width: 24ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.getting-metric-name {
  display: block;
  margin-bottom: 8px;
  color: var(--olive);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* --- Illustrated estate map --- */
.estate-map {
  width: min(100%, var(--measure-narrow));
  margin: 0 auto;
}

.estate-map-canvas {
  position: relative;
  width: 100%;
  height: clamp(550px, 52vw, 640px);
  background: var(--stone);
  border: 1px solid var(--line);
}

/* Shown only if the interactive map can't initialise (e.g. no WebGL);
   MapLibre's own canvas sits above this and covers it on success. */
.estate-map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  text-align: center;
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  background: radial-gradient(120% 90% at 50% 8%, var(--paper) 0%, var(--stone) 70%);
}

/* MapLibre chrome, tuned to the warm-stone palette */
.estate-map-canvas .maplibregl-ctrl-group {
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(38, 35, 31, 0.08);
  opacity: 0;
  transition: opacity 260ms ease;
}

/* The controls are interface, not scenery — they arrive when reached for. */
.estate-map-canvas:hover .maplibregl-ctrl-group,
.estate-map-canvas:focus-within .maplibregl-ctrl-group {
  opacity: 1;
}

/* Positron is a cool grey; warm it toward the stone palette so the map sits
   in the page rather than on top of it. */
.estate-map-canvas .maplibregl-canvas-container canvas {
  filter: sepia(0.16) saturate(0.82) brightness(1.03) contrast(0.96);
}

.estate-map-canvas .maplibregl-ctrl-attrib {
  opacity: 0.5;
  transition: opacity 260ms ease;
}

.estate-map-canvas:hover .maplibregl-ctrl-attrib,
.estate-map-canvas:focus-within .maplibregl-ctrl-attrib {
  opacity: 1;
}

.estate-map-canvas .maplibregl-ctrl-group button + button {
  border-top: 1px solid var(--line);
}

.estate-map-canvas .maplibregl-ctrl-attrib {
  background: rgba(253, 250, 246, 0.82);
  font-family: var(--sans);
}

/* Casa da Fortuna marker */
/* The cooperative-gesture hint is necessary (it keeps page scroll working over
   the map) but it should read as a whisper, not a banner across the frame. */
.estate-map-canvas .maplibregl-cooperative-gesture-screen {
  background: rgba(20, 18, 15, 0.34);
  font-family: var(--sans);
  font-size: var(--text-label);
  letter-spacing: 0.01em;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.estate-map-canvas .maplibregl-cooperative-gesture-screen .maplibregl-desktop-message,
.estate-map-canvas .maplibregl-cooperative-gesture-screen .maplibregl-mobile-message {
  font-size: var(--text-label);
  font-weight: 400;
}

.estate-map-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px rgba(165, 101, 67, 0.5), 0 6px 16px rgba(38, 35, 31, 0.28);
  cursor: pointer;
}

.maplibregl-popup-content {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(38, 35, 31, 0.14);
  font-family: var(--sans);
}

.maplibregl-popup-content strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--charcoal);
}

.maplibregl-popup-content span {
  color: var(--olive);
  font-size: var(--text-caption);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.maplibregl-popup-tip {
  border-top-color: var(--paper) !important;
}

.estate-map-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.estate-map-caption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--charcoal);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: var(--text-nav);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 200ms ease, color 200ms ease;
}

.estate-map-caption a:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

/* --- Four-column arrival row --- */
.arrival-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
  width: min(100%, var(--measure-narrow));
  margin: 0 auto;
}

.arrival-details div {
  display: grid;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--charcoal);
}

.arrival-details dt {
  color: var(--olive);
  font-size: var(--text-caption);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.arrival-details dd {
  margin: 0;
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

/* --- Closing statement --- */
.getting-coda {
  margin: clamp(8px, 2vw, 24px) auto 0;
  text-align: center;
  font-family: var(--serif);
  font-size: var(--serif-lg);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  text-wrap: balance;
}

.final-invite h2 {
  text-wrap: balance;
}

.final-invite {
  text-align: center;
  padding-top: clamp(78px, 11vw, 154px);
  padding-bottom: clamp(78px, 11vw, 154px);
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  background: var(--stone);
  border-top: 1px solid var(--line);
}

.booking .booking-assurances {
  margin-top: 0;
}

/* grid items stretch by default — the CTA should be its own width */
.booking-copy .button {
  justify-self: start;
}

.booking-copy {
  display: grid;
  gap: 24px;
  align-content: start;
}

/* The reassurances used to trail the submit button, leaving a 617px void
   beside the form. They answer the hesitation, so they belong here. */
.booking-assurances {
  display: grid;
  gap: 0;
  margin-top: clamp(12px, 2vw, 24px);
}

.booking-assurance {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.booking-assurance:last-child {
  border-bottom: 1px solid var(--line);
}

.booking-assurance dt {
  font-family: var(--serif);
  font-size: var(--serif-sm);
  font-weight: 600;
  line-height: 1.2;
}

.booking-assurance dd {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.inquiry-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(253, 250, 246, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(38, 35, 31, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

button,
select {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--charcoal);
  font: inherit;
  padding: 15px 16px;
  border-radius: 0;
}

textarea {
  resize: vertical;
}

select {
  width: 100%;
  padding: 15px 44px 15px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2326231f' stroke-width='1.4'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E")
    no-repeat right 16px center / 12px 8px,
    rgba(255, 255, 255, 0.88);
  color: var(--charcoal);
  appearance: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 160ms ease;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(165, 101, 67, 0.28);
  border-color: var(--terracotta);
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.form-success {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(111, 116, 98, 0.35);
  background: rgba(111, 116, 98, 0.08);
  color: var(--charcoal);
}

.form-success[hidden] {
  display: none;
}

.form-success span {
  color: var(--muted);
}

.form-success a {
  border-bottom: 1px solid currentColor;
}

.footer {
  padding: clamp(56px, 7vw, 92px) clamp(20px, 5vw, 72px) 28px;
  background: #1F1D1A;
  color: var(--paper);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.72fr) minmax(0, 0.8fr);
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
}

/* Between the 860px stack and roughly 1000px the four footer columns could not
   fit their content and pushed the whole document into a horizontal scroll. */
@media (max-width: 1000px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.footer-kicker {
  color: rgba(253, 250, 246, 0.7);
  font-size: var(--text-nav);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.footer strong {
  font-family: var(--serif);
  font-size: var(--serif-lg);
  font-weight: 500;
  line-height: 1.02;
  white-space: nowrap;
}

.footer-brand p:not(.footer-kicker) {
  max-width: 46ch;
  color: rgba(253, 250, 246, 0.74);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
}

.footer-contact,
.footer-cta {
  display: grid;
  gap: 18px;
}

.footer address {
  color: rgba(253, 250, 246, 0.72);
  font-size: 14px;
  font-style: normal;
  line-height: 1.72;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.whatsapp-link:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.whatsapp-cta {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  max-width: 24ch;
  margin-bottom: 14px;
}

.whatsapp-link svg {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 24px;
  font-size: var(--text-nav);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.footer-nav a {
  width: fit-content;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: rgba(253, 250, 246, 0.78);
  transition: color 180ms ease, transform 180ms ease;
}

.footer-nav a:hover {
  color: var(--paper);
  transform: translateX(3px);
}

.footer-cta {
  justify-items: start;
  padding-top: 4px;
}

.footer-cta span {
  color: rgba(253, 250, 246, 0.7);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(50px, 7vw, 86px);
  padding-top: 22px;
  border-top: 1px solid rgba(253, 250, 246, 0.16);
  color: rgba(253, 250, 246, 0.58);
  font-size: 13px;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(253, 250, 246, 0.78);
  font-weight: var(--weight-label);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .hero-video {
    display: none;
  }

  .whatsapp-link,
  .footer-nav a {
    transition: color 180ms ease;
  }

  .whatsapp-link:hover,
  .footer-nav a:hover {
    transform: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 18px 20px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 22;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 21;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    background: var(--paper);
    color: var(--charcoal);
    padding: 88px 26px 34px;
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .site-header.is-open .nav {
    transform: translateX(0);
  }

  .nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 18px;
    text-align: center;
    border: 1px solid var(--charcoal);
  }

  .hero {
    min-height: 100svh;
    padding: 100px 20px clamp(60px, 9vh, 90px);
  }

  .hero-video {
    display: none;
  }

  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(24, 22, 18, 0.78), rgba(24, 22, 18, 0.42) 55%, rgba(24, 22, 18, 0.14) 85%),
      linear-gradient(0deg, rgba(24, 22, 18, 0.58), transparent 46%);
  }

  .intro-grid,
  .split,
  .interiors,
  .outdoor,
  .booking {
    grid-template-columns: 1fr;
  }

  /* The four section shapes collapse to a single column; the bleed and edge
     shapes keep their full-width photography, which is the point of them. */
  .bleed-copy {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .bleed-copy h2 {
    max-width: none;
  }

  .edge-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-right: 0;
    padding-left: 0;
  }

  .edge-copy {
    max-width: none;
    padding-inline: var(--gutter);
  }

  .edge-media img {
    aspect-ratio: 4 / 3;
  }

  .quiet-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .quiet-copy {
    max-width: none;
  }

  .quiet-media img {
    aspect-ratio: 3 / 2;
  }

  .split-reverse .split-media {
    order: 1;
  }

  .split-reverse .split-content {
    order: 2;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stats-heading {
    grid-column: 1 / -1;
  }

  .stat {
    min-height: 160px;
  }

  .interiors {
    align-items: start;
  }

  .outdoor-list p {
    padding: 20px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(150px, 26vw, 230px);
  }

  .gallery-item.gallery-wide {
    grid-column: span 2;
  }

  .gallery-item.gallery-tall {
    grid-row: span 1;
  }

  .getting-here {
    gap: clamp(36px, 8vw, 56px);
  }

  .estate-map {
    width: 100%;
  }

  .arrival-details {
    grid-template-columns: 1fr 1fr;
  }

  .final-invite {
    text-align: left;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .duo-media {
    grid-template-columns: 1fr;
  }

  .duo-media img,
  .duo-media figure:last-child img {
    aspect-ratio: 4 / 3;
  }

  .bleed-media img {
    height: clamp(280px, 52vh, 420px);
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: 48px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    aspect-ratio: 3 / 2;
  }

  h2 {
    font-size: 38px;
  }

  .hero-vignette {
    background: linear-gradient(to top,
      rgba(20, 18, 15, 0.86) 0%,
      rgba(20, 18, 15, 0.70) 34%,
      rgba(20, 18, 15, 0.52) 58%,
      rgba(20, 18, 15, 0.34) 80%,
      rgba(20, 18, 15, 0.22) 100%);
  }

  /* The same three facts appear in the stat panel one screen down, and at
     390px the third item overflowed the viewport by 57px. */
  .hero-meta-strip {
    display: none;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  /* the sticky bar is pinned by its insets — width:100% would clip it right */
  .mobile-cta {
    width: auto;
  }

  .text-link {
    width: fit-content;
  }

  .stats,
  .form-row {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 136px;
  }

  .getting-metrics {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 30px 0;
  }

  .getting-metric + .getting-metric::before {
    inset: -13px auto auto 50%;
    width: 44px;
    height: 1px;
    transform: translateX(-50%);
    bottom: auto;
  }

  .getting-metric dd {
    max-width: 30ch;
  }

  .estate-map-canvas {
    height: clamp(420px, 92vw, 520px);
  }

  .estate-map-caption {
    margin-top: 14px;
  }

  .arrival-details {
    grid-template-columns: 1fr;
  }

  .inquiry-form {
    padding: 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-headline,
  .hero-rule,
  .hero-facts,
  .hero-details,
  .hero-actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ─── Welcome / guest Wi-Fi page (/welcome) ──────────────────────────────────── */
.welcome-page {
  min-height: 100svh;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(44px, 9vh, 104px) 20px clamp(48px, 8vh, 88px);
  background:
    radial-gradient(125% 75% at 50% -8%, rgba(165, 101, 67, 0.12), transparent 58%),
    var(--paper);
}

.welcome {
  width: 100%;
  max-width: 460px;
  display: grid;
  gap: clamp(28px, 5vh, 40px);
}

.welcome-head {
  display: grid;
  gap: 14px;
  animation: heroReveal 700ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both;
}

.welcome-brand {
  font-family: var(--sans);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--olive);
}

.welcome-title {
  font-family: var(--serif);
  font-size: var(--text-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--charcoal);
}

.welcome-title .welcome-icon {
  color: var(--terracotta);
  margin-left: 0.12em;
  vertical-align: -0.06em;
}

.welcome-title .welcome-icon svg {
  width: 0.72em;
  height: 0.72em;
}

.welcome-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-lead);
  color: var(--muted);
}

/* Wi-Fi card — the primary action */
.wifi-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 5vw, 26px);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 22px 56px -34px rgba(38, 35, 31, 0.5);
  animation: heroReveal 700ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.wifi-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wifi-card-head .welcome-icon {
  color: var(--terracotta);
  display: inline-flex;
}

.wifi-card-head .welcome-icon svg {
  width: 20px;
  height: 20px;
}

.wifi-card-label {
  font-family: var(--sans);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--charcoal);
}

.wifi-creds {
  display: grid;
  gap: 12px;
}

.wifi-cred {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--stone);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.wifi-cred:hover {
  border-color: var(--terracotta);
}

.wifi-cred:focus-visible {
  outline: 2px solid rgba(165, 101, 67, 0.32);
  outline-offset: 2px;
}

.wifi-cred-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wifi-cred-label {
  font-family: var(--sans);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

.wifi-cred-value {
  font-family: var(--sans);
  font-size: var(--text-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  overflow-wrap: anywhere;
}

.wifi-cred-action {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--terracotta);
}

.wifi-cred.is-copied .wifi-cred-action {
  color: var(--olive);
}

/* Quick-link rows */
.welcome-links {
  display: grid;
  gap: 10px;
  animation: heroReveal 700ms cubic-bezier(0.22, 1, 0.36, 1) 300ms both;
}

.welcome-links-cue {
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

.welcome-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 160ms ease, transform 160ms ease;
}

.welcome-link:hover {
  border-color: var(--terracotta);
  transform: translateX(2px);
}

.welcome-link:focus-visible {
  outline: 2px solid rgba(165, 101, 67, 0.32);
  outline-offset: 2px;
}

.welcome-link-icon {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--terracotta);
}

.welcome-link-icon svg {
  width: 24px;
  height: 24px;
}

.welcome-link-text {
  flex: 1;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.welcome-link-title {
  font-family: var(--sans);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--charcoal);
}

.welcome-link-sub {
  font-family: var(--sans);
  font-size: var(--text-label);
  color: var(--muted);
}

.welcome-link-arrow {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--muted);
  transition: color 160ms ease, transform 160ms ease;
}

.welcome-link-arrow svg {
  width: 18px;
  height: 18px;
}

.welcome-link:hover .welcome-link-arrow {
  color: var(--terracotta);
  transform: translateX(3px);
}

/* Closing signoff */
.welcome-foot {
  display: grid;
  gap: 10px;
  animation: heroReveal 700ms cubic-bezier(0.22, 1, 0.36, 1) 420ms both;
}

.welcome-coda {
  max-width: 22ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-lead);
  line-height: 1.4;
  color: var(--charcoal);
  text-wrap: pretty;
}

.welcome-coda .welcome-icon {
  color: var(--terracotta);
  margin-left: 0.1em;
  vertical-align: -0.08em;
}

.welcome-coda .welcome-icon svg {
  width: 0.82em;
  height: 0.82em;
}

.welcome-sign {
  font-family: var(--sans);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .welcome-head,
  .wifi-card,
  .welcome-links,
  .welcome-foot {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ─── Enquiry form extras & sticky mobile CTA ─────────────────────────────── */
.form-hint {
  color: var(--muted);
  font-size: 14px;
  margin: -6px 0 2px;
}

.inquiry-form label em {
  font-style: normal;
  font-weight: var(--weight-label);
  color: var(--muted);
  opacity: 0.72;
}

.mobile-cta {
  display: none;
}

@media (max-width: 860px) {
  .mobile-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(24, 22, 18, 0.28);
  }

  .mobile-cta.is-hidden {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Luxury polish pass (v7)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Text selection ───────────────────────────────────────────────────────── */
::selection {
  background: var(--terracotta);
  color: var(--paper);
}

/* ─── Hero: italic key phrase + very slow Ken Burns ────────────────────────── */
.hero-em {
  font-style: italic;
  font-weight: 500;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.hero-image {
  transform-origin: 62% center;
  animation: heroKenBurns 14s cubic-bezier(0.16, 0.8, 0.3, 1) 200ms forwards;
}

/* ─── Hero: minimal scroll cue (above the meta strip) ──────────────────────── */
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 74px;
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75));
  animation: heroScrollPulse 2.4s ease-in-out infinite;
}

@keyframes heroScrollPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 0.9; transform: translateY(4px); }
}

@media (max-width: 860px) {
  .hero-scroll-cue { display: none; }
}

/* ─── Refined terracotta rule above left-aligned section eyebrows ──────────── */
.stats-heading .eyebrow.dark::before,
.split-content .eyebrow.dark::before,
.gallery-heading .eyebrow.dark::before,
.outdoor .eyebrow.dark::before,
.booking-copy .eyebrow.dark::before {
  content: "";
  display: block;
  width: 36px;
  height: 1.5px;
  margin-bottom: 16px;
  background: var(--terracotta);
}

/* ─── Nav links: understated underline drawn in from the left ──────────────── */
.nav a:not(.nav-cta) {
  position: relative;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}

/* ─── Buttons: arrow glyph slides 4px right on hover ───────────────────────── */
.button span[aria-hidden] {
  display: inline-block;
  transition: transform 200ms ease;
}

.button:hover span[aria-hidden] {
  transform: translateX(4px);
}

/* ─── Split-media imagery: soft, large, low-opacity lift off the paper ─────── */
.split-media img {
  box-shadow: 0 30px 80px rgba(24, 22, 18, 0.10);
}

/* ─── Gallery: elegant caption overlay on hover ────────────────────────────── */
.gallery-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  padding: 42px 16px 14px;
  font-family: var(--sans);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(253, 250, 246, 0.96);
  background: linear-gradient(to top, rgba(24, 22, 18, 0.58), rgba(24, 22, 18, 0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  opacity: 1;
  transform: none;
}

/* ─── Lightbox: gentle fade + scale-in of the image ────────────────────────── */
@keyframes lightboxImageIn {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-image {
  animation: lightboxImageIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ─── Footer: a touch more breathing room ──────────────────────────────────── */
.footer {
  padding-bottom: 40px;
}

.footer-cta {
  gap: 20px;
}

.footer-bottom {
  border-top-color: rgba(253, 250, 246, 0.12);
}

/* ─── Scroll reveals ───────────────────────────────────────────────────────────
   Hidden initial state is gated on html.js (added before paint) AND
   prefers-reduced-motion: no-preference — so JS-off users and reduced-motion
   users always see fully visible content with zero motion. Reveal is triggered
   by IntersectionObserver adding .is-revealed. */
@media (prefers-reduced-motion: no-preference) {
  html.js .section-kicker,
  html.js .intro-grid,
  html.js .stats-heading,
  html.js .stat,
  html.js .split-content,
  html.js .split-media,
  html.js .gallery-heading,
  html.js .gallery-item,
  html.js .outdoor > div,
  html.js .outdoor-list,
  html.js .getting-copy,
  html.js .getting-metric,
  html.js .estate-map,
  html.js .arrival-details,
  html.js .getting-coda,
  html.js .final-invite,
  html.js .booking-copy,
  html.js .inquiry-form {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.js .section-kicker.is-revealed,
  html.js .intro-grid.is-revealed,
  html.js .stats-heading.is-revealed,
  html.js .stat.is-revealed,
  html.js .split-content.is-revealed,
  html.js .split-media.is-revealed,
  html.js .gallery-heading.is-revealed,
  html.js .gallery-item.is-revealed,
  html.js .outdoor > div.is-revealed,
  html.js .outdoor-list.is-revealed,
  html.js .getting-copy.is-revealed,
  html.js .getting-metric.is-revealed,
  html.js .estate-map.is-revealed,
  html.js .arrival-details.is-revealed,
  html.js .getting-coda.is-revealed,
  html.js .final-invite.is-revealed,
  html.js .booking-copy.is-revealed,
  html.js .inquiry-form.is-revealed {
    opacity: 1;
    transform: none;
  }

  /* Gentle stagger */
  html.js .stats > .stat:nth-child(3) { transition-delay: 70ms; }
  html.js .stats > .stat:nth-child(4) { transition-delay: 140ms; }
  html.js .stats > .stat:nth-child(5) { transition-delay: 210ms; }
  html.js .stats > .stat:nth-child(6) { transition-delay: 280ms; }

  html.js .gallery-item:nth-child(3n + 2) { transition-delay: 80ms; }
  html.js .gallery-item:nth-child(3n + 3) { transition-delay: 160ms; }

  html.js .getting-metric:nth-child(2) { transition-delay: 90ms; }
  html.js .getting-metric:nth-child(3) { transition-delay: 180ms; }
}

/* ─── How it works ─────────────────────────────────────────────────────────── */
.how-it-works {
  background: var(--stone);
}

.how-heading {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 68px);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-step {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.how-step-number {
  display: block;
  font-family: var(--serif);
  font-size: var(--text-lead);
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.how-step h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: var(--serif-sm);
  font-weight: 600;
  line-height: 1.15;
}

.how-step p {
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 860px) {
  .how-steps {
    grid-template-columns: 1fr;
  }
}

/* ─── Mobile gallery: horizontal swipe strip ───────────────────────────────── */
@media (max-width: 560px) {
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-grid .gallery-item {
    flex: 0 0 84%;
    scroll-snap-align: center;
    aspect-ratio: 3 / 2;
  }

  .gallery-heading::after {
    content: "Swipe to browse →";
    display: block;
    margin-top: 14px;
    font-size: var(--text-caption);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* ─── FAQ subpage ──────────────────────────────────────────────────────────── */
.subpage .site-header {
  position: sticky;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
}

.subpage .site-header::before {
  display: none;
}

.subpage-main {
  min-height: 60vh;
}

.faq {
  max-width: none;
}

.faq-heading {
  margin-bottom: clamp(36px, 5vw, 60px);
}

.faq-lede {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: var(--serif-sm);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.2em;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
  color: var(--terracotta);
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 0 24px;
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
}

.faq-item a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-cta {
  margin-top: clamp(36px, 5vw, 56px);
}

/* ─── Local guide subpage ──────────────────────────────────────────────────── */
.guide {
  max-width: none;
}

.guide-heading {
  margin-bottom: clamp(40px, 5vw, 72px);
}

.guide-heading h2 {
  max-width: 20ch;
}

.guide-lede {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
}

/* Columns rather than a fixed grid: an eight-entry list next to a two-entry
   one left a 764px hole. Columns redistribute themselves at any width. */
.guide-categories {
  columns: 2;
  column-gap: clamp(36px, 6vw, 96px);
}

.guide-category {
  break-inside: avoid;
  margin-bottom: clamp(36px, 5vw, 72px);
}

.guide-category h3 {
  margin: 0 0 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: var(--serif-md);
  font-weight: 600;
}

.guide-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  display: grid;
  gap: 3px;
}

.guide-list strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.guide-list span {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.guide-cta {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  gap: 18px;
  justify-items: start;
}

.guide-cta-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-lead);
  color: var(--charcoal);
}

@media (max-width: 860px) {
  .guide-categories {
    columns: 1;
  }
}

/* ─── Guide banners ────────────────────────────────────────────────────────── */
.guide-banner {
  margin: 0 0 clamp(40px, 5vw, 72px);
}

.guide-banner img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(24, 22, 18, 0.10);
}

.guide-banner figcaption {
  margin-top: 12px;
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

.guide-categories + .guide-banner {
  margin-top: clamp(48px, 6vw, 80px);
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .guide-banner img {
    aspect-ratio: 3 / 2;
  }
}

/* ─── Guide spot photos ────────────────────────────────────────────────────── */
.guide-spots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(48px, 6vw, 80px);
}

.guide-spot {
  margin: 0;
}

.guide-spot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(24, 22, 18, 0.10);
}

.guide-spot figcaption {
  margin-top: 12px;
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

.guide-credit {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  opacity: 0.75;
}

@media (max-width: 700px) {
  .guide-spots {
    grid-template-columns: 1fr;
  }
}

/* ─── Guide links, ratings, premium spot gallery ───────────────────────────── */
.guide-list strong a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: text-decoration-color 180ms ease;
}

.guide-list strong a:hover {
  text-decoration-color: var(--terracotta);
}

.guide-rating {
  font-style: normal;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
}

.guide-spots {
  grid-template-columns: repeat(3, 1fr);
}

.guide-spot-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.guide-spot-btn img {
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 600ms ease;
}

.guide-spot-btn:hover img,
.guide-spot-btn:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1.04);
}

@media (max-width: 700px) {
  .guide-spots {
    grid-template-columns: 1fr;
  }
}

/* ─── iOS Safari fixes: menu containing-block + blur prefixes ──────────────── */
.site-header.is-scrolled,
.site-header.is-open {
  -webkit-backdrop-filter: blur(18px);
}

/* backdrop-filter turns the fixed header into a containing block on WebKit,
   collapsing the fullscreen nav panel into the header box — disable while open */
.site-header.is-open {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--paper);
}

/* ─── Mobile gallery carousel: fixed height, stable, with overlay arrows ───── */
.gallery-shell {
  position: relative;
}

.gallery-arrow {
  display: none;
}

@media (max-width: 560px) {
  .gallery-grid {
    height: min(56vw, 330px);
    align-items: stretch;
    padding-bottom: 0;
    overscroll-behavior-x: contain;
  }

  .gallery-grid .gallery-item {
    height: 100%;
    aspect-ratio: auto;
  }

  .gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* the fade-up reveal causes vertical jitter while swiping — keep carousel
     tiles static and always visible */
  html.js .gallery-grid .gallery-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(38, 35, 31, 0.32);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: rgba(253, 250, 246, 0.92);
    cursor: pointer;
    transition: opacity 220ms ease, background 180ms ease;
  }

  .gallery-arrow-prev { left: 8px; }
  .gallery-arrow-next { right: 8px; }

  .gallery-arrow.is-off {
    opacity: 0;
    pointer-events: none;
  }
}

/* ─── Rhythm: alternate section backgrounds so gaps read intentional ───────── */
.outdoor {
  background: var(--stone);
}

.final-invite {
  padding-top: clamp(110px, 12vw, 160px);
  padding-bottom: clamp(110px, 12vw, 160px);
}

/* ─── Interlude: full-bleed emotional image break ──────────────────────────── */
.interlude {
  position: relative;
  overflow: hidden;
}

.interlude img {
  width: 100%;
  height: clamp(420px, 72vh, 720px);
  object-fit: cover;
}

.interlude-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(20, 18, 15, 0.74) 0%, rgba(20, 18, 15, 0.42) 34%, rgba(20, 18, 15, 0.10) 68%, rgba(20, 18, 15, 0.14) 100%),
    linear-gradient(90deg, rgba(20, 18, 15, 0.40), rgba(20, 18, 15, 0) 58%);
}

.interlude-line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  max-width: 34ch;
  padding: clamp(56px, 11vh, 130px) var(--gutter) clamp(44px, 7vh, 84px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--serif-lg);
  line-height: 1.3;
  color: rgba(253, 250, 246, 0.96);
  text-shadow: 0 2px 24px rgba(24, 22, 18, 0.35);
}

/* ─── A day at the villa ───────────────────────────────────────────────────── */
.day-heading {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 68px);
}

.day-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.day-step {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.day-time {
  display: block;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-lead);
  color: var(--terracotta);
}

.day-step p {
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 1000px) {
  .day-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .day-steps {
    grid-template-columns: 1fr;
  }
}

/* ─── Guide: full-width closing spot ───────────────────────────────────────── */
.guide-spot-full {
  grid-column: 1 / -1;
}

.guide-spot-full img {
  aspect-ratio: 21 / 10;
}

@media (max-width: 700px) {
  .guide-spot-full img {
    aspect-ratio: 16 / 10;
  }
}

/* ─── Guide spots: alternating editorial mosaic ────────────────────────────── */
.guide-spots {
  grid-template-columns: repeat(6, 1fr);
  align-items: start;
}

.guide-spot:nth-of-type(6n+1),
.guide-spot:nth-of-type(6n+4),
.guide-spot:nth-of-type(6n+5) {
  grid-column: span 4;
}

.guide-spot:nth-of-type(6n+2),
.guide-spot:nth-of-type(6n+3),
.guide-spot:nth-of-type(6n+6) {
  grid-column: span 2;
}

.guide-spot:nth-of-type(6n+2) img,
.guide-spot:nth-of-type(6n+3) img,
.guide-spot:nth-of-type(6n+6) img {
  aspect-ratio: 4 / 5;
}

.guide-spot:nth-of-type(6n+2),
.guide-spot:nth-of-type(6n+6) {
  margin-top: clamp(28px, 4vw, 72px);
}

@media (max-width: 700px) {
  .guide-spot,
  .guide-spot:nth-of-type(n) {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .guide-spot:nth-of-type(n) img {
    aspect-ratio: 16 / 10;
  }
}

/* ─── Polish audit fixes ───────────────────────────────────────────────────── */
/* Uppercase tracking adds a phantom trailing space; indent by one tracking
   unit so centred labels sit optically centred */
.button,
.nav-cta {
  text-indent: var(--tracking-label);
}

/* The sticky CTA must never sit on top of the open menu */
body.menu-open .mobile-cta {
  display: none;
}

/* Guide list body size matches day/how steps */
.guide-list span {
  font-size: 16px;
}

/* Tighter section rhythm on phones — stacked paper-on-paper gaps read hollow */
@media (max-width: 560px) {
  .section {
    padding-top: clamp(56px, 15vw, 72px);
    padding-bottom: clamp(56px, 15vw, 72px);
  }
}

/* ─── Outdoor list: hairline dividers, no panel — sits directly on the stone ── */
.outdoor-list {
  gap: 0;
  background: none;
}

.outdoor-list p {
  background: none;
  border-top: 1px solid var(--line);
}

.outdoor-list p:last-child {
  border-bottom: 1px solid var(--line);
}

/* ─── Availability / booking calendar (/book) ──────────────────────────────── */
.book {
  max-width: none;
}

.book-heading {
  max-width: 680px;
  margin-bottom: clamp(40px, 5vw, 68px);
}

.book-lede {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  scroll-margin-top: 110px;
}

/* --- Month navigation bar --- */
.calendar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.calendar-cue {
  font-size: var(--text-label);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

.calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}

.calendar-nav:hover:not(:disabled) {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.calendar-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

/* --- The months --- */
.calendar-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(26px, 3vw, 38px);
}

.calendar-month-name {
  margin-bottom: 14px;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--olive);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekday {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  text-align: center;
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

.calendar-blank {
  aspect-ratio: 1;
}

.calendar-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.calendar-day:not(:disabled):hover {
  background: var(--stone);
}

.calendar-day:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: -2px;
}

.calendar-weekday {
  cursor: default;
}

.calendar-day.is-today::after {
  content: "";
  position: absolute;
  bottom: 14%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--terracotta);
  transform: translateX(-50%);
}

.calendar-day.is-past {
  color: var(--muted);
  opacity: 0.32;
  cursor: default;
}

.calendar-day.is-booked {
  color: var(--muted);
  cursor: default;
}

/* The numeral steps back so the cross reads as one mark rather than tangling
   with the digit underneath it. */
.calendar-day.is-booked {
  opacity: 0.55;
}

.calendar-day.is-booked::before,
.calendar-day.is-booked::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  top: 50%;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.calendar-day.is-booked::before { transform: rotate(-38deg); }
.calendar-day.is-booked::after  { transform: rotate(38deg); }

/* Selected range — a continuous band, endpoints in ink */
.calendar-day.is-between {
  background: var(--stone);
}

.calendar-day.is-preview {
  background: rgba(243, 238, 231, 0.6);
}

.calendar-day.is-start,
.calendar-day.is-end {
  background: var(--charcoal);
  color: var(--paper);
}

.calendar-day.is-start.is-today::after,
.calendar-day.is-end.is-today::after {
  background: var(--paper);
}

.calendar-status {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(165, 101, 67, 0.3);
  background: rgba(165, 101, 67, 0.06);
  color: var(--charcoal);
  font-size: 15px;
}

.calendar-status[hidden] {
  display: none;
}

/* --- Key --- */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: clamp(26px, 3vw, 36px) 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.calendar-legend li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

.legend-swatch {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
}

.legend-free {
  background: var(--paper);
}

.legend-taken {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}

.legend-taken::before,
.legend-taken::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 1px;
  background: var(--muted);
}

.legend-taken::before { transform: rotate(-38deg); }
.legend-taken::after  { transform: rotate(38deg); }

.legend-picked {
  background: var(--charcoal);
  border-color: var(--charcoal);
}

/* --- Summary panel --- */
.book-panel {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 22px 60px -38px rgba(38, 35, 31, 0.5);
}

/* Dates, party size and the request all live in one panel, so picking nights
   and asking for them is a single uninterrupted movement. */
.book-request {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.book-request textarea {
  resize: vertical;
}

.book-send {
  width: 100%;
}

.book-panel .form-success[hidden] {
  display: none;
}

.book-summary-title {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--serif-md);
  font-weight: 600;
  line-height: 1;
}

.book-dates {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.book-date {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  background: var(--white);
}

.book-date-label {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

.book-date-value {
  font-family: var(--serif);
  font-size: var(--serif-sm);
  font-weight: 600;
  line-height: 1.15;
}

.book-nights {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-lead);
  line-height: 1.35;
  color: var(--charcoal);
}

.book-guests {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
}

.stepper-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.stepper-btn:hover:not(:disabled) {
  background: var(--stone);
  color: var(--terracotta);
}

.stepper-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.stepper-value {
  min-width: 40px;
  text-align: center;
  border-inline: 1px solid var(--line);
  align-self: stretch;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.book-note {
  padding: 13px 15px;
  background: var(--stone);
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.55;
}

.book-note[hidden] {
  display: none;
}

.book-continue {
  width: 100%;
}

.book-clear {
  justify-self: start;
  margin-top: -6px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.book-clear:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.book-clear[hidden] {
  display: none;
}

.book-fineprint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.book-fineprint a {
  color: var(--charcoal);
  border-bottom: 1px solid var(--line);
  transition: border-color 160ms ease, color 160ms ease;
}

.book-fineprint a:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

/* --- Terms row --- */
.book-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
  margin: clamp(28px, 3vw, 40px) 0 0;
}

.book-terms div {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.book-terms dt {
  color: var(--olive);
  font-size: var(--text-caption);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.book-terms dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .book-layout {
    grid-template-columns: 1fr;
  }

  .book-panel {
    position: static;
  }

  .book-terms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .calendar-months {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    font-size: 1.05rem;
  }

  .book-terms {
    grid-template-columns: 1fr;
  }
}
