/* ==========================================================================
   tokens.css: every design decision lives here (DESIGN.md §3).
   Components use the role variables, never a raw hex value.
   Contrast (WCAG 2.x), computed 7 Oct 2026, on cream #F1ECE6 / white #FFFFFF:
     ink 14.47 / 16.99 · green 7.90 / 9.28 · wood 6.64 / 7.79
     pool-text 4.77 / 5.60 · bougainvillea 5.43 / 6.38 · white on green 9.28
   Never small text: brand-green 2.27 / 2.66 · pool 3.35 / 3.94 ·
   foliage 4.35 on cream · stone-dark 2.25.
   ========================================================================== */

:root {
  /* ---- Palette ------------------------------------------------------------ */
  --brand-green: #5AB314;   /* logo green: large shapes and rules only */
  --green: #215121;         /* primary: buttons, links, labels */
  --foliage: #5D7637;       /* tints only */
  --pool: #1D8AB2;          /* large text and icons only */
  --pool-text: #16708F;     /* pool blue for small text */
  --wood: #75472C;          /* warm accent: prices, notes */
  --bougainvillea: #B51F55; /* one per screen at most */
  --ink: #191E12;
  --cream: #F1ECE6;
  --white: #FFFFFF;
  --stone: #C0C2BF;         /* hairlines */
  --stone-dark: #9EA099;    /* decorative only */

  /* ---- Roles ---------------------------------------------------------------- */
  --bg: var(--white);
  --surface: var(--white);
  --text: var(--ink);
  --link: var(--green);
  --action-bg: var(--green);
  --action-text: var(--white);
  --line: var(--stone);
  --tint: color-mix(in srgb, var(--foliage) 12%, var(--white));

  /* ---- Type: two families, 400 and 600 only ------------------------------- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --weight-regular: 400;
  --weight-semibold: 600;

  --text-label: 0.875rem;   /* 14px: uppercase labels of 3 words or fewer ONLY */
  --text-small: 1rem;       /* 16px: the floor for any information */
  --text-body: 1.0625rem;   /* 17px */
  --text-lead: 1.1875rem;   /* 19px */
  --text-h3: 1.375rem;
  --text-h2: clamp(1.625rem, 1.25rem + 1.6vw, 2.125rem);
  --text-h1: clamp(2rem, 1.4rem + 2.8vw, 3rem);
  --text-stat: 1.75rem;

  --lh-body: 1.6;
  --lh-heading: 1.15;
  --measure: 65ch;
  --tracking-label: 0.08em;

  /* ---- Space ---------------------------------------------------------------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;

  /* ---- Layout --------------------------------------------------------------- */
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-pad: clamp(40px, 7vw, 80px);
  --tap: 48px;              /* buttons */
  --tap-min: 44px;          /* icon buttons and list links */
  --masthead-h: 116px;      /* header + pinned bar on phones */

  /* ---- Shape: near-square, no shadows -------------------------------------- */
  --radius: 2px;
  --radius-img: 4px;
  --hairline: 1px solid var(--line);
}

/* Landscape phones: the header is one row (components.css). */
@media (max-width: 1023px) and (max-height: 500px) {
  :root {
    --masthead-h: 64px;
  }
}

@media (min-width: 1024px) {
  :root {
    --masthead-h: 72px;
  }
}

/* ==========================================================================
   base.css: self-hosted faces, reset, element defaults, container, sections.
   ========================================================================== */

/* Latin only (about 35 to 60 KB each). The peso sign lives in its own 3 KB file
   and downloads only on pages that show a price. */
