/* ---------- Self-hosted web fonts ----------
   Karla (body) + Cormorant Garamond (display) — woff2 only, latin subset.
   Self-hosted because:
     - eliminates 2 third-party round-trips (fonts.googleapis.com + fonts.gstatic.com)
     - everything serves from our own domain through Cloudflare's edge cache
     - same files persist across guest visits via the /assets/* immutable cache
   font-display: swap → text appears instantly in fallback, restyles when font loads. */
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/karla-400.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/karla-500.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/karla-600.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-400.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-500.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-600.woff2') format('woff2'); }

/* ============================================================
   Welaka Rentals — Site stylesheet
   v4 — Coastal luxury resort, on the river (modeled on Ponte Vedra)

   Design DNA:
   - Pure white background, warm-dark text
   - Cormorant Garamond serif for display + ALL headings (one type family,
     restrained 400-weight, modest sizes — classical hierarchy)
   - Karla geometric humanist sans for body
   - Centered hero text (no left-aligned moments here)
   - Side-by-side property hero images (50/50 full-bleed)
   - Solid deep-green button (plays Ponte's deep teal role) for primary CTAs
   - "LEARN MORE →" uppercase arrow links for soft CTAs
   - 3-column image grid for "Endless Amenities"-style themed grid
   - Inviting, gracious, country-club refined
   ============================================================ */

:root {
  /* Brand greens */
  /* Brand teal (2026-11 rebrand to Welaka Rentals). #3d7d7b and #96bdbc are
     the logo's own colours; the darker steps are derived for surfaces that
     carry white text, where the brand teal alone is only 4.8:1. */
  --teal-100: #96BDBC;
  --teal-200: #699D9B;
  --teal-500: #3D7D7B;
  --teal-700: #2E5E5C;
  --teal-900: #1B3837;

  /* Brand golds */
  --gold-300:  #B99E5E;
  --gold-500:  #957A3B;

  /* Neutrals — Ponte-style: warm white + warm dark */
  --white:     #FFFFFF;
  --paper:     #FFFFFF;
  --paper-2:   #F8F6F1;       /* very subtle warm cream */
  --paper-3:   #EFEBE1;       /* slightly more cream */
  --ink:       #1F1F1F;       /* warm dark, not pure black */
  --ink-soft:  #585858;       /* warm gray for body */
  --ink-faint: #8A8782;
  --line:      rgba(31, 31, 31, 0.10);
  --line-soft: rgba(31, 31, 31, 0.05);

  /* Brand accent (the "deep teal" role) */
  --accent:        #3D7D7B;   /* the brand teal, straight from the logo */
  --accent-dark:   #2E5E5C;
  --accent-banner: #3D7D7B;

  /* Type */
  --font-body:    'Karla', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;

  /* Sizing */
  --container:     1280px;
  --container-md:  920px;
  --container-sm:  680px;
  --gutter:        1.5rem;
  --radius:        0;

  /* Motion */
  --t-fast:        0.2s ease;
  --t-slow:        0.5s cubic-bezier(0.2, 0.6, 0.2, 1);

  /* Section rhythm */
  --section-y:     clamp(4.5rem, 8vw, 7.5rem);
  --section-y-tight: clamp(2.5rem, 5vw, 4rem);

  --header-h:      96px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent); }
