/* Alegria Boat Trips – warm sandstone, Atlantic blue and the orange sun of the logo. */
:root {
  --sand: #fbf6ec;
  --sand-2: #f4eadb;
  --paper: #ffffff;
  --ink: #142a3b;
  --ink-2: #3c5163;
  --muted: #5d6e7c;
  --line: #e5d9c6;
  --sea: #0b5d7e;
  --sea-deep: #0b3a52;
  --sea-tint: #e3f0f4;
  --sun: #f59a12;
  --sun-deep: #c96f00;
  --sun-tint: #fff1dc;
  --cliff: #e2ad63;
  --ok: #1d7a4f;
  --ok-tint: #e5f4ec;
  --warn: #9a5b00;
  --warn-tint: #fff4e0;
  --bad: #a3312a;
  --bad-tint: #fbe9e7;
  --focus: #0a6fd6;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow: 0 1px 2px rgb(20 42 59 / .06), 0 8px 24px rgb(20 42 59 / .08);
  --shadow-lg: 0 2px 6px rgb(20 42 59 / .08), 0 22px 48px rgb(20 42 59 / .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 160ms; --t: 320ms; --t-slow: 700ms;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 1rem/1.6 var(--font-body); text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 var(--s3); color: var(--ink); }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 var(--s4); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }
.eyebrow { font: 700 .78rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sun-deep); margin-bottom: var(--s3); }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.fine { font-size: .86rem; color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); font-size: .82em; }