@font-face {
  font-family: "Noto Sans";
  src: url("/assets/fonts/noto-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans";
  src: url("/assets/fonts/noto-sans-peso.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20B1;
}

/* Static semibold (headings use 600 only), optical size 72, SOFT=100 and
   WONK=0 baked in: rounded, friendly shapes. 18 KB instead of 61 KB. */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

* {
  margin: 0;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--masthead-h) + var(--s-4));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

input,
button,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
summary {
  cursor: pointer;
}

/* ---- Elements ---------------------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--lh-body);
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: var(--lh-heading);
  font-optical-sizing: auto;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
}

p,
li,
dd {
  max-width: var(--measure);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--pool);
  outline-offset: 2px;
}

strong {
  font-weight: var(--weight-semibold);
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* Prices, capacities and distances line up. */
.num {
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---- Helpers ------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  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: var(--s-2);
  top: -100px;
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--white);
  color: var(--green);
  font-weight: var(--weight-semibold);
}

.skip-link:focus {
  top: var(--s-2);
}

.flow > * + * {
  margin-top: var(--s-4);
}

.lead {
  font-size: var(--text-lead);
}

/* Uppercase label: 3 words or fewer (DESIGN.md §3). */
.label {
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--green);
}

/* ---- Sections ------------------------------------------------------------------ */
.section {
  padding-block: var(--section-pad);
}

.section--white {
  background: var(--surface);
}

.section-head {
  margin-bottom: var(--s-6);
}

.section-head > * + * {
  margin-top: var(--s-3);
}

/* The breadcrumb bar above already gives the space. */
.page-head {
  padding-top: 0;
}

address {
  font-style: normal;
}

.section--cream {
  background: var(--cream);
}

/* ==========================================================================
   components.css: mobile-first. Layout follows the reference site
   (discoverysamal.com): full-bleed photo hero, a coloured band of photo
   cards, big photo tiles with the name over the image, alternating photo
   panels. No shadows, no radius above 4px, no carousels.
   ========================================================================== */

/* ---- Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--tap);
  padding: var(--s-2) var(--s-5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn--primary {
  background: var(--action-bg);
  color: var(--action-text);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--green) 82%, var(--ink));
}

.btn--secondary {
  background: var(--surface);
  border-color: var(--green);
  color: var(--green);
}

.btn--secondary:hover {
  background: var(--tint);
}

.btn--light {
  background: var(--white);
  color: var(--green);
}

.btn--light:hover {
  background: var(--tint);
}

.btn--sm {
  min-height: var(--tap-min);
  padding-inline: var(--s-4);
}

.btn--lg {
  min-height: 54px;
  padding-inline: var(--s-7);
  font-size: var(--text-body);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-4);
  margin-top: var(--s-5);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  font-weight: var(--weight-semibold);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  padding: 0 var(--s-2);
  border-radius: var(--radius);
  color: var(--green);
  text-decoration: none;
  list-style: none;
}

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

/* ---- Masthead: logo, nav, call; on phones a pinned Inquire bar (TEMPLATE §2) */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: var(--hairline);
}

.masthead__bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 60px;
}

.logo {
  display: inline-flex;
  margin-right: auto;
  padding-block: var(--s-1);
}

.logo img {
  width: auto;
  height: 40px;
}

.nav-desktop,
.masthead__inquire {
  display: none;
}

.nav-phone > summary::-webkit-details-marker {
  display: none;
}

.nav-phone > summary {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
}

.nav-phone[open] > summary {
  background: var(--tint);
}

.nav-phone__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border-bottom: var(--hairline);
}

.nav-phone__menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-inline: var(--gutter);
  border-top: var(--hairline);
  color: var(--ink);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.nav-phone__menu a[aria-current="page"] {
  color: var(--green);
  box-shadow: inset 4px 0 0 var(--brand-green);
}

.pinned-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--gutter);
  border-top: var(--hairline);
}

.pinned-bar .btn {
  flex: 1 1 auto;
}

.pinned-bar .price {
  flex: 1 1 50%;
  font-size: var(--text-small);
  line-height: 1.3;
}

.pinned-bar .price + .btn,
.pinned-bar .price[hidden] + .price + .btn {
  flex: 0 0 auto;
}

