﻿/* ============================================================
   Balai-Reserve — public site (landing page + /stay detail pages)
   V3 §05: warm-white header, immersive panoramic hero with a calm
   booking dock, photo-led discovery, editorial About, gallery mosaic,
   occasion-led events, booking explainer, real reviews, useful footer.
   Uses the V3 tokens in tokens.css; listings, galleries, booking summary,
   photo viewer and date picker live in listing.css.
   Colour budget: ~70% light neutrals (canvas / white / sand-100),
   ocean for actions and ink, sand-400 / sea-glass only as small accents.
   ============================================================ */

body.landing-body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
.landing-body img { max-width: 100%; }
/* Zero-specificity resets so component rules below always win */
:where(.landing-body) p { margin: 0 0 var(--space-3); }
:where(.landing-body) :is(h1, h2, h3, h4) { margin: 0; }
:where(.landing-body) a:not(.btn) { color: var(--color-ocean-700); }
:where(.landing-body) a:not(.btn):hover { color: var(--color-ocean-800); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.landing-body [id] { scroll-margin-top: 92px; }

.wrap {
  max-width: calc(var(--layout-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 1200;
  padding: var(--space-3) var(--space-4);
  background: var(--color-ocean-900); color: #fff !important; border-radius: var(--radius-button);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

/* ── Shared type ─────────────────────────────────────────── */
.hero-title, .section-title, .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ocean-900);
  letter-spacing: -.01em;
}
.section-title {
  font-size: var(--text-section);
  line-height: 1.1;
  margin-bottom: var(--space-3);
  max-width: 22ch;
  text-wrap: balance;
}
.section-sub { color: var(--color-secondary); font-size: 1.0625rem; max-width: 60ch; margin: 0; }
.section-head { margin-bottom: var(--space-8); }
.section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-6); }

.text-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px;
  color: var(--color-ocean-700); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.text-link:hover { color: var(--color-ocean-800); text-decoration-thickness: 2px; }
.text-link i { font-size: .8em; transition: transform var(--dur-press) var(--ease-out); }
.text-link:hover i { transform: translateX(2px); }

.landing-body .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); }
.landing-body .btn-lg { min-height: 48px; font-size: var(--text-body); padding: 0 var(--space-6); }

/* ── Header (V3 §5.1) ───────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(252, 251, 248, .97);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-press) var(--ease-out), box-shadow var(--dur-panel) var(--ease-out);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(252, 251, 248, .9); backdrop-filter: saturate(1.4) blur(10px); } }
.site-header.scrolled { border-bottom-color: var(--color-divider); box-shadow: 0 4px 18px rgba(20, 52, 58, .06); }
.header-inner {
  max-width: calc(var(--layout-max) + 2 * var(--gutter)); margin: 0 auto;
  height: 64px; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: var(--space-3);
}
@media (min-width: 1024px) { .header-inner { height: 80px; gap: var(--space-6); } }

.brand { display: flex; flex-direction: column; justify-content: center; min-height: 44px; text-decoration: none; line-height: 1.1; min-width: 0; }
.brand-name { font-size: 1.3125rem; white-space: nowrap; }
.brand-place { font-size: var(--text-meta); color: var(--color-secondary); white-space: nowrap; margin-top: 2px; }

.header-nav { display: none; gap: 2px; margin: 0 auto; }
.header-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--color-text); font-weight: 500; font-size: .9375rem; text-decoration: none;
  border-radius: var(--radius-button);
  transition: background-color var(--dur-press) var(--ease-out), color var(--dur-press) var(--ease-out);
}
.header-nav a:hover { color: var(--color-ocean-800); background: var(--color-seaglass-100); }
.header-nav a.is-current { color: var(--color-ocean-800); }
.header-nav a.is-current::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--color-sand-400); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.header-link {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--space-3);
  color: var(--color-text) !important; font-weight: 600; text-decoration: none; white-space: nowrap;
  border-radius: var(--radius-button);
}
.header-link:hover { background: var(--color-seaglass-100); }
.header-cta { padding: 0 var(--space-5); white-space: nowrap; }
.cta-short { display: none; }
@media (max-width: 1023.98px) {
  .cta-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .cta-short { display: inline; }
  .header-cta { padding: 0 var(--space-5); }
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; min-width: 44px; padding: 0 var(--space-3);
  background: var(--color-white); color: var(--color-ocean-900);
  border: 1px solid var(--color-divider); border-radius: var(--radius-button);
  font-weight: 600; font-size: var(--text-small); cursor: pointer;
}
.nav-toggle:hover { background: var(--color-seaglass-100); }

@media (max-width: 479.98px) {
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .brand-place { display: none; }
}
@media (max-width: 359.98px) {
  .brand-name { font-size: 1.125rem; }
  .header-inner { gap: var(--space-2); }
  .header-cta { padding: 0 var(--space-4); }
}
@media (min-width: 640px) { .header-link { display: inline-flex; } }
@media (min-width: 1024px) {
  .header-nav { display: flex; }
  .nav-toggle { display: none; }
  .header-actions { margin-left: 0; }
}

/* ── Mobile navigation drawer ───────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) max(var(--space-5), env(safe-area-inset-bottom));
  background: var(--color-canvas);
  overflow-y: auto;
  animation: menu-in var(--dur-panel) var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.mobile-menu[hidden] { display: none; }
@media (min-width: 576px) {
  .mobile-menu { left: auto; width: 400px; border-left: 1px solid var(--color-divider); box-shadow: var(--shadow-modal); }
}
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; flex-shrink: 0;
}
.mobile-close {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-3);
  background: var(--color-white); color: var(--color-ocean-900);
  border: 1px solid var(--color-divider); border-radius: var(--radius-button);
  font-weight: 600; font-size: var(--text-small); cursor: pointer;
}
.mobile-menu nav { display: flex; flex-direction: column; margin-top: var(--space-2); }
.mobile-menu nav a {
  display: flex; align-items: center; min-height: 56px;
  font-size: 1.125rem; font-weight: 600; color: var(--color-ocean-900); text-decoration: none;
  border-bottom: 1px solid var(--color-divider);
}
.mobile-menu nav a:hover { color: var(--color-ocean-700); }
.mobile-menu-actions { display: grid; gap: var(--space-3); margin-top: var(--space-7); }
.mobile-menu-sub { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 600; }
body.menu-open { overflow: hidden; }

/* ── Hero: immersive panoramic photo (V3 §5.2) ──────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(440px, 72svh, 560px);
  background: var(--color-ocean-900);
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* The bundled photo is portrait: phones keep the whole gazebo with the sea behind it,
   wide screens take a panoramic band through the roof, the posts and the horizon. */
