﻿/* ==========================================================================
   Sederkloof Lodge - site styles
   Brand: warm brown #8B5E3B, Montserrat (carried over from the existing site)
   ========================================================================== */

:root {
  --brown: #8b5e3b;
  --brown-dark: #6e4a2e;
  --brown-light: #b98c66;
  --ink: #2a241f;
  --ink-soft: #5b5149;
  --cream: #f7f2ea;
  --sand: #ece3d5;
  --white: #fff;
  --line: rgba(42, 36, 31, 0.12);
  --shadow: 0 18px 40px -24px rgba(42, 36, 31, 0.45);
  --radius: 10px;
  --radius-lg: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);      /* soft settle */
  --ease-feather: cubic-bezier(0.16, 1, 0.3, 1);  /* long, gentle landing */
  --ease-glide: cubic-bezier(0.45, 0, 0.15, 1);   /* even in-and-out, for hovers and swaps */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --header-h-solid: 66px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--brown); }
a:hover { color: var(--brown-dark); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 500; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 300; letter-spacing: 0.04em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 300; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 1rem;
}
/* short hairline before every eyebrow: one consistent marker for each section */
.eyebrow::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 28px; height: 1px; margin: -0.2em 14px 0 0; background: currentColor; opacity: 0.7;
}

.lead { font-size: 1.12rem; color: var(--ink-soft); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 1.05em 2em;
  font: 600 0.76rem/1 var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #9a6a44 0%, var(--brown) 55%, #7f5434 100%);
  color: var(--white);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 1px 2px rgba(42,36,31,0.18), 0 8px 18px -10px rgba(110,74,46,0.7);
  transition: transform 0.45s var(--ease-feather), box-shadow 0.45s var(--ease-feather), background-color 0.3s, color 0.3s, border-color 0.3s;
}
/* soft sheen that drifts across on hover */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease-feather);
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 4px rgba(42,36,31,0.12), 0 16px 28px -12px rgba(110,74,46,0.75); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0); transition-duration: 0.15s; box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 1px 2px rgba(42,36,31,0.2); }

.btn--ghost { background: transparent; color: var(--brown); border-color: rgba(139,94,59,0.45); box-shadow: none; }
.btn--ghost::before { background: var(--brown); transform: translateY(101%); transition: transform 0.55s var(--ease-feather); }
.btn--ghost:hover { color: var(--white); border-color: var(--brown); box-shadow: 0 12px 24px -14px rgba(110,74,46,0.7); }
.btn--ghost:hover::before { transform: translateY(0); }