/* Tablets keep the phone header (the full menu doesn't fit on one line);
   the pinned Inquire button stays button-sized on the right. */
@media (min-width: 768px) and (max-width: 1023px) {
  .pinned-bar {
    justify-content: flex-end;
  }

  .pinned-bar .btn {
    flex: 0 0 auto;
    min-width: 12rem;
  }
}

/* Landscape phones (short screens): one slim header row, with Inquire beside
   Menu. The pinned Inquire row would cover a third of the screen. */
@media (max-width: 1023px) and (max-height: 500px) {
  .pinned-bar {
    display: none;
  }

  .masthead__inquire {
    display: inline-flex;
  }
}

/* The full menu from 1024 px. */
@media (min-width: 1024px) {
  .masthead__bar {
    gap: var(--s-4);
    min-height: 72px;
  }

  .logo img {
    height: 48px;
  }

  .nav-desktop {
    display: block;
  }

  .nav-desktop ul {
    display: flex;
    gap: var(--s-1);
  }

  .nav-desktop a {
    display: flex;
    align-items: center;
    min-height: var(--tap-min);
    padding-inline: var(--s-2);
    color: var(--ink);
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    border-bottom: 3px solid transparent;
  }

  .nav-desktop a:hover,
  .nav-desktop a[aria-current="page"] {
    border-bottom-color: var(--brand-green);
  }

  .masthead__inquire {
    display: inline-flex;
  }

  .nav-phone,
  .pinned-bar {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .masthead .icon-btn--call,
  .nav-desktop a[href="/getting-here/"] {
    display: none;
  }
}

/* ---- Header over the home hero ---------------------------------------------
   Transparent with a white logo and links while the hero is on screen;
   site.js adds .is-solid after it. Without JavaScript it is absolute, so it
   scrolls away with the hero instead of floating unreadable over the page.
   Browsers without :has() simply keep the solid header. */
.masthead--overlay {
  position: absolute;
  inset: 0 0 auto 0;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.js .masthead--overlay {
  position: fixed;
}

.masthead--overlay:not(.is-solid):not(:has(.nav-phone[open])) {
  background: transparent;
  border-bottom-color: transparent;
}

.masthead--overlay:not(.is-solid):not(:has(.nav-phone[open])) .logo img {
  filter: brightness(0) invert(1);
}

.masthead--overlay:not(.is-solid):not(:has(.nav-phone[open])) :is(.nav-desktop a, .icon-btn) {
  color: var(--white);
}

.masthead--overlay:not(.is-solid):not(:has(.nav-phone[open])) .nav-desktop a:hover {
  border-bottom-color: var(--white);
}

.masthead--overlay:not(.is-solid):not(:has(.nav-phone[open])) .pinned-bar {
  border-top-color: transparent;
}

/* ---- Notices (OPS-02) ----------------------------------------------------------- */
.notice {
  padding-block: var(--s-3);
  background: var(--wood);
  color: var(--white);
  font-weight: var(--weight-semibold);
}

/* ---- Shared photo-over-text treatment ------------------------------------------ */
.hero {
  position: relative;
  display: grid;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}

.hero > * {
  grid-area: 1 / 1;
}

.hero__media,
.hero__media picture {
  display: block;
  height: 100%;
}

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

.hero h1 {
  color: var(--white);
  text-shadow: 0 1px 18px rgb(0 0 0 / 0.35);
}

/* ---- Home hero -----------------------------------------------------------------
   Full screen on every device, with the header floating over it. Only the
   top edge (behind the header) and the corner behind the text are shaded,
   so the photo itself stays bright. A minimum, not a fixed height: on short
   screens (landscape phones) the text needs more room than one screen, and a
   fixed height let it spill over the Welcome section below. */
.hero {
  min-height: clamp(600px, 100svh, 980px);
}

.hero__shade {
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--masthead-h) + var(--s-6)) var(--s-7);
  background:
    linear-gradient(to bottom, rgb(10 14 8 / 0.5) 0, rgb(10 14 8 / 0) 170px),
    linear-gradient(to top, rgb(10 14 8 / 0.74) 0%, rgb(10 14 8 / 0.38) 42%, rgb(10 14 8 / 0) 66%);
}

