/* ==========================================================================
   Beach Pass KSA — base design system
   Shared by every page. Page-specific styles live in assets/css/pages/*.css,
   booking UI (calendar, guest pickers, booking widget) in assets/css/booking.css.
   ========================================================================== */

/* ----- Fonts (self-hosted, SIL Open Font License: Jost, Marcellus, Amiri; see assets/fonts/LICENSE.txt) ----- */
@font-face { font-family: "Amiri"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/amiri-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Amiri"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/amiri-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../fonts/jost-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../fonts/jost-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/marcellus-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/marcellus-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ----- Lenis smooth scroll (vendor) ----- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ----- Tokens ----- */
:root {
  /* Brand palette (Brand Guidelines v2 + live theme) */
  --c-lagoon: #0f6e76;          /* Deep Lagoon: primary, buttons, links */
  --c-lagoon-dark: #0b585f;
  --c-turquoise: #4ae0e6;       /* Shell Turquoise: accents only, never text */
  --c-olive: #53624e;           /* search bar, tags, booking panel */
  --c-olive-dark: #46533f;
  --c-sand: #b99d75;            /* booking panel field borders, amenity icons */
  --c-gold: #e6b673;            /* rating stars */
  --c-ink: #1a1b1a;             /* headings */
  --c-text: #333632;            /* body copy */
  --c-muted: #6b6f69;
  --c-driftwood: #a6a6a6;
  --c-white: #fff;
  --c-mist: #f3f3f0;            /* light section background */
  --c-foam: #edf7f8;
  --c-cream: #f8f5f1;           /* amenity tiles */
  --c-paper-alt: #f9f9f9;
  --c-line: rgba(0, 0, 0, 0.1);
  --c-line-strong: rgba(0, 0, 0, 0.18);
  --c-dark: #111111;
  --c-dark-line: #232323;
  --c-error: #b42318;
  --c-success: #0f6e76;

  /* Access types (booking calendar, badges, legends). Text colours keep >= 4.5:1 on their -bg and on white. */
  --access-family: #0f6e76;     --access-family-bg: #e3f1f2;
  --access-ladies: #b03a6c;     --access-ladies-bg: #fce7ef;
  --access-women_kids: #6b5bc4; --access-women_kids-bg: #eeebfa;
  --access-closed: #666666;     --access-closed-bg: #f1f1f1;

  --c-field-border: #8f948b;    /* form field outlines: >= 3:1 on white (WCAG 1.4.11) */

  /* Type */
  --ff-heading: "Marcellus", "Times New Roman", serif;
  --ff-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ff-script: "Amiri", "Times New Roman", serif;

  --fs-body: 18px;
  --lh-body: 1.66;
  --fs-small: 16px;
  --fs-hero: clamp(48px, 7vw, 100px);          /* home hero */
  --fs-hero-inner: clamp(44px, 5.6vw, 80px);   /* inner page heroes (live theme h1: 80px)  */
  --fs-h2: clamp(36px, 3.9vw, 56px);
  --fs-h3: clamp(32px, 3.35vw, 48px);
  --fs-h4: clamp(28px, 2.9vw, 42px);
  --fs-h5: clamp(26px, 2.5vw, 36px);
  --fs-quote: clamp(24px, 2.2vw, 32px);
  --fs-card-title: clamp(24px, 2.1vw, 30px);

  /* Layout */
  --container: 1300px;
  --gutter: clamp(20px, 4vw, 60px);
  --section-y: clamp(80px, 9vw, 130px);
  --header-h: 121px;

  /* Motion: short, eased, never bouncy */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s;
  --t: 0.35s;
  --t-slow: 0.8s;

  --shadow-soft: 0 10px 40px rgba(17, 17, 17, 0.08);
  --shadow-pop: 0 18px 50px rgba(17, 17, 17, 0.16);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--ff-heading);
  font-weight: 400;
  color: var(--c-ink);
  line-height: 1.2;
}
p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-lagoon); outline-offset: 3px; }
/* White ring wherever the teal one would vanish: dark bands, photos, the olive search bar and booking panel.
   (booking.css switches white popovers inside these back to teal.) */
