/*
Theme Name: Whale Surf
Theme URI: https://whalesurfing.com
Author: Whale Surf School
Description: Custom theme for Whale Surf School, Kata Beach, Phuket. Animated sea hero, package cards, Surf & Stay timeline, Instagram feed (Smash Balloon) and a WhatsApp booking form. Works with Polylang (Thai / English) and Rank Math.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whale-surf
*/

/* Layout concept: a sunset-over-Kata-Beach hero whose canvas sea carries the page's one big moment
   (a surfer riding live waves). Below it, calm sea-glass sections with tactile tilt cards, a
   scroll-drawn wave line for Surf & Stay, a draggable moments strip and a live booking summary. */
:root {
  --display: "Bricolage Grotesque", "Kanit", system-ui, sans-serif;
  --body: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --bg: #E9F3F0;
  --bg-2: #DAEAE6;
  --surface: #F8FCFB;
  --surface-2: #FFFFFF;
  --fg: #08222C;
  --muted: #44626B;
  --line: rgba(8, 34, 44, .15);
  --accent: #FF5B35;
  --accent-ink: #08222C;
  --lagoon: #0E6B7B;
  --deep: #06202A;
  --deep-2: #0B3442;
  --foam: #EAF6F3;
  --sun: #FFB562;
  --shadow: 0 28px 60px -28px rgba(6, 32, 42, .45);
}
:root { --ink: var(--fg); --ink-muted: var(--muted); --ink-line: var(--line); } /* the page's own text colours, kept for cards sitting on a section that has a picture behind it */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061820;
    --bg-2: #0A212B;
    --surface: #0D2832;
    --surface-2: #123340;
    --fg: #E7F3F1;
    --muted: #98B4BB;
    --line: rgba(231, 243, 241, .15);
    --lagoon: #3FB5C6;
    --shadow: 0 28px 60px -28px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #061820;
  --bg-2: #0A212B;
  --surface: #0D2832;
  --surface-2: #123340;
  --fg: #E7F3F1;
  --muted: #98B4BB;
  --line: rgba(231, 243, 241, .15);
  --lagoon: #3FB5C6;
  --shadow: 0 28px 60px -28px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.7 var(--body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: max(16px, 4vw); }
.sec { padding-block: clamp(72px, 10vw, 128px); scroll-margin-top: var(--nav-h, 72px); }
.tag { font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
h2 { font: 700 clamp(32px, 5vw, 60px)/1.2 var(--display); letter-spacing: -.01em; margin: 12px 0 0; max-width: 24ch; text-wrap: balance; }
h3 { font: 700 28px/1.25 var(--display); margin: 0; }
p { margin: 0; }

/* progress + nav */
.bar { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 80; }
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--nav-h, 72px); margin-bottom: calc(var(--nav-h, 72px) * -1); display: flex; align-items: center;
  color: #fff; transition: background .3s, color .3s, box-shadow .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--fg); box-shadow: 0 1px 0 var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); text-decoration: none; white-space: nowrap; }
.logo { width: 30px; height: 30px; flex: none; }
.links { margin-left: auto; display: flex; gap: 28px; }
.links a { font: 500 15px/1 var(--body); text-decoration: none; padding: 10px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.links a:hover { background-size: 100% 2px; }
.tools { display: flex; gap: 8px; align-items: center; }
.nav .links + .tools { margin-left: 0; }
.nav .tools { margin-left: auto; }
.links + .tools { margin-left: 0; }
.pill {
  min-height: 40px; min-width: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 42%, transparent);
  background: transparent; color: inherit; font: 500 12px/1 var(--mono); cursor: pointer; letter-spacing: .06em;
}
.pill:hover { background: color-mix(in srgb, currentColor 12%, transparent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 600 16px/1 var(--body); text-decoration: none;
  position: relative; overflow: hidden; white-space: nowrap;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .2s ease-out, box-shadow .3s;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-130%); transition: transform .7s; }