.hero__content {
  display: grid;
  justify-items: start;
  gap: var(--s-4);
}

.hero__eyebrow {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.5);
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.375rem, 1.4rem + 4.2vw, 4.25rem);
  line-height: 1.04;
}

.hero__sub {
  max-width: 32rem;
  font-size: var(--text-lead);
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.45);
}

.hero__cta {
  margin-top: var(--s-2);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-2);
}

.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: none;
  padding: 6px 12px;
  background: rgb(10 14 8 / 0.5);
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--radius-img);
  font-size: var(--text-small);
  line-height: 1.3;
}

.hero__proof svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.hero__proof strong {
  font-size: 1.0625rem;
}

@media (min-width: 900px) {
  .hero__shade {
    background:
      linear-gradient(to bottom, rgb(10 14 8 / 0.5) 0, rgb(10 14 8 / 0) 180px),
      linear-gradient(to top right, rgb(10 14 8 / 0.7) 0%, rgb(10 14 8 / 0.3) 42%, rgb(10 14 8 / 0) 68%);
  }
}

/* ---- Menu pages: photo, then breadcrumb, then a centred title (the reference
   site's pattern). The photo is short enough for the title to show without
   scrolling; the header floats over it like on the home page. ---------------- */
.page-hero {
  position: relative;
  height: clamp(260px, 48vh, 560px);
  background: var(--ink);
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shade only behind the floating header, so its white logo and links read. */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  background: linear-gradient(to bottom, rgb(10 14 8 / 0.55), rgb(10 14 8 / 0));
  pointer-events: none;
}

.crumbline {
  padding-top: var(--s-3);
}

.page-intro {
  padding-block: var(--s-4) var(--s-6);
  text-align: center;
}

.page-intro h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  color: var(--green);
}

.page-intro .lead {
  max-width: 42rem;
  margin: var(--s-3) auto 0;
}

.page-intro__rule {
  display: block;
  width: 56px;
  height: 3px;
  margin: var(--s-5) auto 0;
  background: var(--brand-green);
}

/* Photo credits (the Nearby page's photos are not the resort's). */
.credits__title {
  font-size: 1.25rem;
}

.credits {
  display: grid;
  gap: var(--s-1);
  margin-top: var(--s-3);
  font-size: var(--text-small);
}

/* Pages that end in plain text: room before the footer. */
.page-end {
  padding-bottom: var(--section-pad);
}

.btn-row--center {
  justify-content: center;
  margin: 0 0 var(--s-7);
}

/* ---- Centred intro ---------------------------------------------------------------- */
.center {
  text-align: center;
}

.center > p {
  margin-inline: auto;
}

.intro .container > * + * {
  margin-top: var(--s-4);
}

.intro .container {
  max-width: calc(46rem + 2 * var(--gutter));
}

.intro__sub {
  font-size: var(--text-lead);
  color: var(--green);
}

/* ---- Green band of photo cards ---------------------------------------------------- */
.band {
  padding-block: var(--section-pad);
  background: var(--green);
}

/* Three cards: one per row on phones, three across from 900 px. In between
   (landscape phones, tablets) each card turns sideways, photo beside text,
   so the three never split into 2 + 1. */
.pillars,
.highlights {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 900px) {
  .pillars,
  .highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pillar,
.highlight {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.pillar__media img,
.highlight__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pillar__body,
.highlight__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-5);
}

.pillar__body .btn {
  margin-top: auto;
}

.highlight {
  border: var(--hairline);
}