.on-dark :focus-visible, .site-header--transparent:not(.is-sticky) :focus-visible,
.page-hero :focus-visible, .search-bar :focus-visible, .side-menu :focus-visible,
.booking-panel :focus-visible, .site-footer :focus-visible { outline-color: var(--c-white); }
::selection { background: var(--c-lagoon); color: var(--c-white); }
[hidden] { display: none !important; }

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 10000; padding: 12px 18px;
  background: var(--c-lagoon); color: var(--c-white); transform: translateY(-200%); transition: transform var(--t-fast);
}
.skip-link:focus { transform: none; }
#main:focus { outline: none; } /* skip-link target: focus lands here, the next Tab goes into the page */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ----- Layout ----- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding-block: var(--section-y); position: relative; }
.section--mist { background: var(--c-mist); }
.section--paper { background: var(--c-paper-alt); }
.section--dark { background: var(--c-dark); color: var(--c-white); }
.text-center { text-align: center; }
.stack > * + * { margin-top: var(--stack, 20px); }

/* ----- Typography ----- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-body); font-size: 12px; font-weight: 500; line-height: 1.2;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-lagoon);
}
.on-dark .eyebrow, .eyebrow--light { color: var(--c-white); }
.section-icon { display: block; width: 56px; height: 56px; margin: 0 auto 18px; color: var(--c-lagoon); stroke-width: 1.05; }
.on-dark .section-icon { color: var(--c-white); }
.brand-shell { width: 64px; height: auto; margin: 0 auto 18px; }

.h-hero { font-size: var(--fs-hero); line-height: 1; color: var(--c-white); }
.h-hero--inner { font-size: var(--fs-hero-inner); }
.h2 { font-size: var(--fs-h2); line-height: 1.2; }
.h3 { font-size: var(--fs-h3); line-height: 1.35; }
.h4 { font-size: var(--fs-h4); line-height: 1.35; }
.h5 { font-size: var(--fs-h5); line-height: 1.35; }
.h-card { font-size: var(--fs-card-title); line-height: 1.2; }
.title-block { display: flex; flex-direction: column; gap: 20px; }
.title-block.text-center { align-items: center; }
.lead { font-size: 18px; line-height: 1.66; color: var(--c-text); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark h5, .on-dark h6, .on-dark .lead { color: var(--c-white); }
.text-small { font-size: var(--fs-small); line-height: 1.6; }
.prose p + p { margin-top: 1em; }

/* Script accent line (was "La Belle Aurore", now Amiri per client change request) */
.script-line {
  font-family: var(--ff-script); font-style: italic; font-weight: 400;
  font-size: clamp(21px, 1.8vw, 26px); line-height: 1.45; color: var(--c-lagoon);
}

/* Tag line under venue names: "Family Beach / Ladies Only Days / Luxury Resort" */
.beach-tags { font-size: 15px; line-height: 1.66; color: var(--c-olive); }
.beach-tags span + span::before { content: "/"; margin: 0 6px; color: var(--c-olive); opacity: 0.8; }

/* ----- Buttons ----- */
.btn {
  --btn-bg: var(--c-lagoon); --btn-color: var(--c-white); --btn-border: var(--btn-bg);
  --btn-bg-hover: var(--c-lagoon-dark); --btn-color-hover: var(--c-white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 48px; border: 1px solid var(--btn-border); border-radius: 0;
  background: var(--btn-bg); color: var(--btn-color);
  font-family: var(--ff-heading); font-size: 16px; line-height: 1; font-weight: 400; white-space: nowrap;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.btn::after { /* soft sheen sweep on hover, subtle */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-bg-hover);
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out);
}
.btn:hover { color: var(--btn-color-hover); border-color: var(--btn-bg-hover); }
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }
.btn--block { width: 100%; padding-inline: 20px; }
.btn--sm { height: 44px; padding: 0 24px; font-size: 14px; }
.btn--olive { --btn-bg: var(--c-olive); --btn-bg-hover: var(--c-olive-dark); }
.btn--outline-light { --btn-bg: transparent; --btn-border: var(--c-white); --btn-color: var(--c-white); --btn-bg-hover: var(--c-white); --btn-color-hover: var(--c-ink); }
.btn--outline { --btn-bg: transparent; --btn-border: var(--c-ink); --btn-color: var(--c-ink); --btn-bg-hover: var(--c-ink); --btn-color-hover: var(--c-white); }
.btn--white { --btn-bg: var(--c-white); --btn-border: var(--c-white); --btn-color: var(--c-ink); --btn-bg-hover: var(--c-lagoon); --btn-color-hover: var(--c-white); }
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::before {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45); border-top-color: var(--c-white); animation: bp-spin 0.7s linear infinite;
}
@keyframes bp-spin { to { transform: rotate(360deg); } }

