/* Lazy Wave — stylesheet
 *
 * Written by hand rather than generated from a utility framework: the design
 * leans on gradients, wave dividers, grain, blur-up and a FLIP transition,
 * none of which utility classes express well, and this way the project needs
 * no Node toolchain at all.
 *
 * Contents
 *   1. Tokens
 *   2. Reset and base
 *   3. Motion system
 *   4. Header and sticky bar
 *   5. Hero
 *   6. Facts strip
 *   7. Sections, eyebrows, wave dividers
 *   8. Gallery and lightbox
 *   9. Prose
 *  10. Amenities
 *  11. Location
 *  12. Booking: calendar and form
 *  13. FAQ
 *  14. Footer
 *  15. Utility, errors, reduced motion
 */

/* ============================================================ 1. Tokens === */

:root {
  /* Palette. The site commits to one warm, sunlit look: this is a page about
     sunshine, and a dark variant would either betray that or need a second
     mood designed from scratch. */
  --sand: #faf3e7;
  --sand-deep: #f2e6d2;
  --warm-white: #fffcf7;
  --sea: #0e8f96;
  --sea-bright: #14a8b0;
  --deep: #0a5560;
  --sunset: #f0764a;
  --sunset-deep: #d85f36;
  --gold: #f5b83d;
  --ink: #1b2a31;
  --ink-soft: #4a5b63;

  /* Shadows are tinted with the deep sea colour rather than black: neutral
     grey shadows read as cold and pull the warmth out of the palette. */
  --shadow-sm: 0 1px 2px rgba(10, 85, 96, 0.06), 0 2px 8px rgba(10, 85, 96, 0.05);
  --shadow-md: 0 2px 6px rgba(10, 85, 96, 0.07), 0 12px 28px rgba(10, 85, 96, 0.09);
  --shadow-lg: 0 8px 20px rgba(10, 85, 96, 0.1), 0 32px 64px rgba(10, 85, 96, 0.14);
  --shadow-cta: 0 6px 18px rgba(240, 118, 74, 0.32);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

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

  /* Fluid type: one scale that works from a 360 px phone to a wide desktop
     without a stack of breakpoints. */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.13rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.7vw, 3rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.6rem);

  --gutter: clamp(1.15rem, 4vw, 3rem);
  --measure: 34rem;
  --page: 76rem;

  /* Motion. One vocabulary for the whole page — inconsistent timing is the
     main reason animated sites read as cheap. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
  --micro: 150ms;
  --std: 320ms;
  --enter: 640ms;
  --stagger: 70ms;
}

/* ==================================================== 2. Reset and base === */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky bar instead of hiding under it. */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain. A tiled turbulence filter at very low opacity, which stops the flat
   fills reading as flat digital colour — sand starts to look like sand. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  /* Stops a single word stranded on the last line of a heading. */
  text-wrap: balance;
  margin: 0 0 0.5em;
}

p {
  text-wrap: pretty;
  margin: 0 0 1em;
}

a {
  color: var(--sea);
  text-decoration: none;
}

/* Underline grows from the left rather than appearing all at once. */
.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size var(--std) var(--ease-out);
  padding-bottom: 2px;
}

.link-underline:hover,
.link-underline:focus-visible {
  background-size: 100% 1px;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Focus rings appear for keyboards and stay out of the way of mice. */
:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--page));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--warm-white);
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* =================================================== 3. Motion system ===== */

/* Section entrances. Applied by IntersectionObserver, once per element:
   re-animating on every scroll past is what turns a nice effect into an
   irritation by the third section. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--enter) var(--ease-out),
    transform var(--enter) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================ 4. Header and sticky bar ==== */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem var(--gutter);
  background: rgba(255, 252, 247, 0.86);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(10, 85, 96, 0.08);
  transform: translateY(-100%);
  transition: transform var(--std) var(--ease-out);
}

/* Appears once the hero is behind you and then stays. The call to action has to
   be findable at any point of the page, and a bar that hides on the way down is
   missing precisely while someone reads far enough to decide. */
.topbar.is-shown {
  transform: none;
}