.hero--default .hero-media img { object-position: 50% 74%; }
.hero::after {   /* directional shade only where the words sit (top on phones) */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 52, 58, .62) 0%, rgba(20, 52, 58, .28) 38%, rgba(20, 52, 58, 0) 62%);
}
.hero-inner { height: 100%; display: flex; align-items: flex-start; padding-top: var(--space-8); }
.hero-copy { max-width: 620px; }
.hero-place {
  display: flex; align-items: baseline; gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: rgba(255, 255, 255, .92); font-size: var(--text-small); font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.hero-place i { color: var(--color-sand-400); }
.hero-title {
  color: #fff;
  font-size: var(--text-display);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 var(--space-4);
  max-width: 12ch;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(11, 28, 32, .28);
}
.hero-intro { font-size: 1.0625rem; max-width: 44ch; margin: 0; color: rgba(255, 255, 255, .94); text-shadow: 0 1px 8px rgba(11, 28, 32, .35); }
.hero-intro strong { color: #fff; font-weight: 600; }
@media (min-width: 768px) {
  .hero { height: clamp(500px, 62vw, 620px); }
  .hero--default .hero-media img { object-position: 50% 68%; }
  .hero-inner { padding-top: var(--space-10); }
}
@media (min-width: 1024px) {
  .hero { height: clamp(540px, 44vw, 680px); }
  .hero--default .hero-media img { object-position: 50% 61%; }
  .hero::after { background: linear-gradient(90deg, rgba(20, 52, 58, .66) 0%, rgba(20, 52, 58, .34) 34%, rgba(20, 52, 58, 0) 58%), linear-gradient(0deg, rgba(20, 52, 58, .24), transparent 30%); }
  .hero-inner { align-items: center; padding: 0 var(--gutter) 96px; }
  .hero-intro { font-size: 1.1875rem; }
}

/* ── Booking search dock ─────────────────────────────────── */
.dock-wrap { position: relative; z-index: 5; margin-top: -28px; }
.search {
  padding: var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-modal);
  box-shadow: 0 14px 40px rgba(20, 52, 58, .12);
}
.search-kind { margin: 0 0 var(--space-4); padding: 0; border: 0; min-width: 0; }
.search-kind legend { float: none; width: auto; margin: 0 0 var(--space-2); padding: 0; font-size: var(--text-small); font-weight: 600; color: var(--color-ocean-900); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; align-items: center;
  min-height: 52px; padding: 6px 12px;
  border: 1px solid var(--br-hairline-2); border-radius: var(--radius-button);
  background: var(--color-white); cursor: pointer;
  font-weight: 600; font-size: .9375rem; line-height: 1.2; color: var(--color-ocean-900);
  transition: border-color var(--dur-press) var(--ease-out), background-color var(--dur-press) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.seg label i { grid-row: 1 / span 2; color: var(--color-ocean-700); font-size: .9375rem; text-align: center; }
.seg label span { font-weight: 400; font-size: var(--text-meta); color: var(--color-secondary); }
.seg label:hover { border-color: var(--color-ocean-700); }
.seg label:active { transform: scale(.98); }
.seg input:checked + label { border-color: var(--color-ocean-700); background: var(--color-seaglass-100); box-shadow: inset 0 0 0 1px var(--color-ocean-700); }
.seg input:focus-visible + label { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.search-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.search-fields .field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.search-fields .field[hidden] { display: none; }
.search-fields label { font-size: var(--text-meta); font-weight: 600; color: var(--color-text); }
.search-fields .form-control { min-height: 50px; font-size: 1rem; }
.search-fields .form-control[aria-invalid="true"] { border-color: var(--color-danger); }
.search[data-kind="event"] .field-guests, .search[data-kind="room"] .field-guests { grid-column: 1 / -1; }
.search[data-kind="event"] .search-fields .field:first-child { grid-column: 1 / -1; }
.search[data-kind="cottage"] .search-fields .field:first-child, .search[data-kind="venue"] .search-fields .field:first-child { grid-column: 1 / -1; }
.search-error { margin: var(--space-3) 0 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-input); background: #fbe4e2; color: #8c1d14; font-size: var(--text-small); font-weight: 600; }
.search-submit { width: 100%; margin-top: var(--space-4); }
.search-help { margin: var(--space-3) 0 0; font-size: var(--text-meta); color: var(--color-secondary); }
.search-help strong { color: var(--color-text); }

@media (min-width: 576px) { .seg { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) { .dock-wrap { margin-top: -48px; } }
@media (min-width: 1024px) {
  .dock-wrap { margin-top: -84px; }
  .search { padding: var(--space-5) var(--space-6) var(--space-4); max-width: 1120px; margin: 0 auto; }
  .search-kind { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
  .search-kind legend { margin: 0; float: left; white-space: nowrap; }
  .seg { display: flex; flex-wrap: wrap; gap: 6px; }
  .seg label { display: inline-flex; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-chip); }
  .seg label i { font-size: .875rem; }
  .seg label span { display: none; }
  .search-row { display: flex; align-items: flex-end; gap: var(--space-3); }
  .search-fields { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; }
  .search .search-fields .field { grid-column: auto !important; }
  .search-submit { width: auto; margin: 0; min-height: 50px; padding: 0 var(--space-6); }
  .search-help { margin-top: var(--space-3); }
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding: var(--space-10) 0; }
@media (min-width: 1024px) { .section { padding: var(--space-12) 0; } }
.anchor-alias { position: relative; top: -92px; display: block; height: 0; }

/* ── Find your spot (V3 §5.3) ───────────────────────────── */
.stay { padding-top: var(--space-10); }
.cat-switch { margin: calc(-1 * var(--space-4)) 0 var(--space-7); }
.cat-tabs-row {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter);
}
.cat-tabs-row::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--color-divider); border-radius: var(--radius-chip);
  background: var(--color-white); color: var(--color-text);
  font-weight: 600; font-size: .9375rem; cursor: pointer;
  transition: background-color var(--dur-press) var(--ease-out), border-color var(--dur-press) var(--ease-out), color var(--dur-press) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.cat-tab:hover { border-color: var(--color-ocean-700); }
.cat-tab:active { transform: scale(.97); }
.cat-tab[aria-selected="true"] { background: var(--color-ocean-900); border-color: var(--color-ocean-900); color: #fff; }
.cat-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--color-sand-100); color: var(--color-ocean-900); font-size: var(--text-meta); font-weight: 700; }
.cat-tab[aria-selected="true"] .cat-n { background: rgba(255, 255, 255, .18); color: #fff; }
.cat-panel + .cat-panel { margin-top: var(--space-10); }
.js-tabs .cat-panel + .cat-panel { margin-top: 0; }
.cat-panel[hidden] { display: none; }
.cat-panel:focus { outline: none; }
.cat-panel:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 8px; border-radius: 8px; }
.cat-panel-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0 var(--space-4); margin-bottom: var(--space-5);
}
.group-title { font-family: var(--font-ui); font-size: 1.25rem; font-weight: 700; color: var(--color-ocean-900); }
.group-title span { display: inline-block; font-size: var(--text-small); font-weight: 500; color: var(--color-secondary); margin-left: var(--space-2); }

/* Packages, compact (the full comparison is in Events) */
.pk-mini { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-divider); }
.pk-mini li { border-bottom: 1px solid var(--color-divider); }
.pk-mini-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; gap: 2px var(--space-4); align-items: center;
  min-height: 64px; padding: var(--space-3) var(--space-2);
  color: var(--color-text) !important; text-decoration: none;
  border-radius: var(--radius-input);
  transition: background-color var(--dur-press) var(--ease-out);
}
.pk-mini-link:hover { background: var(--color-sand-100); }
.pk-mini-occ { grid-column: 1; font-size: var(--text-meta); font-weight: 600; color: var(--color-ocean-700); }
.pk-mini-name { grid-column: 1; font-weight: 700; color: var(--color-ocean-900); }
.pk-mini-meta { grid-column: 1; font-size: var(--text-small); color: var(--color-secondary); }
.pk-mini-price { grid-column: 2; grid-row: 1 / span 3; text-align: right; font-size: var(--text-small); color: var(--color-secondary); white-space: nowrap; }
.pk-mini-price strong { display: block; font-size: 1.125rem; color: var(--color-ocean-900); font-variant-numeric: tabular-nums; }
.pk-mini-link > i { grid-column: 3; grid-row: 1 / span 3; color: var(--color-ocean-700); font-size: .8rem; transition: transform var(--dur-press) var(--ease-out); }
.pk-mini-link:hover > i { transform: translateX(3px); }
@media (min-width: 768px) {
  .pk-mini-link { grid-template-columns: 150px minmax(0, 1fr) auto auto 16px; padding: var(--space-3) var(--space-3); }
  .pk-mini-occ, .pk-mini-name, .pk-mini-meta { grid-row: 1; }
  .pk-mini-occ { grid-column: 1; }
  .pk-mini-name { grid-column: 2; }
  .pk-mini-meta { grid-column: 3; }
  .pk-mini-price { grid-column: 4; grid-row: 1; }
  .pk-mini-price strong { display: inline; }
  .pk-mini-link > i { grid-column: 5; grid-row: 1; }
}