/* Landscape phones and tablets: the cards turn sideways (see above). */
@media (min-width: 600px) and (max-width: 899px) {
  .pillar,
  .highlight {
    flex-direction: row;
  }

  .pillar__media,
  .highlight__media {
    flex: 0 0 42%;
  }

  .pillar__media img,
  .highlight__media img {
    height: 100%;
  }
}

/* ---- Photo tiles: name over the photo, details below ----------------------------- */
.tiles {
  display: grid;
  gap: var(--s-7) var(--s-5);
}

/* Borderless, like the reference: the photo carries the card. */
.tile {
  display: flex;
  flex-direction: column;
}

.tile__media {
  position: relative;
  display: grid;
}

.tile__media > * {
  grid-area: 1 / 1;
}

.tile__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Its own layer (z-index works on a grid item): the photo's hover zoom, a
   transform, would otherwise paint over it. Not positioned, so the name's
   link below can stretch over the whole photo. */
.tile__caption {
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
  align-self: end;
  padding: var(--s-7) var(--s-5) var(--s-4);
  background: linear-gradient(to top, rgb(12 18 8 / 0.85), rgb(12 18 8 / 0));
}

.tile__media--empty {
  background: var(--green);
}

.tile__media--empty .tile__caption {
  padding-top: var(--s-6);
  background: none;
}

.tile__name {
  font-size: 1.625rem;
}

.tile__name a {
  color: var(--white);
  text-decoration: none;
}

.tile__name a:hover {
  text-decoration: underline;
}

.tile__name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tile__caption .capacity {
  background: var(--white);
  color: var(--green);
}

.tile__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-4);
}

.tile__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-top: auto;
  padding-top: var(--s-2);
}

.tile__actions .btn {
  flex: 0 1 12rem;
}

@media (min-width: 768px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile:first-child {
    grid-column: 1 / -1;
  }

  .tile:first-child .tile__media img {
    aspect-ratio: 21 / 9;
  }

  .tile:first-child .tile__name {
    font-size: 2.25rem;
  }
}

/* ---- Feature panels: a big photo with an overlapping text card ------------------ */
.features {
  display: grid;
  gap: var(--s-8);
}

.feature {
  display: grid;
  align-items: center;
}

.feature__media {
  overflow: hidden;
  border-radius: var(--radius-img);
}

.feature__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature__body {
  position: relative;
  margin: calc(-1 * var(--s-7)) var(--s-3) 0;
  padding: var(--s-5);
  background: var(--surface);
  border-top: 4px solid var(--brand-green);
}

.feature__body > * + * {
  margin-top: var(--s-3);
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .feature__media,
  .feature__body {
    grid-row: 1;
  }

  .feature__media {
    grid-column: 1 / span 8;
  }

  .feature__media img {
    aspect-ratio: 16 / 10;
  }

  .feature__body {
    grid-column: 7 / span 6;
    margin: 0;
    padding: var(--s-7);
  }

  .feature--flip .feature__media {
    grid-column: 5 / span 8;
  }

  .feature--flip .feature__body {
    grid-column: 1 / span 6;
  }
}

/* ---- Product facts ------------------------------------------------------------- */
.capacity {
  display: inline-flex;
  align-self: flex-start;
  align-items: baseline;
  gap: var(--s-1);
  padding: var(--s-1) var(--s-3);
  background: var(--green);
  border-radius: var(--radius);
  color: var(--white);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
}

.capacity strong {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.1;
}

.spec-line {
  font-size: var(--text-small);
}

.flag {
  color: var(--wood);
  font-weight: var(--weight-semibold);
}

/* ---- Price signal (PRD CAT-03): exactly one state per product ------------ */
.price__main {
  font-size: var(--text-small);
}

.price__main strong {
  font-size: 1.25rem;
  color: var(--wood);
  font-variant-numeric: tabular-nums lining-nums;
}

.price__note {
  font-size: var(--text-small);
}

.price--compact .price__main strong {
  font-size: 1.0625rem;
}