.btn--light { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.55); box-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--light::before { background: var(--white); transform: translateY(101%); transition: transform 0.55s var(--ease-feather); }
.btn--light:hover { color: var(--ink); border-color: var(--white); box-shadow: 0 14px 28px -16px rgba(0,0,0,0.6); }
.btn--light:hover::before { transform: translateY(0); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row, .btn-row.center { justify-content: center; }

.text-link {
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--brown); background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font);
}
.text-link::after { content: "\2192"; display: inline-block; margin-left: 0.5em; transition: transform 0.5s var(--ease-feather); }
.text-link:hover { color: var(--brown-dark); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
/* Transparent over the hero with a soft shade behind it; after scrolling it settles into a
   slimmer frosted bar. It slips away while scrolling down and returns on the slightest scroll up. */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  color: var(--white);
  background-color: rgba(247, 242, 234, 0);
  transition:
    height 0.8s var(--ease-glide),
    background-color 0.8s var(--ease-glide),
    box-shadow 0.8s var(--ease-glide),
    color 0.6s var(--ease-glide),
    transform 0.9s var(--ease-glide);
  view-transition-name: site-header;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -50px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,15,10,0.42) 0%, rgba(20,15,10,0.12) 60%, rgba(20,15,10,0) 100%);
  transition: opacity 0.8s var(--ease-glide);
}
.site-header.is-solid,
.site-header--solid {
  height: var(--header-h-solid);
  background-color: rgba(247, 242, 234, 0.84);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(42,36,31,0.07), 0 18px 40px -30px rgba(42,36,31,0.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.site-header.is-solid::before, .site-header--solid::before { opacity: 0; }
.site-header.is-hidden { transform: translate3d(0, -100%, 0); box-shadow: none; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* min-width:0 + the toggle's flex-shrink:0 mean a long brand can never push the menu button off-screen */
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.brand:hover { color: inherit; }
.brand img {
  width: 42px; height: 42px; object-fit: contain;
  /* logo artwork is black on white: invert + screen shows it white on dark */
  filter: invert(1); mix-blend-mode: screen;
  transition: width 0.8s var(--ease-glide), height 0.8s var(--ease-glide);
}
.is-solid .brand img, .site-header--solid .brand img { filter: none; mix-blend-mode: multiply; width: 36px; height: 36px; }
.brand__name {
  display: flex; flex-direction: column; gap: 7px; line-height: 1; white-space: nowrap;
  font-size: 0.98rem; font-weight: 400; letter-spacing: 0.34em; text-transform: uppercase;
}
.brand__name small { display: block; font-size: 0.56rem; font-weight: 600; letter-spacing: 0.36em; opacity: 0.72; }
.brand img { flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 38px); }
.nav .btn { white-space: nowrap; padding: 0.95em 1.7em; font-size: 0.7rem; }
.nav a:not(.btn) {
  position: relative; color: inherit; text-decoration: none;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
  padding: 8px 0;
}
/* hairline that draws in from the left on hover and stays under the current page */
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right center; transition: transform 0.8s var(--ease-glide);
}
.nav a:not(.btn):hover { color: inherit; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }
.site-header:not(.is-solid):not(.site-header--solid) .nav .btn { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.7); box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.site-header:not(.is-solid):not(.site-header--solid) .nav .btn::before { background: var(--white); transform: translateY(101%); transition: transform 0.6s var(--ease-glide); }
.site-header:not(.is-solid):not(.site-header--solid) .nav .btn:hover { color: var(--ink); border-color: var(--white); }
.site-header:not(.is-solid):not(.site-header--solid) .nav .btn:hover::before { transform: translateY(0); }

.nav-toggle {
  display: none; background: none; border: 0; color: inherit; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px; flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 1.5px; background: currentColor; position: relative;
  transition: transform 0.6s var(--ease-glide), background-color 0.3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; width: 16px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); width: 24px; }

