﻿/* Palette and type borrowed from botanybaybeachhouse.co.uk so the kiosk feels like the website. */
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
}

:root {
  --sea-deep: #162c33;
  --sea: #2f4f5a;
  --cream: #faf7f2;
  --sand: #f3ede4;
  --sand-deep: #e5dace;
  --coral: #b8926e;
  --ink: #171d24;
  --rule: #d4c9b8;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --radius: 24px;
  --gutter: clamp(16px, 3vw, 48px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: clamp(15px, min(1.2vw + 10px, 2.4vh + 4px), 22px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }
a { color: inherit; text-decoration: none; }
p { line-height: 1.55; margin: 0 0 1em; }
.muted { color: #6b6f73; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.04em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 56px; padding: 0 1.4em;
  border-radius: 16px; border: 0; cursor: pointer;
  font: inherit; font-weight: 400; font-size: 1.05rem;
  background: var(--sand-deep); color: var(--ink);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--sea); color: var(--cream); }
.btn-home { background: var(--sea-deep); color: var(--cream); }

/* ---------- home ---------- */
body.home { background: var(--sea-deep); color: var(--cream); height: 100vh; overflow: hidden auto; }
.bg, .scrim { position: fixed; inset: 0; }
.bg { z-index: 0; background: var(--sea-deep); overflow: hidden; }
.bg-layer {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 2.5s ease;
  animation: kenburns 40s ease-in-out infinite alternate;
}
.bg-layer.is-active { opacity: 1; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.scrim {
  z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22,44,51,0.55) 0%, rgba(22,44,51,0.15) 35%, rgba(22,44,51,0.75) 100%);
}
.home-main {
  position: relative; z-index: 2;
  /* exactly one screen: hero and ribbon take what they need, the tiles share the rest */
  height: 100vh; padding: var(--gutter);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: var(--gutter);
  grid-template-columns: minmax(0, 1fr); /* never wider than the screen, however long a text in it gets */
}
.hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; min-width: 0; /* never wider than the screen */ }
.eyebrow { font-size: 0.95rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand-deep); margin: 0 0 0.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.greeting { font-size: clamp(2rem, min(4.6vw, 8vh), 4.6rem); font-weight: 400; text-shadow: 0 2px 24px rgba(0,0,0,0.35);  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--sand); margin: 0.3em 0 0; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
/* The left column gives way (a long song title gets "...") so the clock, checkout time and dim hint always show. */
.hero-text { flex: 1 1 0; min-width: 0; }
.hero-time { text-align: right; flex-shrink: 0; }
/* Today's weather beside the clock (the top panel of Today at the bay, compact); taps through to that page. */
.hero-weather {
  margin-left: auto; align-self: center;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px 14px 18px; border-radius: 22px;
  background: rgba(22,44,51,0.32); backdrop-filter: blur(10px);
  border: 1px solid rgba(250,247,242,0.2);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.hero-weather:active { transform: scale(0.97); }
.hero-weather .wicon { width: clamp(52px, 8vh, 84px); height: auto; color: var(--sand); flex-shrink: 0; }
.hw-text { display: flex; flex-direction: column; }
.hw-temp { font-family: var(--serif); font-size: clamp(2.2rem, 6vh, 3.6rem); line-height: 1; }
.hw-desc { font-size: 1.1rem; margin-top: 0.15em; }
.hw-sub { font-size: 0.85rem; color: var(--sand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22em; }
/* Smaller screens: icon, temperature and one word, so the greeting keeps its line and the tiles keep their height. */
@media (max-width: 1500px) {
  .hero-weather { gap: 10px; padding: 8px 16px 8px 12px; border-radius: 18px; }
  .hero-weather .wicon { width: 44px; }
  .hw-temp { font-size: 2rem; }
  .hw-desc { font-size: 0.85rem; }
  .hw-sub { display: none; }

}
/* Home: what the Sonos rooms are playing, under the greeting (js/now-playing.js). */
.now-playing {
  display: inline-flex; align-items: center; gap: 10px; max-width: min(100%, 720px); margin-top: 0.5em;
  padding: 5px 18px 5px 5px; border-radius: 999px; color: var(--cream); text-decoration: none;
  background: rgba(22,44,51,0.38); backdrop-filter: blur(10px); border: 1px solid rgba(250,247,242,0.22);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.now-playing[hidden] { display: none; }
.now-playing:active { transform: scale(0.97); }
.attract-np { display: flex; width: fit-content; max-width: min(100%, 720px); margin: 10px 0 4px; font-size: 1.1rem; }
.attract-caption > div:first-child { min-width: 0; }
.np-art { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.np-note { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 1.4rem; flex-shrink: 0; }
.np-art:not([hidden]) + .np-note { display: none; }
.np-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.np-where { font-size: 0.78rem; color: var(--sand); letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-what { font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.time { font-family: var(--serif); font-size: clamp(2.4rem, min(7vw, 10vh), 5.5rem); line-height: 1; font-weight: 300; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.date { font-size: 1.05rem; color: var(--sand); margin-top: 0.3em; }
.checkout-pill {
  display: inline-block; margin-top: 0.8em; padding: 0.45em 1em;
  border-radius: 999px; background: rgba(250,247,242,0.14); backdrop-filter: blur(10px);
  border: 1px solid rgba(250,247,242,0.25); font-size: 0.95rem;
}
.tiles {
  display: grid; gap: clamp(10px, 1.6vw, 22px);
  /* 9 tiles: 5 + 4 on a landscape panel, 3 x 3 on portrait or near-square; rows stretch to fill */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
}
@media (max-aspect-ratio: 4/3) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.2em;
  min-height: 0; overflow: hidden; padding: clamp(10px, min(1.5vw, 2vh), 26px);
  border-radius: var(--radius);
  background: rgba(22,44,51,0.5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(250,247,242,0.2);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  transition: transform 0.12s ease, background 0.2s ease;
}
.tile:active { transform: scale(0.97); background: rgba(184,146,110,0.6); }
.tile svg { flex-shrink: 0; width: clamp(24px, 4.5vh, 40px); height: clamp(24px, 4.5vh, 40px); stroke: var(--coral); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }
.tile-title { font-family: var(--serif); font-size: clamp(0.9rem, min(1.75vw, 3.4vh), 1.9rem); font-weight: 500; line-height: 1.1; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { font-size: 0.92rem; color: var(--sand); line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* Home tiles: one line of subtitle, so every title sits at the same height (a longer one ends in "…"). */
.tiles .tile-sub { -webkit-line-clamp: 1; display: block; white-space: nowrap; text-overflow: ellipsis; flex-shrink: 0; }
/* small or scaled-up screens: drop the icon before the words get squeezed */
.tile { container-type: size; }
@container (max-height: 150px) { .tile svg { display: none; } }

/* ---------- attract mode (slideshow) ---------- */
.attract { position: fixed; inset: 0; z-index: 50; background: #000; }
.attract[hidden] { display: none; }
.attract-layer {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 2s ease; animation: kenburns 30s ease-in-out infinite alternate;
}
.attract-layer.is-active { opacity: 1; }
.attract-caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  color: var(--cream); text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  /* name, booking card and clock sit above a band of their own for the two hint lines */
  padding-bottom: 4.6rem;
}
.attract-name { font-family: var(--serif); font-size: clamp(2rem, 5vw, 4rem); }
.attract-time { font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; }
.attract-hint { text-shadow: 0 1px 4px rgba(0,0,0,0.85), 0 0 14px rgba(0,0,0,0.5); position: absolute; left: 0; right: 0; bottom: -0.4em; text-align: center; font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; animation: pulse 3s ease-in-out infinite; }
.attract-hint small { text-shadow: 0 1px 4px rgba(0,0,0,0.85), 0 0 14px rgba(0,0,0,0.5); display: block; max-width: min(80vw, 780px); margin: 0.7em auto 0; font-size: 0.8rem; letter-spacing: 0.02em; text-transform: none; opacity: 0.75; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- inner pages ---------- */
body.page { display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 14px var(--gutter);
  background: var(--sea-deep); color: var(--cream);
}
.topbar h1 { font-size: 1.9rem; font-weight: 400; flex: 1; }
.topbar .clock { font-family: var(--serif); font-size: 1.6rem; }
.content {
  width: min(100%, 960px); margin: 0 auto; padding: var(--gutter);
  font-size: 1.1rem;
}
.content.wide { width: min(100%, 1280px); }
.content h2 { font-size: 1.9rem; margin: 1.2em 0 0.4em; color: var(--sea-deep); }
.content h2:first-child { margin-top: 0; }
.content ul { padding-left: 1.2em; line-height: 1.6; }
.content li { margin-bottom: 0.4em; }
.callout {
  display: flex; align-items: baseline; gap: 0.6em;
  padding: 18px 24px; margin-bottom: 1.4em;
  background: var(--sand); border-left: 6px solid var(--coral); border-radius: 12px;
}
.callout strong { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; }
.split { display: grid; grid-template-columns: 1fr auto; gap: var(--gutter); align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5em 1.2em; margin: 0 0 1.4em; align-items: center; }
.facts dt { color: #6b6f73; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; }
.facts dd { margin: 0; font-size: 1.6rem; }
.qr { margin: 0; text-align: center; padding: 20px; background: #fff; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(22,44,51,0.12); }
.qr img { display: block; width: min(320px, 70vw); height: auto; image-rendering: pixelated; }
.qr figcaption { margin-top: 10px; color: #6b6f73; font-size: 0.95rem; }

.search { display: flex; gap: 12px; margin-bottom: 1em; }
.search input { flex: 1; min-height: 64px; font: inherit; font-size: 1.3rem; padding: 0 20px; border-radius: 16px; border: 2px solid var(--rule); background: #fff; }
.search button { min-height: 64px; padding: 0 28px; border: 0; border-radius: 16px; background: var(--sea); color: var(--cream); font: inherit; font-size: 1.1rem; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-bottom: 1em; }
.card {
  display: flex; flex-direction: column; gap: 0.25em;
  padding: 22px; min-height: 130px;
  background: #fff; border-radius: 20px; border: 1px solid var(--rule);
  box-shadow: 0 6px 24px rgba(22,44,51,0.06);
}
.card:active { transform: scale(0.98); background: var(--sand); }
.card-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--sea-deep); }
.card-note { color: #4a5157; line-height: 1.4; }
.card-host { margin-top: auto; font-size: 0.85rem; color: var(--coral); letter-spacing: 0.04em; }

/* ---------- guidebook: chips, articles, places ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1.2em; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--rule); font-size: 1rem; white-space: nowrap;
}
.chip.is-active { background: var(--sea-deep); color: var(--cream); border-color: var(--sea-deep); }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chip-count { opacity: 0.6; font-size: 0.85em; }
.card-img { display: block; width: calc(100% + 44px); margin: -22px -22px 12px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px 20px 0 0; }
.card-article .card-title { font-size: 1.35rem; }
.card-place .card-host { color: #6b6f73; letter-spacing: 0; }
.article-hero { display: block; width: 100%; max-height: 45vh; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.2em; }
.article img, .place img:not(.article-hero) { max-width: 100%; height: auto; border-radius: 16px; }
.lead { font-size: 1.3rem; color: var(--sea-deep); font-family: var(--serif); }
.welcome { background: var(--sand); border-radius: 16px; padding: 14px 20px; margin-bottom: 1.4em; }
.welcome summary { cursor: pointer; font-family: var(--serif); font-size: 1.4rem; color: var(--sea-deep); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 44px; border-bottom: 1px solid var(--rule); font-size: 1.15rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border: 2px solid var(--coral); border-radius: 8px; }
.actions-row { display: flex; gap: 12px; flex-wrap: wrap; }
.actions-row .btn small { opacity: 0.7; font-size: 0.75em; margin-left: 0.3em; }

/* ---------- ships map ---------- */
.ships-map { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--sand); margin-bottom: 1em; }
.ships-map iframe { display: block; border: 0; width: 100% !important; }
.ships-offline { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px; color: var(--sea-deep); font-size: 1.2rem; background: var(--sand); }
.ships-offline[hidden] { display: none; }

/* ---------- book-direct ribbon ---------- */
.ribbon {
  /* QR | text | buttons. The /book link is display: contents, so its parts sit on this grid; "Free dates" (when
     shown) goes under "See details" in the same column, so the ribbon keeps its size. */
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 1fr 1fr;
  align-items: center; column-gap: 18px; row-gap: 6px;
  padding: 10px 18px 10px 10px; border-radius: 18px;
  background: rgba(250,247,242,0.92); color: var(--ink);
  border: 1px solid rgba(184,146,110,0.6); box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.ribbon:active { transform: scale(0.99); }
.ribbon-link { display: contents; }
.ribbon-link > * { position: relative; z-index: 1; } /* above the sheen */
.ribbon-qr { grid-column: 1; grid-row: 1 / 3; width: clamp(90px, 13vh, 140px); height: auto; border-radius: 10px; background: #fff; image-rendering: pixelated; }
.ribbon-text { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ribbon-text strong { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vh, 1.7rem); font-weight: 500; color: var(--sea-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ribbon-text span { font-size: 0.95rem; color: #4a5157; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ribbon-text .ribbon-extra { font-size: 0.85rem; color: var(--sea); letter-spacing: 0.02em; }
.ribbon-cta { grid-column: 3; grid-row: 1 / 3; justify-self: stretch; text-align: center; padding: 0.55em 1.1em; border-radius: 999px; background: var(--coral); color: var(--cream); font-size: 0.95rem; font-weight: 400; }
.ribbon.has-dates .ribbon-cta { grid-row: 1; align-self: end; }
.ribbon-dates {
  grid-column: 3; grid-row: 2; align-self: start; justify-self: stretch; text-align: center;
  padding: 0.4em 1em; border-radius: 999px; border: 1.5px solid var(--coral); background: #fff;
  color: var(--sea-deep); font-size: 0.85rem; white-space: nowrap;
}
.ribbon-dates:active { transform: scale(0.96); }
@media (max-width: 640px) { .ribbon-cta { display: none; } .ribbon-dates { grid-row: 1 / 3; align-self: center; } }

.attract-book { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(250,247,242,0.9); color: var(--ink); text-shadow: none; max-width: 520px; }
.attract-book img { width: 72px; height: 72px; border-radius: 8px; background: #fff; image-rendering: pixelated; }
.attract-book span { font-size: 1rem; line-height: 1.35; }
.attract-book strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--sea-deep); }
.attract-book .attract-extra { font-size: 0.85rem; color: var(--sea); }
.attract-book:has(.attract-dates) { max-width: 680px; } /* room for the button without squeezing the text */
.attract-dates { flex-shrink: 0; align-self: center; margin-left: auto; padding: 0.4em 0.9em; border-radius: 999px; border: 1.5px solid var(--coral); background: #fff; color: var(--sea-deep); font-size: 0.9rem; white-space: nowrap; }

.book .facts dd.code { font-size: 2.2rem; letter-spacing: 0.12em; color: var(--sea-deep); }

/* ---------- Free dates (/dates): month calendar + pick panel, one screen, no scrolling ---------- */
.dates-page { height: 100vh; overflow: hidden; }
.dates {
  flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 26vw, 360px);
  gap: clamp(12px, 2vw, 28px); padding: clamp(10px, 2vh, 24px) var(--gutter);

}
.dates-cal { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.dates-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(6px, 1.2vh, 12px); flex-wrap: wrap; }
.dates-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sand-deep); }
.dates-tab { border: 0; border-radius: 999px; padding: 0.35em 0.95em; font: inherit; font-size: 1rem; font-weight: 600; background: transparent; color: var(--sea-deep); cursor: pointer; }
.dates-tab.on { background: var(--sea-deep); color: var(--cream); }
.dates-title { font-size: 1.15rem; font-weight: 700; color: var(--sea-deep); padding: 0.3em 0; }
.dates-nav { display: inline-flex; align-items: center; gap: 10px; }
.dates-nav strong { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 3vh, 1.8rem); min-width: 9em; text-align: center; color: var(--sea-deep); }
.dates-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: #fff; font-size: 1.6rem; line-height: 1; color: var(--sea-deep); cursor: pointer; }
.dates-arrow:disabled { opacity: 0.3; cursor: default; }
.dates-grid {
  flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: auto; grid-auto-rows: minmax(0, 1fr); gap: 3px;
}
.dates-wd { text-align: center; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6f73; padding-bottom: 2px; }
.dates-day {
  position: relative; overflow: hidden; min-height: 0; border: 0; border-radius: 8px; padding: 2px 4px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0;
  background: #f1eee9; color: var(--ink); font: inherit; cursor: pointer; line-height: 1.1;
}
.dates-day .num { position: absolute; top: 3px; left: 0; right: 0; text-align: center; font-size: clamp(0.8rem, 1.9vh, 1.05rem); color: #6b6f73; }
.dates-day .price { font-size: clamp(0.7rem, 1.6vh, 0.95rem); color: var(--sea-deep); font-weight: 500; position: relative; z-index: 1; }
.dates-day .min { font-size: clamp(0.62rem, 1.4vh, 0.8rem); color: #6b6f73; position: relative; z-index: 1; }
.dates-day.other { background: transparent; cursor: default; }
.dates-day.past { opacity: 0.35; cursor: default; }
.dates-day.free { background: #fff; box-shadow: inset 0 0 0 1px var(--rule); }
.dates-day.gap { background: repeating-linear-gradient(135deg, #cfe3dc 0 6px, #e7f1ed 6px 12px); }
.dates-day.nopick { cursor: default; }
/* booked: a bar across the middle, from the arrival afternoon to the departure morning */
.dates-day .bar { position: absolute; top: 34%; height: 20%; background: var(--sea); }
.dates-day .bar.full { left: -3px; right: -3px; }
.dates-day .bar.in { left: 55%; right: -3px; border-radius: 8px 0 0 8px; }
.dates-day .bar.out { left: -3px; right: 55%; border-radius: 0 8px 8px 0; }
.dates-day.booked .num { color: #9aa0a4; }
.dates-day.sel { background: var(--coral); box-shadow: none; }
.dates-day.sel .num, .dates-day.sel .price, .dates-day.sel .min { color: #fff; }
.dates-day.sel-end { box-shadow: inset 0 0 0 3px var(--coral); }
.dates-side { display: flex; flex-direction: column; gap: clamp(8px, 1.6vh, 16px); min-height: 0; overflow: hidden; }
.dates-pick { background: var(--sand); border-radius: 16px; padding: clamp(10px, 2vh, 18px); display: flex; flex-direction: column; gap: 6px; }
.dates-pick h2 { font-size: clamp(1.2rem, 2.8vh, 1.6rem); color: var(--sea-deep); margin: 0; }
.dates-pick p { margin: 0; font-size: 0.95rem; line-height: 1.35; }
.dates-qrs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-top: 4px; justify-items: center; }
.dates-qr { margin: 0; text-align: center; }
.dates-qr { min-width: 0; }
.dates-qr img { display: block; width: 100%; max-width: clamp(110px, 24vh, 190px); height: auto; aspect-ratio: 1; background: #fff; border-radius: 8px; padding: 5px; image-rendering: pixelated; }
.dates-qr figcaption { font-size: 0.85rem; color: var(--sea-deep); }
.dates-clear { align-self: flex-start; margin-top: 4px; }
.dates-clear[hidden] { display: none; }
.dates-side.picked .dates-legend { display: none; }
.dates-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: #4a5157; }
.dates-legend .lg { display: inline-block; width: 18px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.lg.free { background: #fff; box-shadow: inset 0 0 0 1px var(--rule); }
.lg.booked { background: var(--sea); }
.lg.gap { background: repeating-linear-gradient(135deg, #cfe3dc 0 4px, #e7f1ed 4px 8px); }
.dates-small { font-size: 0.8rem; color: #6b6f73; margin: 0; line-height: 1.35; }
.dates-deal { position: relative; margin: 10px 4px 6px; padding: 9px 13px; border-radius: 16px; background: linear-gradient(135deg, #fff8e2, #fbefc9); font-weight: 600; color: #5a4512; font-size: 0.85rem; line-height: 1.35; }
.dates-deal[hidden], .dates-side.picked .dates-deal { display: none; }
.dates-side .dates-deal::before { border-radius: 20px; } /* the ribbon's gold glint and sparkles, smaller */
.dates-side .dates-deal > .sparkle { width: 18px; height: 18px; }
@media (max-aspect-ratio: 4/3) { .dates-page { height: auto; overflow: visible; } .dates { grid-template-columns: 1fr; } }

/* ---------- videos ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 1em; box-shadow: 0 10px 40px rgba(22,44,51,0.15); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-qr { display: flex; align-items: center; gap: 20px; margin: -0.2em 0 1.4em; padding: 14px 20px; border-radius: 18px; background: var(--sand); }
.video-qr img { width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: 12px; image-rendering: pixelated; flex-shrink: 0; }
.video-qr strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--sea-deep); }
.video-qr span { color: #4a5157; font-size: 1rem; }
.card-video .thumb-wrap { position: relative; display: block; }
.card-video .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(22,44,51,0.75); }
.card-video .play::after { content: ""; position: absolute; left: 25px; top: 18px; border-left: 20px solid var(--cream); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.article h3 { font-size: 1.45rem; margin: 1.1em 0 0.3em; color: var(--sea-deep); }

/* ---------- night mode (idle screen) ---------- */
.attract.night { background: #05080a; }
.attract.night .attract-layer { display: none; }
.attract.night .attract-caption { opacity: 0.45; }
.attract.night .attract-book { display: none; }
.attract.night .attract-np { background: transparent; border-color: rgba(250,247,242,0.15); backdrop-filter: none; }
.attract.night .attract-name { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.attract.night .attract-time { font-size: clamp(4rem, 12vw, 9rem); }
.attract.night .attract-hint { opacity: 0.5; animation: none; }

/* Idle long enough: pure black, nothing drawn. Replaces Windows' display-off (see BlankAfterSeconds). */
.attract.blank { background: #000; cursor: none; }
.attract.blank > * { display: none; }

/* ---------- today at the bay ---------- */
.today .now { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 24px 28px; background: #fff; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(22,44,51,0.08); margin-bottom: 1.6em; }
.now-main { display: flex; align-items: center; gap: 20px; }
.now-main .wicon { width: clamp(80px, 12vh, 120px); height: auto; color: var(--coral); }
.now-temp { font-family: var(--serif); font-size: clamp(3rem, 8vh, 5rem); line-height: 1; color: var(--sea-deep); }
.now-desc { font-size: 1.3rem; color: var(--sea-deep); }
.now-sub { color: #6b6f73; }
.now-facts { display: grid; grid-template-columns: auto auto; gap: 6px 16px; margin: 0; align-items: baseline; }
.now-facts dt { color: #6b6f73; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.now-facts dd { margin: 0; font-family: var(--serif); font-size: 1.6rem; color: var(--sea-deep); }
.hours { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 1em; scrollbar-width: none; }
.hour { flex: 0 0 auto; min-width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; background: #fff; border: 1px solid var(--rule); border-radius: 16px; }
.hour .wicon { width: 36px; height: 36px; color: var(--sea); }
.hour-time { font-size: 0.9rem; color: #6b6f73; }
.hour-temp { font-family: var(--serif); font-size: 1.4rem; color: var(--sea-deep); }
.hour-rain { font-size: 0.8rem; color: #3b82a0; min-height: 1em; }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 1em; }
.day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--rule); border-radius: 16px; text-align: center; }
.day .wicon { width: 48px; height: 48px; color: var(--sea); }
.day-name { font-family: var(--serif); font-size: 1.3rem; color: var(--sea-deep); }
.day-desc { color: #4a5157; }
.day-temps { font-size: 1.2rem; }
.day-sub { font-size: 0.85rem; color: #6b6f73; }
.tides { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1em; }
.tide { display: flex; flex-direction: column; align-items: center; min-width: 120px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--rule); }
.tide.high { border-color: var(--sea); }
.tide-kind { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #6b6f73; }
.tide-time { font-family: var(--serif); font-size: 1.4rem; color: var(--sea-deep); }
.tide-height { font-size: 0.9rem; color: #4a5157; }

/* ---------- beaches & tides ---------- */
/* Section switch: two large equal buttons in one rounded track, not the small category pills. */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 1.4em; background: var(--sand); border: 1px solid var(--rule); border-radius: 18px; }
.tabs .chip { min-height: 56px; padding: 0 28px; border: 0; border-radius: 14px; background: transparent; font-family: var(--serif); font-size: 1.3rem; color: var(--sea-deep); }
.tabs .chip.is-active { background: var(--sea-deep); color: var(--cream); }
/* Wide cards so a day's four tides sit in one row. */
.cards.beaches { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.card-beach { gap: 0.3em; min-height: 0; }
.card-beach .card-note { margin-bottom: 0.3em; }
.tide-lines { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 0.4em 0 0.4em; }
.tide-lines dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: #6b6f73; margin-top: 6px; }
.tide-lines dd { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 6px; }
.tide-chip { display: flex; flex-direction: column; gap: 0; padding: 7px 9px; border-radius: 12px; background: var(--sand); border-left: 4px solid var(--rule); line-height: 1.2; }
.tide-chip small { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #6b6f73; }
.tide-chip b { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--sea-deep); }
.tide-chip em { font-style: normal; font-size: 0.85rem; color: #4a5157; }
.tide-chip.high { border-left-color: var(--sea); }
.tide-chip.low { border-left-color: var(--coral); }
.tide-chip.next { background: var(--sea-deep); }
.tide-chip.next small, .tide-chip.next b, .tide-chip.next em { color: var(--cream); }

/* ---------- photo credit (CC BY / BY-SA photos need one where shown; see media/credits.json) ---------- */
.photo-credit {
  position: fixed; right: 12px; bottom: 4px; z-index: 3; pointer-events: none;
  font-size: 11px; line-height: 1.4; color: rgba(250,247,242,0.65); text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.photo-credit:empty, .attract.night .photo-credit { display: none; }

/* ---------- book-direct attention: light sweep, breathing button, % badge (home); fresh entrance (slideshow) ---------- */
/* Calm on purpose: one sweep every 9 s, a slow 3 s breath, a badge hop every 12 s. Constant flashing reads as an ad. */
.ribbon { position: relative; }
.ribbon > :not(.ribbon-badge) { position: relative; z-index: 1; } /* text and button above the sheen */
/* The sheen moves inside a full-size overlay (background-position), so the ribbon needn't clip and the badge can overhang. */
.ribbon::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  /* white alone vanishes on the cream ribbon; a warm gold core reads as a sheen */
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.9) 47%, rgba(214,176,128,0.45) 51%, transparent 56%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0;
  animation: sweep 5s ease-in-out 1s infinite;
}
@keyframes sweep { 0% { background-position: 100% 0; } 25%, 100% { background-position: 0% 0; } }
.ribbon-cta { animation: breathe 3s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(184,146,110,0.55); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(184,146,110,0); }
}
.ribbon-badge {
  /* small and high on the corner, so it never covers the "See details" button below it */
  position: absolute; top: -34px; right: -10px; z-index: 2;
  width: clamp(52px, 6.4vh, 66px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  /* deeper than the coral button so the two read as separate things */
  background: #c0623f; color: #fff; border: 3px solid var(--cream);
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
  font-size: clamp(0.55rem, 1.05vh, 0.68rem); letter-spacing: 0.12em; font-weight: 400;
  transform: rotate(12deg);
  /* one bounce on load, then a small hop every 12 s */
  animation: badge-in 0.8s cubic-bezier(0.3, 1.6, 0.5, 1) 0.4s both, badge-hop 12s ease-in-out 4s infinite;
}
.ribbon-badge b { font-family: var(--serif); font-weight: 500; font-size: 2.3em; letter-spacing: 0; margin-bottom: 0.08em; }
@keyframes badge-in { from { transform: rotate(12deg) scale(0); } to { transform: rotate(12deg) scale(1); } }
@keyframes badge-hop {
  0%, 8%, 100% { transform: rotate(12deg) translateY(0); }
  3% { transform: rotate(4deg) translateY(-10px); }
  5.5% { transform: rotate(16deg) translateY(0); }
}
.attract-book.enter { animation: book-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes book-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* Gold frame: a gold border with two bright glints travelling round it (4 s a lap) and a soft pulsing glow, plus ten four-point
   sparkles twinkling in turn on the edges. Lively but soft: nothing flashes on and off hard. */
@property --glint { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ribbon::before, .attract-book::before, .dates-deal::before, .dates-total .row.deal::before {
  content: ""; position: absolute; inset: -4px; border-radius: 22px; padding: 4px; pointer-events: none;
  background: conic-gradient(from var(--glint),
    #a8782f 0deg, #e8bf55 30deg, #ffffff 55deg, #e8bf55 80deg, #a8782f 115deg, #f0c75e 150deg,
    #a8782f 185deg, #e8bf55 210deg, #ffffff 235deg, #e8bf55 260deg, #a8782f 295deg, #f0c75e 330deg, #a8782f 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 8px rgba(240,199,94,0.9));
  animation: glint 4s linear infinite, glow 2.4s ease-in-out infinite;
}
@keyframes glint { to { --glint: 360deg; } }
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(240,199,94,0.8)); }
  50% { filter: drop-shadow(0 0 14px rgba(255,220,120,1)) drop-shadow(0 0 4px #fff6d0); }
}
.ribbon > .sparkle, .attract-book > .sparkle, .dates-deal > .sparkle, .dates-total .row.deal > .sparkle {
  position: absolute; z-index: 2; width: 28px; height: 28px; pointer-events: none;
  background: radial-gradient(circle, #ffffff 0 18%, #fbe39a 40%, #e8bf55 70%);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  filter: drop-shadow(0 0 4px #fff3c4);
  opacity: 0; transform: scale(0.2);
  animation: twinkle 2.4s ease-in-out infinite;
}
.sparkle.s1 { top: -15px; left: 9%; animation-delay: 0s; }
.sparkle.s2 { top: -11px; left: 31%; width: 20px; height: 20px; animation-delay: 0.9s; }
.sparkle.s3 { top: -17px; left: 56%; width: 32px; height: 32px; animation-delay: 1.7s; }
.sparkle.s4 { top: -12px; left: 78%; width: 22px; height: 22px; animation-delay: 0.4s; }
.sparkle.s5 { bottom: -15px; left: 20%; animation-delay: 1.3s; }
.sparkle.s6 { bottom: -12px; left: 45%; width: 22px; height: 22px; animation-delay: 2.1s; }
.sparkle.s7 { bottom: -17px; right: 24%; width: 32px; height: 32px; animation-delay: 0.6s; }
.sparkle.s8 { bottom: -11px; right: 6%; width: 20px; height: 20px; animation-delay: 1.9s; }
.sparkle.s9 { top: 38%; left: -13px; width: 24px; height: 24px; animation-delay: 1.1s; }
.sparkle.s10 { top: 30%; right: -13px; width: 24px; height: 24px; animation-delay: 0.2s; }
@keyframes twinkle {
  0%, 40%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  62% { opacity: 1; transform: scale(1.1) rotate(45deg); }
  85% { opacity: 0; transform: scale(0.3) rotate(110deg); }
}
@media (prefers-reduced-motion: reduce) { .ribbon::after, .ribbon::before, .ribbon-cta, .ribbon-badge, .attract-book.enter, .attract-book::before, .dates-deal::before, .dates-total .row.deal::before { animation: none; } .ribbon > .sparkle, .attract-book > .sparkle, .dates-deal > .sparkle, .dates-total .row.deal > .sparkle { display: none; } }

/* small keyboard note under the book-direct ribbon; tucked up close to it rather than a full gutter away */
.home-note {
  margin: calc(var(--gutter) * -0.65) 0 calc(var(--gutter) * -0.5); text-align: center;
  font-size: 0.95rem; line-height: 1.4; color: var(--cream); text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* under the clock: how to call up the dim clock (3x D, or 3 taps on the clock itself) */
.dim-hint { margin-top: 0.7em; max-width: 17em; margin-left: auto; font-size: 0.8rem; color: var(--sand); opacity: 0.85; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }

/* ---------- Apps & Games ---------- */
/* Tabs reuse the Ships page .tabs strip; these are links with an icon instead of chips. */
.tabs .tab {
  display: inline-flex; align-items: center; gap: 0.55em;
  min-height: 60px; padding: 0 30px; border-radius: 14px;
  font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--sea-deep);
}
.tab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabs .tab.is-active { background: var(--sea-deep); color: var(--cream); }
.tab:active { transform: scale(0.97); }
.tab:focus-visible, .game-tile:focus-visible { outline: 4px solid var(--coral); outline-offset: 3px; }
.game-tiles { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-aspect-ratio: 4/3) { .game-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.game-tile {
  display: flex; flex-direction: column; gap: 0.35em;
  min-height: clamp(170px, 30vh, 280px); padding: 26px;
  border-radius: var(--radius); background: var(--sea); color: var(--cream);
  box-shadow: 0 10px 30px rgba(22,44,51,0.18);
}
.game-tile:active { transform: scale(0.97); background: var(--sea-deep); }
.game-tile svg { width: 56px; height: 56px; margin-bottom: auto; fill: none; stroke: var(--coral); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.game-tile .tile-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }

/* ---------- Music (Sonos) on the Apps tab ---------- */
.music { margin-bottom: 2.2em; }
.music-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 0.7em; }
.music-head h2 { margin: 0 !important; }
.music-note { margin: 0; color: var(--coral); font-size: 1rem; }
.rooms { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.room { display: flex; flex-direction: column; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--sea-deep); color: var(--cream); }
.room-top { display: flex; gap: 16px; align-items: center; min-height: 84px; }
.room-art { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: var(--sea); }
.room-art-blank { display: grid; place-items: center; }
.room-art-blank svg { width: 40px; height: 40px; fill: none; stroke: var(--coral); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.room-info { display: flex; flex-direction: column; min-width: 0; }
.room-name { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.room-title, .room-artist, .room-group { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-title { font-size: 1.05rem; }
.room-artist { font-size: 0.95rem; color: var(--sand); }
.room-group { font-size: 0.85rem; color: var(--coral); }
.muted-text { color: var(--sand); opacity: 0.8; }
.room-controls, .room-volume { display: flex; align-items: center; gap: 12px; }
.mbtn { display: grid; place-items: center; width: 64px; height: 64px; border: 0; border-radius: 50%; background: rgba(250,247,242,0.12); color: var(--cream); cursor: pointer; flex-shrink: 0; }
.mbtn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mbtn-main { width: 76px; height: 76px; background: var(--coral); color: #fff; }
.mbtn:active { transform: scale(0.94); }
.mbtn:focus-visible, .fav:focus-visible, .choice-row button:focus-visible { outline: 4px solid var(--coral); outline-offset: 3px; }
/* The bar is a slider too: drag (or tap) along it. The tall invisible padding makes it easy to hit with a finger. */
.vol-bar { flex: 1; padding: 18px 0; cursor: pointer; touch-action: none; }
.vol-track { height: 12px; border-radius: 6px; background: rgba(250,247,242,0.18); overflow: hidden; }
.vol-bar.is-dragging .vol-track { height: 16px; }
.vol-bar.is-dragging span { transition: none; }
.vol-track span { display: block; height: 100%; background: var(--coral); border-radius: 6px; transition: width 0.2s; }
.vol-num { min-width: 2.2em; text-align: right; font-family: var(--serif); font-size: 1.6rem; }
.room { cursor: pointer; border: 4px solid transparent; transition: border-color 0.15s, opacity 0.15s; }
.rooms:has(.is-selected) .room:not(.is-selected) { opacity: 0.82; }
.room.is-selected { border-color: var(--coral); box-shadow: 0 12px 30px rgba(22,44,51,0.25); }
.room-top { position: relative; }
.room-chosen { position: absolute; top: 0; right: 0; padding: 4px 12px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 0.85rem; letter-spacing: 0.04em; }
.room-controls .btn-group { margin-left: auto; }
.btn-group { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 18px; border: 2px solid rgba(250,247,242,0.35); border-radius: 999px; background: transparent; color: var(--cream); font: inherit; font-size: 1.05rem; cursor: pointer; }
.btn-group svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn-group[aria-expanded="true"] { background: var(--cream); color: var(--sea-deep); }
.mbtn-small { width: 52px; height: 52px; }
.vol-room { min-width: 5.5em; font-size: 1rem; color: var(--sand); }
.grp-sheet { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--cream); color: var(--sea-deep); cursor: default; }
.grp-help { margin: 0 0 4px; font-size: 1rem; }
.grp-room { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; font: inherit; font-size: 1.2rem; color: var(--sea-deep); text-align: left; cursor: pointer; }
.grp-room:disabled { opacity: 0.75; cursor: default; }
.grp-box { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--sea); border-radius: 8px; flex-shrink: 0; }
.grp-room[aria-pressed="true"] .grp-box { background: var(--sea-deep); border-color: var(--sea-deep); color: var(--cream); }
.grp-box svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.grp-note { font-size: 0.85rem; color: #6b6f73; margin-left: 6px; }
.grp-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.btn-pill { min-height: 56px; padding: 0 1.6em; border: 1px solid var(--rule); border-radius: 999px; background: #fff; font: inherit; font-size: 1.1rem; color: var(--sea-deep); cursor: pointer; }
.btn-pill-main { background: var(--sea-deep); border-color: var(--sea-deep); color: var(--cream); }
.fav-head { margin: 0; font-family: var(--serif); font-size: 1.6rem; color: var(--sea-deep); }
.fav-where { margin-left: 12px; font-family: inherit; font-size: 1.05rem; color: #6b6f73; }
.fav-where strong { color: var(--sea-deep); }
.music-target { display: flex; align-items: center; gap: 16px; margin: 1.4em 0 0.6em; font-size: 1.1rem; color: var(--sea-deep); flex-wrap: wrap; }
.choice-row { display: inline-flex; gap: 6px; padding: 6px; border-radius: 20px; background: var(--sand); border: 1px solid var(--rule); }
.choice-row button { min-height: 56px; padding: 0 1.3em; border: 0; border-radius: 14px; background: transparent; font: inherit; font-size: 1.1rem; color: var(--sea-deep); cursor: pointer; }
.choice-row button[aria-pressed="true"] { background: var(--sea-deep); color: var(--cream); }
.music-message { min-height: 1.5em; margin: 0.2em 0 0.6em; color: var(--sea-deep); font-family: var(--serif); font-size: 1.3rem; }
.music-error { margin: 0; padding: 18px 22px; border-radius: 16px; background: var(--sand); border-left: 6px solid var(--coral); }
.favourites { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.fav { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; text-align: left; font: inherit; cursor: pointer; }
.fav img, .fav-blank { width: 100%; aspect-ratio: 1; border-radius: 14px; object-fit: cover; }
.fav-blank { display: grid; place-items: center; color: var(--cream); font-family: var(--serif); font-size: 3.4rem; }
.fav-title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; color: var(--sea-deep); }
.fav-desc { font-size: 0.85rem; color: #6b6f73; }
.fav:active { transform: scale(0.97); background: var(--sand); }
/* Sonos favourites | Radio stations */
.favourites[hidden], .radio-panel[hidden] { display: none; }
.music-target .fav-where { margin-left: 0; }
.radio-panel { display: flex; flex-direction: column; gap: 14px; }
.radio-search { width: min(100%, 640px); min-height: 60px; padding: 0 22px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; font: inherit; font-size: 1.2rem; color: var(--sea-deep); }
.radio-search:focus { outline: 3px solid var(--coral); outline-offset: 2px; }
.radio-genres { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 52px; padding: 0 1.1em; border: 1px solid var(--rule); border-radius: 999px; background: #fff; font: inherit; font-size: 1.05rem; color: var(--sea-deep); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--sea-deep); border-color: var(--sea-deep); color: var(--cream); }
.radio-logo { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 14px; background: #fff; border: 1px solid var(--rule); overflow: hidden; }
.radio-logo img { width: 78%; height: 78%; object-fit: contain; aspect-ratio: auto; border-radius: 0; }
.radio-credit { margin: 4px 0 0; font-size: 0.9rem; color: #6b6f73; }
.own-music { margin: 2.4em 0 1em; }
.own-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: 0.6em; }
.own-card { padding: 18px 22px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; color: var(--sea-deep); }
.own-card h3 { margin: 0 0 0.5em; font-family: var(--serif); font-size: 1.5rem; }
.own-card h3 span { margin-left: 8px; font-family: inherit; font-size: 0.95rem; color: var(--coral); }
.own-card ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: 1.05rem; }
.own-card p { margin: 0 0 0.8em; font-size: 1.05rem; }
.own-card .own-note { margin: 0.8em 0 0; font-size: 0.9rem; color: #6b6f73; }
.own-bluetooth { max-width: 820px; margin-top: 0.6em; }
.own-bluetooth ol { margin-bottom: 1.1em; }
.web-head { margin-top: 0.4em !important; }
.web-group { font-size: 1.4rem; margin: 1em 0 0.5em; color: var(--sea-deep); }

/* ---------- Family Arcade (Games tab) ---------- */
/* Everything on one 1920x1080 screen: tabs and sign on one line, "Play together" beside "Two players", then the
   quick games and the puzzles in a row each. Smaller screens scroll. */
body.arcade-page { background: #d7eef2 url("../games/shared/arcade-bg.svg") center bottom / cover no-repeat fixed; }
.arcade { flex: 1; }
.arcade-inner { width: min(100%, 1600px); margin: 0 auto; padding: 14px var(--gutter) var(--gutter); }
.arcade-top { display: flex; align-items: center; gap: 24px; margin-bottom: 14px; }
.arcade-top .tabs { margin: 0; background: rgba(250,247,242,0.92); }
.arcade-sign { flex: 1; display: flex; align-items: center; justify-content: center; gap: 18px; }
.arcade-sign h2 {
  padding: 0.12em 0.8em 0.16em; border-radius: 20px; white-space: nowrap;
  font-size: clamp(2rem, 4.6vh, 3.2rem); color: #fff; background: #c0623f;
  box-shadow: 0 5px 0 #8f4429, 0 12px 26px rgba(22,44,51,0.25); letter-spacing: 0.02em;
}
.arcade-sign p { margin: 0; max-width: 16em; font-size: 1rem; color: var(--sea-deep); text-shadow: 0 1px 0 rgba(255,255,255,0.7); }
.arcade-empty { text-align: center; background: rgba(250,247,242,0.9); padding: 20px; border-radius: 16px; }
.arcade-rows { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.arcade-row { grid-column: 1 / -1; padding: 10px 14px 14px; border-radius: 24px; background: rgba(250,247,242,0.82); backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(22,44,51,0.12); }
.arcade-row.arcade-together { grid-column: span 3; }
.arcade-row.arcade-two, .arcade-row.arcade-create { grid-column: span 2; }
.arcade-row.arcade-quick { grid-column: span 3; }
.arcade-row-head { display: flex; align-items: baseline; gap: 12px; margin: 0 4px 8px; }
.arcade-row-head h3 { font-size: 1.5rem; color: var(--sea-deep); }
.arcade-row-head span { color: #6b6f73; font-size: 0.9rem; }
.arcade .game-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.arcade-puzzles .game-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.arcade .game-tile { min-height: clamp(120px, 15.5vh, 175px); padding: 14px 16px; position: relative; overflow: hidden; gap: 0.2em; }
.arcade .game-tile::after { content: ""; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.arcade .game-tile svg { width: 40px; height: 40px; stroke: #fff; opacity: 0.95; }
.arcade .game-tile .tile-title { font-size: clamp(1.25rem, 1.6vw, 1.65rem); line-height: 1.05; }
.arcade .game-tile .tile-sub { color: rgba(255,255,255,0.88); font-size: 0.85rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tile-best { margin-top: 0.2em; align-self: flex-start; padding: 0.1em 0.6em; border-radius: 999px; background: rgba(255,255,255,0.22); font-size: 0.8rem; }
.tile-champ { background: rgba(255,214,120,0.35); }
.arcade-together .game-tile { background: linear-gradient(135deg, #d9744f, #b8553a); }
.arcade-quick .game-tile { background: linear-gradient(135deg, #3f8fa3, #2c6878); }
.arcade-two .game-tile { background: linear-gradient(135deg, #6c5b8e, #4e4170); }
.arcade-puzzles .game-tile { background: linear-gradient(135deg, #4f7f5f, #3a634a); }
.arcade-create .game-tile { background: linear-gradient(135deg, #c98a2e, #a46a1c); }
@media (max-width: 1400px) {
  .arcade-sign { margin-right: 0; }
  .arcade-sign p { display: none; }
  .arcade-puzzles .game-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-aspect-ratio: 4/3) { .arcade-row.arcade-together, .arcade-row.arcade-two, .arcade-row.arcade-quick, .arcade-row.arcade-create { grid-column: 1 / -1; } }

/* Place name on each slideshow photo, top right: readable on any photo (dark glass, white text). */
.place-pill {
  position: absolute; top: var(--gutter); right: var(--gutter); z-index: 2;
  padding: 0.45em 1.1em 0.5em; border-radius: 999px;
  background: rgba(10,22,27,0.55); backdrop-filter: blur(8px); border: 1px solid rgba(250,247,242,0.25);
  color: var(--cream); font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.9rem); letter-spacing: 0.01em;
  opacity: 0; transform: translateY(-6px); transition: opacity 1.2s ease 0.8s, transform 1.2s ease 0.8s;
}
.place-pill.show { opacity: 1; transform: none; }
.place-pill:empty, .attract.night .place-pill { display: none; }
@media (prefers-reduced-motion: reduce) { .place-pill { transition: none; transform: none; } }

/* ---------- Report a problem ---------- */
.report-form { display: flex; flex-direction: column; gap: 12px; max-width: 1100px; }
.report-lead { font-size: 1.2rem; margin: 0 0 6px; }
.report-form h2 { margin: 14px 0 2px; font-size: 1.5rem; color: var(--sea-deep); }
.muted-inline { font-family: inherit; font-size: 1rem; color: #6b6f73; }
.report-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.report-choice { position: relative; cursor: pointer; }
.report-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.report-choice span { display: inline-flex; align-items: center; min-height: 64px; padding: 0 1.4em; border: 1px solid var(--rule); border-radius: 16px; background: #fff; font-size: 1.2rem; color: var(--sea-deep); }
.report-choice input:checked + span { background: var(--sea-deep); border-color: var(--sea-deep); color: var(--cream); }
.report-choice input:focus-visible + span { outline: 4px solid var(--coral); outline-offset: 2px; }
.report-form textarea { width: min(100%, 900px); padding: 14px 18px; border: 1px solid var(--rule); border-radius: 16px; font: inherit; font-size: 1.15rem; resize: vertical; }
.report-urgent { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin-top: 6px; }
.report-urgent input { width: 28px; height: 28px; accent-color: #c0623f; }
.report-actions { display: flex; gap: 12px; margin-top: 10px; }
.report-thanks { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 1.2rem; }
.report-thanks h2 { margin: 0; font-size: 2.2rem; color: var(--sea-deep); }
.report-urgent-note { padding: 14px 18px; border-left: 6px solid #c0623f; background: var(--sand); border-radius: 12px; }
/* Contact page: the way in */
.report-card { display: flex; flex-direction: column; gap: 4px; margin: 0 0 1.4em; padding: 18px 22px; border-radius: var(--radius); background: var(--sea-deep); color: var(--cream); text-decoration: none; max-width: 640px; }
.report-card strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.report-card span { color: var(--sand); }
.report-card:active { transform: scale(0.98); }
/* idle slideshow: a quiet line, not on the night clock */
.attract-report { margin-top: 8px; font-size: 1rem; opacity: 0.85; }
.attract.night .attract-report { display: none; }

/* Free dates: the picked stay's nightly rates added up, and booked direct (a guide; the website has the exact total) */
.dates-pick .dates-total { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--rule); }
.dates-pick .dates-total .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 0.85rem; line-height: 1.3; margin: 0; color: #2f3a40; }
.dates-pick .dates-total .row.deal { position: relative; align-items: center; font-size: 0.95rem; font-weight: 700; color: #5a4512; background: linear-gradient(135deg, #fff8e2, #fbefc9); margin: 6px 0 4px; padding: 6px 8px; border-radius: 10px; }
.dates-pick .dates-total .row.deal > span { white-space: nowrap; }
.dates-pick .dates-total .row.deal strong { font-size: 1.2rem; color: #8a5a00; text-shadow: 0 0 10px rgba(255,214,102,0.9); }
.dates-pick .dates-total .row.deal small { display: block; font-size: 0.75rem; font-weight: 600; color: #2e7d4f; }
.dates-pick .dates-total .row.deal::before { border-radius: 14px; }
.dates-pick .dates-total .row.deal > .sparkle { width: 16px; height: 16px; }
.dates-pick .dates-total .row.was strong { text-decoration: line-through; text-decoration-color: #c0623f; color: #8a8f93; font-weight: 500; }
.dates-side.picked [data-updated] { display: none; }
.dates-pick .dates-total .row strong { white-space: nowrap; }
.dates-pick .dates-total .dates-small { margin: 2px 0 0; font-size: 0.75rem; line-height: 1.3; }

/* ---------- book-direct in warm gold (as the Free dates "booked direct" box): gold fill, deep-gold text with a soft
   glow. One block on purpose: delete it to go back to the cream ribbon. ---------- */
.ribbon, .attract-book { background: linear-gradient(135deg, rgba(255,248,226,0.97), rgba(251,239,201,0.97)); border-color: rgba(227,199,112,0.9); }
.ribbon-text strong, .attract-book strong { color: #8a5a00; font-weight: 600; text-shadow: 0 0 12px rgba(255,214,102,0.75); }
.ribbon-text span, .attract-book span { color: #5a4512; }
.ribbon-text .ribbon-extra { color: #2e7d4f; font-weight: 600; }
.ribbon-cta { background: linear-gradient(135deg, #b8862b, #d9a944); color: #fff; font-weight: 600; }
.ribbon-dates { border-color: #d9a944; }
.ribbon-badge { background: radial-gradient(circle at 35% 30%, #ffe9a8, #d9a944 55%, #a8782f); color: #4a3510; }
/* the idle slideshow's book-direct card: the same glinting gold border and stars as the ribbon */
.attract-book { position: relative; }
.attract .attract-book::before { border-radius: 18px; }
.attract .attract-book > .sparkle { width: 22px; height: 22px; }
/* each line of the idle card on one line ("Book direct next time and save 10%" whole), the card as wide as that needs
   (up to the screen), and Free dates kept to the right of the text */
.attract .attract-book { max-width: min(860px, calc(100vw - 64px)); width: max-content; }
.attract .attract-book > span:not(.attract-dates) { white-space: nowrap; min-width: 0; }
.attract .attract-book strong { white-space: nowrap; }
.attract .attract-book .attract-dates { flex: none; margin-left: 8px; }
.attract-dates { border-color: #d9a944; }

/* ---------- phones (portrait, narrow) ----------
   The Android app on a phone: the home screen scrolls instead of squeezing into one screen. Greeting on its own
   line, weather and clock side by side under it, two columns of tiles with room for their icons, a compact ribbon. */
@media (max-width: 600px) {
  body.home { height: auto; min-height: 100vh; }
  .home-main { height: auto; min-height: 100vh; grid-template-rows: auto auto auto auto; gap: 18px; padding: 18px 16px 24px; }
  .hero { flex-wrap: wrap; align-items: center; gap: 14px; }
  .hero-text { flex: 1 0 100%; }
  .greeting { font-size: 2.6rem; }
  .tagline { font-size: 1.15rem; -webkit-line-clamp: 2; }
  .hero-weather { margin-left: 0; }
  .hero-time { margin-left: auto; }
  .time { font-size: 3rem; }
  .date { font-size: 0.95rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 156px; gap: 12px; }
  .tile { padding: 14px; }
  .tile svg { display: block; width: 30px; height: 30px; }
  .tile-title { font-size: 1.25rem; }
  .tile-sub { font-size: 0.85rem; }
  .ribbon { grid-template-columns: auto minmax(0, 1fr); padding: 10px; column-gap: 12px; }
  .ribbon-qr { width: 84px; }
  .ribbon-text strong { font-size: 1.1rem; white-space: normal; }
  .ribbon-text span { white-space: normal; font-size: 0.85rem; }
  .ribbon-dates { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  .home-note { font-size: 0.85rem; }
}

/* ---------- TV remote / keyboard highlight (js/tv-nav.js) ---------- */
html:not(.kbd-nav) :focus { outline: none; }
html.kbd-nav .tv-focus { outline: 4px solid #ffd27a; outline-offset: 4px; box-shadow: 0 0 0 8px rgba(255,210,122,0.25), 0 12px 40px rgba(0,0,0,0.35); }
html.kbd-nav .tile.tv-focus { transform: scale(1.04); transition: transform 0.15s ease; z-index: 1; }
@media (prefers-reduced-motion: reduce) { html.kbd-nav .tile.tv-focus { transform: none; } }