.price--option {
  margin-top: var(--s-1);
}

/* ---- Chips ------------------------------------------------------------------------ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.chips li {
  padding: 2px var(--s-3);
  background: var(--tint);
  border-radius: var(--radius);
  font-size: var(--text-small);
}

/* ---- Product page ------------------------------------------------------------- */
/* Breadcrumb on the left, previous / next on the right, on a cream bar. */
.pagebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--s-5);
  margin-block: var(--s-4) var(--s-6);
  padding-inline: var(--s-4);
  background: var(--cream);
  border-radius: var(--radius);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--s-2);
  font-size: var(--text-small);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
}

/* Phones, product pages: the current page is the heading right below, so its
   crumb makes room for Previous / Next. */
@media (max-width: 599px) {
  .pagebar:has(.prev-next) .breadcrumb > :nth-last-child(-n + 2) {
    display: none;
  }
}

.product-head > * + * {
  margin-top: var(--s-3);
}

/* Phones: lead photo full width, the rest two by two (a lone last photo
   takes the whole row). Wide screens: a mosaic with the lead photo largest. */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.gallery > :first-child,
.gallery > :last-child:nth-child(even) {
  grid-column: 1 / -1;
}

.gallery img {
  width: 100%;
  max-width: min(100%, var(--max-w, 100%));
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-img);
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(160px, 17vw, 210px);
  }

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

  .gallery > :first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  /* One or two more photos: they stack beside a wider lead photo. */
  .gallery > :first-child:nth-last-child(2),
  .gallery > :first-child:nth-last-child(3) {
    grid-column: span 3;
  }

  .gallery > :nth-child(2):last-child {
    grid-column: auto;
    grid-row: span 2;
  }

  /* Three more: the last one takes both columns of the second row. */
  .gallery > :nth-child(4):last-child {
    grid-column: span 2;
  }

  .gallery > :only-child {
    grid-column: 1 / -1;
  }
}

.product-grid {
  display: grid;
  gap: var(--s-6);
  margin-block: var(--s-6) var(--section-pad);
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .product-grid > .panel {
    position: sticky;
    top: calc(var(--masthead-h) + var(--s-4));
  }
}

.panel {
  padding: var(--s-5);
  background: var(--surface);
  border: var(--hairline);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
}

.panel > * + * {
  margin-top: var(--s-4);
}

.facts {
  display: grid;
  border-top: var(--hairline);
}

.facts dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.facts > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: var(--hairline);
  font-size: var(--text-small);
}

.facts dt {
  font-weight: var(--weight-semibold);
}

.ticks {
  display: grid;
  gap: var(--s-2);
}

.ticks li {
  position: relative;
  padding-left: 1.5em;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.55em;
  width: 0.7em;
  height: 0.4em;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.prev-next {
  display: flex;
  gap: var(--s-5);
  font-size: var(--text-small);
}

/* Inquire beside the facts that go with it, on wide screens: "Before you
   book" on product pages, the direct contacts on the Contact page. */
.book-grid,
.contact-grid {
  display: grid;
  gap: var(--s-7);
  align-items: start;
}

.contact-grid {
  padding-bottom: var(--section-pad);
}

:is(.book-grid, .contact-grid) > section:not(.inquire) > * + * {
  margin-top: var(--s-4);
}

@media (min-width: 900px) {
  .book-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  :is(.book-grid, .contact-grid) .inquire {
    max-width: none;
  }

  /* Narrow column: label above value, so the email address stays whole. */
  .contact-grid .facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* ---- Inquire panel (Tier 1 behaviour lives in assets/js) ----------------- */
.inquire {
  max-width: 40rem;
  padding: var(--s-5);
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: var(--radius);
}

.inquire > * + * {
  margin-top: var(--s-4);
}

.inquire__about {
  font-size: var(--text-small);
}

.inquire__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4) var(--s-3);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  grid-column: 1 / -1;
  min-width: 0;
  padding: 0;
  border: 0;
}