/* Mobile/tablet: full-screen menu, links feather in one after another */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; height: 100svh;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--cream); color: var(--ink);
    padding: calc(var(--header-h) + 3vh) var(--gutter) 40px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.6s var(--ease-glide), visibility 0s linear 0.6s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease-glide), visibility 0s; }
  .nav a:not(.btn) {
    font-size: clamp(1.5rem, 6vw, 2.1rem); font-weight: 300; letter-spacing: 0.03em; text-transform: none;
    padding: 14px 0; border-bottom: 1px solid var(--line);
  }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 28px; align-self: flex-start; padding: 1.1em 2.2em; font-size: 0.74rem; }
  .nav > * { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 0.5s var(--ease-glide), transform 0.6s var(--ease-glide); }
  .nav-open .nav > * {
    opacity: 1; transform: none;
    transition: opacity 0.9s var(--ease-glide), transform 1.1s var(--ease-feather);
    transition-delay: calc(0.12s + var(--i, 0) * 60ms);
  }
  .site-header:not(.is-solid):not(.site-header--solid) .nav .btn { background: linear-gradient(180deg, #9a6a44 0%, var(--brown) 55%, #7f5434 100%); border-color: transparent; color: var(--white); }
  .nav-open .site-header { color: var(--ink); transform: none; }
  .nav-open .site-header::before { opacity: 0; }
  .nav-open .site-header .brand img { filter: none; mix-blend-mode: multiply; }
}
@media (max-width: 400px) { .brand__name { font-size: 0.86rem; letter-spacing: 0.26em; } .brand__name small { letter-spacing: 0.28em; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,15,10,0.55) 0%, rgba(20,15,10,0.05) 30%, rgba(20,15,10,0.15) 55%, rgba(20,15,10,0.75) 100%);
}
.hero__content { position: relative; z-index: 1; padding: calc(var(--header-h) + 40px) 0 clamp(56px, 10vh, 110px); }
.hero__content .eyebrow { color: #f1dcc6; }
.hero h1 { margin-bottom: 0.3em; text-transform: uppercase; }
.hero p { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 620px; font-weight: 300; }
.hero .btn-row { margin-top: 1.8rem; }

.page-hero { min-height: 62svh; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }

.scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 1px; height: 44px; background: rgba(255,255,255,0.6);
}
@media (max-width: 700px) {
  .scroll-cue { display: none; }
  /* on phones the hero eyebrow wraps to two lines and the leading hairline just looks like a stray dash */
  .hero__content .eyebrow::before { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: #eae2d7; }
.section--dark .eyebrow { color: var(--brown-light); }
.section--dark .lead { color: #c9beb1; }
/* Section heading: one pattern for every section that leads into a grid.
   Title on the left, intro on the right, both left-aligned, same edges as the
   two-column image/text sections, so the page reads as one column system top to bottom. */
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px clamp(32px, 6vw, 90px); align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head__title h2 { margin-bottom: 0; }
.section-head__intro p:last-child { margin-bottom: 0; }
.section-head__intro .lead { color: var(--ink); margin-bottom: 0.7em; }
.section--dark .section-head__intro .lead { color: #eae2d7; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center;
}
.split--reverse .split__media { order: 2; }
/* One image radius everywhere (--radius-lg). The reveal clip-path uses the same value, so the
   framed second photo's border and the photo inside it stay concentric (they used to differ: 10px vs 18px). */
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split__media--stack { position: relative; padding: 0 12% 12% 0; }
.split__media--stack img:last-child {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 5;
  border: 6px solid var(--cream);
}
.section--sand .split__media--stack img:last-child { border-color: var(--sand); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 2rem 0; padding: 1.6rem 0; border-block: 1px solid var(--line); }
.facts strong { display: block; font-size: 1.8rem; font-weight: 300; color: var(--brown); line-height: 1.1; }
.facts span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 14px; } }

/* full-width photo strip (the original collage banners) */
.photo-strip { width: 100%; aspect-ratio: 1920 / 823; max-height: 520px; object-fit: cover; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.5vw, 30px); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* Editorial card: rounded photo, text sits on the page (no boxed slab). Whole card is clickable. */
.card { position: relative; display: flex; flex-direction: column; background: transparent; }
.card__media {
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(42,36,31,0.06), 0 18px 34px -26px rgba(42,36,31,0.55);
  transition: box-shadow 0.6s var(--ease-feather);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-feather); }
.card:hover .card__media img { transform: scale(1.05); }
.card:hover .card__media { box-shadow: 0 2px 4px rgba(42,36,31,0.08), 0 26px 44px -26px rgba(42,36,31,0.6); }
.card__body { padding: 18px 4px 6px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 0.35em; font-size: 1.15rem; transition: color 0.4s; }
.card:hover .card__body h3 { color: var(--brown); }
.card__body p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.65; }
.card__body .text-link { margin-top: auto; align-self: flex-start; }
.card__body .text-link::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); } /* stretch click area */

/* Experience cards: full-bleed photo with text resting on it */
.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 24px); }
@media (max-width: 1024px) { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .exp-grid { grid-template-columns: 1fr; } }
.exp-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; text-align: left;
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--ink); color: var(--white); font-family: var(--font);
  box-shadow: 0 2px 4px rgba(42,36,31,0.08), 0 24px 44px -28px rgba(42,36,31,0.7);
  transition: box-shadow 0.7s var(--ease-feather);
}
@media (max-width: 560px) { .exp-card { aspect-ratio: 4 / 3.4; } }
.exp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 2s var(--ease-glide); }
.exp-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,15,10,0) 30%, rgba(20,15,10,0.35) 55%, rgba(20,15,10,0.88) 100%);
  transition: opacity 0.7s var(--ease-feather);
}
.exp-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0;
  background: linear-gradient(180deg, rgba(20,15,10,0.1) 0%, rgba(20,15,10,0.55) 45%, rgba(20,15,10,0.92) 100%);
  transition: opacity 0.7s var(--ease-feather);
}
.exp-card:hover::before, .exp-card:focus-visible::before { opacity: 1; }
.exp-card__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; }
.exp-card__title { font-size: clamp(1.2rem, 1.6vw, 1.4rem); font-weight: 400; line-height: 1.2; letter-spacing: 0.01em; }
.exp-card__desc { font-size: 0.9rem; line-height: 1.55; color: #e9e0d4; padding-top: 0.6em; }
.exp-card__cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 1.1em;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #f1dcc6;
}
.exp-card .arrow {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(241,220,198,0.55);
  display: inline-grid; place-items: center; transition: background 0.5s var(--ease-feather), border-color 0.5s, transform 0.6s var(--ease-feather);
}
.exp-card .arrow::before { content: "\2192"; font-size: 0.85rem; letter-spacing: 0; }
.exp-card:hover img { transform: scale(1.08); }
.exp-card:hover .arrow { background: var(--brown); border-color: var(--brown); transform: translateX(4px); }
.exp-card:hover { box-shadow: 0 4px 8px rgba(42,36,31,0.1), 0 34px 60px -30px rgba(42,36,31,0.75); }
/* On devices with a mouse, the description rises into view on hover.
   Height animates via grid rows (0fr -> 1fr), which tracks the real text height; the old
   max-height:8em version raced through the first part and felt abrupt. Even in-out easing,
   ~1s, text fades in a beat after the space opens; on leave it fades first, then closes. */