ul, ol { padding-left: 1.25rem; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.5rem, 4.5vw, 4.125rem); }     /* hero / section */
h2 { font-size: clamp(2rem, 3vw, 2.625rem); }
h3 { font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1.25em; color: var(--ink-soft); }
p.lede {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.eyebrow--light { color: rgba(255,255,255,0.85); }
.eyebrow--accent { color: var(--accent); }

.ornament {
  display: block;
  width: 40px; height: 1px;
  background: var(--gold-500);
  margin: 0 0 1.5rem;
}
.ornament--center { margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.container    { width: 100%; max-width: var(--container);    margin: 0 auto; padding: 0 var(--gutter); }
.container-md { width: 100%; max-width: var(--container-md); margin: 0 auto; padding: 0 var(--gutter); }
.container-sm { width: 100%; max-width: var(--container-sm); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section-y) 0; }
.section-tight { padding: var(--section-y-tight) 0; }
.center { text-align: center; }
.measure { max-width: 64ch; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Top notice banner ---------- */
.notice {
  background: var(--accent-banner);
  color: var(--white);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  text-align: center;
  padding: 0.6rem var(--gutter);
}
.notice a {
  color: var(--white);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
}
.notice a:hover { border-bottom-color: var(--white); color: var(--white); }

/* ---------- Header (horizontal, top, sticky) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--t-slow);
}
.site-header.is-scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.05); }
.site-header__inner {
  display: grid;
  /* logo left, nav beside it, CTA right */
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1rem var(--gutter);
  max-width: var(--container); margin: 0 auto;
  gap: 1rem;
  min-height: var(--header-h);
}
.site-header__left, .site-header__right {
  display: flex; align-items: center; gap: 1.25rem;
}
.site-header__right { justify-content: flex-end; }
.brand { display: flex; align-items: center; justify-content: flex-start; }
.brand img { height: 64px; width: auto; }
@media (max-width: 768px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  /* the brand leads the DOM for the desktop layout; on a phone the menu
     button still reads better first, so place the columns explicitly */
  .site-header__left  { grid-column: 1; grid-row: 1; }
  .brand              { grid-column: 2; grid-row: 1; justify-content: center; }
  .site-header__right { grid-column: 3; grid-row: 1; }
  /* square mark below 880px — pin both axes so swapping aspect ratio at the
     breakpoint costs no layout shift */
  .brand img { width: 44px; height: 44px; }
}

.nav {
  display: flex; gap: 1.5rem; align-items: center;
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.nav a {
  color: var(--ink);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--accent); border-bottom-color: var(--accent);
}
/* Hidden above 880px, where the full nav is already visible — showing both
   was redundant. The rule used to declare `display: none` and then
   `display: inline-flex` a line later, so the hide never took effect and the
   hamburger sat beside the nav links on desktop. The dead `font-size: 1.25rem`
   was overridden the same way and is gone too. */
.nav__toggle {
  display: none;
  background: none; border: 0; color: var(--ink);
  cursor: pointer; padding: 0.25rem 0.5rem;
  align-items: center; gap: 0.4rem;
  font-family: var(--font-body); font-size: 0.75rem;
  font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
}
/* Home link inside the nav — hidden on desktop (logo is the home affordance there),
   shown inside the mobile menu so users have an obvious way back to / from a property page. */
.nav .nav__home { display: none; }
/* Contact likewise: it has its own link in the header on desktop, and moves
   into the drawer below 880px. That standalone link is hidden there because
   the mobile header grid is `auto 1fr auto` and the two side columns were
   consuming the full width exactly — the brand column computed to 0px, so
   the logo had never been visible on a phone at all. */
.nav .nav__contact { display: none; }

@media (max-width: 880px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 1rem var(--gutter);
    z-index: 49;
  }
  .nav.is-open a {
    width: 100%;
    padding: 1.1rem 0; border-bottom: 1px solid var(--line);
    font-size: 0.9375rem;
  }
  .nav .nav__home { display: block; }
  .nav .nav__contact { display: block; }
  .nav__toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  /* Stronger overlay across the whole image, dark band where the text sits */
  background:
    linear-gradient(180deg, rgba(6,12,18,0.55) 0%, rgba(6,12,18,0.50) 45%, rgba(6,12,18,0.75) 100%);
}
.hero h1, .hero p, .hero .eyebrow {
  /* Belt-and-suspenders readability boost over photographic backgrounds */
  text-shadow: 0 1px 16px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.35);
}
.hero__inner {
  width: 100%;
  padding: 5rem 1rem 6rem;
}
.hero .eyebrow { color: rgba(255,255,255,0.92); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400; font-style: italic;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  max-width: 20ch;
  margin-left: auto; margin-right: auto;
}
.hero p {
  color: rgba(255,255,255,0.92);
  max-width: 52ch; margin-left: auto; margin-right: auto;
  font-size: 1.0625rem;
}
.hero .btn-row { justify-content: center; margin-top: 1.75rem; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 2.5rem;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--white);
  border-radius: 50%;
  color: var(--accent);
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