/* "Learn More ›" underline link */
.link-more {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 0;
  font-family: var(--ff-heading); font-size: 14px; line-height: 1; color: var(--c-ink);
}
.link-more__text { position: relative; padding-bottom: 5px; }
.link-more__text::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c-lagoon);
  transform-origin: left; transition: transform var(--t) var(--ease);
}
.link-more:hover .link-more__text::after { transform: scaleX(0.35); }
.link-more .icon { width: 10px; height: 10px; stroke-width: 2; transition: transform var(--t) var(--ease); }
.link-more:hover .icon { transform: translateX(3px); }

/* ----- Forms ----- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 16px; line-height: 1.4; color: var(--c-ink); }
.field__label .req { color: var(--c-lagoon); }
.field__hint { font-size: 14px; color: var(--c-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--c-field-border); border-radius: 0;
  background: var(--c-white); color: var(--c-ink); font-size: 16px; line-height: 1.4;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 130px; resize: vertical; }
.select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231a1b1a' stroke-width='1.4'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.input::placeholder, .textarea::placeholder { color: var(--c-muted); opacity: 1; } /* 5:1, same in every browser */
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-lagoon); box-shadow: 0 0 0 3px rgba(15, 110, 118, 0.12); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--c-error); }
.field__error { font-size: 14px; color: var(--c-error); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--c-lagoon); }
.check a { color: var(--c-lagoon); text-decoration: underline; text-underline-offset: 2px; }
.form-status { font-size: 15px; line-height: 1.5; }
.form-status.is-error { color: var(--c-error); }
.form-status.is-success { color: var(--c-success); }
.form-success { text-align: center; padding: 20px 0; }
.form-success .icon { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--c-lagoon); stroke-width: 1.2; }

/* ----- Header ----- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 900;
  color: var(--c-white);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform 0.45s var(--ease), box-shadow var(--t) var(--ease);
}
/* Soft scrim behind the transparent header so the white nav, phone and EN/AR stay legible on bright photos */
.site-header--transparent:not(.is-sticky)::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: 180px; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.22) 45%, rgba(0, 0, 0, 0) 100%);
}
.site-header__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  min-height: var(--header-h); padding: 0 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.21);
  transition: min-height var(--t) var(--ease), border-color var(--t) var(--ease);
}
.site-header__left { display: flex; align-items: center; gap: 30px; }
.site-header__right { display: flex; align-items: center; justify-content: flex-end; gap: 30px; }
.site-logo { display: block; justify-self: center; line-height: 0; }
.site-logo img { width: 264px; height: auto; }
.site-logo__dark { display: none; }

/* 44px touch target around the 30px lines; the negative margin keeps the lines where they were */
.menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 7px; margin-inline: -7px; }
.menu-toggle span { display: block; height: 1px; background: currentColor; transition: transform var(--t) var(--ease); }
.menu-toggle span:nth-child(2) { width: 100%; }
.menu-toggle:hover span:nth-child(2) { transform: scaleX(0.6); transform-origin: left; }