.field--half {
  grid-column: span 1;
}

.field label,
.field legend,
.inquire__preview-label {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
}

.field input,
.field select {
  width: 100%;
  min-height: var(--tap);
  padding: var(--s-2) var(--s-3);
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-1);
}

.choices label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--tap-min);
  padding: 0 var(--s-3);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: var(--weight-regular);
}

.choices input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.field__error {
  color: var(--bougainvillea);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
}

.inquire__preview {
  display: block;
  width: 100%;
  min-height: 7.5rem;
  margin-top: var(--s-1);
  padding: var(--s-3);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--text-small);
  line-height: 1.5;
  resize: none;
}

.inquire__status {
  padding: var(--s-2) var(--s-3);
  background: var(--tint);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
}

.inquire__alt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
}

.inquire__note {
  font-size: var(--text-small);
}

/* ---- Swim options and venues: photo rows (the reference's events list) ------- */
.option-rows {
  display: grid;
  gap: var(--s-5);
}

.option-row {
  display: grid;
  gap: var(--s-3);
  padding-bottom: var(--s-5);
  border-bottom: var(--hairline);
}

.option-row__media img {
  width: 100%;
  max-width: none; /* small rows: even the 640 px Mini Pavilion photo stays sharp */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.option-row__body > * + * {
  margin-top: var(--s-2);
}

.option-row__body h3 {
  font-size: 1.375rem;
}

@media (min-width: 600px) {
  .option-row {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: var(--s-5);
    align-items: start;
  }

  .option-row__media img {
    aspect-ratio: 4 / 3;
  }
}

.distances {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  border-top: var(--hairline);
}

/* The home page card's three drive times: one per row, never 2 + 1. */
.feature .distances {
  grid-template-columns: minmax(0, 1fr);
}

.distances li {
  display: flex;
  flex-direction: column;
  padding: var(--s-3) var(--s-3) var(--s-3) 0;
  border-bottom: var(--hairline);
}

.distances__time {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--weight-semibold);
  color: var(--green);
  font-variant-numeric: lining-nums;
}

.distances__place {
  font-size: var(--text-small);
}

/* ---- Reviews (PRD TRU-01/02) ----------------------------------------------------- */
/* The three review quotes: stacked, then three across (never 2 + 1). */
.card-grid {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ratings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3) var(--s-7);
  margin-bottom: var(--s-6);
  text-align: center;
}

/* Too narrow for three side by side: stack them rather than split 2 + 1. */
@media (max-width: 719px) {
  .ratings {
    flex-direction: column;
    align-items: center;
  }
}

.ratings li {
  font-size: var(--text-small);
}

.ratings strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--green);
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface);
  border-top: 4px solid var(--brand-green);
}

.review blockquote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
}

.review figcaption {
  font-size: var(--text-small);
}

/* The whole rating, and the whole review card, opens its source. */
.ratings li,
.review {
  position: relative;
}

.ratings a[data-review-source]::after,
.review__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.review:hover {
  border-top-color: var(--green);
}

/* ---- FAQ: native <details>, no JavaScript --------------------------------------- */
.faq {
  border-top: var(--hairline);
}

.faq details {
  border-bottom: var(--hairline);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 56px;
  padding-block: var(--s-3);
  font-weight: var(--weight-semibold);
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--green);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq__answer {
  padding-bottom: var(--s-5);
}

.faq__answer > * + * {
  margin-top: var(--s-3);
}

/* ---- Amenity rows (The farm page), alternating sides -------------------------- */
.amenity {
  display: grid;
  gap: var(--s-4);
  padding-block: var(--s-5);
  border-top: var(--hairline);
}

.amenity img {
  width: 100%;
  max-width: min(100%, var(--max-w, 100%));
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-img);
}