.hero--short { min-height: 60vh; }
.hero--short .hero__inner { padding: 4rem 1rem 4rem; }
.hero--short h1 { font-size: clamp(2rem, 4vw, 3.25rem); }

/* Plain hero: no photograph, cream band, dark text. Used by the two guest
   house guides. These rules must stay AFTER `.hero h1` / `.hero p` /
   `.hero .eyebrow` above — same specificity (0,1,1), so later wins. */
.hero--plain {
  min-height: 0;
  /* The generic `section` rule adds --section-y padding, which the full-bleed
     heroes absorb into their 100vh. Without it this band doubled up: ~82px of
     section padding on top of the hero__inner padding at each end. */
  padding: 0;
  background: var(--paper-2);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero--plain .hero__inner { padding: clamp(2.5rem, 6vw, 3.5rem) 1rem clamp(2.25rem, 5vw, 3rem); }
.hero--plain h1,
.hero--plain p,
.hero--plain .eyebrow { text-shadow: none; }
.hero--plain .eyebrow { color: var(--accent); }
.hero--plain h1 {
  color: var(--ink);
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  margin-bottom: 1rem;
}
.hero--plain p { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background var(--t-slow), color var(--t-slow), border-color var(--t-slow);
  cursor: pointer; text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn-outline-light {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: var(--white); border-color: var(--white); color: var(--accent); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* "LEARN MORE →" arrow link */
.arrow-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink);
  padding: 0.25rem 0;
  transition: color var(--t-fast);
}
.arrow-link::after {
  content: '→'; display: inline-block;
  font-size: 1.1em; line-height: 1;
  transition: transform var(--t-slow);
}
.arrow-link:hover { color: var(--accent); }
.arrow-link:hover::after { transform: translateX(5px); }
.arrow-link--light { color: var(--white); }
.arrow-link--light:hover { color: var(--gold-300); }
.arrow-link--accent { color: var(--accent); }
.arrow-link--accent:hover { color: var(--accent-dark); }

/* ---------- Section title (centered serif, classical) ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 1rem;
  text-align: center;
  max-width: 22ch;
  margin-left: auto; margin-right: auto;
}
.section-title--italic { font-style: italic; }
.section-intro {
  max-width: 720px; margin: 0 auto 3rem; text-align: center;
}
.section-intro p { margin: 0; }

/* ---------- Image split (Ponte-style 50/50 full bleed) ---------- */
.image-split {
  display: grid; grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 720px) {
  .image-split { grid-template-columns: 1fr 1fr; }
}
.image-split__cell {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.image-split__cell img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.image-split__cell:hover img { transform: scale(1.05); }

/* ---------- Property pair (image+info per property, mobile-friendly) ----
   On desktop, two property blocks sit side-by-side — visually identical to
   the old 50/50-image-strip-above-two-intro-cards layout. On mobile, each
   block becomes a single column so the photo sits directly above its info,
   instead of the photos stacking before any descriptions appear. */
.property-pair {
  display: grid;
  gap: 2.5rem;            /* mobile: breathing room between stacked cards */
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .property-pair { grid-template-columns: 1fr 1fr; gap: 0; }
}
.property-feature { display: flex; flex-direction: column; }
.property-feature__media {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.property-feature__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.property-feature:hover .property-feature__media img { transform: scale(1.04); }
.property-feature__info {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) var(--gutter);   /* mobile: match site gutter so text doesn't go edge-to-edge */
}
@media (min-width: 720px) {
  .property-feature__info { padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
}
.property-feature__info h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
  margin: 0 0 0.5em;
}
.property-feature__info p { max-width: 42ch; margin-left: auto; margin-right: auto; }
.property-feature__info .btn { margin-top: 1rem; }

/* ---------- Property intro (centered card, Ponte-style) ---------- */
.property-intro {
  display: grid; gap: 3rem; grid-template-columns: 1fr;
  text-align: center;
}
@media (min-width: 880px) {
  .property-intro { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.property-intro__col h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
  margin: 0 0 0.6em;
}
.property-intro__seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  color: var(--gold-500);
}
.property-intro__seal svg { width: 28px; height: 28px; }
.property-intro__meta {
  font-family: var(--font-body);
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0.25rem 0 0.75rem;
}
.property-intro__col p { max-width: 42ch; margin-left: auto; margin-right: auto; }
.property-intro__col .btn { margin-top: 1rem; }

/* ---------- Card grids (themed travelers, amenities) ---------- */
.cards {
  display: grid; gap: 2.5rem 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .cards--2 { grid-template-columns: 1fr 1fr; gap: 3rem 2rem; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .cards--5 { grid-template-columns: repeat(5, 1fr); gap: 2rem 1.25rem; }
}

.card { display: flex; flex-direction: column; background: transparent; }
.card__media {
  aspect-ratio: 4/3; overflow: hidden;
  margin-bottom: 1.25rem;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: 0.5rem; }
.card__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.card__body p {
  font-size: 0.9375rem;
  margin: 0 0 0.25rem;
  color: var(--ink-soft);
}
.card__body .arrow-link { margin-top: 0.25rem; }

/* "Endless Amenities" style: image + serif label + arrow link */
.amenity-card .card__media { aspect-ratio: 3/2; }
.amenity-card .card__body {
  flex-direction: row; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.amenity-card .card__body h3 { font-size: 1.625rem; }

/* ---------- Editorial split (image + text, used for About / story sections) ---------- */
.split {
  display: grid; gap: 2rem; grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.split__media { aspect-ratio: 4/3; overflow: hidden; }
.split__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.split:hover .split__media img { transform: scale(1.04); }
.split--reverse .split__media { order: 1; }
@media (min-width: 880px) { .split--reverse .split__media { order: 2; } }
.split__text h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.625rem); }

/* ---------- Property page: side-by-side specs strip ---------- */
.spec-bar {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0;
  background: var(--paper-2);
  padding: 1.75rem var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.spec-bar > * {
  padding: 0 2rem; border-right: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.spec-bar > *:last-child { border-right: 0; }
.spec-bar strong {
  display: block;
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 400; letter-spacing: 0;
  color: var(--ink); margin-bottom: 0.25rem;
}

/* ---------- Gallery (refined) ---------- */
.gallery {
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.25rem) clamp(0.75rem, 1.6vw, 1.25rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__figure { margin: 0; }
.gallery__frame { aspect-ratio: 4 / 3; overflow: hidden; display: block; }
.gallery__frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.gallery__figure:hover .gallery__frame img { transform: scale(1.05); }
.gallery__figure figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Editorial list ---------- */
.editorial-list {
  list-style: none; padding: 0; margin: 0;
}
.editorial-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  display: grid; gap: 0.5rem;
}
.editorial-list li:first-child { border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .editorial-list li { grid-template-columns: 1fr 2fr; align-items: baseline; gap: 2rem; }
}
.editorial-list h4 {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-style: italic; font-size: 1.375rem; color: var(--ink);
}
.editorial-list p { margin: 0; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form {
  background: var(--paper-2);
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 640px;
}
.form .row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-bottom: 1.25rem; }
@media (min-width: 600px) { .form .row.two { grid-template-columns: 1fr 1fr; } }
.form label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
}
.form input, .form textarea {
  width: 100%; padding: 0.75rem 1rem;
  font-family: inherit; font-size: 1rem;
  border: 1px solid var(--line);
  background: var(--white); color: var(--ink);
  transition: border-color var(--t-fast);
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .submit { display: flex; justify-content: flex-start; margin-top: 1.5rem; }
.form-status {
  margin-top: 1rem; padding: 0.85rem 1rem;
  font-family: var(--font-body); font-size: 0.875rem;
  display: none;
}
.form-status.is-success { display: block; background: rgba(26, 74, 92, 0.08); color: var(--accent); border-left: 2px solid var(--accent); }
.form-status.is-error   { display: block; background: rgba(140, 42, 42, 0.06); color: #8C2A2A; border-left: 2px solid #8C2A2A; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-700); /* #2e5e5c — 7.2:1 with white, the footer carries a lot of small text */
  color: var(--white);
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  font-size: 0.9375rem;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold-300); }
.footer-top {
  text-align: center; margin-bottom: 4rem;
}
.footer-top img.brand-mark { height: 80px; width: auto; margin: 0 auto 1.25rem; }
.footer-top p {
  max-width: 56ch; margin: 0 auto;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.125rem; color: var(--white);
}
.footer-grid {
  display: grid; gap: 3rem; grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 4rem; }
}
.footer-grid h3,
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body); font-size: 0.6875rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 1.25rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.65rem; }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.75rem; letter-spacing: 0.06em; color: var(--white);
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
}