.primary-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  position: relative; display: block; padding: 0 15px; line-height: 60px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 16px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--t) var(--ease);
}
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header-tel { font-size: 15px; white-space: nowrap; }
.lang-switch { display: flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
/* 44px-tall hit areas that do not overlap each other; negative margins keep the text where it was */
.lang-switch a, .lang-switch button { display: inline-block; padding: 11px 6px; margin: -11px -6px; line-height: 22px; opacity: 0.85; transition: opacity var(--t-fast); }
.lang-switch a[aria-current], .lang-switch a:hover, .lang-switch button:hover { opacity: 1; }
.header-book { height: 44px; padding: 0 24px; font-size: 14px; }

/* Solid header (pages without a hero image) and sticky state */
.site-header--solid, .site-header.is-sticky { color: var(--c-ink); background: var(--c-white); }
.site-header--solid .site-header__bar, .site-header.is-sticky .site-header__bar { border-bottom-color: var(--c-line); }
.site-header--solid .site-logo__light, .site-header.is-sticky .site-logo__light { display: none; }
.site-header--solid .site-logo__dark, .site-header.is-sticky .site-logo__dark { display: block; }
.site-header--solid .header-book, .site-header.is-sticky .header-book { --btn-border: var(--c-ink); --btn-color: var(--c-ink); --btn-bg-hover: var(--c-ink); --btn-color-hover: var(--c-white); }
.site-header.is-sticky { position: fixed; box-shadow: 0 1px 0 var(--c-line), 0 8px 30px rgba(0, 0, 0, 0.04); }
.site-header.is-sticky .site-header__bar { min-height: 84px; }
.site-header.is-hidden { transform: translateY(-105%); }
/* "backwards" (not "both") so the animation never pins transform and .is-hidden can still slide it away */
.site-header.is-sticky { animation: bp-header-in 0.45s var(--ease) backwards; }
@keyframes bp-header-in { from { transform: translateY(-100%); } to { transform: none; } }
.has-solid-header main { padding-top: var(--header-h); }

/* ----- Side menu (full-screen canvas menu) ----- */
.side-menu {
  position: fixed; inset: 0; z-index: 2000; color: var(--c-white); background: var(--c-dark);
  display: flex; flex-direction: column; align-items: center;
  padding: 100px 0; overflow-y: auto; overscroll-behavior: contain; /* scrolls on short (landscape) screens */
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.side-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease), visibility 0s; }
.side-menu__bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; } /* fixed: stays put while the menu scrolls */
.side-menu__bg picture { display: block; width: 100%; height: 100%; }
.side-menu__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease-out); }
.side-menu.is-open .side-menu__bg img { transform: scale(1); }
.side-menu__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
/* 44px button, positioned 7px up/left so the icon sits where the old 30px button had it */
.side-menu__close { position: absolute; top: 33px; left: 43px; z-index: 2; display: grid; place-items: center start; width: 44px; height: 44px; padding-left: 7px; color: var(--c-white); }
.side-menu__close .icon { width: 22px; height: 22px; stroke-width: 1.3; }
.side-menu__lang { position: absolute; top: 40px; right: 50px; z-index: 2; font-size: 14px; }
.side-menu__lang a, .side-menu__lang button { display: inline-block; padding: 11px 6px; margin: -11px -6px; line-height: 22px; }
.lang-switch :focus-visible, .side-menu__lang :focus-visible { outline-offset: -3px; } /* ring hugs the text, clear of the "/" */
.side-menu__nav { position: relative; z-index: 1; margin-block: auto; padding: 0 20px; text-align: center; } /* auto margins centre it without cutting it off when it overflows */
.side-menu__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 60px; }
.side-menu__nav li {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(0.08s + var(--i, 0) * 0.05s);
}
.side-menu.is-open .side-menu__nav li { opacity: 1; transform: none; }
.side-menu__nav a { display: inline-block; font-size: clamp(34px, 3.5vw, 50px); line-height: 1.66; position: relative; }
.side-menu__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.25em; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--t) var(--ease); }
.side-menu__nav a:hover::after, .side-menu__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.side-menu__nav .side-menu__cta { flex-basis: 100%; }
.side-menu__copy { position: absolute; bottom: 40px; left: 0; right: 0; z-index: 1; text-align: center; font-size: 14px; }

/* ----- "Book Now" panel: Plan Your Beach Day ----- */
.booking-panel {
  position: fixed; inset: 0; z-index: 2100; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--c-olive); color: var(--c-white);
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.booking-panel.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease), visibility 0s; }
.booking-panel__content {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 6vw; overflow-y: auto; transform: translateY(16px); transition: transform 0.6s var(--ease-out);
}
.booking-panel.is-open .booking-panel__content { transform: none; }
.booking-panel__media { position: relative; overflow: hidden; }
.booking-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.2s var(--ease-out); }
.booking-panel.is-open .booking-panel__media img { transform: scale(1); }
.booking-panel__close {
  position: absolute; top: 24px; right: 24px; z-index: 3; width: 48px; height: 48px;
  display: grid; place-items: center; background: var(--c-olive); color: var(--c-white);
}
.booking-panel__close .icon { width: 20px; height: 20px; }
.booking-panel h2 { color: var(--c-white); font-size: clamp(34px, 3.2vw, 48px); }
.booking-panel__intro { font-size: 17px; line-height: 1.66; max-width: 520px; color: rgba(255, 255, 255, 0.92); }
.booking-panel__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.booking-panel__notes li { display: flex; gap: 12px; align-items: flex-start; }
.booking-panel__notes .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--c-sand); stroke-width: 1.8; }