.exp-card__reveal { display: grid; grid-template-rows: 1fr; }
.exp-card__reveal > .exp-card__desc { overflow: hidden; min-height: 0; }
@media (hover: hover) and (min-width: 561px) {
  .exp-card::before { transition: opacity 1.1s var(--ease-glide); }
  .exp-card__reveal { grid-template-rows: 0fr; transition: grid-template-rows 1s var(--ease-glide) 0.15s; }
  .exp-card__desc { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity 0.5s var(--ease-glide), transform 0.7s var(--ease-glide); }
  .exp-card:hover .exp-card__reveal, .exp-card:focus-visible .exp-card__reveal { grid-template-rows: 1fr; transition-delay: 0s; }
  .exp-card:hover .exp-card__desc, .exp-card:focus-visible .exp-card__desc { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-glide) 0.3s, transform 1.1s var(--ease-feather) 0.3s; }
}
.card__meta { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brown); margin-bottom: 0.5em; font-weight: 600; }
.card__latin { font-style: italic; color: var(--ink-soft); font-size: 0.9rem; margin: -0.2em 0 0.8em; }
.card--plain { background: transparent; box-shadow: none; }
.card--plain:hover { transform: none; box-shadow: none; }
.card--plain .card__body { padding: 18px 0 0; }

.section--dark .card { background: #352e28; box-shadow: none; }
.section--dark .card__body p { color: #c9beb1; }
.section--dark .text-link { color: var(--brown-light); }

/* room teaser: overlay cards */
.room-tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3; color: var(--white); text-decoration: none; background: var(--ink);
}
.room-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s, opacity 0.3s; opacity: 0.92; }
.room-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,15,10,0.8)); }
.room-tile span { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 16px; font-size: 1.05rem; font-weight: 500; letter-spacing: 0.04em; }
.room-tile small { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; font-weight: 600; }
.room-tile:hover img { transform: scale(1.05); opacity: 1; }
.room-tile:hover { color: var(--white); }

/* ---------- Rooms page ---------- */
.room {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line);
}
.room:first-of-type { border-top: 0; }
.room:nth-of-type(even) .room__media { order: 2; }
.room__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.room__num { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; color: var(--brown); text-transform: uppercase; }
.room h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 0.3em; }
.room__features { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: 8px; }
.room__features li {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--white);
}
@media (max-width: 860px) {
  .room { grid-template-columns: 1fr; }
  .room:nth-of-type(even) .room__media { order: 0; }
}

.room-index { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 1.5rem; }
.room-index a { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }

/* ---------- Offer band ---------- */
.offer {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.offer__images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.offer__images img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); width: 100%; }
.offer__images img:nth-child(2) { margin-top: 24px; } /* margin, not transform: the reveal animation owns transform */
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } .offer__images { margin-bottom: 24px; } }

