/* La Luna Boutique — shared styles */

/* Two moods: "day" (warm sand, the default) and "night" (moonlit lagoon).
   The mood is set on <html data-island="day|night"> by the switch in the header. */
:root {
  color-scheme: light;
  --ground: #FBF6EE;
  --ground-deep: #F4EADB;
  --surface: rgba(255, 253, 248, 0.72);
  --surface-solid: #FFFDF8;
  --ink: #45392F;
  --ink-soft: #7A6A5D;
  --lagoon: #0A7A91;
  --lagoon-ink: #FFFDF8;
  --lagoon-soft: rgba(10, 122, 145, 0.10);
  --coral: #C8643F;
  --coral-soft: rgba(200, 100, 63, 0.12);
  --moon: #7CC6D8;
  --blush: #E6CDBF;
  --rule: #ECDFCD;
  --moon-lit: #FFF4DF;
  --moon-dark: #D7E6E8;
  --glow: rgba(255, 196, 140, 0.30);
  --warn: #A86A12;
  --warn-soft: rgba(196, 132, 34, 0.13);
  --stop: #A8473F;
  --stop-soft: rgba(168, 71, 63, 0.10);
  --sea: #A9D8E3;
  --reef: #E6F6F1;
  --reef-line: #7DD3CF;
  --land: #CFE2BF;
  --land-line: #F7EBD3;
  --building: #B9D0A6;
  --road: #FFFBF2;
  /* Horizon scene */
  --sky-top: #F9D9B8;
  --sky-low: #FDF0DD;
  --orb: #F6A15E;
  --orb-glow: rgba(246, 161, 94, 0.35);
  --water-top: #7FCBD4;
  --water-low: #2E9AAE;
  --wave: rgba(255, 255, 255, 0.7);
  --isle: #3E6B5A;
  --sand: #F3E1C2;
  --display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --body: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
}
:root[data-island="night"] {
  color-scheme: dark;
  --ground: #0B1F2B;
  --ground-deep: #081822;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-solid: #10283A;
  --ink: #EDE3D7;
  --ink-soft: #A7B5B9;
  --lagoon: #5CC3DE;
  --lagoon-ink: #08202C;
  --lagoon-soft: rgba(92, 195, 222, 0.12);
  --coral: #F0A07F;
  --coral-soft: rgba(240, 160, 127, 0.14);
  --moon: #8FD6E6;
  --blush: #3C5260;
  --rule: #263F4B;
  --moon-lit: #F4E6CF;
  --moon-dark: #173445;
  --glow: rgba(143, 214, 230, 0.12);
  --warn: #E6B25E;
  --warn-soft: rgba(230, 178, 94, 0.14);
  --stop: #E99087;
  --stop-soft: rgba(233, 144, 135, 0.12);
  --sea: #0B2836;
  --reef: #1A5161;
  --reef-line: #24707D;
  --land: #3D5A48;
  --land-line: #9C8E72;
  --building: #567058;
  --road: #8FA08A;
  --sky-top: #06141D;
  --sky-low: #163A4C;
  --orb: #F4E6CF;
  --orb-glow: rgba(244, 230, 207, 0.22);
  --water-top: #12384A;
  --water-low: #061923;
  --wave: rgba(244, 230, 207, 0.35);
  --isle: #0A1A22;
  --sand: #2C4048;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
/* No grey/blue flash when tapping on Android; keyboard focus outlines stay. Tap also skips the double-tap-zoom delay. */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, label, select, input, textarea, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body {
  margin: 0;
  background:
    radial-gradient(60rem 36rem at 50% -8rem, var(--glow), transparent 70%),
    linear-gradient(180deg, var(--ground) 40%, var(--ground-deep));
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lagoon); }
img { max-width: 100%; }

/* Stationery frame: a thin blush border inset from the edge, echoing the logo's rectangle */
.page {
  min-height: 100vh;
  padding-inline: 16px;
  padding-block: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-bottom, 0px));
  display: flex;
}
.frame {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--blush);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
}
.wrap { width: 100%; max-width: 60rem; margin-inline: auto; padding-inline: clamp(16px, 5vw, 56px); }

/* ---------- Header ---------- */
/* The header stays at the top while the page scrolls */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(69, 57, 47, .45); }
:root[data-island="night"] .site-header.scrolled { box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .7); }
/* Jump links land below the sticky header */
[id] { scroll-margin-top: 96px; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { display: block; height: 40px; width: auto; }
.brand span { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px 22px; margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 22px; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--blush); }
.nav a[aria-current="page"] { color: var(--lagoon); border-bottom-color: var(--lagoon); }
.nav-toggle {
  display: none;
  font: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--blush);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