/* ----- Search form (date + passes + submit) ----- */
.search-bar {
  position: relative; z-index: 20; max-width: var(--container); margin: -40px auto 0;
  background: var(--c-olive); padding: 30px;
}
.search-bar-wrap { position: relative; z-index: 20; padding-inline: var(--gutter); }
.search-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; color: var(--c-white); }
.search-form--stacked { grid-template-columns: 1fr; gap: 15px; max-width: 520px; }
.search-field { position: relative; }
.search-field__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 48px;
  padding: 0 15px; border: 1px solid rgba(185, 157, 117, 0.9); background: transparent; color: var(--c-white);
  text-align: left; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.search-form--stacked .search-field__trigger { height: 60px; padding: 0 20px; }
.search-field__trigger:hover, .search-field__trigger[aria-expanded="true"] { border-color: var(--c-white); background: rgba(255, 255, 255, 0.04); }
.search-field__label { font-family: var(--ff-heading); font-size: 16px; white-space: nowrap; }
.search-field__value { margin-left: auto; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-field__trigger .icon { width: 10px; height: 10px; stroke-width: 1.6; opacity: 0.85; transition: transform var(--t) var(--ease); }
.search-field__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.search-form .btn { height: 48px; width: 100%; padding: 0 15px; }
.search-form--stacked .btn { height: 60px; }

/* ----- Media helpers ----- */
.media-cover { position: absolute; inset: 0; overflow: hidden; }
.media-cover picture, .media-cover img, .media-cover video { width: 100%; height: 100%; object-fit: cover; }
.media-cover--overlay::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--overlay, 0.35)); pointer-events: none; }
.img-frame { position: relative; overflow: hidden; background: var(--c-mist); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.img-zoom:hover .img-frame img, a:hover > .img-frame img { transform: scale(1.04); }

/* ----- Page hero (full-bleed image with title) ----- */
.page-hero {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 650px; padding: calc(var(--header-h) + 60px) var(--gutter) 100px; color: var(--c-white); overflow: hidden; background: var(--c-dark);
}
.page-hero--tall { min-height: 93vh; }
@media (min-width: 1025px) { /* full-screen inner hero (About, Contact), as on the live site; capped on very tall screens */
  .page-hero--full { min-height: clamp(650px, 100vh, 1000px); min-height: clamp(650px, 100svh, 1000px); }
}
.page-hero .media-cover { --overlay: 0.38; } /* white hero text stays readable on bright photos; pages tune it to the live site */
.page-hero .media-cover img { animation: bp-hero-zoom 2.4s var(--ease-out) both; }
@keyframes bp-hero-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.page-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 1100px; }
.page-hero__inner .eyebrow { color: var(--c-white); }
.page-hero__sub { font-size: 21px; line-height: 1.66; color: var(--c-white); }
.page-hero__inner > * { animation: bp-rise 1s var(--ease-out) both; }
.page-hero__inner > *:nth-child(2) { animation-delay: 0.12s; }
.page-hero__inner > *:nth-child(3) { animation-delay: 0.24s; }
.page-hero__inner > *:nth-child(4) { animation-delay: 0.36s; }
@keyframes bp-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ----- Price tag + access badges ----- */
.price-tag {
  position: absolute; top: 20px; left: 20px; z-index: 2; padding: 8px 12px;
  background: var(--c-white); color: #000; font-size: 12px; line-height: 1.66; text-transform: uppercase; letter-spacing: 0.02em;
}
.access-badge {
  --a: var(--access-family); --a-bg: var(--access-family-bg);
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px;
  border-radius: 999px; background: var(--a-bg); color: var(--a);
  font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: 0.01em;
  max-width: 100%; /* stays on one line wherever it fits; wraps instead of overflowing on narrow phones */
}
.access-badge .icon { width: 15px; height: 15px; stroke-width: 1.5; }
.access-badge--ladies { --a: var(--access-ladies); --a-bg: var(--access-ladies-bg); }
.access-badge--women_kids { --a: var(--access-women_kids); --a-bg: var(--access-women_kids-bg); }
.access-badge--closed { --a: var(--access-closed); --a-bg: var(--access-closed-bg); }
.access-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--c-text); }
.access-legend__item { display: inline-flex; align-items: center; gap: 7px; }
.access-legend__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--a, var(--access-family)); }