/* ---------- Banner (image background CTA) ---------- */
/* Left-aligned like the hero, so the page opens and closes the same way */
.banner {
  position: relative; color: var(--white); overflow: hidden;
  padding: clamp(90px, 14vw, 170px) 0; background: var(--ink);
}
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; z-index: 0; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,15,10,0.82) 0%, rgba(20,15,10,0.55) 45%, rgba(20,15,10,0.1) 100%); }
.banner .container { position: relative; z-index: 2; }
.banner .container > * { max-width: 640px; }
.banner .eyebrow { color: #f1dcc6; }
.banner p { color: #efe7dc; }
.banner .btn-row { margin-top: 1.6rem; }

/* ---------- Tabs (nature guide) ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: clamp(28px, 4vw, 44px); }
.tabs button {
  font: 600 0.75rem/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 13px 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tabs button:hover:not([aria-selected="true"]) { border-color: var(--brown); color: var(--brown); }
.tab-panel[hidden] { display: none; }

/* Nature guide: large image tabs (replaced the small pill tabs, which were easy to miss) */
.guide-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 20px); margin-bottom: clamp(36px, 5vw, 56px); }
.guide-tab {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer; text-align: left;
  aspect-ratio: 16 / 10; overflow: visible; border-radius: var(--radius-lg); background: var(--ink); color: var(--white);
  font-family: var(--font);
  box-shadow: 0 0 0 0 var(--cream), 0 0 0 0 rgba(139,94,59,0);
  transition: box-shadow 0.9s var(--ease-glide), transform 0.9s var(--ease-glide);
}
.guide-tab img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg);
  opacity: 0.45; filter: grayscale(0.6);
  transition: opacity 0.9s var(--ease-glide), filter 0.9s var(--ease-glide);
}
.guide-tab::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20,15,10,0) 15%, rgba(20,15,10,0.55) 55%, rgba(20,15,10,0.92));
}
.guide-tab__text { text-shadow: 0 1px 10px rgba(0,0,0,0.45); }
.guide-tab__text { position: absolute; z-index: 1; left: clamp(14px, 2vw, 24px); right: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 22px); display: flex; flex-direction: column; gap: 4px; }
.guide-tab__count { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #f1dcc6; }
.guide-tab__title { font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 400; line-height: 1.15; }
.guide-tab__desc { font-size: 0.85rem; color: #e6dccf; line-height: 1.4; }
.guide-tab:hover img { opacity: 0.75; filter: grayscale(0.2); }
.guide-tab[aria-selected="true"] img { opacity: 1; filter: none; }
.guide-tab[aria-selected="true"] { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--brown); }
/* pointer connecting the selected tile to the content below (fades and drops in rather than snapping) */
.guide-tab::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; transform: translate(-50%, -6px);
  border: 9px solid transparent; border-top-color: var(--brown); border-bottom: 0;
  opacity: 0; transition: opacity 0.7s var(--ease-glide), transform 0.9s var(--ease-feather);
}
.guide-tab[aria-selected="true"]::after { opacity: 1; transform: translate(-50%, 0); }

/* Panel swap: the old panel drifts up and fades, the stage eases to the new height,
   then the new cards feather in one by one. Driven by main.js (classes below). */