.btn:hover::after { transform: translateX(130%); }
.btn:hover { box-shadow: 0 14px 30px -10px rgba(255, 91, 53, .7); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: linear-gradient(180deg, #07202C 0%, #0E4557 34%, #D9774F 56%, #FFB562 66%, #0A4A5B 100%); }
.sun {
  position: absolute; z-index: -1; left: 68%; top: 37%; width: clamp(130px, 19vw, 240px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #FFE5B0 0 36%, #FFB562 58%, rgba(255, 128, 80, 0) 72%);
  transform: translate(-50%, -50%) translateY(var(--sy, 0px));
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero-in { position: relative; z-index: 2; padding-block: clamp(120px, 16vw, 176px) clamp(210px, 25vw, 300px); pointer-events: none; }
.hero-in a { pointer-events: auto; }
.eyebrow { font: 500 12px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.h1 { font: 700 clamp(56px, 12vw, 172px)/1.15 var(--display); letter-spacing: -.01em; margin: 14px 0 0; }
.ln { display: block; overflow: hidden; padding: .14em 0 .08em; margin-block: -.06em; }
.ln > span { display: block; animation: rise .95s cubic-bezier(.2, .8, .2, 1) both; }
.ln:nth-child(2) > span { animation-delay: .14s; color: var(--sun); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.lead { max-width: 54ch; margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .9); animation: fade 1s .35s both; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: fade 1s .5s both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hint { position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; pointer-events: none; font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* facts + marquee */
.facts .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 30px 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { font: 700 clamp(26px, 3.4vw, 44px)/1.15 var(--display); font-variant-numeric: tabular-nums; }
.fact span { font: 500 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mq { overflow: hidden; background: var(--deep); color: var(--foam); padding-block: 18px; }
.mq-track { display: flex; width: max-content; }
.mq-track.run { animation: mq 42s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-track span { display: inline-flex; align-items: center; gap: 28px; padding-left: 28px; font: 600 clamp(18px, 2.4vw, 26px)/1.4 var(--display); white-space: nowrap; }
.mq-track span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
@keyframes mq { to { transform: translateX(-50%); } }

/* reveal (visible resting state, small offset only) */
.rv { transition: transform .85s cubic-bezier(.2, .8, .2, 1), opacity .85s ease; transition-delay: var(--d, 0s); }
.rv.will { opacity: .35; transform: translateY(38px); }
.rv.will.in { opacity: 1; transform: none; }

/* packages */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; max-width: 100%; }
.seg i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--accent); border-radius: 999px; transition: transform .45s cubic-bezier(.3, 1.3, .4, 1); }
.seg[data-v="1"] i { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; min-height: 44px; padding: 0 20px; border: 0; background: none; cursor: pointer; border-radius: 999px; font: 600 14px/1.2 var(--body); color: var(--muted); transition: color .25s; }
.seg button[aria-pressed="true"] { color: var(--accent-ink); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.card {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out, box-shadow .35s; will-change: transform; height: 100%;
}
.card:hover { box-shadow: var(--shadow); }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .26), transparent 60%); }
.card:hover::after { opacity: 1; }
.art { position: relative; aspect-ratio: 16 / 10; max-height: 320px; overflow: hidden; color: rgba(6, 32, 42, .5); }
.art.a1 { background: linear-gradient(170deg, #FFCB8E 0%, #E8805A 42%, #0E5666 100%); }
.art.a2 { background: linear-gradient(170deg, #BDE6E1 0%, #4FB0B8 40%, #0A4A5B 100%); }
.art svg.w { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; }
.art svg.w.l2 { height: 48%; color: rgba(6, 32, 42, .78); animation: bob 5.5s ease-in-out infinite; }
.art svg.w.l1 { animation: bob 7s ease-in-out -2s infinite; color: rgba(255, 255, 255, .28); }
@keyframes bob { 50% { transform: translateY(-9px); } }
.art .ml { position: absolute; left: 22px; top: 20px; font: 500 12px/1 var(--mono); letter-spacing: .14em; color: #06202A; background: rgba(255, 255, 255, .78); padding: 8px 10px; border-radius: 999px; }
.art .dots { position: absolute; right: 22px; top: 18px; display: flex; gap: 8px; }
.art .dots i { width: 22px; height: 22px; border-radius: 50%; background: #06202A; box-shadow: 0 0 0 4px rgba(255, 255, 255, .55); }
.badge { position: absolute; left: 22px; bottom: 18px; z-index: 2; font: 600 13px/1 var(--body); background: var(--accent); color: var(--accent-ink); padding: 9px 14px; border-radius: 999px; }
.cbody { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.dur { color: var(--muted); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.price .cur { font: 600 28px/1 var(--display); color: var(--muted); }
.price .num { font: 700 clamp(56px, 7vw, 84px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: 15px; }
.delta { font: 500 13px/1.5 var(--mono); color: var(--lagoon); }
.ticks { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* who */
.alt { background: var(--bg-2); }
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 44px; }
.wc { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; height: 100%; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; display: flex; flex-direction: column; }
.wc:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.wc .pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; color: rgba(6, 32, 42, .55); }
.wc .pic svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 70%; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.wc:hover .pic svg { transform: translateY(-12px) scaleY(1.15); }
.wc .pic.p1 { background: linear-gradient(160deg, #FFE0A8, #FF9A6B); }
.wc .pic.p2 { background: linear-gradient(160deg, #CBEBE6, #5BB8BF); }
.wc .pic.p3 { background: linear-gradient(160deg, #FFD7B0, #F2704B); }
.wc .pic.p4 { background: linear-gradient(160deg, #B8DDE0, #2C8A96); }
.wc .pic span { position: absolute; left: 18px; top: 16px; font: 500 12px/1 var(--mono); letter-spacing: .14em; color: #06202A; background: rgba(255, 255, 255, .8); padding: 7px 10px; border-radius: 999px; z-index: 1; }
.wc .tx { padding: 22px 22px 26px; display: grid; gap: 8px; }
.wc h3 { font-size: 24px; }
.wc p { color: var(--muted); font-size: 15px; }
.rainy { margin-top: 28px; font: 400 14px/1.6 var(--mono); color: var(--muted); }

/* stay */
.stay { background: var(--deep); color: var(--foam); position: relative; overflow: hidden; isolation: isolate; }
.stay::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -20%; width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(63, 181, 198, .28), transparent 65%); }
.stay .tag { color: rgba(234, 246, 243, .7); }
.stay h2 { max-width: 20ch; }
.stay .lead2 { max-width: 62ch; margin-top: 18px; color: rgba(234, 246, 243, .82); }
.line { margin-top: 56px; }
.line svg { display: block; width: 100%; height: auto; overflow: visible; }
.line .ghost { fill: none; stroke: rgba(234, 246, 243, .16); stroke-width: 2; vector-effect: non-scaling-stroke; }
.line .draw { fill: none; stroke: var(--sun); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.node { fill: var(--deep); stroke: rgba(234, 246, 243, .4); stroke-width: 3; transition: fill .4s, stroke .4s; vector-effect: non-scaling-stroke; }
.node.on { fill: var(--accent); stroke: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; text-align: center; }
.step { min-width: 0; padding-inline: 6px; opacity: .5; transition: opacity .5s; }
.step.on { opacity: 1; }
.step b { display: block; font: 700 clamp(24px, 3.6vw, 44px)/1.2 var(--display); }
.step span { display: block; font-size: 14px; color: rgba(234, 246, 243, .8); margin-top: 4px; }
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 520px)); gap: 16px; margin-top: 48px; }
.room { border: 1px solid rgba(234, 246, 243, .18); background: rgba(234, 246, 243, .05); border-radius: 22px; padding: 26px; display: grid; gap: 8px; align-content: start; }
.room .mono { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.room p { color: rgba(234, 246, 243, .82); }
.stay-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.stay-cta span { font: 500 14px/1.5 var(--mono); color: rgba(234, 246, 243, .75); }

/* moments */
.moments-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; font-size: 18px; transition: background .2s, transform .2s; }
.arrows button:hover { background: var(--accent); color: var(--accent-ink); transform: scale(1.06); }
.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px max(16px, 4vw) 24px; margin-inline: auto; scrollbar-width: thin; cursor: grab; max-width: 100%; }
.track.drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.tile { display: block; text-decoration: none; -webkit-user-drag: none; position: relative; flex: 0 0 min(76vw, 320px); aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; scroll-snap-align: start; color: rgba(6, 32, 42, .5); isolation: isolate; }
.tile .bg { position: absolute; inset: 0; z-index: -1; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.tile:hover .bg { transform: scale(1.08); }
.tile svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; transition: transform .8s; }
.tile:hover svg { transform: translateY(-14px); }
.tile .ph { position: absolute; left: 16px; top: 16px; font: 500 11px/1 var(--mono); letter-spacing: .14em; background: rgba(255, 255, 255, .78); color: #06202A; padding: 7px 10px; border-radius: 999px; }
.tile p { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 20px; color: #fff; font: 600 18px/1.4 var(--display); background: linear-gradient(transparent, rgba(6, 32, 42, .78)); }
.t1 .bg { background: linear-gradient(160deg, #FFB562, #E8805A 45%, #0E4557); }
.t2 .bg { background: linear-gradient(160deg, #CFE9E5, #6CC2C8 50%, #0E6B7B); }
.t3 .bg { background: linear-gradient(160deg, #FFE6B8, #FF9A6B 50%, #0A4A5B); }
.t4 .bg { background: linear-gradient(160deg, #9ADAD6, #2C8A96 50%, #06202A); }
.t5 .bg { background: linear-gradient(160deg, #B7C7CC, #5E7F89 50%, #10303B); }
.t6 .bg { background: linear-gradient(160deg, #FFC98B, #F2704B 50%, #0E4557); }
.ig { display: inline-flex; margin-top: 8px; font: 500 14px/1 var(--mono); letter-spacing: .06em; padding: 14px 0; }

/* booking */
.book { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 28px; align-items: start; margin-top: 44px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3vw, 38px); display: grid; gap: 28px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.opt { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 16px; min-height: 64px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; background: var(--bg); transition: border-color .2s, transform .2s, background .2s; }
.opt:hover { transform: translateY(-2px); }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.opt b { font: 600 15px/1.3 var(--body); }
.opt small { font: 500 12px/1.4 var(--mono); color: var(--muted); }
.opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg)); }
.opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.row2 > * { min-width: 0; }
label.f { display: grid; gap: 8px; min-width: 0; font: 500 14px/1.4 var(--body); }
input.in, textarea.in, select.in { width: 100%; min-height: 50px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg); font: 400 16px/1.4 var(--body); }
/* iPhone Safari gives date boxes their own minimum width, which pushed the box past its card */
input.in[type="date"] { display: block; min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; text-align: left; }
input.in[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 1.4em; }
input.in:focus, textarea.in:focus, select.in:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.hintp { font: 400 13px/1.5 var(--mono); color: var(--muted); margin-top: 10px; }
.sum { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h, 72px) + 16px); background: var(--deep); color: var(--foam); border-radius: 28px; padding: 28px; display: grid; gap: 16px; overflow: hidden; }
.sum::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 181, 98, .35), transparent 70%); }
.sum h3 { font-size: 22px; position: relative; }
.sum dl { margin: 0; display: grid; gap: 12px; position: relative; }
.sum dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; border-bottom: 1px solid rgba(234, 246, 243, .14); padding-bottom: 10px; }
.sum dt { color: rgba(234, 246, 243, .7); font: 500 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sum dd { margin: 0; text-align: right; min-width: 0; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; position: relative; flex-wrap: wrap; }
.total .t { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(234, 246, 243, .7); }
.total b { font: 700 clamp(40px, 5vw, 58px)/1 var(--display); font-variant-numeric: tabular-nums; }
.total .ask { font: 600 22px/1.2 var(--display); }
.msg { min-height: 1.6em; font-size: 14px; position: relative; color: var(--sun); }
.msg.ok { color: var(--foam); background: rgba(234, 246, 243, .1); padding: 14px; border-radius: 14px; }
.proto { font: 400 12px/1.6 var(--mono); color: rgba(234, 246, 243, .6); position: relative; }

/* footer */
.foot { background: var(--deep); color: var(--foam); padding-top: clamp(64px, 9vw, 110px); overflow: hidden; }
.foot .big { font: 700 clamp(30px, 5.4vw, 70px)/1.2 var(--display); max-width: 18ch; text-wrap: balance; }
.fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; margin-top: 56px; }
.fcols h4 { margin: 0 0 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.fcols p, .fcols a { color: rgba(234, 246, 243, .86); font-size: 15px; display: block; text-decoration: none; }
.fcols a { padding-block: 4px; }
.fcols a:hover { color: #fff; text-decoration: underline; }
.copy { margin-top: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(234, 246, 243, .35); background: transparent; color: var(--foam); font: 500 13px/1 var(--mono); cursor: pointer; }
.copy:hover { background: rgba(234, 246, 243, .1); }
.word { margin-top: 56px; font: 800 clamp(20px, 6.4vw, 110px)/.9 var(--display); letter-spacing: -.03em; color: rgba(234, 246, 243, .1); white-space: nowrap; user-select: none; transform: translateY(14%); }
.legal { border-top: 1px solid rgba(234, 246, 243, .14); padding-block: 22px calc(22px + 64px); font: 400 12px/1.7 var(--mono); color: rgba(234, 246, 243, .65); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; background: var(--deep); position: relative; }

/* whatsapp */
.wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 16px; border-radius: 999px; background: #25D366; color: #06202A; font: 600 15px/1 var(--body); text-decoration: none; box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .45); }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25D366; animation: ping 2.6s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.35, 1.7); opacity: 0; } }
.wa svg { width: 24px; height: 24px; flex: none; }

@media (max-width: 860px) {
  .links { display: none; }
  .pill.burger:not([hidden]) { display: inline-flex; }
  .nav .tools { margin-left: auto; }
  .cards, .book { grid-template-columns: minmax(0, 1fr); }
  .sum { position: relative; top: auto; }
  .facts .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .fcols a { padding-block: 9px; }
  .pol a, .legal a, .fine a { display: inline-block; padding-block: 11px; }
  .sun { left: 94%; top: 30%; width: 128px; }
  .hero .btn.ghost { background: rgba(6, 32, 42, .62); border-color: rgba(255, 255, 255, .55); }
  .brand span { display: none; }
  .nav .btn.sm { padding: 0 14px; font-size: 13px; }
  .seg button { padding: 0 12px; font-size: 13px; }
  .cbody { padding: 22px; }
  .wa span { display: none; }
  .wa { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mq-track { flex-wrap: wrap; width: auto; }
}

/* ===================== WordPress additions ===================== */
html { margin: 0; }
body { margin: 0; }
a.pill { text-decoration: none; }
body.admin-bar .nav { top: calc(env(safe-area-inset-top, 0px) + 32px); }
body.admin-bar .bar { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .nav { top: calc(env(safe-area-inset-top, 0px) + 46px); }
  body.admin-bar .bar { top: 46px; }
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Customizer photos on package cards */
.art img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art.has-photo svg.w { display: none; }

/* Smash Balloon Instagram Feed, restyled */
.igfeed { margin-top: 40px; }
.igfeed #sb_instagram { padding: 0 !important; }
.igfeed #sb_instagram #sbi_images { padding: 0 !important; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.igfeed #sb_instagram.sbi_tab_col_2 #sbi_images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.igfeed #sb_instagram .sbi_item { width: auto !important; padding: 0 !important; margin: 0 !important; float: none !important; }
.igfeed #sb_instagram .sbi_photo_wrap, .igfeed #sb_instagram .sbi_photo { border-radius: 22px; overflow: hidden; }
.igfeed #sb_instagram .sbi_photo { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.igfeed #sb_instagram .sbi_item:hover .sbi_photo { transform: scale(1.06); }
.igfeed #sb_instagram .sb_instagram_header { color: var(--fg); padding: 0 0 24px !important; }
.igfeed #sb_instagram .sb_instagram_header a, .igfeed #sb_instagram .sbi_bio, .igfeed #sb_instagram .sbi_header_text h3 { color: var(--fg) !important; }
.igfeed #sb_instagram #sbi_load { padding-top: 24px; }
.igfeed #sb_instagram #sbi_load .sbi_load_btn,
.igfeed #sb_instagram .sbi_follow_btn a {
  background: var(--accent) !important; color: var(--accent-ink) !important; border-radius: 999px !important;
  font: 600 15px/1 var(--body) !important; padding: 16px 26px !important; min-height: 48px; box-shadow: none !important;
}
.igfeed #sb_instagram #sbi_load .sbi_load_btn:hover,
.igfeed #sb_instagram .sbi_follow_btn a:hover { filter: brightness(1.06); }
@media (max-width: 860px) {
  .igfeed #sb_instagram #sbi_images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .igfeed #sb_instagram #sbi_images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Inner pages (posts, pages, 404) */
.inner { padding-block: calc(var(--nav-h, 72px) + clamp(40px, 6vw, 80px)) clamp(64px, 8vw, 110px); min-height: 60vh; }
.narrow { max-width: 820px; }
.etitle { font: 700 clamp(32px, 5vw, 56px)/1.2 var(--display); margin: 0 0 28px; text-wrap: balance; }
.etitle a { text-decoration: none; }
.entry + .entry { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.econtent { font-size: 17px; line-height: 1.8; }
.econtent > * + * { margin-top: 1.2em; }
.econtent h2, .econtent h3 { font-family: var(--display); line-height: 1.25; max-width: none; margin-top: 1.8em; }
.econtent h2 { font-size: clamp(26px, 3.4vw, 36px); }
.econtent h3 { font-size: 22px; }
.econtent a { color: var(--lagoon); }
.econtent img, .econtent video { max-width: 100%; height: auto; border-radius: 16px; }
.econtent ul, .econtent ol { padding-left: 1.4em; }
.pagination, .nav-links { margin-top: 48px; display: flex; gap: 12px; flex-wrap: wrap; }
.nav-links a, .nav-links span { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.nav-links .current { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* ---- additions for the editable site ---- */
.notice { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font: 500 14px/1.45 var(--display); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: 100%; }
.notice .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #FF5B35; box-shadow: 0 0 0 4px rgba(255, 91, 53, .3); }
.wc .pic img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wc .pic.has-photo svg { display: none; }
.tile .bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile.has-photo svg { display: none; }

/* ---- logo images (light-background and dark-background versions) ---- */
.brand.has-img { gap: 0; }
.logo-img { display: block; height: var(--logo-h, 64px); width: auto; max-width: 280px; object-fit: contain; }
@media (max-width: 520px) { .logo-img { height: calc(var(--logo-h, 64px) * .78); max-width: 160px; } }
.brand .lg-light { display: none; }
.nav.scrolled .brand .lg-light { display: block; }
.nav.scrolled .brand .lg-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav.scrolled .brand .lg-light { display: none; }
  :root:not([data-theme="light"]) .nav.scrolled .brand .lg-dark { display: block; }
}
:root[data-theme="dark"] .nav.scrolled .brand .lg-light { display: none; }
:root[data-theme="dark"] .nav.scrolled .brand .lg-dark { display: block; }
/* only one logo supplied: sit it on a plate of the colour it was made for */
.brand.plate-light, .brand.plate-dark { padding: 4px 12px; border-radius: 14px; }
.brand.plate-light { background: #fff; }
.brand.plate-dark { background: #06202A; }

/* ---- chat button + menu ---- */
.wa { display: none !important; }
.chat, .chatfab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; }
.chat { position: fixed; }
.chat > summary { position: static; }
.chatfab { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 15px/1 var(--body); text-decoration: none; box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .45); cursor: pointer; list-style: none; user-select: none; }
.chatfab::-webkit-details-marker { display: none; }
.chat > .chatfab { position: static; }
.chatfab svg { width: 24px; height: 24px; flex: none; }
.chatfab .ic-close { display: none; }
.chat[open] .chatfab .ic-open { display: none; }
.chat[open] .chatfab .ic-close { display: block; }
a.chatfab[data-k="line"] { background: #06C755; color: #fff; }
a.chatfab[data-k="whatsapp"] { background: #25D366; color: #06202A; }
a.chatfab[data-k="messenger"] { background: #0A7CFF; color: #fff; }
.chatmenu { position: absolute; right: 0; bottom: calc(100% + 10px); width: max-content; min-width: 210px; display: grid; gap: 6px; padding: 8px; background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.chatmenu a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px 0 10px; border-radius: 14px; text-decoration: none; font: 600 15px/1 var(--body); }
.chatmenu a:hover { background: var(--bg-2); }
.chatmenu a svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; color: #fff; flex: none; }
.chatmenu a[data-k="line"] svg { background: #06C755; }
.chatmenu a[data-k="whatsapp"] svg { background: #25D366; color: #06202A; }
.chatmenu a[data-k="messenger"] svg { background: #0A7CFF; }
.chatmenu a[data-k="instagram"] svg { background: linear-gradient(45deg, #FEDA75, #FA7E1E 30%, #D62976 60%, #962FBF 85%, #4F5BD5); }
.pol a { text-decoration: underline; text-underline-offset: 3px; }
.pol a:hover { color: #fff; }

/* ---- booking form additions ---- */
.opt .av { font: 500 11px/1.3 var(--mono); font-style: normal; letter-spacing: .04em; margin-top: 2px; min-height: 1.3em; }
.opt .av.s-open { color: var(--lagoon); }
.opt .av.s-low { color: var(--accent); }
.opt .av.s-full, .opt .av.s-closed { color: var(--muted); }
.opt.is-off { opacity: .5; cursor: not-allowed; }
.opt.is-off:hover { transform: none; }
.opt.is-off input { cursor: not-allowed; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font: 400 14px/1.6 var(--body); color: var(--muted); cursor: pointer; }
.agree input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.agree a { color: var(--lagoon); }
.done { position: relative; padding: 18px; border-radius: 18px; background: rgba(234, 246, 243, .1); border: 1px solid rgba(234, 246, 243, .22); display: grid; gap: 8px; }
.done h4 { margin: 0; font: 700 20px/1.3 var(--display); }
.done p { font-size: 14px; }
.done b { font-family: var(--mono); letter-spacing: .06em; color: var(--sun); }
.donebtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--foam); color: var(--deep); font: 600 14px/1 var(--body); text-decoration: none; }
.chip:hover { background: #fff; }
.msg a { color: inherit; text-decoration: underline; }
[hidden] { display: none !important; }

/* ---- weather and waves ---- */
.cond { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 36px; }
.cd { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px 22px; display: grid; gap: 8px; align-content: start; }
.cdh { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cd h3 { font-size: 22px; }
.cd .ico { font-size: 28px; line-height: 1; }
.cd .sky { color: var(--muted); font-size: 14px; }
.cd dl { margin: 6px 0 0; display: grid; gap: 0; }
.cd .kv { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.cd dt { color: var(--muted); font: 500 12px/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.cd dd { margin: 0; text-align: right; font-weight: 600; }
.team { margin-top: 28px; padding: 18px 22px; border-radius: 22px; background: var(--surface); border: 1.5px solid var(--line); border-left-width: 8px; display: grid; gap: 6px; }
.team .tl { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; }
.team .lv { font: 600 13px/1 var(--mono); padding: 7px 12px; border-radius: 999px; background: var(--bg-2); }
.team.lv-beginner { border-left-color: #1FA37A; }
.team.lv-moderate { border-left-color: #E3A21A; }
.team.lv-challenge { border-left-color: #E8662F; }
.team.lv-closed { border-left-color: #C8321E; }
.fine { margin-top: 22px; font: 400 12px/1.7 var(--mono); color: var(--muted); max-width: 90ch; }
.fine a { color: var(--lagoon); }

/* ---- faq ---- */
.faq { margin-top: 36px; max-width: 860px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font: 600 16px/1.5 var(--body); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 22px/1 var(--mono); color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* ---- find us + map ---- */
.findgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.findgrid .addr { margin-top: 18px; font-size: 17px; }
.findgrid .addr.small { margin-top: 8px; color: var(--muted); font-size: 15px; }
.findgrid .btns { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.mapbox { position: relative; min-height: 340px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); display: grid; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapbox.on { min-height: 380px; }
.mapfacade { display: grid; gap: 14px; place-content: center; justify-items: center; text-align: center; padding: 28px; color: var(--muted); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--lagoon) 18%, transparent), transparent 60%); }
@media (max-width: 860px) { .findgrid { grid-template-columns: minmax(0, 1fr); } }

/* sub pages (privacy, cancellation) */
body.subpage .nav { color: var(--fg); }
.econtent h2 { max-width: none; }


/* ---- shop (show-only catalogue) ---- */
.sec .sub { margin-top: 14px; color: var(--muted); max-width: 60ch; }
.shopcats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.shopcats .chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.shopcats .chip:hover { background: var(--surface-2); }
.shopcats .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 36px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.pcard[hidden] { display: none; }
.pimg { position: relative; aspect-ratio: 1; background: linear-gradient(160deg, #BDE6E1, #4FB0B8 55%, #0A4A5B); overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.pcard:hover .pimg img { transform: scale(1.04); }
.pst { position: absolute; left: 14px; top: 14px; background: var(--deep); color: #fff; font: 600 12px/1 var(--mono); padding: 8px 12px; border-radius: 999px; }
.pcard.is-out .pimg img { filter: grayscale(.6); opacity: .7; }
.pbody { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pbody h3 { font-size: 20px; }
.pdesc { color: var(--muted); font-size: 15px; }
.pprice { margin-top: auto; padding-top: 6px; font: 700 22px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.pbody .btn { align-self: flex-start; margin-top: 4px; }
.pslides { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.pslides::-webkit-scrollbar { display: none; }
.pslides img { flex: 0 0 100%; scroll-snap-align: start; }
.pcard:hover .pimg.multi img { transform: none; }
.pslides:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.pnav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(6, 32, 42, .62); color: #fff; font: 600 24px/1 var(--body); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; opacity: 0; transition: opacity .2s; }
.pnav.prev { left: 10px; }
.pnav.next { right: 10px; }
.pimg:hover .pnav, .pnav:focus-visible { opacity: 1; }
@media (hover: none) { .pnav { opacity: .9; } }
.pdots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.pdots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(6, 32, 42, .25); }
.pdots i.on { background: #fff; transform: scale(1.25); }
.ask { width: 100%; margin-top: 4px; }
.ask > summary { list-style: none; cursor: pointer; display: inline-flex; user-select: none; }
.ask > summary::-webkit-details-marker { display: none; }
.ask > summary::after { content: "▾"; margin-left: 8px; transition: transform .2s; }
.ask[open] > summary::after { transform: rotate(180deg); }
.askmenu { display: grid; gap: 4px; margin-top: 10px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); animation: pop .18s ease-out; }
.askmenu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 12px; text-decoration: none; color: inherit; font: 600 15px/1 var(--body); }
.askmenu a:hover { background: var(--surface); }
.askmenu a svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; color: #fff; flex: none; }
.askmenu a[data-k="line"] svg { background: #06C755; }
.askmenu a[data-k="whatsapp"] svg { background: #25D366; color: #06202A; }
.askmenu a[data-k="messenger"] svg { background: #0A7CFF; }
.askmenu a[data-k="instagram"] svg { background: linear-gradient(45deg, #FEDA75, #FA7E1E 30%, #D62976 60%, #962FBF 85%, #4F5BD5); }
.askhint { margin: 2px 6px 4px; font-size: 13px; color: var(--muted); }
.askhint.ok { color: var(--accent-2, var(--fg)); font-weight: 600; }

/* ---- section backgrounds (set in the back office; none set = the original look) ---- */
.hero[data-bg], .sec[data-bg] { position: relative; isolation: isolate; overflow: hidden; }
.bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; display: block; }
.hero[data-bg]::after, .sec[data-bg]::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(6, 32, 42, var(--bgo, .5)); }
.hero[data-bg]::after { background: linear-gradient(180deg, rgba(6, 32, 42, calc(var(--bgo, .35) + .15)) 0%, rgba(6, 32, 42, var(--bgo, .35)) 55%, rgba(6, 32, 42, calc(var(--bgo, .35) + .25)) 100%); }
.sec[data-bg] { background: var(--deep); color: #fff; --fg: #fff; --muted: rgba(255, 255, 255, .84); --line: rgba(255, 255, 255, .32); }
.sec[data-preset] > .wrap > h2, .sec[data-preset] h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.sec[data-bg] .tag { color: rgba(255, 255, 255, .86); }
.sec[data-bg] :is(.card, .wc, .panel, .faq details, .cd, .team, .pcard, .mapbox, .tile, .room, .opt, .seg, .fact, input.in, textarea.in, select.in, .arrows button, .chmenu) { --fg: var(--ink); --muted: var(--ink-muted); --line: var(--ink-line); color: var(--ink); }
.sec[data-bg] .sum { color: var(--foam); }
.sec[data-bg] .pcard .btn, .sec[data-bg] .shopcats .chip { color: var(--accent-ink); }
.sec[data-bg] .askmenu a { color: var(--ink); }
.sec[data-bg] .shopcats .chip:not(.on) { color: var(--ink); }

/* wave dividers: a scalloped sea edge at the top of the tinted sections (body.wavy, switched on in the back office) */
.wavy .sec.alt:not([data-bg]) { position: relative; }
.wavy .sec.alt:not([data-bg])::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 18px; pointer-events: none; z-index: 1; background: radial-gradient(circle at 14px 18px, var(--bg-2) 13.5px, transparent 14px) 0 0 / 28px 18px repeat-x; }

/* ---- phone menu (the top links, opened by the menu button) ---- */
.pill.burger { display: none; }
.burger .b-close { display: none; }
.burger[aria-expanded="true"] .b-open { display: none; }
.burger[aria-expanded="true"] .b-close { display: block; }
.mnav { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h, 72px)); z-index: 49; max-height: calc(100vh - var(--nav-h, 72px) - env(safe-area-inset-top, 0px)); max-height: calc(100dvh - var(--nav-h, 72px) - env(safe-area-inset-top, 0px)); overflow-y: auto; padding: 8px 16px calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .35); }
.mnav[hidden] { display: none; }
.mnav a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; font: 500 18px/1.2 var(--body); color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav a:last-child { border-bottom: 0; }
@media (min-width: 861px) { .mnav { display: none !important; } }