/* ---------- Type ---------- */
.eyebrow, .label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--coral);
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.4vw, 3.25rem); line-height: 1.12; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 1.875rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.25; }
.lede { margin: 0; color: var(--ink-soft); max-width: 34rem; text-wrap: pretty; }
p { margin: 0; }
.prose { display: grid; gap: 14px; max-width: 38rem; }
.muted { color: var(--ink-soft); }
.tiny {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Layout blocks ---------- */
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 8vh, 80px); padding-block: clamp(36px, 7vh, 72px) clamp(40px, 8vh, 80px); }
.section { display: grid; gap: 22px; }
.section-head { display: grid; gap: 6px; }
.page-head { display: grid; gap: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: start; }

/* Home hero */
.hero { display: grid; justify-items: center; text-align: center; gap: clamp(26px, 5vh, 38px); }
.logo { display: grid; justify-items: center; gap: 12px; margin: 0; }
.logo img { display: block; height: auto; }
.mark { width: clamp(84px, 16vw, 112px); }
.wordmark { width: clamp(170px, 30vw, 220px); }
:root:not([data-island="night"]) .night, :root[data-island="night"] .day { display: none; }
.hero .copy { display: grid; justify-items: center; gap: 14px; max-width: 36rem; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .actions { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--lagoon);
  background: var(--lagoon);
  color: var(--lagoon-ink);
  font: inherit;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--lagoon-soft); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-quiet { background: transparent; color: var(--lagoon); border-color: var(--blush); }
.btn:focus-visible, .nav a:focus-visible, .nav-toggle:focus-visible, .seg button:focus-visible,
.more:focus-visible, .chip:focus-visible, .text-link:focus-visible, .map-btn:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; }
.text-link { color: var(--lagoon); text-decoration: none; border-bottom: 1px solid var(--blush); }
.text-link:hover { border-bottom-color: var(--lagoon); }

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.hero .contact-line { justify-content: center; }
.contact-line b { font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; user-select: all; }
.socials { display: inline-flex; gap: 18px; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.socials a:hover { color: var(--lagoon); border-bottom-color: var(--blush); }
.socials svg { width: 18px; height: 18px; }

/* Booking.com guest rating (update the score in pages/partials/rating.html) */
.rating {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border: 1px solid var(--blush);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
}
.hero .rating { justify-self: center; }
.rating b { display: grid; place-items: center; min-width: 38px; height: 30px; padding: 0 8px; border-radius: 8px 8px 8px 2px; background: #003B95; color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
.rating:hover { border-color: var(--lagoon); }
.rating:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; }

/* ---------- Almanac strip ---------- */
.almanac {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--blush);
  border-bottom: 1px solid var(--blush);
}
.almanac > div { display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-width: 0; }
.almanac > div + div { border-left: 1px solid var(--rule); }
.almanac svg { width: 34px; height: 34px; flex: none; }
.value { display: block; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.sub { display: block; font-size: 0.8125rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.value-big { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }

/* ---------- Ruled columns (plan your stay, contact) ---------- */
.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--blush);
}
.columns > * { display: grid; align-content: start; gap: 10px; padding: 22px 22px 24px 0; min-width: 0; }
.columns > * + * { padding-left: 22px; border-left: 1px solid var(--rule); }
.columns h3 a { color: inherit; text-decoration: none; }
.columns h3 a:hover { color: var(--lagoon); }
.columns .text-link { justify-self: start; font-size: 0.9375rem; }

.columns.stack { grid-template-columns: minmax(0, 1fr); }
.columns.stack > * { padding: 16px 0; }
.columns.stack > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }

/* ---------- Photos: gallery, home strip, lightbox ---------- */
.shot { display: block; overflow: hidden; background: var(--ground-deep); border: 1px solid var(--blush); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.04); }
.shot:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 12px; }
.gallery .wide { grid-column: span 2; }
.gallery .insta { grid-column: span 2; display: grid; align-content: center; gap: 6px; padding: 28px; text-decoration: none; color: var(--ink); background: linear-gradient(135deg, var(--sky-top), var(--sky-low)); }
.insta-handle { font-family: var(--display); font-size: clamp(1.375rem, 3vw, 2rem); }
.gallery .insta:hover .insta-handle { color: var(--lagoon); }
.strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; height: 300px; }
.lightbox { width: min(94vw, 1100px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 20, 28, .88); }
.lightbox img { display: block; max-width: 100%; max-height: 84vh; margin: 0 auto; object-fit: contain; }
.lightbox-caption { text-align: center; color: #F4E6CF; font-size: 0.875rem; padding-top: 10px; }
.lightbox .map-btn { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox .lb-prev { left: -8px; }
.lightbox .lb-next { right: -8px; }
.lightbox .lb-close { top: -8px; right: -8px; translate: none; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* ---------- Facilities (icon grid) ---------- */
.facilities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.facilities li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--blush); background: var(--surface); font-size: 0.9375rem; line-height: 1.3; }
.facilities svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--lagoon); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Room cards ---------- */
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.room { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--blush); background: var(--surface-solid); }
.room-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ground-deep); }
.room-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
a.room-photo:hover img { transform: scale(1.04); }
.room-ph { display: grid; place-items: center; align-content: center; gap: 10px; background: linear-gradient(180deg, var(--sky-low), var(--ground-deep)); }
.room-ph img { width: 56px; height: auto; opacity: .55; }
.room-ph span { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.room-body { display: grid; align-content: start; gap: 10px; padding: 18px 20px 22px; }
.room-body .text-link { justify-self: start; font-size: 0.9375rem; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.9375rem; color: var(--ink-soft); }
.amenities li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--coral); vertical-align: 2px; }
.amenities.house { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; padding-top: 18px; border-top: 1px solid var(--blush); }

/* ---------- Good to know (2 x 2) ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--blush); }
.facts > div { display: grid; align-content: start; gap: 8px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.about-facts { font-size: 0.875rem; }

/* ---------- Notice for content still to come ---------- */
.pending {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  border: 1px dashed var(--blush);
  border-radius: 4px;
  background: var(--surface);
}

/* ---------- Forms ---------- */
.form .seg { justify-self: start; }
.form { display: grid; gap: 18px; padding: 24px; border: 1px solid var(--blush); background: var(--surface); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field legend {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0;
}
fieldset.field { border: 0; margin: 0; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface-solid);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 10px 12px;
  min-height: 44px;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--lagoon); outline-offset: 1px; border-color: var(--lagoon); }
.field small { font-size: 0.8125rem; color: var(--ink-soft); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.form-foot p { font-size: 0.8125rem; color: var(--ink-soft); max-width: 26rem; }
.flight-hint { font-size: 0.875rem; color: var(--lagoon); }
.flight-hint.warn { color: var(--warn); }
.wa-out { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
.wa-out pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: 0.9375rem; color: var(--ink); background: var(--ground); border: 1px solid var(--rule); border-radius: 4px; padding: 12px 14px; }
.wa-out .text-link { justify-self: start; }

/* Segmented controls */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--blush);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface);
}
.seg button {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--lagoon); color: var(--lagoon-ink); font-weight: 500; }

/* ---------- Speedboat timetable ---------- */
.timetable { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--blush); border-bottom: 1px solid var(--blush); }
.timetable > div { display: grid; gap: 12px; padding: 20px 22px 22px 0; align-content: start; }
.timetable > div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.route { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.route h3 { font-size: 1.375rem; }
.times { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.times li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.times li:last-child { border-bottom: 0; padding-bottom: 0; }
.times .when { color: var(--ink-soft); font-size: 0.875rem; }
.times .clock { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.next-boat { font-size: 0.875rem; color: var(--lagoon); font-variant-numeric: tabular-nums; }

/* ---------- Flight board ---------- */
.board { width: 100%; display: grid; gap: 16px; }
.board-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; }
.board-title { display: grid; gap: 4px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; }
.flight-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--blush);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--ink-soft);
}
.flight-search:focus-within { border-color: var(--lagoon); outline: 2px solid var(--lagoon-soft); }
.flight-search svg { width: 18px; height: 18px; flex: none; }
.flight-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 0.9375rem; color: var(--ink); padding: 9px 0; outline: none; }
.flight-search input::placeholder { color: var(--ink-soft); opacity: .8; }
/* While searching, results cover every direction and type, so the toggles step back */
.board.searching .controls .seg { opacity: .45; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--blush); }
.row {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) minmax(0, 8.5rem) 6.75rem;
  align-items: center;
  gap: 6px 18px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.row.near { background: linear-gradient(90deg, var(--lagoon-soft), transparent 80%); }