.tab-stage { position: relative; }
.tab-stage.is-resizing { overflow: hidden; }
.tab-panel { transition: opacity 0.45s var(--ease-glide), transform 0.55s var(--ease-glide), filter 0.45s var(--ease-glide); }
.tab-panel.is-leaving { opacity: 0; transform: translate3d(0, -12px, 0); filter: blur(3px); }
.tab-panel .grid > * {
  transition: opacity 0.9s var(--ease-glide), transform 1.1s var(--ease-feather);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.tab-panel.is-entering .grid > * { opacity: 0; transform: translate3d(0, 22px, 0); transition: none; }
@media (max-width: 700px) {
  .guide-tabs { gap: 8px; }
  .guide-tab { aspect-ratio: 1 / 1; }
  .guide-tab__desc { display: none; }
  .guide-tab__count { display: none; }
  .guide-tab__title { font-size: 0.95rem; }
  .guide-tab__text { left: 10px; right: 10px; bottom: 10px; }
}
.tab-intro { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; color: var(--ink-soft); }

/* ---------- Travel guide ----------
   Uses the same editorial .card as the rest of the page. The intro text is trimmed to four
   lines; "Read more" opens the full piece in the pop-up. */
.card--guide .card__media { aspect-ratio: 4 / 3.2; }
.card--guide .card__body p {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gallery button { padding: 0; border: 0; background: var(--sand); cursor: zoom-in; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-feather), opacity 0.6s var(--ease-glide); }
.gallery button:hover img { transform: scale(1.05); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Dialogs (detail pop-ups + lightbox) ---------- */
dialog {
  border: 0; padding: 0; border-radius: var(--radius-lg); color: var(--ink); background: var(--cream);
  width: min(100% - 32px, 920px); max-height: min(100% - 32px, 900px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}
dialog::backdrop { background: rgba(20, 15, 10, 0.72); backdrop-filter: blur(3px); }
/* Pop-ups land like the rest of the site: the backdrop fades in, the panel drifts up out of a
   soft blur, then its photo and text feather in one after another. Closing reverses gently
   (main.js adds .is-closing and waits for it before closing). */
dialog[open] { animation: dialog-in 1.1s var(--ease-feather) both; }
dialog[open]::backdrop { animation: backdrop-in 0.8s var(--ease-glide) both; }
dialog.is-closing { animation: dialog-out 0.5s var(--ease-glide) both; }
dialog.is-closing::backdrop { animation: backdrop-out 0.6s var(--ease-glide) both; }
dialog[open] .detail__content > :not(.detail__body),
dialog[open] .detail__body > * { animation: feather-in 1.3s var(--ease-feather) both; }
dialog[open] .detail__content > :not(.detail__body) { animation-delay: 0.12s; }
dialog[open] .detail__body > :nth-child(1) { animation-delay: 0.3s; }
dialog[open] .detail__body > :nth-child(2) { animation-delay: 0.38s; }
dialog[open] .detail__body > :nth-child(3) { animation-delay: 0.46s; }
dialog[open] .detail__body > :nth-child(n+4) { animation-delay: 0.54s; }
@keyframes dialog-in { from { opacity: 0; transform: translate3d(0, 32px, 0) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes dialog-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.99); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }
.dialog__close {
  position: sticky; top: 0; float: right; z-index: 2; margin: 10px 10px -54px 0;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.92); color: var(--ink); font-size: 1.6rem; line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.dialog__close:hover { background: var(--white); }
/* Detail pop-up: the panel itself never scrolls; only its content does. The close button is pinned
   to the panel corner, so it can't jitter or slide under the rounded edge (it used to be sticky inside
   the scrolling panel, which glitched on iPhone). */
#detail[open] { display: flex; flex-direction: column; overflow: hidden; }
#detail .detail__content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; outline: none; }
#detail .dialog__close { position: absolute; top: 12px; right: 12px; margin: 0; float: none; }
/* while a pop-up is open the page behind stays still (iOS otherwise scrolls it when you touch the dark area) */
html:has(dialog[open]), html:has(dialog[open]) body { overflow: hidden; }
.detail__media { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(70%, 1fr); gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--ink); }
.detail__media img { width: 100%; max-height: 440px; object-fit: cover; scroll-snap-align: start; }
.detail__media--single { display: block; }
.detail__media--single img { width: 100%; max-height: 460px; }
.detail__media--docs { grid-auto-columns: minmax(260px, 1fr); background: var(--sand); padding: 6px; }
.detail__media--docs img { object-fit: contain; background: var(--white); max-height: 520px; cursor: zoom-in; }
.detail__body { padding: clamp(24px, 4vw, 44px); }
.detail__body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.2em; }
.detail__body .card__latin { margin: 0 0 1.4em; }
.detail__body p { color: var(--ink-soft); }
.detail__hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; padding: 0 clamp(24px, 4vw, 44px); }

.lightbox { width: auto; max-width: min(100% - 32px, 1100px); background: transparent; box-shadow: none; overflow: visible; }
.lightbox img { max-height: calc(100svh - 120px); width: auto; margin: 0 auto; border-radius: 4px; }
.lightbox .dialog__close { position: absolute; top: -8px; right: -8px; margin: 0; float: none; }
.lightbox__nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.9); color: var(--ink); font-size: 1.4rem;
}
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__caption { color: #eee; text-align: center; font-size: 0.85rem; margin-top: 10px; }

/* ---------- Checklist tables ---------- */
.checklist { margin-top: 2rem; }
.checklist__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.checklist__bar h3 { margin: 0; }
.checklist input[type="search"] {
  font: inherit; font-size: 0.9rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); min-width: min(100%, 260px);
}
.checklist__count { font-size: 0.8rem; color: var(--ink-soft); }
.table-wrap { overflow: auto; max-height: 460px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.checklist table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.checklist th, .checklist td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.checklist th { position: sticky; top: 0; background: var(--sand); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.checklist tr:last-child td { border-bottom: 0; }
.checklist__notes { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }
.checklist__notes p { margin: 0 0 0.3em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brown); padding-top: 3px; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--brown); }