/* ── About: editorial split on sand ─────────────────────── */
.about { background: var(--color-sand-100); }
.about::before {   /* coastline: a gentle curved edge into the sand section */
  content: ''; position: absolute; left: 0; right: 0; top: -39px; height: 40px; pointer-events: none;
  background: var(--color-sand-100);
  -webkit-mask: radial-gradient(75% 140% at 50% 140%, #000 99%, transparent 100%);
          mask: radial-gradient(75% 140% at 50% 140%, #000 99%, transparent 100%);
}
.about { position: relative; margin-top: var(--space-8); }
.about-grid { display: grid; gap: var(--space-7); }
.about-photo { margin: 0; position: relative; }
.about-photo img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-white);
  border-radius: 140px 18px 18px 18px / 110px 18px 18px 18px;   /* a soft shoreline curve */
}
.about-photo figcaption { margin-top: var(--space-2); font-size: var(--text-small); color: var(--color-secondary); }
.about-photo::after {   /* tiny sand accent */
  content: ''; position: absolute; right: -10px; bottom: 28px; width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--color-sand-400); opacity: .7; pointer-events: none;
}
.about-text .lede { font-size: 1.1875rem; color: var(--color-text); max-width: 54ch; line-height: 1.5; }
.about-text p { max-width: 60ch; }
.about-facts { margin: var(--space-6) 0 0; display: grid; gap: 0 var(--space-6); }
.about-facts > div { padding: var(--space-3) 0; border-top: 1px solid rgba(20, 52, 58, .12); }
.about-facts dt { font-weight: 700; color: var(--color-ocean-900); }
.about-facts dd { margin: 0; color: var(--color-secondary); font-size: .9375rem; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .about-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639.98px) { .about-photo::after { display: none; } }
@media (min-width: 992px) {
  .about.has-photo .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-10); align-items: center; }
  .about.has-photo .about-photo img { aspect-ratio: 4 / 5; max-height: 640px; border-radius: 220px 18px 18px 18px / 160px 18px 18px 18px; }
}

/* ── Gallery mosaic (V3 §5.4) ───────────────────────────── */
.gal {
  position: relative; display: grid; gap: 8px;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-media); overflow: hidden;
}
.gal-item { position: relative; margin: 0; min-width: 0; min-height: 0; }
.gal-item.gal-main { grid-column: 1 / -1; }
.gal-item:nth-child(n+4) { display: none; }
.gal-open { display: block; height: 100%; overflow: hidden; background: var(--color-sand-100); cursor: zoom-in; aspect-ratio: 4 / 3; }
.gal-main .gal-open { aspect-ratio: 4 / 3; }
.gal-open img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 480ms var(--ease-out), filter var(--dur-press) var(--ease-out); }
@media (hover: hover) { .gal-open:hover img { transform: scale(1.035); filter: brightness(.95); } }
.gal-open:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -3px; }
.gal-item figcaption {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  padding: 3px 10px; border-radius: 8px;
  background: rgba(20, 52, 58, .72); color: #fff; font-size: var(--text-meta); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.gal .gal-all {
  position: absolute; right: 12px; top: 12px; z-index: 2;   /* top corner: never under the floating chat button */
  min-height: 44px; padding: 0 var(--space-4);
  background: #fff; color: var(--color-ocean-900); border: 1px solid var(--color-ocean-900); border-radius: var(--radius-button);
  font-size: var(--text-small); box-shadow: 0 2px 10px rgba(20, 52, 58, .16);
}
.gal .gal-all:hover { background: var(--color-canvas); }
.gal--n1 { grid-template-columns: 1fr; }
.gal--n1 .gal-main .gal-open { aspect-ratio: 16 / 10; }
.gal--n2 .gal-item:nth-child(2) { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .gal { height: clamp(380px, 44vw, 580px); grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .gal-item, .gal-item:nth-child(n+4) { display: block; }
  .gal-open, .gal-main .gal-open { aspect-ratio: auto; }
  .gal-item.gal-main { grid-column: 1; grid-row: 1 / span 2; }
  .gal--n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .gal--n2 { grid-template-columns: 3fr 2fr; grid-template-rows: 1fr; }
  .gal--n2 .gal-item:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
  .gal--n3 { grid-template-columns: 2fr 1fr; }
  .gal--n4 .gal-item:nth-child(4) { grid-column: 2 / span 2; }
}

/* ── Events (V3 §5.5) ───────────────────────────────────── */
.events { background: var(--color-white); }
.events-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-7); }
.events-more { margin: 0; color: var(--color-secondary); font-size: .9375rem; max-width: 46ch; }
.events-more a { font-weight: 600; }
@media (min-width: 992px) {
  .events-head { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; gap: var(--space-9); }
}
.occ-filter { margin: 0 0 var(--space-6); }
.occ-filter[hidden] { display: none; }
.occ-label { margin: 0 0 var(--space-2); font-size: var(--text-small); font-weight: 600; color: var(--color-ocean-900); }
.occ-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.occ-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--color-divider); border-radius: var(--radius-chip); background: var(--color-canvas);
  color: var(--color-text); font-weight: 600; font-size: var(--text-small); cursor: pointer;
  transition: background-color var(--dur-press) var(--ease-out), border-color var(--dur-press) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.occ-chip span { color: var(--color-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.occ-chip:hover { border-color: var(--color-ocean-700); }
.occ-chip:active { transform: scale(.97); }
.occ-chip[aria-pressed="true"] { background: var(--color-seaglass-100); border-color: var(--color-ocean-700); color: var(--color-ocean-900); box-shadow: inset 0 0 0 1px var(--color-ocean-700); }
.occ-chip[aria-pressed="true"] span { color: var(--color-ocean-700); }

/* ── Amenities: verified, grouped, compact ───────────────── */
.amenities-grid { display: grid; gap: var(--space-6); }
.amenity-groups { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.amenity-title { margin: 0 0 var(--space-2); font-size: var(--text-body); font-weight: 700; color: var(--color-ocean-900); }
.amenity-list { list-style: none; margin: 0; padding: 0; }
.amenity-list li { display: flex; gap: var(--space-3); align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--color-divider); font-size: .9375rem; }
.amenity-list i { color: var(--color-ocean-700); font-size: .8125rem; }
@media (min-width: 768px) {
  .amenities-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-9); align-items: start; }
}