/* ----- Beach card (home carousel, related beaches) ----- */
.beach-card { display: flex; flex-direction: column; gap: 22px; }
.beach-card__media { position: relative; display: block; aspect-ratio: 1 / 1; }
.beach-card__body { display: flex; flex-direction: column; gap: 12px; }
.beach-card__title { font-size: var(--fs-card-title); line-height: 1.2; }
.beach-card__title a:hover { color: var(--c-lagoon); }
.beach-card__text { font-size: 16px; line-height: 1.6; color: var(--c-text); }
.beach-card .access-badge { align-self: flex-start; }

/* ----- Carousel (scroll-snap, buttons + dots; see BP.Carousel in main.js) ----- */
.carousel { position: relative; --gap: 30px; --per-view: 3; }
.carousel__viewport {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
  gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__slide { scroll-snap-align: start; min-width: 0; }
.carousel__btn {
  position: absolute; top: var(--btn-top, 50%); z-index: 5; width: 46px; height: 46px; margin-top: -23px;
  display: grid; place-items: center; border-radius: 50%; background: var(--c-white); color: var(--c-ink);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), background-color var(--t-fast);
}
.carousel__btn:hover { background: var(--c-lagoon); color: var(--c-white); }
.carousel__btn:focus-visible { outline-offset: 2px; box-shadow: 0 0 0 6px var(--c-white), 0 6px 24px rgba(0, 0, 0, 0.12); } /* ring on a white halo: visible on photos too */
.carousel__btn .icon { width: 14px; height: 14px; stroke-width: 1.8; }
.carousel__btn--prev { left: -23px; }
.carousel__btn--next { right: -23px; }
.carousel__btn[disabled] { opacity: 0; pointer-events: none; transform: scale(0.85); }
.carousel__dots { display: flex; justify-content: center; gap: 4px; margin-top: 40px; }
.carousel__dot { position: relative; width: 14px; height: 14px; display: grid; place-items: center; }
.carousel__dot::after { content: ""; position: absolute; inset: -15px -2px; } /* taller pointer target (14x44 + gap), no layout change */
.carousel__dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c4c4c4; transition: background-color var(--t), transform var(--t) var(--ease); }
.carousel__dot.is-active::before { background: var(--c-ink); transform: scale(1.15); }
.carousel--light .carousel__dot::before { background: rgba(255, 255, 255, 0.55); }
.carousel--light .carousel__dot.is-active::before { background: var(--c-white); }

/* ----- Reveal on scroll (only when JS is running) ----- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="zoom"] { transform: scale(0.97); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ----- Newsletter band + footer ----- */
.newsletter { position: relative; padding: 110px 0; color: var(--c-white); overflow: hidden; }
.newsletter .media-cover { --overlay: 0.6; }
.newsletter__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: center; }
.newsletter__title { font-size: var(--fs-h4); line-height: 1.35; color: var(--c-white); margin-top: 18px; max-width: 560px; }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; justify-self: end; width: 100%; }
.newsletter-form__row { display: flex; }
.newsletter-form .input { min-height: 56px; border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); color: var(--c-white); }
.newsletter-form .input::placeholder { color: rgba(255, 255, 255, 0.75); }
.newsletter-form .input:focus { border-color: var(--c-white); box-shadow: none; background: rgba(255, 255, 255, 0.1); }
.newsletter-form .btn { height: 56px; flex: none; padding: 0 32px; }
.newsletter-form .form-status { color: var(--c-white); min-height: 1.5em; }
.newsletter-form .field__error { color: #ffd2d2; }

.site-footer { background: var(--c-dark); color: var(--c-white); }
.footer-info { display: grid; grid-template-columns: repeat(4, 1fr); }
.footer-info__cell { padding: 35px; text-align: center; border: 1px solid var(--c-dark-line); border-left-width: 0; }
.footer-info__cell:first-child { border-left-width: 1px; }
.footer-info__label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #7d8a77; }
.footer-info__value { display: block; margin-top: 10px; font-size: 15px; line-height: 1.6; }
.footer-info__value a:hover { color: var(--c-turquoise); }
.footer-social { display: flex; justify-content: center; gap: 0; margin: 1px 0 -11px; } /* 44px targets; margins keep the icons where the 22px ones were */
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; transition: color var(--t-fast), transform var(--t-fast) var(--ease); }
.footer-social a:hover { color: var(--c-turquoise); transform: translateY(-2px); }
.footer-social .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding: 40px 130px 40px 60px; font-size: 14px; } /* right padding clears the back-to-top button */
.footer-bottom__links { display: flex; gap: 24px; }
.footer-bottom__links a { opacity: 0.8; }
.footer-bottom__links a:hover { opacity: 1; color: var(--c-turquoise); }