.topbar__brand {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--deep);
  letter-spacing: -0.01em;
  /* A two-line brand or a two-line call to action turns a 3.4rem bar into a
     5rem one and reads as broken. Everything in here stays on one line; the
     narrow-screen rules below buy the space that costs. */
  white-space: nowrap;
}

.topbar__meta {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.topbar__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  white-space: nowrap;
}

.topbar__nav a {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.topbar__nav a:hover {
  color: var(--deep);
}

@media (max-width: 60rem) {
  .topbar__meta,
  .topbar__nav a:not(.btn):not(.lang) {
    display: none;
  }
}

/* On the narrowest phones the brand, the language pill and the call to action
   stop fitting side by side on one line. Tightening the spacing and dropping the
   button a size keeps all three — the CTA is the reason the bar exists, and the
   language switch is how half the guests read the page at all. */
@media (max-width: 26rem) {
  .topbar {
    gap: 0.4rem;
    padding-inline: 0.75rem;
  }

  .topbar__brand {
    font-size: var(--step--1);
  }

  .topbar__nav {
    gap: 0.4rem;
  }

  .topbar__nav .btn {
    padding: 0.6rem 0.8rem;
    font-size: var(--step--1);
  }

  .lang {
    padding-inline: 0.5rem;
  }
}

.lang {
  font-size: var(--step--1);
  color: var(--ink-soft);
  border: 1px solid rgba(10, 85, 96, 0.18);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.8rem;
  transition: all var(--micro) var(--ease-inout);
}

.lang:hover {
  border-color: var(--sea);
  color: var(--sea);
}

/* ================================================================= 5. Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: -6% 0;
  z-index: -2;
}

.hero__media img,
.hero__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ken Burns: 6% over 24 seconds is slow enough that nobody consciously
     notices it, and just enough that the photograph feels alive. */
  animation: ken-burns 24s var(--ease-inout) infinite alternate;
}

.hero__media--empty {
  background: linear-gradient(170deg, var(--sand) 0%, var(--sand-deep) 45%, var(--sea) 100%);
}

@keyframes ken-burns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

/* Scrim: keeps the headline legible over a bright sky without dimming the
   whole photograph. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 42, 49, 0.78) 0%, rgba(10, 42, 49, 0.22) 42%, rgba(10, 42, 49, 0.06) 70%),
    linear-gradient(to bottom, rgba(10, 42, 49, 0.3), transparent 26%);
}

/* Sun flare: a soft radial wash in the top corner, so any photograph picks up
   a hint of golden hour. */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -12%;
  right: -8%;
  width: 62vw;
  height: 62vw;
  max-width: 780px;
  max-height: 780px;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.42;
  background: radial-gradient(circle, rgba(245, 184, 61, 0.85) 0%, rgba(245, 184, 61, 0.28) 38%, transparent 68%);
}

.hero__inner {
  position: relative;
  padding: 0 var(--gutter) clamp(4rem, 12vh, 8rem);
  width: min(100%, var(--page));
  margin-inline: auto;
  color: var(--warm-white);
}

.hero__eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.hero__title {
  font-size: var(--step-4);
  font-weight: 600;
  color: var(--warm-white);
  margin-bottom: 0.35em;
  text-shadow: 0 2px 30px rgba(10, 42, 49, 0.35);
}

.hero__sub {
  font-size: var(--step-1);
  max-width: 30ch;
  color: rgba(255, 252, 247, 0.92);
  margin-bottom: 2rem;
}

/* Hero content cascades in on load: title, subtitle, then the button. */
.hero__eyebrow,
.hero__title,
.hero__sub,
.hero__cta {
  opacity: 0;
  transform: translateY(16px);
  animation: rise var(--enter) var(--ease-out) forwards;
}

.hero__eyebrow {
  animation-delay: 120ms;
}
.hero__title {
  animation-delay: 200ms;
}
.hero__sub {
  animation-delay: calc(200ms + var(--stagger));
}
.hero__cta {
  animation-delay: calc(200ms + var(--stagger) * 2);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  translate: -50% 0;
  color: rgba(255, 252, 247, 0.72);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  animation: bob 2.5s var(--ease-inout) infinite;
  transition: opacity var(--std) var(--ease-out);
}