.t { display: grid; line-height: 1.25; }
.t b { font-weight: 400; font-size: 1.0625rem; }
.t s { color: var(--ink-soft); font-size: 0.8125rem; }
.place { display: grid; line-height: 1.3; min-width: 0; }
.place b { font-weight: 400; overflow-wrap: anywhere; }
.place small { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-soft); }
.near-tag { justify-self: start; margin-top: 3px; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lagoon); }
.fl { display: grid; line-height: 1.3; min-width: 0; }
.fl b { font-weight: 400; }
.fl small { font-size: 0.75rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.status {
  justify-self: end;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--lagoon);
  background: var(--lagoon-soft);
}
.status.done { color: var(--ink-soft); background: transparent; border: 1px solid var(--rule); }
.status.warn { color: var(--warn); background: var(--warn-soft); }
.status.stop { color: var(--stop); background: var(--stop-soft); }
.day-break { padding: 14px 4px 6px; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.empty { padding: 22px 4px; color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.board-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; font-size: 0.8125rem; color: var(--ink-soft); }
.more {
  font: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--lagoon);
  background: none;
  border: 1px solid var(--blush);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
}

/* ---------- Explore map ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--blush);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--lagoon)); flex: none; }
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--lagoon); background: var(--lagoon-soft); }

.map-shell { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; border: 1px solid var(--blush); background: var(--sea); }
.map {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 72vh;
  width: 100%;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background: var(--sea);
}
.map.dragging { cursor: grabbing; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map svg.map-north { inset: auto 14px 30px auto; width: 22px; height: 28px; fill: var(--ink); opacity: .7; pointer-events: none; }
.map-north text { font-family: var(--display); font-size: 8px; fill: var(--ink); }
/* Each reef gets a wide turquoise halo (the shallows) painted under its pale flat; islands get a sandy beach edge */
.m-reef path { fill: var(--reef); stroke: var(--reef-line); stroke-width: 7; stroke-linejoin: round; stroke-opacity: .55; paint-order: stroke; vector-effect: non-scaling-stroke; }
.m-land path { fill: var(--land); stroke: var(--land-line); stroke-width: 3; stroke-linejoin: round; paint-order: stroke; vector-effect: non-scaling-stroke; }
.m-runway path { fill: none; stroke: var(--ink-soft); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .7; }
.m-road path { fill: none; stroke: var(--road); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.m-path path { fill: none; stroke: var(--road); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; opacity: .8; }
.m-building path { fill: var(--building); }
.m-pier path { fill: none; stroke: var(--land-line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.map[data-detail="low"] .m-road, .map[data-detail="low"] .m-path, .map[data-detail="low"] .m-building { display: none; }

.map-layer { position: absolute; inset: 0; pointer-events: none; }
.isle {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  text-shadow: 0 0 6px var(--sea), 0 0 2px var(--sea);
  opacity: .85;
}
.isle.home { color: var(--lagoon); font-size: 0.9375rem; }
.region {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lagoon);
  white-space: nowrap;
  text-shadow: 0 0 6px var(--sea);
}
.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  width: 30px;
  height: 38px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--c, var(--lagoon));
}
.pin svg { width: 100%; height: 100%; display: block; position: static; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.pin[aria-pressed="true"] { z-index: 2; transform: translate(-50%, -100%) scale(1.25); }
/* La Luna's own pin: larger, coral, a crescent instead of a dot, with its name beside it */
.pin.home-pin { width: 40px; height: 50px; z-index: 3; }
.pin.home-pin span {
  position: absolute;
  left: calc(100% + 4px);
  top: 8px;
  font-family: var(--display);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--ink);
  background: var(--surface-solid);
  border: 1px solid var(--blush);
  border-radius: 999px;
  padding: 1px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
/* Selected pin: a soft ring ripples out from its tip */
.pin[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 22px;
  height: 9px;
  margin-left: -11px;
  border-radius: 50%;
  border: 2px solid var(--c, var(--lagoon));
  opacity: .7;
}
@media (prefers-reduced-motion: no-preference) {
  .pin[aria-pressed="true"]::after { animation: ping 1.8s ease-out infinite; }
  @keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
}
.pin:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 2px; border-radius: 50%; }
.map-tools { position: absolute; top: 12px; right: 12px; display: grid; gap: 6px; pointer-events: auto; }
.map-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 1.125rem;
  color: var(--ink);
  background: var(--surface-solid);
  border: 1px solid var(--blush);
  border-radius: 50%;
  cursor: pointer;
}
.map-views { position: absolute; left: 12px; top: 12px; pointer-events: auto; }
.map-views .seg { background: var(--surface-solid); }
.map-scale {
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: grid;
  gap: 2px;
  font-size: 0.6875rem;
  color: var(--ink);
  text-shadow: 0 0 4px var(--sea);
}
.map-scale i { display: block; height: 5px; border: 1px solid var(--ink); border-top: 0; }
.map-credit { position: absolute; right: 10px; bottom: 8px; font-size: 0.625rem; color: var(--ink-soft); text-shadow: 0 0 4px var(--sea); }
.map-credit a { color: inherit; }