/* ── How booking works: four-stage timeline + verification ─ */
.how { background: var(--color-canvas); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 var(--space-6) 56px; }
.step::before {   /* the path between stages */
  content: ''; position: absolute; left: 17px; top: 40px; bottom: 4px;
  border-left: 2px dashed rgba(201, 138, 29, .45);
}
.step:last-child::before { display: none; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-ocean-700); color: #fff; font-weight: 700; font-size: .9375rem;
  box-shadow: 0 0 0 5px var(--color-seaglass-100);
}
.step-title { font-size: 1.0625rem; font-weight: 700; color: var(--color-ocean-900); margin: 6px 0 var(--space-1); }
.step p { color: var(--color-secondary); font-size: .9375rem; max-width: 42ch; margin: 0; }
.step strong { color: var(--color-text); }
@media (min-width: 992px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-7); }
  .step { padding: 56px 0 0; }
  .step::before { left: 48px; right: calc(-1 * var(--space-7) + 8px); top: 17px; bottom: auto; border-left: 0; border-top: 2px dashed rgba(201, 138, 29, .45); }
  .step-title { margin-top: 0; }
}
.how-after {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-4); align-items: start;
  margin-top: var(--space-6); padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-media); background: var(--color-seaglass-100);
}
.how-after-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-white); color: var(--color-ocean-700); }
.how-after .step-title { margin-top: 2px; }
.how-after p { margin: 0; max-width: 78ch; color: var(--color-text); }
.how-foot {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-5) var(--space-9);
  margin-top: var(--space-7);
}
.policy { flex: 1 1 320px; max-width: 64ch; }
.policy-title { font-size: var(--text-body); font-weight: 700; color: var(--color-ocean-900); margin-bottom: var(--space-1); }
.policy p { color: var(--color-secondary); font-size: .9375rem; margin: 0; }

/* ── Guest feedback ─────────────────────────────────────── */
.reviews { background: var(--color-sand-100); position: relative; margin-top: var(--space-8); }
.reviews::before {
  content: ''; position: absolute; left: 0; right: 0; top: -39px; height: 40px; pointer-events: none;
  background: var(--color-sand-100);
  -webkit-mask: radial-gradient(75% 140% at 50% 140%, #000 99%, transparent 100%);
          mask: radial-gradient(75% 140% at 50% 140%, #000 99%, transparent 100%);
}
.review-list { list-style: none; margin: var(--space-7) 0 0; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .review-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); } }
.review { margin: 0; height: 100%; padding: var(--space-6); border-radius: var(--radius-media); background: var(--color-white); }
.review-stars { margin: 0 0 var(--space-3); color: #b57a12; font-size: .875rem; letter-spacing: 2px; }
.review blockquote { margin: 0 0 var(--space-4); }
.review blockquote p { font-size: 1.125rem; line-height: 1.5; color: var(--color-text); margin: 0; }
.review figcaption { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-small); }
.review figcaption > span:last-child { display: flex; flex-direction: column; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--color-seaglass-100); color: var(--color-ocean-800); font-weight: 700; }
.review-name { font-weight: 600; color: var(--color-ocean-900); }
.review-meta { color: var(--color-secondary); }

/* ── Location & contact ─────────────────────────────────── */
.contact-grid { display: grid; gap: var(--space-7); }
.contact-address { font-style: normal; font-size: 1.1875rem; font-weight: 600; color: var(--color-ocean-900); margin-bottom: var(--space-3); max-width: 34ch; }
.contact-arrival { color: var(--color-secondary); max-width: 52ch; margin-top: var(--space-3); }
.contact-arrival strong { color: var(--color-text); }
.contact-list { margin: 0; }
.contact-list > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--color-divider); }
.contact-list > div:last-child { border-bottom: 1px solid var(--color-divider); }
.contact-list dt { font-size: var(--text-small); font-weight: 600; color: var(--color-secondary); padding-top: 2px; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { font-weight: 600; }
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-9); align-items: start; }
  .contact-list { margin-top: var(--space-2); }
}

/* ── Footer: grounded, useful ───────────────────────────── */
.site-footer {
  position: relative; margin-top: 48px;
  background: var(--color-ocean-900); color: rgba(255, 255, 255, .82);
  padding: var(--space-9) 0 var(--space-5);
  font-size: .9375rem;
}
.footer-shore { position: absolute; left: 0; top: -47px; width: 100%; height: 48px; fill: var(--color-ocean-900); display: block; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--color-seaglass-400); }
.footer-grid { display: grid; gap: var(--space-7); }
.footer-grid > * { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-brand .brand-name { color: #fff; margin-bottom: var(--space-1); font-size: 1.5rem; }
.footer-tagline { margin: 0 0 var(--space-2); color: var(--color-seaglass-400); }
.footer-address { font-style: normal; max-width: 32ch; margin: 0; }
.footer-head { font-family: var(--font-ui); font-size: var(--text-small); font-weight: 600; color: var(--color-sand-400); margin-bottom: var(--space-2) !important; }
.footer-facts { list-style: none; margin: 0 0 var(--space-1); padding: 0; }
.footer-facts li { padding: 4px 0; max-width: 34ch; }
.footer-base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4);
  margin-top: var(--space-7); padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: var(--text-small);
  padding-bottom: 72px; /* room for the floating chat button */
}
.footer-account { display: inline-flex; gap: var(--space-5); }
.footer-base a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .gal-open img, .text-link i, .pk-mini-link > i { transition: none; }
  .gal-open:hover img { transform: none; }
  .mobile-menu { animation: none; }
}

/* ── Small phones: compact category tabs and group titles ── */
@media (max-width: 479.98px) {
  .cat-tab { padding: 0 14px; font-size: .875rem; }
  .cat-n { display: none; }
  .group-title span { display: block; margin: 2px 0 0; }
}
@media (max-width: 767.98px) {
  .occ-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; }
  .occ-chips::-webkit-scrollbar { display: none; }
  .occ-chip { flex-shrink: 0; }
}

/* Phones held sideways: a shorter hero so the search starts within the first screen */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1023.98px) {
  .hero { height: 330px; }
  .hero-inner { padding-top: var(--space-5); }
  .hero-title { font-size: 2.5rem; margin-bottom: var(--space-3); }
  .hero-intro { max-width: 52ch; }
  .hero--default .hero-media img { object-position: 50% 62%; }
}

/* ── Brand badge: logo spans both lines of the wordmark ───────── */
.brand { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; align-content: center; }
.brand > .brand-logo { grid-column: 1; grid-row: 1 / span 2; }
.brand > :not(.brand-logo) { grid-column: 2; }
.menu-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.menu-brand .brand-logo { width: 40px; height: 40px; }
.footer-brand .footer-logo { width: 72px; height: 72px; margin-bottom: var(--space-3); box-shadow: 0 0 0 3px rgba(255, 255, 255, .16); }
@media (max-width: 359.98px) { .brand > .brand-logo { width: 38px; height: 38px; } .brand { column-gap: 8px; } }

/* ── Floating pill header (all widths) ────────────────────────
   The bar is a rounded capsule floating below the top edge. Over the
   homepage photo it is dark glass with white text; once the page
   scrolls (and on every other page) it is light frosted glass. */