.form { background: var(--white); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form h2 { font-size: 1.8rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 0.95rem; padding: 12px 14px; border: 1px solid #d8cfc2; border-radius: var(--radius); background: var(--cream); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brown-light); outline-offset: 1px; border-color: var(--brown); }
.field textarea { min-height: 140px; resize: vertical; }
.form__status { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--sand); font-size: 0.92rem; }
.form__status[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

.map { width: 100%; height: clamp(320px, 45vw, 460px); border: 0; display: block; filter: saturate(0.85); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9beb1; padding: clamp(56px, 8vw, 90px) 0 28px; font-size: 0.92rem; }
.site-footer a { color: #eae2d7; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 84px; filter: invert(1); mix-blend-mode: screen; margin-bottom: 12px; }
.footer-brand strong { display: block; color: var(--white); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.site-footer h4 { color: var(--white); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.78rem; color: #968a7d; }
.footer-bottom p { margin: 0 0 0.5em; }

/* ---------- Mobile booking bar ----------
   A floating rounded bar that glides up once you're past the hero (main.js adds .is-shown)
   and tucks away while the menu is open, instead of sitting on screen from the first frame. */
.mobile-book {
  display: none; position: fixed; z-index: 40;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  /* Light frosted pill holding two buttons: reads against the dark footer, photos and cream sections alike
     (the dark version made "Call" disappear over the footer). */
  grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 999px;
  background: rgba(247, 242, 234, 0.9);
  border: 1px solid rgba(42, 36, 31, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 2px rgba(20,15,10,0.12), 0 16px 36px -14px rgba(20,15,10,0.55);
  opacity: 0; transform: translate3d(0, calc(100% + 24px), 0);
  transition: transform 0.9s var(--ease-glide), opacity 0.7s var(--ease-glide);
}
.mobile-book.is-shown { opacity: 1; transform: none; transition: transform 1.1s var(--ease-feather), opacity 0.8s var(--ease-glide); }
.mobile-book a {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 8px; border: 1px solid var(--brown); border-radius: 999px; color: var(--ink); text-decoration: none;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background-color 0.5s var(--ease-glide), transform 0.4s var(--ease-glide);
}
/* small phone icon before "Call" */
.mobile-book a:first-child::before {
  content: ""; width: 15px; height: 15px; background: var(--brown);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mobile-book a + a {
  color: var(--white);
  background: linear-gradient(180deg, #9a6a44 0%, var(--brown) 55%, #7f5434 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 6px 14px -8px rgba(110,74,46,0.8);
}
.mobile-book a:active { background-color: rgba(42,36,31,0.07); transform: scale(0.97); }
.mobile-book a + a:active { background: var(--brown-dark); }
/* Room for the floating bar goes inside the dark footer, not on <body>: body padding showed as a
   cream strip under the footer once the bar stopped being full-width. */
@media (max-width: 700px) {
  .mobile-book { display: grid; }
  .site-footer { padding-bottom: calc(28px + 76px + env(safe-area-inset-bottom)); }
}

/* ---------- Phones and touch screens: keep the same gentle feel ---------- */
html { -webkit-tap-highlight-color: transparent; } /* no grey flash on tap */
@media (hover: none) {
  /* hover effects "stick" after a tap on touch screens (a card stays zoomed after its pop-up closes): switch them off */
  .card:hover .card__media img, .room-tile:hover img, .gallery button:hover img { transform: none; }
  .exp-card:hover img { transform: scale(1.02); }
  .exp-card:hover::before { opacity: 0; }
  .exp-card:hover .arrow { background: transparent; border-color: rgba(241,220,198,0.55); transform: none; }
  .btn:hover { transform: none; }
  /* a soft press instead: the photo dims slightly while your finger is on it */
  .card__media img, .room-tile img, .exp-card img, .gallery img { transition: transform 1.4s var(--ease-glide), opacity 0.45s var(--ease-glide); }
  .card:active .card__media img, .room-tile:active img, .exp-card:active img, .gallery button:active img { opacity: 0.8; }
  .btn:active { transform: scale(0.97); transition-duration: 0.3s; }
}
@media (max-width: 700px) {
  /* lighter reveal on phones: no blur (it stutters on phone GPUs), shorter drift, same slow timing */
  .motion .reveal > *, .motion .reveal > :is(h1, h2, h3, p, .eyebrow, .lead, .section-head) { filter: none; transform: translate3d(0, 18px, 0); }

  /* pop-ups become a bottom sheet that glides up from the bottom edge and back down on close */
  dialog:not(.lightbox) {
    width: 100%; max-width: 100%; margin: auto 0 0; max-height: 90svh;
    border-radius: 22px 22px 0 0;
  }
  dialog:not(.lightbox)[open] { animation: sheet-in 0.9s var(--ease-feather) both; }
  dialog:not(.lightbox).is-closing { animation: sheet-out 0.48s var(--ease-glide) both; }
  /* one smooth movement on phones: the sheet glides up with its content already in place
     (the staggered fade inside, plus the backdrop blur, made iPhones stutter) */
  dialog[open] .detail__content > :not(.detail__body),
  dialog[open] .detail__body > * { animation: none; }
  dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* no rubber-band stretch inside the sheet, so no empty gap opens above the photo */
  #detail .detail__content { overscroll-behavior: none; }
}
@keyframes sheet-in { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@keyframes sheet-out { from { transform: none; } to { transform: translate3d(0, 100%, 0); } }

/* ---------- Page transitions ----------
   Browsers with cross-document View Transitions (Chrome/Edge 126+, Safari 18.2+): the old page
   fades and lifts slightly, the new one settles in; the header stays put between pages.
   Other browsers get a short fade-out from main.js (html.is-leaving) and the normal load animation. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.45s var(--ease-glide) both; }
  ::view-transition-new(root) { animation: vt-in 0.8s var(--ease-feather) both; }
  ::view-transition-group(site-header) { animation-duration: 0.6s; animation-timing-function: var(--ease-glide); }
  body { transition: opacity 0.4s var(--ease-glide); }
  html.is-leaving body { opacity: 0; }
}
@keyframes vt-out { to { opacity: 0; transform: translate3d(0, -10px, 0); } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

/* ---------- Smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Feather reveal: scroll-based entrance + exit ----------
   JS adds .motion to <html> and sets --i on each child of .reveal (stagger).
   States: (none) = below viewport, .is-visible = in view, .is-above = scrolled past. */
.motion .reveal > * {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 1.2s var(--ease-feather),
    transform 1.6s var(--ease-feather),
    filter 1.2s var(--ease-feather);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
.motion .reveal > :is(h1, h2, h3, p, .eyebrow, .lead, .section-head) { filter: blur(5px); }
.motion .reveal.is-visible > * { opacity: 1; transform: none; filter: none; }
.motion .reveal.is-above > * { transform: translate3d(0, -16px, 0); transition-delay: 0ms; transition-duration: 0.9s, 1.1s, 0.9s; }

/* Images in split sections open like a window */
.motion .split__media.reveal > img { clip-path: inset(10% 6% 10% 6% round var(--radius-lg)); transform: scale(1.04); transition: clip-path 1.6s var(--ease-feather), transform 1.8s var(--ease-feather), opacity 1.2s var(--ease-feather); transition-delay: calc(var(--i, 0) * 140ms); }
.motion .split__media.reveal.is-visible > img { clip-path: inset(0 0 0 0 round var(--radius-lg)); transform: none; }

/* Hero: gentle settle on page load */
.motion .hero__bg { animation: hero-settle 2.8s var(--ease-feather) both; }
.motion .hero__content > * { animation: feather-in 1.6s var(--ease-feather) both; }
.motion .hero__content > :nth-child(1) { animation-delay: 0.25s; }
.motion .hero__content > :nth-child(2) { animation-delay: 0.4s; }
.motion .hero__content > :nth-child(3) { animation-delay: 0.55s; }
.motion .hero__content > :nth-child(4) { animation-delay: 0.7s; }
@keyframes hero-settle { from { transform: scale(1.08); opacity: 0.6; } to { transform: scale(1); opacity: 1; } }
@keyframes feather-in { from { opacity: 0; transform: translate3d(0, 24px, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal > *, .split__media.reveal > img { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; transition: none !important; }
  * { animation: none !important; }
}

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