/* ---------- Reveal (no-op visually; content always visible) ----------
   Previously this set opacity:0 with an IntersectionObserver to fade in,
   but fast scrolls or JS races left whole sections blank. Content is now
   visible by default; .reveal stays in the HTML but has no visual effect. */
.reveal { opacity: 1; }
.reveal.is-in { opacity: 1; }
.reveal.delay-1, .reveal.delay-2, .reveal.delay-3, .reveal.delay-4 { transition-delay: 0; }

/* ---------- A11y ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Analytics noscript frames (GTM/pixel) — hidden without inline styles */
.tag-ns { display: none; visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Reviews slider ---------- */
.reviews-slider { position: relative; }
.reviews-slider__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0 1rem;
  /* `scroll-padding-inline` aligns the snap-position to the card's left
     edge instead of the viewport edge — matters when cards aren't 100% wide. */
  scroll-padding-inline: 0;
}
.reviews-slider__track::-webkit-scrollbar { display: none; }
.reviews-slider__card {
  flex: 0 0 88%;             /* mobile: ~88% width so next card peeks through */
  scroll-snap-align: start;
  background: var(--paper-2);
  border-left: 3px solid var(--gold-500);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 240px;
  /* prevent quote text from pushing card weirdly tall on mobile */
  box-sizing: border-box;
}
@media (min-width: 540px) {
  .reviews-slider__card { flex: 0 0 70%; padding: 1.75rem; }
}
@media (min-width: 720px) {
  .reviews-slider__card { flex: 0 0 calc(50% - 0.5rem); }
}
@media (min-width: 1024px) {
  .reviews-slider__card { flex: 0 0 calc(33.333% - 0.667rem); }
}
.reviews-slider__stars {
  color: var(--gold-500);
  letter-spacing: 0.18em;
  font-size: 0.9375rem;
}
.reviews-slider__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.reviews-slider__meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  display: flex;
  flex-direction: column;       /* mobile: stack the meta lines for legibility */
  gap: 0.25rem;
}
@media (min-width: 540px) {
  .reviews-slider__meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    align-items: baseline;
  }
}
.reviews-slider__meta strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}
.reviews-slider__meta .source {
  color: var(--gold-500);
}
.reviews-slider__nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: center;
}
.reviews-slider__btn {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.reviews-slider__btn:hover {
  background: var(--ink);
  color: var(--white);
}
.reviews-slider__btn svg { width: 18px; height: 18px; }

/* ---------- FAQ accordion ---------- */
.faq { display: flex; flex-direction: column; gap: 0; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 0.4vw + 1rem, 1.375rem);
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  gap: 1rem;
  line-height: 1.35;
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-body);
  font-weight: 400;       /* was 300 — keeps the icon's visual weight close enough without loading an extra woff2 */
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gold-500);
  transition: transform var(--t-slow);
  flex-shrink: 0;
}
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 0 1.75rem; max-width: 72ch; }
.faq__answer p { margin: 0 0 0.85em; color: var(--ink-soft); }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__answer ul { padding-left: 1.25rem; margin: 0.5rem 0; color: var(--ink-soft); }
.faq__answer li { margin-bottom: 0.4rem; }
.faq__answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq__answer strong { color: var(--ink); }