.hero__scroll.is-gone {
  opacity: 0;
  pointer-events: none;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ================================================================ Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--sunset);
  color: var(--warm-white);
  font-weight: 500;
  font-size: var(--step-0);
  box-shadow: var(--shadow-cta);
  transition:
    transform var(--micro) var(--ease-inout),
    box-shadow var(--micro) var(--ease-inout),
    background-color var(--micro) var(--ease-inout);
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--sunset-deep);
  box-shadow: 0 10px 26px rgba(240, 118, 74, 0.42);
}

.btn:active {
  transform: scale(0.98);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn--ghost {
  background: transparent;
  color: var(--deep);
  border: 1px solid rgba(10, 85, 96, 0.24);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(14, 143, 150, 0.08);
  border-color: var(--sea);
  box-shadow: none;
}

.btn--sm {
  padding: 0.5rem 1.1rem;
  font-size: var(--step--1);
}

/* ========================================================= 6. Facts strip */

.facts {
  background: var(--warm-white);
  border-block: 1px solid rgba(10, 85, 96, 0.07);
}

.facts__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 3.4rem);
  padding: 1.6rem 0;
  margin: 0;
  list-style: none;
}

.facts__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  transition: color var(--micro) var(--ease-inout);
}

.facts__item svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--sea);
  transition:
    transform var(--std) var(--ease-out),
    color var(--std) var(--ease-out);
}

.facts__item:hover {
  color: var(--ink);
}

.facts__item:hover svg {
  transform: translateY(-2px);
  color: var(--gold);
}

/* =========================================== 7. Sections and separators == */

.section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  position: relative;
}

.section--warm {
  background: linear-gradient(180deg, var(--sand) 0%, #f7e9d5 100%);
}

.section--white {
  background: var(--warm-white);
}

.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.section__head {
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section__title {
  font-size: var(--step-3);
  color: var(--deep);
}

/* Two wave paths drifting at different speeds. The movement sits just at the
   edge of perception — enough that the page feels alive rather than printed. */
.waves {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 78px);
  color: var(--warm-white);
}

.waves path {
  animation: drift 32s linear infinite;
}

.waves path:nth-child(2) {
  animation-duration: 47s;
  animation-direction: reverse;
  opacity: 0.5;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==================================================== 8. Gallery ========= */

.gallery {
  columns: 3 18rem;
  column-gap: 1rem;
}

@media (max-width: 42rem) {
  .gallery {
    columns: 1;
  }
}

.tile {
  break-inside: avoid;
  margin: 0 0 1rem;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tile-color, var(--sand-deep));
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  width: 100%;
  padding: 0;
  border: 0;
  display: block;
  transition: box-shadow var(--std) var(--ease-out);
}

.tile:hover {
  box-shadow: var(--shadow-md);
}

/* Blur-up. The tiny inlined placeholder sits underneath and cross-fades out
   as the real file decodes: no white gap, no pop, no layout shift. The single
   biggest difference between a gallery that feels finished and one that does
   not. */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--lqip);
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  transform: scale(1.08);
  transition: opacity 480ms var(--ease-out);
}

.tile.is-loaded::before {
  opacity: 0;
}

.tile img {
  width: 100%;
  height: auto;
  position: relative;
  opacity: 0;
  transition:
    opacity 480ms var(--ease-out),
    transform var(--std) var(--ease-out);
}

.tile.is-loaded img {
  opacity: 1;
}

/* The image grows inside a clipped frame, so the tile itself never moves and
   the masonry layout stays put. */
.tile:hover img {
  transform: scale(1.04);
}

.tile__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.4rem 1rem 0.9rem;
  color: var(--warm-white);
  font-size: var(--step--1);
  text-align: left;
  background: linear-gradient(to top, rgba(10, 42, 49, 0.78), transparent);
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 400ms var(--ease-out),
    opacity 400ms var(--ease-out);
}