.map-card { display: grid; align-content: start; gap: 12px; padding: 22px; border-left: 1px solid var(--blush); background: var(--ground); }
.map-card .cat { display: inline-flex; align-items: center; gap: 8px; }
.map-card .cat i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--lagoon)); }
.map-card .dist { font-size: 0.875rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.map-card [data-tour] { justify-self: start; margin-top: 4px; }
.map-step { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.8125rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.place-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.place-list li { border-bottom: 1px solid var(--rule); }
.place-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 12px 2px;
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}
.place-list button:hover b { color: var(--lagoon); }
.place-list i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--lagoon)); align-self: center; }
.place-list b { font-weight: 400; }
.place-list small { color: var(--ink-soft); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  padding-block: 32px 28px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--lagoon); }
/* Privacy: a quiet link in the bottom line that opens its note on a row of its own */
.privacy summary { display: inline-block; cursor: pointer; list-style: none; border-bottom: 1px solid transparent; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary:hover, .privacy[open] summary { color: var(--lagoon); border-bottom-color: var(--blush); }
.privacy summary:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; }
.privacy[open] { order: 3; flex-basis: 100%; }
.privacy p { max-width: 46rem; margin-top: 8px; line-height: 1.6; }
.site-footer .fine { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 0.8125rem; border-top: 1px solid var(--rule); padding-top: 18px; }


/* ---------- Day / night switch ---------- */
.mood {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
}
.mood-track {
  position: relative;
  width: 58px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--blush);
  background: linear-gradient(180deg, var(--sky-top), var(--sky-low));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 7px;
}
.mood-track svg { width: 14px; height: 14px; position: relative; z-index: 1; }
.mood-sun { fill: none; stroke: var(--coral); stroke-width: 1.8; stroke-linecap: round; }
.mood-moon { fill: var(--ink-soft); }
.mood-track i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  transition: transform .45s cubic-bezier(.5, 0, .2, 1.3);
}
.mood[aria-pressed="true"] .mood-track i { transform: translateX(28px); background: var(--moon-lit); }
:root[data-island="night"] .mood-moon { fill: var(--moon-lit); }
:root[data-island="night"] .mood-sun { stroke: var(--ink-soft); }
.mood:hover { color: var(--ink); }
.mood:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; border-radius: 999px; }

/* Dusk spreads from the switch (browsers with view transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: dusk .7s cubic-bezier(.4, 0, .2, 1); }
@keyframes dusk {
  from { clip-path: circle(0 at var(--mx, 100%) var(--my, 0)); }
  to { clip-path: circle(150vmax at var(--mx, 100%) var(--my, 0)); }
}

/* ---------- Horizon postcard (home) ---------- */
.postcard {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--blush);
  background: var(--surface-solid);
  padding: 10px;
  box-shadow: 0 18px 40px -24px rgba(69, 57, 47, .35);
  transform: rotate(-0.6deg);
}
:root[data-island="night"] .postcard { box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .6); }
.postcard .almanac { border-top: 0; border-bottom: 0; text-align: left; }
.horizon { position: relative; margin: 0; width: 100%; aspect-ratio: 1200 / 340; overflow: hidden; }
.horizon > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Live scene. scene.js sets data-phase (time of day), data-sky (weather) and data-sea (wave height)
   from Dhangethi's real sunrise/sunset, weather and sea data. Colours here are the scene's own,
   so it shows the real sky whichever Day/Night mood the page is in. */