/* ---------- buttons ---------- */
.btn { --bg: var(--paper); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 46px; padding: 0 var(--s5); border-radius: var(--r-pill); border: 1.5px solid transparent; background: var(--bg); color: var(--fg); font: 700 .98rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), box-shadow var(--t-fast); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn--sun { --bg: var(--sun); --fg: #1d1406; box-shadow: 0 6px 16px rgb(245 154 18 / .32); }
.btn--sun:hover { --bg: #ffa823; }
.btn--sea { --bg: var(--sea); --fg: #fff; }
.btn--sea:hover { --bg: var(--sea-deep); }
.btn--ghost { --bg: transparent; --fg: var(--sea-deep); border-color: color-mix(in srgb, var(--sea) 35%, transparent); }
.btn--ghost:hover { --bg: var(--sea-tint); }
.btn--light { --bg: rgb(255 255 255 / .92); --fg: var(--ink); box-shadow: var(--shadow); }
.btn--sm { min-height: 38px; padding: 0 var(--s4); font-size: .9rem; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { --bg: var(--sand-2); --fg: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: rgb(251 246 236 / .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 68px; }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--ink); }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font: 650 1.12rem/1.1 var(--font-display); }
.brand small { font-size: .74rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a[aria-current="page"] { color: var(--sea); box-shadow: inset 0 -2px 0 var(--sun); }
.nav__phone { display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 760px) {
  .nav { gap: var(--s3); }
  .nav a[href="/tours/"]:not(.btn), .nav a[href="/contact/"]:not(.btn) { display: none; }
  .nav__phone span { display: none; }
  .nav__phone { width: 40px; height: 40px; justify-content: center; border-radius: 50%; background: var(--sea-tint); }
  .brand small { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(420px, 64vh, 620px); display: flex; align-items: flex-end; overflow: hidden; background: var(--sea-deep); }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__bg img { animation: hero-drift 18s var(--ease) both; transform-origin: 50% 60%; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(8 30 44 / .72) 0%, rgb(8 30 44 / .35) 45%, rgb(8 30 44 / 0) 70%), linear-gradient(180deg, rgb(11 58 82 / .1) 0%, rgb(8 30 44 / .55) 100%); }
.hero__inner { padding: var(--s8) 0 var(--s7); }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 24px rgb(0 0 0 / .3); }
.hero h1 em { font-style: italic; color: #ffd08a; }
.hero .eyebrow { color: #ffd08a; }
.hero__lede { max-width: 52ch; font-size: 1.12rem; color: rgb(255 255 255 / .92); }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); list-style: none; padding: 0; margin: 0; font-weight: 600; font-size: .92rem; }
.hero__facts li { display: inline-flex; gap: 6px; align-items: center; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .22); padding: 6px 12px; border-radius: var(--r-pill); backdrop-filter: blur(6px); }
.hero__in { animation: rise var(--t-slow) var(--ease) both; animation-delay: calc(var(--d) * 90ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hero-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (max-width: 700px) {
  .hero { min-height: 400px; }
  .hero__inner { padding: var(--s7) 0 var(--s6); }
  .hero__lede { font-size: 1rem; }
  .hero__facts li:nth-child(3) { display: none; }
}

/* ---------- search ---------- */
.finder { position: relative; z-index: 5; margin-top: -48px; }
.finder--flat { margin-top: 0; }
.search { display: grid; grid-template-columns: minmax(250px, 1.6fr) minmax(150px, .8fr) minmax(170px, 1fr) auto; gap: var(--s3) var(--s4); align-items: end; background: var(--paper); border-radius: var(--r-lg); padding: var(--s4) var(--s5); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.search--compact { grid-template-columns: minmax(250px, 1.5fr) minmax(140px, .7fr) repeat(3, minmax(140px, 1fr)) auto; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: .82rem; color: var(--ink-2); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm); min-height: 46px; padding: 0 var(--s3); width: 100%; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
textarea { padding: var(--s3); min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #cdbfa8; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgb(11 93 126 / .2); }
[aria-invalid="true"] { border-color: var(--bad); }
.date-row { display: flex; gap: var(--s2); }
.date-row input { flex: 1; min-width: 0; }
.chips { display: flex; gap: 6px; }
.chip { min-height: 46px; padding: 0 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--sand); font: 600 .88rem var(--font-body); color: var(--ink); cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast); }
.chip:hover { border-color: var(--sea); }
.chip[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.stepper { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--paper); }
.stepper input { border: 0; border-radius: 0; text-align: center; min-width: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.stepper button { width: 42px; border: 0; background: var(--sand); font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--sand-2); }
.search__go { min-height: 46px; }
@media (max-width: 1020px) {
  .search, .search--compact { grid-template-columns: 1fr 1fr; }
  .field--date { grid-column: 1 / -1; }
  .search__go { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .finder { margin-top: -36px; }
  .search { padding: var(--s4); gap: var(--s3); }
  .search--compact .field--dur, .search--compact .field--style { grid-column: span 1; }
}

/* ---------- results + cards ---------- */
.results { padding: var(--s7) 0 var(--s6); }
.results__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s5); margin-bottom: var(--s4); }
.results__head h2 { margin: 0; }
.results__sub { margin: 0; color: var(--muted); }
.results__more { margin-top: var(--s5); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s5); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), opacity var(--t); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card[hidden] { display: none; }
.card.is-dim { opacity: .62; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.card__media img, .img-missing { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.img-missing { display: grid; place-items: center; color: var(--cliff); background: linear-gradient(135deg, var(--sand-2), var(--sun-tint)); }
.img-missing .i { width: 48px; height: 48px; }
.tag { position: absolute; left: var(--s3); top: var(--s3); background: rgb(255 255 255 / .94); color: var(--ink); font-weight: 700; font-size: .76rem; padding: 5px 10px; border-radius: var(--r-pill); letter-spacing: .02em; }
.card__body { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4) var(--s5) var(--s5); flex: 1; }
.card__title { margin: 0; font-size: 1.28rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--sea); }
.meta { display: flex; flex-wrap: wrap; gap: 6px var(--s4); list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-size: .9rem; }
.meta li { display: inline-flex; gap: 6px; align-items: center; }
.meta .i { color: var(--sea); }
.meta--lg { font-size: 1rem; margin-top: var(--s3); }
.price { margin: 0; display: flex; flex-wrap: wrap; gap: 2px var(--s2); align-items: baseline; }
.price__main { font: 650 1.3rem/1.1 var(--font-display); color: var(--ink); }
.price__basis { color: var(--muted); font-size: .88rem; }
.price__alt { flex-basis: 100%; font-size: .88rem; color: var(--ink-2); }
.price--unknown { color: var(--muted); font-size: .9rem; }
.card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: auto; }
.card__actions .btn { padding: 0 var(--s3); }