.tile:hover .tile__caption,
.tile:focus-visible .tile__caption {
  transform: none;
  opacity: 1;
}

.gallery__more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.gallery__empty {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gallery__empty svg {
  width: 100%;
  height: auto;
}

.gallery__empty-note {
  max-width: var(--measure);
  margin: 1.5rem auto 0;
  text-align: center;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------- Lightbox - */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(0.5rem, 3vw, 2.5rem);
  /* Warm tint rather than neutral black: cold black would drain the warmth
     out of the palette the moment it opens. */
  background: rgba(24, 16, 10, 0.82);
  backdrop-filter: blur(24px) saturate(0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--std) var(--ease-out);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 100%;
  max-height: 82svh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox__caption {
  margin-top: 0.9rem;
  color: rgba(255, 252, 247, 0.86);
  font-size: var(--step--1);
  text-align: center;
}

.lightbox__counter {
  color: rgba(255, 252, 247, 0.55);
  font-variant-numeric: tabular-nums;
  font-size: var(--step--1);
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  color: var(--warm-white);
  background: rgba(255, 252, 247, 0.13);
  backdrop-filter: blur(6px);
  transition:
    opacity var(--std) var(--ease-out),
    background-color var(--micro) var(--ease-inout);
}

.lightbox__btn:hover {
  background: rgba(255, 252, 247, 0.26);
}

/* Controls surface on mouse movement and fade away when you stop, so the
   photograph gets the screen to itself. */
.lightbox.is-idle .lightbox__btn {
  opacity: 0;
}

.lightbox__btn--prev {
  left: clamp(0.5rem, 2vw, 2rem);
}
.lightbox__btn--next {
  right: clamp(0.5rem, 2vw, 2rem);
}
.lightbox__btn--close {
  top: clamp(0.5rem, 2vw, 1.6rem);
  right: clamp(0.5rem, 2vw, 1.6rem);
}

/* ===================================================== 9. Prose ========== */

.prose {
  max-width: var(--measure);
  margin-inline: auto;
  font-size: var(--step-0);
}

.prose h2 {
  font-size: var(--step-2);
  color: var(--deep);
  margin-top: 2.2em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: var(--step-1);
  color: var(--deep);
  margin-top: 1.8em;
}

.prose strong {
  color: var(--deep);
  font-weight: 500;
}

.prose ul {
  padding-left: 0;
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}

.prose em {
  font-style: italic;
  color: var(--ink-soft);
}

/* ================================================= 10. Amenities ========= */

.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.amenities__group h3 {
  font-size: var(--step-1);
  color: var(--deep);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(10, 85, 96, 0.14);
}

.amenities__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.amenities__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
  transition: color var(--micro) var(--ease-inout);
}

.amenities__list li:hover {
  color: var(--ink);
}

.amenities__list svg {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.28em;
  color: var(--sea);
  transition:
    transform var(--std) var(--ease-out),
    color var(--std) var(--ease-out);
}

.amenities__list li:hover svg {
  transform: translateY(-2px);
  color: var(--gold);
}

/* ================================================== 11. Location ========= */

.location {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.distances {
  list-style: none;
  margin: 0;
  padding: 0;
}

.distances li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(10, 85, 96, 0.1);
}

.distances dt,
.distances .label {
  color: var(--ink);
}

.distances .value {
  color: var(--sea);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.map {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--sand-deep);
}

.map__link {
  position: relative;
  display: block;
  line-height: 0;
}

.map img {
  width: 100%;
  height: auto;
  transition: transform var(--std) var(--ease-out);
}

/* The map is a link, and nothing about a map image says so. The label states it
   outright rather than relying on a cursor change nobody sees on a phone. */
.map__cta {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--sunset);
  color: var(--warm-white);
  font-size: var(--step--1);
  line-height: 1.2;
  box-shadow: var(--shadow-cta);
  transition: background var(--std) var(--ease-out);
}

.map__link:hover img,
.map__link:focus-visible img {
  transform: scale(1.02);
}

.map__link:hover .map__cta,
.map__link:focus-visible .map__cta {
  background: var(--sunset-deep);
}