.horizon {
  --hz-sky-top: #F6C79A; --hz-sky-low: #FCEBD2; --hz-band: rgba(255, 196, 140, .45);
  --hz-orb: #F6A15E; --hz-orb-glow: rgba(246, 161, 94, .38);
  --hz-water-top: #7FCBD4; --hz-water-low: #2E9AAE; --hz-wave: rgba(255, 255, 255, .7);
  --hz-isle: #3E6B5A; --hz-sand: #F3E1C2; --hz-cloud: #FFF6EA; --hz-veil: #8E9EA6; --hz-rain: rgba(225, 238, 245, .7);
  --hz-note: #45392F;
}
.horizon[data-phase="dawn"] {
  --hz-sky-top: #4E5C86; --hz-sky-low: #F5B88E; --hz-band: rgba(255, 170, 130, .55);
  --hz-orb: #FFB37A; --hz-orb-glow: rgba(255, 179, 122, .4);
  --hz-water-top: #7FA9BC; --hz-water-low: #2F6884; --hz-wave: rgba(255, 236, 222, .6);
  --hz-isle: #2F4B47; --hz-sand: #E7CDB0; --hz-cloud: #F7D3C0; --hz-note: #FFF4EA;
}
.horizon[data-phase="day"] {
  --hz-sky-top: #6DBFE0; --hz-sky-low: #DCF2F7; --hz-band: rgba(255, 255, 255, .35);
  --hz-orb: #FFE9A8; --hz-orb-glow: rgba(255, 238, 170, .55);
  --hz-water-top: #4CC6D2; --hz-water-low: #1689A6; --hz-wave: rgba(255, 255, 255, .75);
  --hz-isle: #3B6E57; --hz-sand: #F6E6C8; --hz-cloud: #FFFFFF;
}
.horizon[data-phase="sunset"] {
  --hz-sky-top: #7A5C8E; --hz-sky-low: #F49A6B; --hz-band: rgba(255, 140, 90, .6);
  --hz-orb: #F2704A; --hz-orb-glow: rgba(242, 112, 74, .45);
  --hz-water-top: #D99A86; --hz-water-low: #3A6C88; --hz-wave: rgba(255, 220, 200, .6);
  --hz-isle: #3A3340; --hz-sand: #D9A88C; --hz-cloud: #F6B49A; --hz-note: #FFF4EA;
}
.horizon[data-phase="dusk"] {
  --hz-sky-top: #1B2647; --hz-sky-low: #7B5E86; --hz-band: rgba(190, 120, 140, .35);
  --hz-orb: #F4E6CF; --hz-orb-glow: rgba(244, 230, 207, .18);
  --hz-water-top: #34506A; --hz-water-low: #0F2536; --hz-wave: rgba(230, 210, 230, .4);
  --hz-isle: #141C2B; --hz-sand: #4A4A5C; --hz-cloud: #6B5C78; --hz-veil: #2A3240; --hz-note: #F4E6CF;
}
.horizon[data-phase="night"] {
  --hz-sky-top: #06141D; --hz-sky-low: #163A4C; --hz-band: rgba(60, 110, 140, .25);
  --hz-orb: #F4E6CF; --hz-orb-glow: rgba(244, 230, 207, .2);
  --hz-water-top: #12384A; --hz-water-low: #061923; --hz-wave: rgba(244, 230, 207, .35);
  --hz-isle: #0A1A22; --hz-sand: #2C4048; --hz-cloud: #2C4656; --hz-veil: #0B1F2B; --hz-rain: rgba(200, 220, 235, .45);
  --hz-note: #F4E6CF;
}
/* Bad weather greys the daylight sky and sea (night and dusk are already dark) */
.horizon:not([data-phase="night"], [data-phase="dusk"])[data-sky="overcast"] {
  --hz-sky-top: #9DB0B9; --hz-sky-low: #DCE4E7; --hz-band: rgba(255, 255, 255, .2); --hz-cloud: #E9EEF0;
  --hz-water-top: #6FADB7; --hz-water-low: #2C7085; --hz-note: #45392F;
}
.horizon:not([data-phase="night"], [data-phase="dusk"])[data-sky="rain"] {
  --hz-sky-top: #7A8F99; --hz-sky-low: #BFCBD0; --hz-band: rgba(255, 255, 255, .12); --hz-cloud: #A9B6BC;
  --hz-water-top: #5D96A1; --hz-water-low: #22566A; --hz-sand: #D9CDB6; --hz-note: #FFFFFF;
}
.horizon:not([data-phase="night"], [data-phase="dusk"])[data-sky="storm"] {
  --hz-sky-top: #47545E; --hz-sky-low: #85939B; --hz-band: rgba(0, 0, 0, 0); --hz-cloud: #6B7880;
  --hz-water-top: #3F6C77; --hz-water-low: #133944; --hz-isle: #2E4A40; --hz-sand: #B9AE9A; --hz-note: #FFFFFF;
}
.horizon:is([data-phase="night"], [data-phase="dusk"]):is([data-sky="rain"], [data-sky="storm"]) { --hz-cloud: #22323C; }

/* Sun by day, real moon phase at night, both fading as the phase changes */
.hz-sun, .hz-moon, .hz-stars, .hz-shine, .hz-cloud, .hz-veil, .hz-rain, .hz-caps, .hz-band { transition: opacity 1.2s ease; }
.hz-moon, .hz-stars { opacity: 0; }
.horizon[data-phase="night"] .hz-moon, .horizon[data-phase="dusk"] .hz-moon { opacity: 1; }
.horizon[data-phase="night"] .hz-sun, .horizon[data-phase="dusk"] .hz-sun { opacity: 0; }
.horizon[data-phase="night"] .hz-stars { opacity: 1; }
.horizon[data-phase="dusk"] .hz-stars { opacity: .5; }
.hz-shine { opacity: .5; }
.horizon[data-phase="night"] .hz-shine { opacity: .25; }
/* Weather: clouds build up, an overcast veil dims everything, rain falls, storms flash */
.hz-cloud { opacity: 0; }
.horizon[data-sky="few"] :is(.c1, .c2),
.horizon[data-sky="scattered"] :is(.c1, .c2, .c3, .c4),
.horizon:is([data-sky="broken"], [data-sky="overcast"], [data-sky="rain"], [data-sky="storm"]) .hz-cloud { opacity: .92; }
.hz-veil, .hz-rain, .hz-flash, .hz-caps { opacity: 0; }
.horizon:is([data-phase="night"], [data-phase="dusk"]):is([data-sky="overcast"], [data-sky="rain"]) .hz-veil { opacity: .3; }
.horizon:is([data-phase="night"], [data-phase="dusk"])[data-sky="storm"] .hz-veil { opacity: .45; }
.horizon[data-sky="overcast"] :is(.hz-sun, .hz-shine) { opacity: .4; }
.horizon[data-sky="rain"] :is(.hz-sun, .hz-shine) { opacity: .2; }
.horizon[data-sky="storm"] :is(.hz-sun, .hz-shine) { opacity: .06; }
.horizon:is([data-phase="night"], [data-phase="dusk"])[data-sky="overcast"] .hz-moon { opacity: .45; }
.horizon:is([data-phase="night"], [data-phase="dusk"])[data-sky="rain"] .hz-moon { opacity: .2; }
.horizon:is([data-phase="night"], [data-phase="dusk"])[data-sky="storm"] .hz-moon { opacity: .06; }
.horizon:is([data-sky="overcast"], [data-sky="rain"], [data-sky="storm"]) .hz-stars { opacity: 0; }
.horizon:is([data-sky="rain"], [data-sky="storm"]) .hz-rain { opacity: 1; }
/* Sea state (WMO): wave height scales the swells; whitecaps from moderate up */
.hz-swell { transform-box: fill-box; transform-origin: center; transition: transform 1.2s ease; }
.horizon[data-sea="calm"] .hz-swell { transform: scaleY(.45); }
.horizon[data-sea="moderate"] .hz-swell { transform: scaleY(1.9); }
.horizon[data-sea="rough"] .hz-swell { transform: scaleY(3); }
.horizon[data-sea="moderate"] .hz-caps { opacity: .55; }
.horizon[data-sea="rough"] .hz-caps { opacity: .9; }
/* Preview-only tester under the postcard (not in the live build) */
.scene-tester { display: grid; gap: 8px; justify-items: center; padding: 14px; border: 1px dashed var(--blush); }
.scene-tester .seg { justify-content: center; }
/* "Live · Sunset · slight sea" badge */
.hz-live {
  position: absolute;
  right: 12px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background: rgba(10, 30, 40, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hz-live i { width: 7px; height: 7px; border-radius: 50%; background: #FF6B5A; box-shadow: 0 0 0 0 rgba(255, 107, 90, .6); }
.hz-live span:first-of-type { font-weight: 500; text-transform: uppercase; }
.hz-live-text:empty { display: none; }
.hz-note {
  position: absolute;
  left: 9%;
  top: 22%;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--hand);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1;
  color: var(--hz-note);
  transform: rotate(-4deg);
  transition: color 1.2s ease;
}
.hz-note svg { width: clamp(36px, 6vw, 60px); height: auto; margin-top: 10px; }

/* Wavy underline under section titles: it flows like a ripple and draws in when scrolled into view */
.section-head h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 8px;
  margin-top: 8px;
  background: var(--coral);
  opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .mark { animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; }
  .hero .wordmark, .hero .copy, .hero .actions { animation: settle 1.1s ease-out both; }
  .hero .wordmark { animation-delay: .35s; }
  .hero .copy { animation-delay: .55s; }
  .hero .actions { animation-delay: .75s; }
  /* --sea-speed and --boat-rock come from the sea state; --wind from the wind speed (scene.js) */
  .hz-wave { animation: drift calc(14s * var(--sea-speed, 1)) linear infinite; }
  .hz-wave.w2 { animation-duration: calc(20s * var(--sea-speed, 1)); animation-direction: reverse; }
  .hz-wave.w3 { animation-duration: calc(26s * var(--sea-speed, 1)); }
  .hz-boat { animation: rock calc(5s * var(--sea-speed, 1)) ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .hz-clouds { animation: float calc(60s / var(--wind, 1)) ease-in-out infinite alternate; }
  .hz-palm { animation: sway calc(4s / var(--wind, 1)) ease-in-out infinite alternate; }
  .hz-palm:nth-child(even) { animation-delay: -1.3s; }
  .hz-rain path { animation: fall .7s linear infinite; }
  .hz-rain path:nth-child(3n) { animation-duration: .55s; animation-delay: -.2s; }
  .hz-rain path:nth-child(3n+1) { animation-delay: -.4s; }
  .horizon[data-sky="storm"] .hz-flash { animation: flash 9s linear infinite; }
  .hz-caps path { animation: cap calc(3s * var(--sea-speed, 1)) ease-in-out infinite; }
  .hz-caps path:nth-child(odd) { animation-delay: -1.5s; }
  .hz-live i { animation: live 2s ease-out infinite; }
  @keyframes rock { 0%, 100% { translate: 0 0; rotate: calc(-1.5deg * var(--boat-rock, 1)); } 50% { translate: 0 calc(4px * var(--boat-rock, 1)); rotate: calc(1.5deg * var(--boat-rock, 1)); } }
  @keyframes sway { from { rotate: calc(-1deg * var(--wind, 1)); } to { rotate: calc(1.6deg * var(--wind, 1)); } }
  @keyframes fall { from { translate: 0 -60px; } to { translate: -22px 60px; } }
  @keyframes flash { 0%, 91%, 93.5%, 96%, 100% { opacity: 0; } 92%, 95% { opacity: .55; } }
  @keyframes cap { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
  @keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 90, .6); } 100% { box-shadow: 0 0 0 7px rgba(255, 107, 90, 0); } }
  .section-head h2::after { animation: ripple 2.4s linear infinite; transition: width 1.1s cubic-bezier(.2,.7,.2,1) .15s; }
  .reveal .section-head h2::after { width: 0; }
  .reveal .section-head.seen h2::after { width: 72px; }
  @keyframes ripple { to { -webkit-mask-position: 24px 0; mask-position: 24px 0; } }
  .hz-stars { animation: twinkle 4s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translateX(-1170px); } }
  @keyframes float { to { translate: 120px 0; } }
  @keyframes twinkle { from { filter: opacity(.6); } to { filter: opacity(1); } }
  @keyframes rise { from { transform: translateY(18px); opacity: .25; } to { transform: none; opacity: 1; } }
  @keyframes settle { from { transform: translateY(8px); opacity: .4; } to { transform: none; opacity: 1; } }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .map-shell { grid-template-columns: minmax(0, 1fr); }
  .map-card { border-left: 0; border-top: 1px solid var(--blush); }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; order: 2; }
  .mood { order: 1; margin-left: auto; }
  .mood-label { display: none; }
  .site-header .wrap { flex-wrap: wrap; gap: 12px; }
  .nav { order: 3; margin-left: 0; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-block: 8px 4px; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding-block: 10px; border-bottom: 1px solid var(--rule); }
  .split, .form-row, .timetable, .columns, .place-list, .facts, .rooms, .amenities.house { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .facilities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .facilities li { padding: 12px; gap: 10px; font-size: 0.875rem; }
  .gallery .insta { grid-column: span 1; padding: 16px; }
  .gallery .insta .tiny { letter-spacing: 0.1em; }
  .gallery .insta .insta-handle { font-size: 0.9375rem; }
  .gallery .insta .muted { font-size: 0.8125rem; line-height: 1.4; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; height: auto; }
  .timetable > div + div, .columns > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .columns > * { padding-right: 0; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .postcard { padding: 6px; transform: none; }
  .horizon { aspect-ratio: 2 / 1; }
  .hz-note { left: 4%; top: 14%; }
  .almanac { grid-template-columns: minmax(0, 1fr); }
  .almanac > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .row { grid-template-columns: 3.75rem minmax(0, 1fr) 6.25rem; }
  .fl { grid-column: 2; grid-row: 2; }
  .status { grid-column: 3; grid-row: 1 / span 2; }
  .form { padding: 18px; }
  .map { aspect-ratio: 4 / 5; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .brand span { font-size: 1.0625rem; }
}