/* ---------- Utility/state classes (2026-08 port: extracted from the
   legacy pages' inline style= attributes — declarations kept verbatim;
   appended last so they win same-specificity conflicts) ---------- */
.nav--contact { display: flex; }
.section--alt { background: var(--paper-2); }
.section--flush-top { padding-top: 0; }
.section--cta { background: var(--ink); color: var(--white); text-align: center; }
.section--cta .section-title { color: var(--white); }
.section--cta p { color: rgba(255,255,255,0.85); }
.section-title--left { text-align: left; margin-left: 0; max-width: none; }
.btn--gold { background: var(--gold-500); border-color: var(--gold-500); }
.btn-row--center { justify-content: center; margin-top: 1.5rem; }
.btn-row--spaced { margin-top: 1.5rem; }
.stars--gold { color: var(--gold-500); letter-spacing: 0.18em; }
/* p.hero__rating: element qualifier needed to out-rank `.hero p` */
p.hero__rating {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  margin: 1.75rem auto 2rem;
  text-align: center;
  max-width: none;
}
.hero__rating-stars { color: #FFD27A; letter-spacing: 0.18em; display: block; font-size: 1.4em; margin-bottom: 0.5rem; }
.property-intro__meta--left { text-align: left; }
/* p.space-meta: element qualifier needed to out-rank `.section-intro p` */
p.space-meta { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.9rem; color: var(--gold-500); margin-top: 0.5rem; }
.crosslink-note { text-align: center; margin-top: 2rem; font-style: italic; }
.split-stack { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4rem); }
.split--top { align-items: flex-start; }
.nap { margin: 2rem 0; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nap p { margin: 0 0 0.25rem; }
.nap p:first-child { margin-bottom: 0.5rem; }
.nap p:last-child { margin-bottom: 0; }
.editorial-list--spaced { margin-top: 2rem; }
.guide-note { text-align: center; max-width: 60ch; margin: 1rem auto 0; }

/* Guide step blocks — the numbered/bulleted how-to groups in an optional
   per-property guide section (currently the Sleep Number bed on the Low Tide
   guide). Headings use the global h3 display style, matching .editorial-list. */
.guide-steps { max-width: 62ch; margin: 2.5rem 0 0; }
.guide-steps ol, .guide-steps ul { margin: 0; }
.guide-steps li { margin-bottom: 0.5rem; }
.guide-steps li:last-child { margin-bottom: 0; }
.guide-steps__note { margin: 0.9rem 0 0; font-style: italic; }

/* ---------- Featured stay (click-to-load video) ----------
   The poster and the embed share one 9:16 box, so swapping the facade for
   the iframe costs zero layout shift (the CLS-0 bar). Capped at 324px: the
   source is a vertical reel and a wider player only upscales it. */
.featured-stay { justify-self: center; width: 100%; max-width: 324px; }
.featured-stay__facade,
.featured-stay__frame { display: block; width: 100%; aspect-ratio: 9 / 16; }
.featured-stay__facade {
  position: relative; overflow: hidden; background: var(--paper-2);
}
.featured-stay__facade img { width: 100%; height: 100%; object-fit: cover; }
.featured-stay__frame { border: 0; }
.featured-stay__play {
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid; place-items: center;
  transition: transform var(--t-fast), background var(--t-fast);
}
.featured-stay__play::before {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-left: 18px solid var(--ink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.featured-stay__facade:hover .featured-stay__play { transform: scale(1.08); }
.featured-stay__facade:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Hospitable direct-booking widget (property pages).
   The vendor loader appends <iframe id="booking-iframe"> into
   #hospitable-booking at its default 900px height, then resizes it to fit
   via postMessage. Reserving the same 900px here means the append itself
   costs zero layout shift (the CLS-0 bar). The iframe carries its own
   vendor-set width/height; these rules only normalize it. */
.booking-widget { min-height: 900px; }
.booking-widget iframe { display: block; width: 100%; border: 0; }

/* ---- Local partner promo (site-wide band above the footer) ----
   Cream band separating page content from the dark footer. The partner
   logo is navy-on-transparent, so this background must stay light. */
.partner { background: var(--paper-2); border-top: 1px solid var(--line); padding: var(--section-y-tight) 0; }
.partner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.partner__media { display: block; overflow: hidden; }
.partner__media img { display: block; width: 100%; height: auto; transition: transform var(--t-slow); }
.partner__media:hover img { transform: scale(1.03); }
.partner__text .eyebrow { display: block; margin-bottom: 1rem; }
.partner__logo { display: block; width: clamp(190px, 24vw, 250px); height: auto; margin: 0 0 1.25rem; }
.partner__heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 0.9rem;
  color: var(--ink);
}
.partner__text p { margin: 0 0 1.75rem; max-width: 52ch; }
@media (max-width: 860px) {
  .partner__inner { grid-template-columns: 1fr; }
  .partner__media { order: -1; }
}

/* ---- Touch target sizing ----
   Interactive controls in the persistent chrome were 19-42px tall on mobile,
   under the 44x44 CSS px comfortable-tap size. (The mobile menu links already
   clear it via `.nav.is-open a`, and the sr-only skip link is keyboard-only,
   so neither is touched here.) min-height only — no font or color changes,
   so the desktop look is unchanged where rows are already taller. */
.btn { min-height: 44px; }
.nav__toggle { min-height: 44px; }
.nav--contact { align-items: center; min-height: 44px; }
.footer-grid li { margin-bottom: 0; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 44px; }
.notice a { display: inline-flex; align-items: center; min-height: 44px; }
/* Links sitting inline inside a sentence (FAQ prose, the booking blurb, the
   footer credit) are deliberately NOT enlarged: WCAG 2.2 Target Size exempts
   targets constrained by the line-height of surrounding text, and padding
   them out would break the text flow. */

/* ---- Comparison table (/rentals/) ----
   Wide content scrolls inside its own container so the page body never
   scrolls horizontally on a phone. */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 2.5rem; }
.compare { width: 100%; min-width: 34rem; border-collapse: collapse; font-family: var(--font-body); font-size: 0.9375rem; }
.compare th, .compare td { padding: 0.9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th {
  font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--ink);
}
.compare thead th a { border-bottom: 0; }
.compare tbody th { width: 34%; font-weight: 500; color: var(--ink-soft); }
.compare tbody td { color: var(--ink); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* The modernImages transform wraps every eligible <img> in a <picture>.
   Without this, the picture becomes the sized box's child and `height:100%`
   on the img resolves against the picture's auto height — leaving a gap
   under every image in an aspect-ratio or fixed-height frame (it left 150px
   under each gallery cell and 132px under each split image). display:contents
   makes the wrapper transparent to layout, fixing every such frame at once. */
picture { display: contents; }

/* The standalone header Contact link is desktop-only: below 880px it lives in
   the drawer instead (`.nav__contact`). This MUST stay last in the file — the
   port's utility block near the top sets `.nav--contact { display: flex }` and
   is deliberately "appended last so they win same-specificity conflicts", so
   an earlier hide loses to it. Without this the mobile header grid
   (`auto 1fr auto`) had both side columns consuming the full width and the
   brand column computed to 0px: the logo was invisible on every phone. */
@media (max-width: 880px) {
  .nav--contact { display: none; }
}