.landing-body { --hdr-gap: 12px; --hdr-pill: 64px; --hdr-h: calc(var(--hdr-gap) + var(--hdr-pill)); }
@media (min-width: 1024px) { .landing-body { --hdr-gap: 14px; --hdr-pill: 70px; } }
.site-header,
.site-header.scrolled {
  padding: calc(var(--hdr-gap) + env(safe-area-inset-top)) var(--gutter) 0;
  background: transparent; border-bottom: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  pointer-events: none;            /* the space around the pill never blocks the page */
}
.site-header .header-inner {
  pointer-events: auto;
  max-width: var(--layout-max); height: var(--hdr-pill);
  padding: 0 10px 0 12px; gap: var(--space-3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(20, 52, 58, .06);
  box-shadow: 0 10px 30px rgba(20, 52, 58, .12), 0 1px 3px rgba(20, 52, 58, .06);
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.site-header.scrolled .header-inner { box-shadow: 0 14px 36px rgba(20, 52, 58, .16), 0 1px 3px rgba(20, 52, 58, .08); }
@media (min-width: 1024px) { .site-header .header-inner { padding: 0 12px 0 14px; gap: var(--space-5); } }

/* Pill-shaped pieces inside the pill */
.site-header .brand-logo { box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(20, 52, 58, .16); }
.header-nav a, .header-link, .header-cta { border-radius: 999px; }
.header-nav a.is-current { background: var(--color-seaglass-100); }
.header-nav a.is-current::after { display: none; }
.header-cta { min-height: 44px; box-shadow: 0 4px 14px rgba(15, 92, 102, .22); }
.nav-toggle { border-radius: 999px; }

/* The homepage photo runs up behind the floating header; its content box keeps its size,
   so the words and the search card stay exactly where they were. */
.landing-body:has(.site-header.on-home) .hero {
  box-sizing: content-box;
  margin-top: calc(-1 * (var(--hdr-h) + env(safe-area-inset-top)));
  padding-top: calc(var(--hdr-h) + env(safe-area-inset-top));
}

/* ── Events & celebrations ─────────────────────────────────────
   Minimal: a moving headline, one line of copy, a living illustration
   and a row of illustrated package cards. Details live on each package page. */
.events { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--color-canvas) 0%, #fbf6ee 100%); }
.events .wrap { position: relative; }

.ev-head { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .ev-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-9); } }

.ev-title {
  margin: 0 0 var(--space-4); font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.08; letter-spacing: -.025em; color: var(--color-ocean-900);
}
/* The rotating word: slides through the occasions, ink-to-sea gradient, a gold wave underneath. */
.ev-rotator {
  position: relative; display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom;
  padding-bottom: .12em; margin-bottom: -.12em;
}
.ev-words { display: flex; flex-direction: column; animation: evWords 10s cubic-bezier(.7, 0, .2, 1) infinite; }
.ev-words > span {
  display: block; height: 1.1em; line-height: 1.1em; white-space: nowrap; width: max-content;
  text-decoration: underline wavy #e8b96a; text-decoration-thickness: .055em; text-underline-offset: .16em; text-decoration-skip-ink: none;
  background: linear-gradient(90deg, var(--color-ocean-700), #2a9d8f 60%, #e07a5f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes evWords {
  0%, 20%   { transform: translateY(0); }
  25%, 45%  { transform: translateY(-1.1em); }
  50%, 70%  { transform: translateY(-2.2em); }
  75%, 95%  { transform: translateY(-3.3em); }
  100%      { transform: translateY(-4.4em); }
}
.ev-lede { margin: 0 0 var(--space-5); max-width: 40ch; font-size: 1.125rem; line-height: 1.55; color: var(--color-secondary); }
.ev-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--color-ocean-700); text-decoration: none; }
.ev-link i { font-size: .8125rem; transition: transform .25s var(--ease-out); }
.ev-link:hover { color: var(--color-ocean-800); }
.ev-link:hover i { transform: translateX(4px); }

/* The illustration breathes: balloons float, lights twinkle, the candle flickers, the sea moves. */
.ev-art { width: 100%; max-width: 520px; justify-self: center; }
.ev-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.ev-art .balloons { transform-box: fill-box; transform-origin: 50% 100%; animation: evFloat 6s ease-in-out infinite; }
.ev-art .bulb { animation: evTwinkle 2.6s ease-in-out infinite; }
.ev-art .bulb:nth-child(2n) { animation-delay: -1.3s; }
.ev-art .bulb:nth-child(3n) { animation-delay: -.7s; }
.ev-art .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: evFlicker 1.4s ease-in-out infinite; }
.ev-art .wave-1 { animation: evWave 9s linear infinite; }
.ev-art .wave-2 { animation: evWave 6s linear infinite reverse; }
.ev-art .palm { transform-box: fill-box; transform-origin: 30% 100%; animation: evSway 7s ease-in-out infinite; }
.ev-art .confetti { animation: evDrift 8s ease-in-out infinite; }
@keyframes evFloat   { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes evTwinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes evFlicker { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(.9, 1.12); } }
@keyframes evWave    { from { transform: translateX(0); } to { transform: translateX(72px); } }
@keyframes evSway    { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.5deg); } }
@keyframes evDrift   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 899.98px) { .ev-art { order: -1; max-width: 420px; } }

/* Package row: scrolls sideways at every width; arrows on wider screens. */
.ev-row { position: relative; margin-top: var(--space-8); }
@media (min-width: 768px) { .ev-row { margin-top: calc(var(--space-9) + 8px); } }
.ev-row-nav { display: none; }
@media (min-width: 768px) {
  .ev-row-nav:not([hidden]) { position: absolute; right: 0; top: -60px; display: flex; gap: 8px; }
}
.ev-nav {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--color-divider); background: var(--color-white); color: var(--color-ocean-900);
  box-shadow: 0 4px 12px rgba(20, 52, 58, .08); cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), opacity .2s var(--ease-out);
}
.ev-nav:hover:not(:disabled) { background: var(--color-ocean-900); color: #fff; border-color: var(--color-ocean-900); }
.ev-nav:disabled { opacity: .35; cursor: default; }

.ev-grid {
  list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 28px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; position: relative;
}
.ev-grid::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {   /* the row fades out at its right edge, so a cut-off card reads as "more this way" */
  .ev-grid { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); }
}
.ev-grid.is-end { -webkit-mask-image: none; mask-image: none; }
.ev-grid > * { scroll-snap-align: start; }