/* departure slots */
.slots { min-height: 64px; display: grid; gap: var(--s2); align-content: start; }
.slots__label { font-size: .8rem; font-weight: 700; color: var(--ink-2); margin: 0; }
.slots__status { display: flex; gap: var(--s2); align-items: flex-start; margin: 0; font-size: .9rem; color: var(--ink-2); }
.slots__status .i { margin-top: 2px; }
.is-loading .i { animation: spin 900ms linear infinite; color: var(--sea); }
@keyframes spin { to { transform: rotate(360deg); } }
.slot-row { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 700 .92rem var(--font-body); text-decoration: none; cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast); animation: pop var(--t) var(--ease) both; animation-delay: calc(var(--n, 0) * 40ms); }
a.slot:hover, button.slot:hover { border-color: var(--sea); background: var(--sea-tint); color: var(--ink); }
.slot--book { border-color: color-mix(in srgb, var(--sea) 40%, var(--line)); }
.slot small { font-weight: 500; color: var(--muted); }
.slot--phone { background: var(--warn-tint); border-color: #f1d7a8; }
.slot--out, .slot--closed { background: var(--sand); color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; cursor: default; }
.slot--out small, .slot--closed small { text-decoration: none; }
.slot[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.slot[aria-pressed="true"] small { color: rgb(255 255 255 / .85); }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill); }
.badge--ok { background: var(--ok-tint); color: var(--ok); }
.badge--warn { background: var(--warn-tint); color: var(--warn); }
.badge--bad { background: var(--bad-tint); color: var(--bad); }
.badge--info { background: var(--sea-tint); color: var(--sea-deep); }
.linkish { background: none; border: 0; padding: 0; color: var(--sea); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.notice { display: flex; gap: var(--s3); align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: var(--r); padding: var(--s4); margin-bottom: var(--s5); animation: rise var(--t) var(--ease) both; }
.notice p { margin: 0 0 6px; }
.notice p:last-child { margin: 0; }
.notice__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }

/* ---------- why ---------- */
.why { background: var(--sea-deep); color: #fff; padding: var(--s8) 0; position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgb(245 154 18 / .35), transparent 65%); }
.why__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s7); align-items: center; position: relative; }
.why h2 { color: #fff; }
.why .eyebrow { color: #ffc56b; }
.why__intro p:last-child { color: rgb(255 255 255 / .85); }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.why__list li { display: grid; gap: 4px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--r); padding: var(--s5); }
.why__list .i { width: 28px; height: 28px; color: #ffc56b; margin-bottom: var(--s2); }
.why__list strong { font: 650 1.1rem var(--font-display); }
.why__list span { color: rgb(255 255 255 / .8); font-size: .92rem; }
@media (max-width: 860px) { .why__grid { grid-template-columns: 1fr; gap: var(--s5); } }
@media (max-width: 480px) { .why__list { grid-template-columns: 1fr; } }

/* ---------- route ---------- */
.journey { display: grid; grid-template-columns: .9fr 1.4fr; gap: var(--s7); align-items: center; padding: var(--s8) 0 var(--s6); }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; gap: var(--s5); padding-top: var(--s7); } }
/* ---------- itinerary voyage ---------- */
.voyage { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3); box-shadow: var(--shadow); display: grid; gap: var(--s3); }
.voyage__map { position: relative; border-radius: var(--r); overflow: hidden; background: #0b4a68; }
.voyage__caption { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 14px; min-height: 46px; background: #f3f8fa; color: var(--ink); font-size: .85rem; line-height: 1.3; opacity: 0; transform: translateY(4px); border-top: 1px solid #d5e6ec; }
.voyage__caption.is-in { opacity: 1; transform: none; transition: opacity 380ms var(--ease), transform 380ms var(--ease); }
.voyage__caption strong { font: 650 1.02rem var(--font-display); }
.voyage__caption:empty::before { content: "\00a0"; }
.voyage__caption span { color: var(--muted); }
.voyage__caption .voyage__caption-n { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--sun-deep); }
.voyage__map svg { display: block; width: 100%; height: auto; }
.voyage__waves path { fill: none; stroke: rgb(255 255 255 / .16); stroke-width: 2; animation: drift 9s linear infinite; animation-delay: calc(var(--k) * -2.2s); }
@keyframes drift { to { transform: translateX(-120px); } }
.voyage__cliff { fill: none; stroke: #b9772c; stroke-width: 3; stroke-linejoin: round; }
.voyage__ghost { fill: none; stroke: rgb(255 255 255 / .35); stroke-width: 2.5; stroke-dasharray: 3 9; stroke-linecap: round; }
.voyage__wake { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--wake, 0); }
.voyage__tether { stroke: rgb(20 42 59 / .35); stroke-width: 1.5; stroke-dasharray: 2 4; }
.voyage__wp { fill: #0b4a68; stroke: #fff; stroke-width: 2; transition: fill var(--t), r var(--t); }
.voyage__pin { fill: var(--paper); stroke: var(--sun-deep); stroke-width: 3; transition: fill var(--t); }
.voyage__arch { fill: #2a2016; stroke: #8a5a22; stroke-width: 2; }
.voyage__oculus { fill: #ffd27a; opacity: .5; transition: opacity var(--t); }
.voyage__label { font: 700 21px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: rgb(255 248 236 / .85); stroke-width: 5px; stroke-linejoin: round; opacity: .55; transition: opacity var(--t); }
.voyage__stop.is-passed .voyage__wp { fill: var(--sun); }
.voyage__stop.is-passed .voyage__pin { fill: var(--sun); }
.voyage__stop.is-passed .voyage__label { opacity: 1; }
.voyage__stop.is-passed .voyage__oculus { opacity: 1; filter: drop-shadow(0 0 6px #ffd27a); }
.voyage__stop.is-current .voyage__wp { r: 8; }
.voyage__boat { transition: none; }
.voyage__bob { animation: bob 2.6s ease-in-out infinite; scale: 1.45; }
@keyframes bob { 50% { transform: translateY(-2.5px) rotate(-2deg); } }
.voyage__hull { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.voyage__cabin { fill: var(--sun); stroke: var(--ink); stroke-width: 1.6; }
.voyage__roof { fill: var(--ink); }
.voyage__controls { display: grid; gap: var(--s3); }
.voyage__play { justify-self: start; }
.voyage__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px; }
.voyage__step { width: 100%; display: flex; gap: var(--s2); align-items: flex-start; text-align: left; padding: var(--s2) var(--s3); border-radius: var(--r-sm); border: 1.5px solid transparent; background: transparent; font: inherit; color: var(--ink); cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast); }
.voyage__step:hover { background: var(--sand); }
.voyage__step[aria-current="step"] { background: var(--sun-tint); border-color: #f2c98a; }
.voyage__step span:last-child { display: grid; line-height: 1.3; }
.voyage__step strong { font-size: .92rem; }
.voyage__step small { color: var(--muted); font-size: .8rem; }
.voyage__num { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--sun); display: grid; place-items: center; font-size: .74rem; font-weight: 800; color: var(--sun-deep); transition: background-color var(--t), color var(--t); }
.voyage__step.is-passed .voyage__num { background: var(--sun); color: #1d1406; }
.voyage figcaption { margin: 0 var(--s2) var(--s2); }
.voyage--compact .voyage__list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 640px) {
  .voyage__label { display: none; }
  .voyage__list { grid-template-columns: 1fr 1fr; }
}

/* ---------- Benagil cave scene ---------- */
.cave { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #07131b; --open: 1; }
.cave__stage { position: absolute; inset: 0; z-index: -1; }
.cave__img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 30%); transform: scale(calc(1.12 - var(--open) * .12)); transform-origin: var(--focus, 50% 30%); }
.cave__shade { position: absolute; inset: 0; background:
  radial-gradient(circle at var(--focus, 50% 30%), transparent calc(var(--open) * 58%), rgb(5 12 18 / .97) calc(var(--open) * 58% + 22%)),
  linear-gradient(180deg, rgb(5 12 18 / .25) 30%, rgb(5 12 18 / .88) 100%); }
.cave__rays { position: absolute; inset: -20%; opacity: calc(var(--open) * .55); mix-blend-mode: screen; pointer-events: none;
  background: repeating-conic-gradient(from 160deg at var(--focus, 50% 30%), rgb(255 222 160 / .0) 0deg 7deg, rgb(255 222 160 / .22) 9deg 11deg, rgb(255 222 160 / 0) 13deg 21deg);
  -webkit-mask: radial-gradient(circle at var(--focus, 50% 30%), #000 0 18%, transparent 55%); mask: radial-gradient(circle at var(--focus, 50% 30%), #000 0 18%, transparent 55%);
  filter: blur(6px); animation: rays 14s ease-in-out infinite alternate; transform-origin: var(--focus, 50% 30%); }
@keyframes rays { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.cave__caustics { position: absolute; inset: auto 0 0 0; height: 45%; mix-blend-mode: soft-light; opacity: .8; pointer-events: none;
  background:
    radial-gradient(ellipse 60px 18px at 20% 30%, rgb(190 245 255 / .7), transparent 70%),
    radial-gradient(ellipse 80px 22px at 60% 60%, rgb(190 245 255 / .6), transparent 70%),
    radial-gradient(ellipse 50px 14px at 85% 25%, rgb(190 245 255 / .6), transparent 70%),
    radial-gradient(ellipse 70px 20px at 40% 80%, rgb(190 245 255 / .5), transparent 70%);
  background-size: 260px 120px, 340px 150px, 220px 110px, 300px 130px;
  -webkit-mask: linear-gradient(transparent, #000 40%); mask: linear-gradient(transparent, #000 40%);
  animation: caustics 7s ease-in-out infinite alternate; }
@keyframes caustics { from { background-position: 0 0, 40px 10px, 0 20px, 80px 0; } to { background-position: 60px 14px, -30px -8px, 50px 0, 20px 18px; } }
.cave__copy { min-height: clamp(520px, 86vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s8) 0 var(--s7); }
.cave__copy h2 { color: #fff; max-width: 18ch; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); }
.cave .eyebrow { color: #ffd08a; }
.cave__lede { max-width: 54ch; color: rgb(255 255 255 / .9); font-size: 1.08rem; }
.cave__facts { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.cave__facts li { display: grid; gap: 4px; padding: var(--s4); border-radius: var(--r); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); backdrop-filter: blur(8px); }
.cave__facts strong { font: 650 1.05rem var(--font-display); color: #ffd08a; }
.cave__facts span { font-size: .9rem; color: rgb(255 255 255 / .85); }
.cave.is-armed .cave__facts li { opacity: 0; transform: translateY(14px); }
.cave.is-lit .cave__facts li { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: calc(var(--i) * 110ms); }
.cave__gl { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48%; mix-blend-mode: screen; opacity: .6; pointer-events: none; -webkit-mask: linear-gradient(transparent, #000 35%); mask: linear-gradient(transparent, #000 35%); }
.cave.has-gl .cave__caustics { display: none; }
.is-offscreen .cave__rays, .is-offscreen .cave__caustics, .is-offscreen .voyage__waves path, .is-offscreen .voyage__bob { animation-play-state: paused; }
@media (max-width: 860px) { .cave__facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .cave__facts li { padding: var(--s3); } }

/* ---------- practical ---------- */
.practical { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); padding: var(--s6) 0 var(--s8); }
.practical__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.practical__item h3 { display: flex; gap: var(--s2); align-items: center; }
.practical__item h3 .i { color: var(--sun-deep); }
.practical__item a { font-weight: 700; }
@media (max-width: 860px) { .practical { grid-template-columns: 1fr; } }

/* ---------- page heads ---------- */
.page-head { padding: var(--s6) 0 var(--s4); }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: var(--s4); }
.crumbs a { color: var(--ink-2); }

/* ---------- tour page ---------- */
.tour-top { padding: var(--s5) 0 var(--s4); }
.tour-top h1 { max-width: 22ch; }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s2); height: clamp(300px, 46vw, 500px); border-radius: var(--r-lg); overflow: hidden; }
.gallery__item { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--sand-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease), filter var(--t); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--main { grid-row: span 2; }
.gallery__all { position: absolute; right: var(--s4); bottom: var(--s4); }
.gallery--empty { display: block; height: 260px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: auto; aspect-ratio: 4 / 3; border-radius: var(--r); }
  .gallery__item:not(.gallery__item--main) { display: none; }
  .gallery__item--main { grid-row: auto; }
}
.lightbox { width: min(100vw, 1200px); max-width: 100vw; max-height: 100vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgb(8 20 30 / .92); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: var(--r-sm); }
.lightbox__close, .lightbox__nav { position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--ink); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; }
.lightbox__nav--next { right: 16px; top: 50%; }
.lightbox__count { color: #fff; text-align: center; margin-top: var(--s3); }

.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s7); padding: var(--s6) 0 var(--s7); align-items: start; }
.tour-side__sticky { position: sticky; top: 88px; }
.block { padding: 0 0 var(--s6); margin-bottom: var(--s6); border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.block--details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.block--details summary::-webkit-details-marker { display: none; }
.block--details summary::after { content: "+"; font-size: 1.6rem; color: var(--sea); }
.block--details[open] summary::after { content: "–"; }
.block--details summary h2 { margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--sun-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c96f00' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ticks--plain li::before { background: var(--sea-tint); width: 8px; height: 8px; top: .62em; left: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.prices { width: 100%; border-collapse: collapse; margin-bottom: var(--s3); }
.prices caption { text-align: left; font-size: .86rem; color: var(--muted); padding-bottom: var(--s2); }
.prices th, .prices td { padding: var(--s3) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prices th small { display: block; font-weight: 400; color: var(--muted); }
.prices td { text-align: right; font-weight: 700; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--s6); }
.prose h4 { font: 700 1rem var(--font-body); margin: var(--s4) 0 var(--s2); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: var(--s3) 0; font-weight: 700; }
.faq p { color: var(--ink-2); }

/* booking panel */
.book { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: var(--s5); display: grid; gap: var(--s4); }
.book__head h2 { font-size: 1.35rem; margin-bottom: var(--s2); }
.cal__bar { display: flex; align-items: center; justify-content: space-between; }
.cal__month { margin: 0; font-weight: 700; }
.cal__nav { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.cal__nav:disabled { opacity: .35; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: var(--s2); }
.cal__dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal__day { aspect-ratio: 1; border: 0; border-radius: var(--r-sm); background: transparent; font: 600 .9rem var(--font-body); color: #9aa6b0; cursor: default; position: relative; }
.cal__day.has-open { color: var(--ink); background: var(--sea-tint); cursor: pointer; }
.cal__day.has-phone { color: var(--ink); background: var(--warn-tint); cursor: pointer; }
.cal__day.has-open:hover, .cal__day.has-phone:hover { outline: 2px solid var(--sea); }
.cal__day[aria-selected="true"] { background: var(--sea); color: #fff; }
.cal__day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--sun); }
.cal__legend { display: flex; gap: var(--s3); align-items: center; font-size: .78rem; color: var(--muted); margin: var(--s2) 0 0; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: -6px; }
.dot--open { background: var(--sea-tint); border: 1px solid #b9d7e2; }
.dot--phone { background: var(--warn-tint); border: 1px solid #f1d7a8; }
.book__times { min-height: 56px; transition: opacity var(--t-fast); }
.book__party { display: grid; gap: 6px; }
.book__party label { font-weight: 700; font-size: .85rem; }
.book__party .stepper { max-width: 180px; }
.book__party .fine { margin: 0; }
.book__party-note { margin: 0; }
.book__trust { display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.related { padding: var(--s6) 0 var(--s8); }

/* mobile booking bar + sheet */
.mbar { display: none; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; margin: auto auto 0; padding: 0; border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--sand); }
.sheet::backdrop { background: rgb(8 20 30 / .55); }
.sheet[open] { animation: sheet-up var(--t) var(--ease) both; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s4) var(--s4) var(--s3); background: var(--sand); z-index: 1; border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-size: 1.1rem; margin: 0; }
.sheet__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sand-2); font-size: 1.5rem; cursor: pointer; color: var(--ink); }
.sheet__body { padding: var(--s4); }
.sheet__body .book { box-shadow: none; }
@media (max-width: 900px) {
  .tour-layout { grid-template-columns: 1fr; gap: 0; padding-bottom: 120px; }
  .tour-side { margin-bottom: var(--s6); }
  .js .tour-side { display: none; }
  .tour-side__sticky { position: static; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: var(--s3); align-items: center; justify-content: space-between; padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(20 42 59 / .1); transform: translateY(110%); transition: transform var(--t) var(--ease); }
  .mbar.is-shown { transform: none; }
  .mbar__info { display: grid; min-width: 0; line-height: 1.25; }
  .mbar__info strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar__info span { font-size: .82rem; color: var(--muted); }
}

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--s7); padding: var(--s4) 0 var(--s8); align-items: start; }
.contact__cards { display: grid; gap: var(--s3); }
.ccard { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s4) var(--s5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color var(--t-fast), transform var(--t-fast); }
a.ccard:hover { border-color: var(--sea); transform: translateY(-1px); color: var(--ink); }
.ccard .i { width: 24px; height: 24px; color: var(--sun-deep); margin-top: 2px; }
.ccard span { display: grid; gap: 2px; }
.ccard small { color: var(--muted); }
.enquiry { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow); display: grid; gap: var(--s4); }
.enquiry h2 { margin: 0; }
.enquiry .fine { margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg:empty { display: none; }
.form-msg { padding: var(--s3) var(--s4); border-radius: var(--r-sm); font-weight: 600; }
.form-msg.is-ok { background: var(--ok-tint); color: var(--ok); }
.form-msg.is-err { background: var(--bad-tint); color: var(--bad); }
.field-error { color: var(--bad); font-size: .85rem; font-weight: 600; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: var(--s5); } .enquiry { padding: var(--s5); } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: #0a2a3b; color: rgb(255 255 255 / .82); padding: var(--s7) 0 var(--s5); font-size: .92rem; }
.footer a { color: #fff; }
.footer h2 { font: 700 .8rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #ffc56b; }
.footer ul { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: 4px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); }
.brand--light { color: #fff; }
.brand--light small { color: rgb(255 255 255 / .7); display: block; }
.footer__note { margin-top: var(--s4); }
.footer__legal { border-top: 1px solid rgb(255 255 255 / .14); padding-top: var(--s4); margin-top: var(--s5); font-size: .82rem; color: rgb(255 255 255 / .6); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: var(--s4); } }

/* ---------- motion ---------- */
.reveal.is-armed { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.grid.is-updating .card { opacity: .55; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .reveal.is-armed, .cave.is-armed .cave__facts li { opacity: 1; transform: none; }
  .cave { --open: 1 !important; }
  .card:hover, .btn:hover { transform: none; }
}