.map__credit {
  padding: 0.55rem 0.9rem;
  background: var(--warm-white);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .map img {
    transition: none;
  }

  .map__link:hover img,
  .map__link:focus-visible img {
    transform: none;
  }
}

.location__note {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: 1rem;
}

/* ============================================ 12. Booking form =========== */

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 56rem) {
  .booking {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
}

/* ------------------------------------------------------------- Calendar - */

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cal__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--deep);
  text-align: center;
  flex: 1;
}

.cal__nav {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(10, 85, 96, 0.18);
  border-radius: 50%;
  background: transparent;
  color: var(--deep);
  transition: all var(--micro) var(--ease-inout);
}

.cal__nav:hover:not([disabled]) {
  background: var(--sea);
  border-color: var(--sea);
  color: var(--warm-white);
}

.cal__nav[disabled] {
  opacity: 0.3;
  cursor: default;
}

.cal__months {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .cal__months--two {
    grid-template-columns: 1fr 1fr;
  }
}

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal__dow {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.5rem;
}

.cal__day {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  transition:
    background-color var(--micro) var(--ease-inout),
    color var(--micro) var(--ease-inout);
}

.cal__day--empty {
  visibility: hidden;
}

.cal__day:hover:not(:disabled) {
  background: rgba(14, 143, 150, 0.12);
}

.cal__day:disabled {
  color: rgba(27, 42, 49, 0.28);
  cursor: not-allowed;
}

/* A booked night is struck through rather than merely greyed: unmistakable
   at a glance, and it survives being viewed in bright sunlight on a phone. */
.cal__day--booked::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  top: 50%;
  height: 1px;
  background: rgba(27, 42, 49, 0.4);
}

/* Pending is hatched, not solid: the night is spoken for but not settled, and
   a second enquiry is still worth having. */
.cal__day--pending {
  background: repeating-linear-gradient(
    -45deg,
    rgba(245, 184, 61, 0.32) 0 4px,
    transparent 4px 8px
  );
}

/* Changeover day: occupied in the morning, free from the afternoon. Split on
   the diagonal so a guest can see at a glance that they may start here — the
   visual counterpart of the exclusive departure date in the data model. */
.cal__day--turnover {
  background: linear-gradient(
    135deg,
    rgba(27, 42, 49, 0.14) 0 50%,
    transparent 50% 100%
  );
}

.cal__day--in-range {
  background: rgba(14, 143, 150, 0.14);
  border-radius: 0;
}

.cal__day--start,
.cal__day--end {
  background: var(--sea);
  color: var(--warm-white);
  font-weight: 500;
}

.cal__day--start {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.cal__day--end {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cal__day--start.cal__day--end {
  border-radius: var(--radius-sm);
}

.cal__day--today {
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(240, 118, 74, 0.5);
}

.cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.cal__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cal__swatch {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 3px;
  border: 1px solid rgba(10, 85, 96, 0.16);
}

.cal__swatch--free {
  background: var(--warm-white);
}
.cal__swatch--booked {
  background: rgba(27, 42, 49, 0.12);
}
.cal__swatch--pending {
  background: repeating-linear-gradient(-45deg, rgba(245, 184, 61, 0.5) 0 3px, transparent 3px 6px);
}
.cal__swatch--turnover {
  background: linear-gradient(135deg, rgba(27, 42, 49, 0.18) 0 50%, var(--warm-white) 50%);
}

.cal__summary {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: rgba(14, 143, 150, 0.08);
  color: var(--deep);
  font-size: var(--step--1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cal__prompt {
  color: var(--ink-soft);
  font-size: var(--step--1);
  margin-top: 1rem;
}

/* ---------------------------------------------------------------- Fields */

.field {
  margin-bottom: 1.1rem;
}

.field__label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: var(--step--1);
  color: var(--ink);
  font-weight: 500;
}

.field__hint {
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.78rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--sand);
  border: 1px solid rgba(10, 85, 96, 0.16);
  border-radius: var(--radius);
  transition:
    border-color var(--micro) var(--ease-inout),
    box-shadow var(--micro) var(--ease-inout),
    background-color var(--micro) var(--ease-inout);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--warm-white);
  border-color: var(--sea);
  box-shadow: inset 0 0 0 1px var(--sea), 0 0 0 4px rgba(14, 143, 150, 0.12);
}

.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-color: var(--sunset-deep);
}