.ev-card {
  --ev-a: #e3f2ee; --ev-b: #f6fbf9; --ev-ink: var(--color-ocean-700); --ev-soft: #9fd3c6;
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--color-white); border-radius: 26px;
  box-shadow: 0 1px 2px rgba(20, 52, 58, .05), 0 12px 32px rgba(20, 52, 58, .07);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), opacity .7s var(--ease-out);
}
.ev-card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(20, 52, 58, .05), 0 24px 48px rgba(20, 52, 58, .14); }
.ev-card--wedding   { --ev-a: #fbe4dc; --ev-b: #fff6f2; --ev-ink: #b5563e; --ev-soft: #f2b8a6; }
.ev-card--birthday  { --ev-a: #fceac4; --ev-b: #fff9ec; --ev-ink: #a5680f; --ev-soft: #f6cf8a; }
.ev-card--debut     { --ev-a: #ebe1f6; --ev-b: #faf6fd; --ev-ink: #7a55a8; --ev-soft: #cdb8e8; }
.ev-card--corporate { --ev-a: #d8eaee; --ev-b: #f2f8f9; --ev-ink: var(--color-ocean-700); --ev-soft: #9fcbd2; }
.ev-card--meeting   { --ev-a: #daf0e7; --ev-b: #f3faf7; --ev-ink: #2a7d6f; --ev-soft: #9fd8c3; }
.ev-card--gathering { --ev-a: #f3e5cc; --ev-b: #fcf7ee; --ev-ink: #8a6a3b; --ev-soft: #e2c79d; }

.ev-media {
  position: relative; margin: 8px 8px 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 70% 20%, var(--ev-b) 0%, var(--ev-a) 70%);
}
.ev-media::before {   /* a soft halo behind the drawing */
  content: ''; position: absolute; width: 68%; aspect-ratio: 1; left: 16%; top: 8%; border-radius: 50%;
  background: rgba(255, 255, 255, .6); filter: blur(2px);
}
.ev-ill { position: relative; width: 88%; height: auto; transition: transform .6s var(--ease-out); }
.ev-card:hover .ev-ill { transform: scale(1.07) translateY(-3px); }
.ev-ill .k { fill: var(--ev-ink); }
.ev-ill .s { fill: var(--ev-soft); }
.ev-ill .w { fill: #fff; }
.ev-ill .g { fill: #e8b96a; }
.ev-ill .o { fill: none; stroke: var(--ev-ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.ev-ill .o.w5 { stroke-width: 5; }
.ev-ill .hl { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .5; }
.ev-ill .big { font: 700 64px/1 var(--font-display); letter-spacing: -.02em; }
.ev-ill .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: evFlicker 1.4s ease-in-out infinite; }
.ev-ill .steam { animation: evTwinkle 2.4s ease-in-out infinite; }

.ev-body { padding: 18px 20px 20px; }
.ev-occ { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ev-ink); }
.ev-name { margin: 0 0 16px; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.2; letter-spacing: -.01em; }
.ev-name a { color: var(--color-ocean-900); text-decoration: none; }
.ev-name a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }   /* the whole card opens the package */
.ev-name a:focus-visible { outline: none; }
.ev-card:has(.ev-name a:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.ev-meta { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "amt go" "cap go"; align-items: center; column-gap: 12px; }
.ev-amount { grid-area: amt; line-height: 1.2; font-size: 1.125rem; font-weight: 800; color: var(--color-ocean-900); font-variant-numeric: tabular-nums; }
.ev-cap { grid-area: cap; font-size: .8125rem; color: var(--color-secondary); }
.ev-go {
  grid-area: go; width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ev-a); color: var(--ev-ink);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
}
.ev-card:hover .ev-go { background: var(--color-ocean-900); color: #fff; transform: rotate(-45deg); }

/* Reveal: the headline, the drawing and then each card rise in as the section comes into view. */
.js .events .ev-head-text, .js .events .ev-art, .js .events .ev-card {
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), box-shadow .4s var(--ease-out);
}
.js .events .ev-card { transition-delay: calc(var(--i, 0) * 90ms + 150ms), calc(var(--i, 0) * 90ms + 150ms), 0s; }
.js .events .ev-art { transition-delay: .12s; }
.js .events:not(.is-in) .ev-head-text,
.js .events:not(.is-in) .ev-art,
.js .events:not(.is-in) .ev-card { opacity: 0; transform: translateY(28px); }
.js .events.is-in .ev-card:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .ev-words { animation: none; }
  .ev-art *, .ev-ill * { animation: none !important; }
  .ev-card:hover, .ev-card:hover .ev-ill, .ev-card:hover .ev-go { transform: none; }
  .js .events:not(.is-in) .ev-head-text, .js .events:not(.is-in) .ev-art, .js .events:not(.is-in) .ev-card { opacity: 1; transform: none; }
}
/* ── Getting here: minimal — address, times, directions, and a list of coloured contacts ── */
.gh-grid { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .gh-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-10); align-items: start; } }

.gh-address { margin: 0 0 var(--space-3); font-style: normal; font-size: 1.1875rem; font-weight: 600; line-height: 1.45; color: var(--color-ocean-900); max-width: 34ch; }
.gh-times { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 var(--space-5); color: var(--color-secondary); }
.gh-times strong { color: var(--color-text); }
.gh-times > span { color: var(--color-muted); }
.gh-dir { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 0 22px; }

.gh-sub { margin: 0 0 var(--space-2); font-family: var(--font-ui); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
.gh-socials { list-style: none; margin: 0; padding: 0; }
.gh-socials li + li { border-top: 1px solid var(--color-divider); }
.gh-social {
  --brand: var(--color-ocean-700);
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 4px;
  color: var(--color-text); text-decoration: none;
}
.gh-social:hover { color: var(--color-text); }
.gh-social:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 12px; }
.gh-ico { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1rem; }
.gh-s-text { min-width: 0; flex: 1; line-height: 1.3; }
.gh-s-text strong { display: block; font-size: .9375rem; color: var(--color-ocean-900); }
.gh-s-text span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; color: var(--color-secondary); }
.gh-ext { font-size: .8125rem; color: var(--color-muted); transition: transform .2s var(--ease-out), color .2s var(--ease-out); }
.gh-social:hover .gh-ext { color: var(--brand); transform: translateX(3px); }
.gh-social:hover strong { color: var(--brand); }
.gh-fb    { --brand: #1877f2; }
.gh-maps  { --brand: #ea4335; }
.gh-msg   { --brand: var(--color-ocean-700); }
.gh-phone { --brand: #22a447; }
.gh-mail  { --brand: #f08c1d; }

.gh-policies { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: var(--space-4) 0 0; font-size: .875rem; color: var(--color-muted); }
.gh-policies a { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .gh-social:hover .gh-ext { transform: none; } }
/* ── Hero: layered progressive blur under the shade ─────────────────────
   Five stacked layers, each blurrier but covering a narrower band from the
   edge where the words sit, so the photo goes from very soft to perfectly
   sharp with no visible seam. Top-down on phones and tablets, left-to-right
   on desktop (the same direction as the shade). */
.hero-blur { position: absolute; inset: 0; z-index: -1; pointer-events: none; --blur-dir: 180deg; }
.hero-blur i { position: absolute; inset: 0; }
.hero-blur i:nth-child(1) { -webkit-backdrop-filter: blur(1.5px) saturate(1.12); backdrop-filter: blur(1.5px) saturate(1.12);
  -webkit-mask-image: linear-gradient(var(--blur-dir), #000 0%, #000 28%, transparent 56%); mask-image: linear-gradient(var(--blur-dir), #000 0%, #000 28%, transparent 56%); }
.hero-blur i:nth-child(2) { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(var(--blur-dir), #000 0%, #000 22%, transparent 48%); mask-image: linear-gradient(var(--blur-dir), #000 0%, #000 22%, transparent 48%); }
.hero-blur i:nth-child(3) { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(var(--blur-dir), #000 0%, #000 16%, transparent 40%); mask-image: linear-gradient(var(--blur-dir), #000 0%, #000 16%, transparent 40%); }
.hero-blur i:nth-child(4) { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(var(--blur-dir), #000 0%, #000 9%, transparent 32%); mask-image: linear-gradient(var(--blur-dir), #000 0%, #000 9%, transparent 32%); }
.hero-blur i:nth-child(5) { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  -webkit-mask-image: linear-gradient(var(--blur-dir), #000 0%, transparent 24%); mask-image: linear-gradient(var(--blur-dir), #000 0%, transparent 24%); }
@media (min-width: 1024px) { .hero-blur { --blur-dir: 90deg; } }

/* ── Around the resort: captions on a progressive blur, frosted "View all" ── */
.gal-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 1; pointer-events: none; }
.gal-main .gal-shade { height: 34%; }
.gal-shade i { position: absolute; inset: 0; }
.gal-shade i:nth-child(1) { -webkit-backdrop-filter: blur(3px) saturate(1.1); backdrop-filter: blur(3px) saturate(1.1);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 40%, transparent 100%); mask-image: linear-gradient(0deg, #000 0%, #000 40%, transparent 100%); }
.gal-shade i:nth-child(2) { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 25%, transparent 70%); mask-image: linear-gradient(0deg, #000 0%, #000 25%, transparent 70%); }
.gal-shade i:nth-child(3) { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 45%); mask-image: linear-gradient(0deg, #000 0%, transparent 45%); }
.gal-shade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 28, 32, .62) 0%, rgba(11, 28, 32, .24) 50%, rgba(11, 28, 32, 0) 100%); }

.gal .gal-item figcaption {
  left: 16px; right: 16px; bottom: 14px; z-index: 2; max-width: none;
  padding: 0; border-radius: 0; background: none;
  font-size: .9375rem; font-weight: 600; letter-spacing: .005em; text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.gal .gal-main figcaption { left: 22px; bottom: 20px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }

.gal .gal-all {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .72); color: var(--color-ocean-900); font-weight: 600;
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 8px 24px rgba(20, 52, 58, .18);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.gal .gal-all:hover { background: var(--color-ocean-900); color: #fff; border-color: var(--color-ocean-900); }

/* ── Photo stack viewer (homepage "Around the resort", public/js/photo-stack.js) ── */
html.ps-lock, html.ps-lock body { overflow: hidden; }
.ps { position: fixed; inset: 0; z-index: 1100; }
.ps[hidden] { display: none; }
.ps-backdrop {
  position: absolute; inset: 0; background: rgba(8, 20, 24, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.ps.is-open .ps-backdrop { opacity: 1; }
.ps-stage { position: absolute; inset: 0; pointer-events: none; }
.ps-card {
  position: absolute; left: 50%; top: 46%; margin: 0;
  width: var(--ps-w); height: var(--ps-h); margin-left: calc(var(--ps-w) / -2); margin-top: calc(var(--ps-h) / -2);
  border-radius: 22px; overflow: hidden; background: #0e2226;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 6px 18px rgba(0, 0, 0, .25);
  opacity: 0; transform-origin: 50% 60%; will-change: transform;
  pointer-events: none;   /* motion comes from photo-stack.js (Web Animations, spring easing) */ touch-action: none; -webkit-user-select: none; user-select: none;
}
.ps-inner { width: 100%; height: 100%; overflow: hidden; border-radius: inherit; transition: transform .35s var(--ease-out); }
.ps-card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transform-origin: 50% 55%; }
.ps-card.is-front { pointer-events: auto; cursor: grab; }
.ps-card.is-dragging { cursor: grabbing; }

.ps-bar {
  position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(92vw, 720px); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  opacity: 0; transition: opacity .35s .15s var(--ease-out);
}
.ps-info { flex: 1; min-width: 0; text-align: center; color: #fff; }
.ps-caption { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-count { margin: 2px 0 0; font-size: .8125rem; letter-spacing: .08em; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.ps-btn {
  width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .14); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out);
}
.ps-btn:hover { background: #fff; color: var(--color-ocean-900); }
.ps-btn:active { transform: scale(.94); }
.ps-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ps-close { position: absolute; top: max(18px, env(safe-area-inset-top)); right: 18px; opacity: 0; transition: opacity .35s .15s var(--ease-out); }
.ps.is-open .ps-bar, .ps.is-open .ps-close { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ps-card, .ps-backdrop, .ps-bar, .ps-close { transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ── Booking search card, refined ─────────────────────────────────────
   Frosted card · segmented type control · one capsule of fields with the
   search button inside it (desktop) or a grouped stack (phones/tablets). */
.search {
  padding: 22px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 28px;
  background: rgba(255, 255, 255, .97);   /* no backdrop blur: the card moves on scroll, and a re-blur every frame would stutter */
  box-shadow: 0 2px 4px rgba(20, 52, 58, .04), 0 24px 60px rgba(20, 52, 58, .14);
}
.search-kind legend { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }

/* Type: soft tiles with an icon chip (phones/tablets) */
.seg { gap: 10px; }
.seg label {
  min-height: 60px; padding: 8px 12px; border: 1px solid rgba(20, 52, 58, .1); border-radius: 18px;
  background: var(--color-canvas); grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .15s var(--ease-out);
}
.seg label i {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px;
  background: var(--color-seaglass-100); color: var(--color-ocean-700); font-size: .9375rem;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.seg label:hover { border-color: rgba(15, 92, 102, .35); background: var(--color-white); }
.seg input:checked + label {
  border-color: var(--color-ocean-700); background: var(--color-white);
  box-shadow: 0 0 0 1px var(--color-ocean-700), 0 8px 20px rgba(15, 92, 102, .14);
}
.seg input:checked + label i { background: var(--color-ocean-700); color: #fff; }

/* Fields: one grouped block, borderless inputs, labels on top */
.search-fields {
  gap: 1px; border: 1px solid rgba(20, 52, 58, .14); border-radius: 20px; background: rgba(20, 52, 58, .1); overflow: hidden;
}
.search-fields .field {
  gap: 2px; padding: 10px 16px 8px; background: var(--color-white);
  transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.search-fields .field-guests { grid-column: 1 / -1; }
.search-fields .field:focus-within { background: var(--color-seaglass-100); }
.search-fields label { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-ocean-900); }
.search-fields .form-control {
  min-height: 30px; height: 30px; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important;
  font-size: 1rem; font-weight: 500; color: var(--color-text);
}
.search-fields .form-control::placeholder { color: var(--color-muted); font-weight: 400; }
.search-fields .form-control[aria-invalid="true"] { color: var(--color-danger); }
.search-fields .field:has(.form-control[aria-invalid="true"]) { background: #fdf0ee; }

.search-submit {
  min-height: 56px; border-radius: 999px; font-size: 1rem; letter-spacing: .01em;
  box-shadow: 0 10px 24px rgba(15, 92, 102, .26);
  transition: transform .15s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s var(--ease-out);
}
.search-submit:hover { box-shadow: 0 14px 30px rgba(15, 92, 102, .32); }
.search-submit:active { transform: scale(.98); }
.search-error { border-radius: 14px; }
.search-help { position: relative; padding-left: 22px; font-size: .8125rem; line-height: 1.5; }
.search-help::before { content: '\f05a'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--color-ocean-700); opacity: .7; position: absolute; left: 0; top: 1px; }

/* Desktop: segmented track + one capsule with the button inside */
@media (min-width: 1024px) {
  .search { padding: 22px 26px 18px; }
  .search-kind { gap: 14px; }
  .seg { display: inline-flex; flex-wrap: nowrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--color-sand-100); }
  .seg label {
    display: inline-flex; min-height: 42px; padding: 0 18px; gap: 8px; border: 0; border-radius: 999px; background: transparent;
    box-shadow: none; color: var(--color-secondary);
  }
  .seg label i { width: auto; height: auto; background: none; color: inherit; font-size: .875rem; }
  .seg label:hover { background: rgba(255, 255, 255, .6); color: var(--color-ocean-900); }
  .seg input:checked + label { background: var(--color-white); color: var(--color-ocean-900); box-shadow: 0 2px 8px rgba(20, 52, 58, .12); }
  .seg input:checked + label i { background: none; color: var(--color-ocean-700); }

  .search-row {
    align-items: center; gap: 0; padding: 6px 6px 6px 0;
    border: 1px solid rgba(20, 52, 58, .14); border-radius: 999px; background: var(--color-white);
    box-shadow: 0 6px 18px rgba(20, 52, 58, .06);
  }
  .search-fields { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .search .search-fields .field { position: relative; padding: 8px 26px; border-radius: 999px; background: transparent; }
  /* straight hairline between visible segments; fades out beside the active one */
  .search .search-fields .field:not([hidden]) ~ .field::before {
    content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(20, 52, 58, .14);
    transition: opacity .2s var(--ease-out);
  }
  .search .search-fields .field:is(:focus-within, :hover)::before,
  .search .search-fields .field:is(:focus-within, :hover) + .field::before { opacity: 0; }
  .search .search-fields .field:focus-within { background: var(--color-white); box-shadow: 0 8px 24px rgba(20, 52, 58, .16); }
  .search .search-fields .field:has(.form-control[aria-invalid="true"]) { background: #fdf0ee; }
  .search .search-fields .field:hover:not(:focus-within) { background: var(--color-canvas); }
  .search-submit { min-height: 56px; padding: 0 28px; margin-left: 6px; }
  .search-help { padding-left: 0; text-align: center; margin-top: 12px; }
  .search-help::before { position: static; margin-right: 8px; }
}

/* ── Designed date & time fields (public/js/br-fieldpicker.js) ────────
   The native input stays in the form, hidden; a button shows the value and
   opens a popover (a bottom sheet on phones) with the calendar or time chips. */
.search-fields .field { position: relative; }
.pk-native { position: absolute !important; left: 16px; bottom: 8px; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.pk-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 30px;
  padding: 0; border: 0; background: none; font: inherit; font-size: 1rem; font-weight: 600; color: var(--color-text); text-align: left; cursor: pointer;
}
.pk-trigger::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }   /* the whole field opens it */
.pk-trigger:focus-visible { outline: none; }
.pk-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pk-trigger.is-empty .pk-value { color: var(--color-muted); font-weight: 400; }
.pk-icon { flex-shrink: 0; color: var(--color-ocean-700); opacity: .7; transition: opacity .2s var(--ease-out), transform .25s var(--ease-out); }
.pk-trigger:hover .pk-icon, .pk-trigger[aria-expanded="true"] .pk-icon { opacity: 1; transform: scale(1.12); }
.search-fields .field:has(.pk-trigger[aria-expanded="true"]) { background: var(--color-seaglass-100); }
.search-fields .field:has(.pk-trigger:focus-visible) { box-shadow: inset 0 0 0 2px var(--color-ocean-700); }
.search-fields .field:has(.form-control[aria-invalid="true"]) .pk-value { color: var(--color-danger); }
@media (min-width: 1024px) {
  .search .search-fields .field:has(.pk-trigger[aria-expanded="true"]) { background: var(--color-white); box-shadow: 0 8px 24px rgba(20, 52, 58, .16); }
  .search .search-fields .field:has(.pk-trigger[aria-expanded="true"])::before,
  .search .search-fields .field:has(.pk-trigger[aria-expanded="true"]) + .field::before { opacity: 0; }
  .search .search-fields .field:has(.pk-trigger:focus-visible) { box-shadow: 0 0 0 2px var(--color-ocean-700), 0 8px 24px rgba(20, 52, 58, .16); }
}

.pk-pop {
  position: absolute; z-index: 1150; width: 360px; max-width: calc(100vw - 32px); padding: 18px;
  border: 1px solid rgba(20, 52, 58, .08); border-radius: 24px; background: var(--color-white);
  box-shadow: 0 2px 6px rgba(20, 52, 58, .06), 0 28px 70px rgba(20, 52, 58, .22);
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: 24px 0;
  transition: opacity .18s var(--ease-out), transform .26s cubic-bezier(.2, .9, .25, 1.15);
}
.pk-pop.is-above { transform-origin: 24px 100%; transform: translateY(8px) scale(.97); }
.pk-pop.is-in { opacity: 1; transform: none; }
.pk-pop[hidden], .pk-scrim[hidden] { display: none; }
.pk-pop--range { width: 720px; padding: 22px 24px 18px; }
.pk-pop--time { width: 392px; padding-bottom: 12px; }

.pk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pk-title { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--color-ocean-900); }
.pk-x {
  width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--color-canvas); color: var(--color-ocean-900); cursor: pointer;
}
.pk-pop:not(.is-sheet):not(.pk-pop--time) .pk-head, .pk-pop:not(.is-sheet) .pk-x { display: none; }
.pk-pop .dp-legend { display: none; }
.pk-pop .dp-nav { width: 38px; height: 38px; }
.pk-pop .dp-msg { border-radius: 12px; }
.pk-pop .dp-msg:not(.is-error) { display: none; }   /* the status line above the months already says it */
.pk-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-divider); }
.pk-pop--time .pk-foot { display: none; }
.pk-clear { padding: 8px 4px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--color-ocean-900); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pk-done {
  min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--color-ocean-700); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px rgba(15, 92, 102, .24);
  transition: transform .15s var(--ease-out), background-color .2s var(--ease-out);
}
.pk-done:hover { background: var(--color-ocean-900); }
.pk-done:active { transform: scale(.97); }

/* Time chips */
.pk-pop--time .pk-body { position: relative; scroll-padding-top: 40px; max-height: 340px; overflow-y: auto; overscroll-behavior: contain; margin: 0 -8px; padding: 0 8px 4px; scrollbar-width: thin; }
.pk-tlabel {
  position: sticky; top: 0; z-index: 1; margin: 0; padding: 8px 0 8px; background: var(--color-white);
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted);
}
.pk-tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.pk-time {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 50px; padding: 6px 4px;
  border: 1px solid rgba(20, 52, 58, .12); border-radius: 14px; background: var(--color-white);
  font: inherit; font-size: .9375rem; font-weight: 600; color: var(--color-text); font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out), color .15s var(--ease-out), transform .15s var(--ease-out);
}
.pk-time small { font-size: .6875rem; font-weight: 500; color: var(--color-muted); }
.pk-time:hover:not([aria-disabled="true"]) { border-color: var(--color-ocean-700); background: var(--color-seaglass-100); }
.pk-time:active:not([aria-disabled="true"]) { transform: scale(.95); }
.pk-time:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 1px; }
.pk-time.is-sel { border-color: var(--color-ocean-700); background: var(--color-ocean-700); color: #fff; box-shadow: 0 6px 14px rgba(15, 92, 102, .28); }
.pk-time.is-sel small { color: rgba(255, 255, 255, .82); }
.pk-time[aria-disabled="true"] { border-style: dashed; background: transparent; color: #b2bbba; cursor: not-allowed; }

/* Phones: a bottom sheet over a dimmed page */
.pk-scrim {
  position: fixed; inset: 0; z-index: 1140; background: rgba(11, 28, 32, .42);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s var(--ease-out);
}
.pk-scrim.is-in { opacity: 1; }
.pk-pop.is-sheet {
  position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; max-height: 88vh; max-height: 88dvh; overflow-y: auto;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); border: 0; border-radius: 26px 26px 0 0;
  opacity: 1; transform: translateY(100%); transition: transform .34s cubic-bezier(.2, .9, .25, 1);
}
.pk-pop.is-sheet.is-in { transform: none; }
.pk-pop.is-sheet::before { content: ''; display: block; width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: rgba(20, 52, 58, .18); }
.pk-pop.is-sheet.pk-pop--time .pk-body { max-height: none; overflow: visible; }
.pk-pop.is-sheet.pk-pop--time { scroll-padding-top: 40px; }
html.pk-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .pk-pop, .pk-pop.is-sheet, .pk-scrim, .pk-icon { transition: none; } }

/* ── Hero parallax ───────────────────────────────────────────────────
   Tied straight to the scroll position. Browsers with scroll-driven animations run it on the
   compositor (no script, no lag); others get the same numbers from public/js/hero-parallax.js.
   Photo: 0.38 × scroll · words: drift and fade over the first 460px · card: lifts up to 44px. */
.hero-media .hero-blur { z-index: 1; }   /* above the photo, inside its moving layer */
.hero-media, .hero-copy, .dock-wrap .search { will-change: transform; }
@keyframes br-par-photo { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 380px, 0); } }
@keyframes br-par-copy { from { transform: translate3d(0, 0, 0); opacity: 1; } to { transform: translate3d(0, 101px, 0); opacity: 0; } }
@keyframes br-par-card { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -44px, 0); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-media { animation: br-par-photo linear both; animation-timeline: scroll(root block); animation-range: 0px 1000px; }
    .hero-copy { animation: br-par-copy linear both; animation-timeline: scroll(root block); animation-range: 0px 460px; }
    .dock-wrap .search { animation: br-par-card linear both; animation-timeline: scroll(root block); animation-range: 0px 440px; }
  }
}