/* ----- Back to top + toast ----- */
.to-top {
  position: fixed; right: 30px; bottom: 30px; z-index: 800; width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid var(--c-lagoon); background: rgba(255, 255, 255, 0.92); color: var(--c-lagoon);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t), background-color var(--t-fast), color var(--t-fast);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--c-lagoon); color: var(--c-white); }
.to-top .icon { width: 14px; height: 14px; stroke-width: 1.6; }
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 3000; max-width: min(92vw, 460px); padding: 14px 22px;
  background: var(--c-ink); color: var(--c-white); font-size: 15px; line-height: 1.5; box-shadow: var(--shadow-pop);
  transform: translate(-50%, 20px); opacity: 0; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Body scroll lock while overlays are open */
.is-locked { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* The logo stays centred only while the left column (menu + nav) fits in its 1fr track:
   tighten the nav up to 1365px and hand over to the menu button alone below 1200px. */
@media (max-width: 1365px) {
  .site-header__left { gap: 24px; }
  .primary-nav a { padding: 0 10px; }
  .primary-nav a::after { left: 10px; right: 10px; }
}
@media (max-width: 1280px) {
  .site-header__bar { padding: 0 30px; }
  .header-tel { display: none; }
}
@media (max-width: 1199px) {
  .primary-nav { display: none; }
}
@media (max-width: 1024px) {
  :root { --header-h: 90px; --fs-body: 17px; }
  .site-logo img { width: 210px; }
  .site-header__bar { padding: 0 24px; }
  .site-header__right { gap: 18px; }
  .carousel { --per-view: 2; }
  .carousel__btn--prev { left: 8px; }
  .carousel__btn--next { right: 8px; }
  .footer-info { grid-template-columns: repeat(2, 1fr); }
  .footer-info__cell:nth-child(3) { border-left-width: 1px; }
  .footer-info__cell:nth-child(n+3) { border-top-width: 0; }
  .booking-panel { grid-template-columns: 1fr; }
  .booking-panel__media { display: none; }
  .newsletter__inner { grid-template-columns: 1fr; }
  .newsletter-form { justify-self: start; }
}
@media (max-width: 767px) {
  :root { --header-h: 76px; --fs-body: 16px; }
  .site-header__bar { grid-template-columns: auto 1fr auto; gap: 14px; padding: 0 18px; }
  .site-logo { justify-self: center; }
  .site-logo img { width: 170px; }
  .lang-switch { display: none; }
  .header-book { height: 44px; padding: 0 14px; font-size: 13px; }
  .search-bar { padding: 20px; margin-top: -30px; }
  .search-form { grid-template-columns: 1fr; gap: 12px; }
  .carousel { --per-view: 1.15; --gap: 16px; }
  .carousel__btn { display: none; }
  .carousel__dots { margin-top: 26px; }
  .page-hero { min-height: 520px; padding-bottom: 80px; }
  .page-hero__sub { font-size: 18px; }
  .side-menu__close { top: 19px; left: 15px; }
  .side-menu__lang { top: 26px; right: 22px; }
  .side-menu__nav ul { flex-direction: column; }
  .side-menu__nav a { line-height: 1.5; }
  .booking-panel__content { padding: 90px 24px 40px; justify-content: flex-start; }
  .footer-info { grid-template-columns: 1fr; }
  .footer-info__cell { border-left-width: 1px; border-top-width: 0; padding: 26px 20px; }
  .footer-info__cell:first-child { border-top-width: 1px; }
  .footer-bottom { padding: 28px 20px 84px; justify-content: center; text-align: center; }
  .newsletter { padding: 80px 0; }
  .newsletter-form__row { flex-direction: column; gap: 10px; }
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .btn { padding: 0 32px; }
}
/* Short screens (phones in landscape): smaller menu links, copyright back in the flow so nothing overlaps */
@media (max-height: 500px) {
  .side-menu { padding: 72px 0 24px; }
  .side-menu__nav a { font-size: 26px; line-height: 1.45; }
  .side-menu__copy { position: static; margin-top: 18px; }
}

/* Respect reduced-motion preferences: keep fades instant, no movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