.field__error {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--sunset-deep);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Custom checkbox with a tick that draws itself in — a 300 ms detail nobody
   will name, and everybody registers. */
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.check__box {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border: 1px solid rgba(10, 85, 96, 0.28);
  border-radius: 6px;
  background: var(--sand);
  display: grid;
  place-items: center;
  transition:
    background-color var(--micro) var(--ease-inout),
    border-color var(--micro) var(--ease-inout);
}

.check__box svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: var(--warm-white);
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 300ms var(--ease-out);
}

.check input:checked + .check__box {
  background: var(--sea);
  border-color: var(--sea);
}

.check input:checked + .check__box svg {
  stroke-dashoffset: 0;
}

.check input:focus-visible + .check__box {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
}

/* Honeypot: off-screen and hidden from assistive tech, so only a bot fills it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: var(--step--1);
  margin-bottom: 1rem;
}

.notice--info {
  background: rgba(245, 184, 61, 0.16);
  color: #7a5310;
}

.notice--error {
  background: rgba(240, 118, 74, 0.14);
  color: var(--sunset-deep);
}

/* -------------------------------------------------------- Thank-you card */

.thanks {
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.thanks__mark {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: rgba(14, 143, 150, 0.12);
  display: grid;
  place-items: center;
}

.thanks__mark svg {
  width: 2rem;
  height: 2rem;
  stroke: var(--sea);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 520ms var(--ease-out) 120ms forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.thanks__title {
  font-size: var(--step-2);
  color: var(--deep);
}

.thanks__summary {
  display: inline-block;
  text-align: left;
  margin: 1.2rem auto 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--sand);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Fades up from slightly small when it replaces the form — no page flash. */
.is-entering {
  animation: card-in 480ms var(--ease-out) forwards;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ======================================================== 13. FAQ ======== */

.faq {
  max-width: 46rem;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid rgba(10, 85, 96, 0.12);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--deep);
  list-style: none;
  transition: color var(--micro) var(--ease-inout);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--sea);
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-25%);
  transition: transform var(--std) var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-25%);
}

.faq__body {
  padding-bottom: 1.2rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ===================================================== 14. Footer ======== */

.footer {
  background: var(--deep);
  color: rgba(255, 252, 247, 0.72);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  font-size: var(--step--1);
}

.footer a {
  color: rgba(255, 252, 247, 0.86);
}

.footer a:hover {
  color: var(--gold);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--warm-white);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ============================== 15. Utilities, errors, reduced motion ==== */

.center {
  text-align: center;
}

.stack > * + * {
  margin-top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.errorpage {
  min-height: 70svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gutter);
}

.errorpage h1 {
  font-size: var(--step-3);
  color: var(--deep);
}

body.is-locked {
  overflow: hidden;
}

/*
 * Reduced motion. Movement goes; the design does not. Ken Burns, parallax,
 * wave drift and the count-up stop, entrances become plain cross-fades. Someone
 * with vestibular sensitivity gets a calm version of the same page, not a
 * stripped one — which is what switching every transition off would give them.
 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media img,
  .hero__media svg,
  .hero__scroll,
  .waves path {
    animation: none !important;
  }

  .reveal {
    transform: none;
    transition: opacity var(--std) linear;
  }

  .hero__eyebrow,
  .hero__title,
  .hero__sub,
  .hero__cta {
    transform: none;
    animation: fade-only var(--std) linear forwards;
  }

  @keyframes fade-only {
    to {
      opacity: 1;
    }
  }

  .tile:hover img,
  .btn:hover,
  .facts__item:hover svg,
  .amenities__list li:hover svg {
    transform: none;
  }

  .tile::before,
  .tile img {
    transition-duration: var(--micro);
  }

  .is-entering {
    animation-name: fade-only;
  }
}