@media (min-width: 768px) {
  .amenity {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: var(--s-7);
  }

  .amenity--flip > :first-child {
    order: 2;
  }
}

/* ---- Final call to action, over a photo ----------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(88px, 12vw, 168px);
  background: var(--green);
  color: var(--white);
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(10 14 8 / 0.55);
}

.cta-band h2 {
  color: var(--white);
}

.cta-band .lead {
  margin-top: var(--s-3);
}

.cta-band .btn {
  margin-top: var(--s-5);
}

/* ---- Footer: dark green, like the reference's solid footer ---------------------- */
.site-footer {
  padding-block: var(--s-7) var(--s-6);
  background: var(--ink);
  color: var(--white);
  font-size: var(--text-small);
  --link: var(--white);
}

.site-footer a {
  color: var(--white);
}

.site-footer__logo {
  width: 180px;
  height: auto;
  margin-bottom: var(--s-4);
}

.site-footer__grid {
  display: grid;
  gap: var(--s-6);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.site-footer h2 {
  margin-bottom: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--white);
}

.site-footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
}

.site-footer__legal {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid rgb(255 255 255 / 0.25);
}

/* "Cookie settings" is a button (it opens the banner) that looks like the links. */
.site-footer__button {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-footer__button:hover {
  text-decoration-thickness: 2px;
}

/* ---- Cookie banner (PRD MEA-04): bottom of the screen, under the header ------- */
/* Phones: a full-width bar. From 768 px: a small card, bottom left. It doesn't
   block the page; the header and its menu (z-index 50) stay above it. */
.consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  padding: var(--s-4) var(--gutter) max(var(--s-4), env(safe-area-inset-bottom));
  border-top: var(--hairline);
  background: var(--surface);
  font-size: var(--text-small);
}

.consent__text {
  margin-bottom: var(--s-3);
}

.consent__actions {
  display: flex;
  gap: var(--s-3);
}

.consent__actions .btn {
  flex: 1 1 0;
}

@media (min-width: 768px) {
  .consent {
    inset: auto auto var(--s-4) var(--s-4);
    max-width: 420px;
    padding: var(--s-4);
    border: var(--hairline);
    border-radius: var(--radius);
  }
}

/* ---- Promo (PRD CAT-05): always shows its end date --------------------------- */
.promo {
  padding: var(--s-2) var(--s-3);
  border-left: 4px solid var(--bougainvillea);
  background: var(--surface);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
}

.note {
  margin-top: var(--s-3);
  font-size: var(--text-small);
}

/* ---- Section labels: uppercase, 3 words or fewer (DESIGN.md §3) ---------------- */
.eyebrow {
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.intro .lead {
  max-width: 40rem;
}

/* ---- Photos ease in on hover (pointer devices, motion allowed) ------------------- */
.tile__media,
.pillar__media,
.highlight__media {
  overflow: hidden;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.tile, .pillar, .highlight, .feature) img {
    transition: transform 0.6s ease;
  }

  :is(.tile, .pillar, .highlight, .feature):hover img {
    transform: scale(1.04);
  }
}

/* ---- Inquire: the optional note ----------------------------------------------------- */
.field textarea {
  width: 100%;
  min-height: 5.5rem;
  padding: var(--s-2) var(--s-3);
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  resize: vertical;
}

.field__optional {
  font-weight: var(--weight-regular);
}

.field__hint {
  font-size: var(--text-small);
}

/* Capacity not confirmed yet (see TO_CONFIRM.md). */
.capacity--ask {
  background: var(--surface);
  border: 1px solid var(--green);
  color: var(--green);
}

/* Hero proof: the three ratings share one chip. */
.hero__ratings {
  flex-wrap: wrap;
  gap: 2px 14px;
}

/* On the home page the hero has its own Inquire button, so the pinned bar
   waits until the hero has scrolled away (JavaScript only). */
.js .masthead--overlay:not(.is-solid) .pinned-bar {
  display: none;
}
