/* ==========================================================================
   Hotel Meghauli Safari — single stylesheet
   Theme: jungle safari, calm and peaceful (website_theme)
   Feel:  earthy and natural (brand.feel) — no brand.colors supplied, palette
          chosen by the builder and listed in BUILD_NOTES.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom properties
   -------------------------------------------------------------------------- */

:root {
  /* Colour — earthy, low-saturation, calm */
  --paper: #faf7f0;        /* warm bone page background */
  --paper-2: #fffdf8;      /* raised card surface */
  --surface-warm: #f4eee2; /* form panels — a step down from paper, not a
                              near-white slab against it */
  --sand: #e8dfcf;         /* dividers, quiet fills */
  --sand-deep: #d8ccb6;    /* borders on sand */
  --slot: #cfe0d3;         /* empty image slots — green, not beige */
  --slot-deep: #b8d0be;
  --ink: #16241b;          /* deep forest text */
  --muted: #55665a;        /* secondary text — 5.6:1 on --paper */
  --brand: #217b4e;        /* sal-forest green, alive rather than grey-green
                              — 4.8:1 on --paper */
  --brand-dark: #14472f;   /* headers, footer, full-bleed bands */
  --brand-deeper: #0e3323; /* the darker end of the band gradient */
  --brand-tint: #e1eee4;   /* faint green wash */
  --accent: #a8552a;       /* terracotta — CTAs, prices; 4.8:1 on --paper,
                              5.3:1 white-on-fill. Held at this value on
                              purpose: brighter fails contrast on buttons. */
  --accent-dark: #8a4522;
  --accent-glow: #c4622f;  /* decorative only — rules, markers, never text */
  --todo-bg: #fdf3d4;      /* unmissable but not alarming */
  --todo-ink: #6b4a05;
  --todo-line: #d9b64a;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: 2.125rem;
  --step-5: 2.5rem;

  /* Spacing — 4px base */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Shape */
  --radius: 10px;
  --radius-lg: 16px;
  --border: 1px solid var(--sand-deep);
  --shadow: 0 1px 2px rgba(30, 42, 34, 0.05), 0 8px 24px rgba(30, 42, 34, 0.06);
  --measure: 68ch;
  --wrap: 1120px;
}

/* Larger type once there is room for it */
@media (min-width: 48rem) {
  :root {
    --step-3: 2rem;
    --step-4: 2.75rem;
    --step-5: 3.5rem;
  }
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */

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

/* Several toggled elements also carry display rules (grid, flex), which would
   otherwise beat the UA stylesheet's [hidden] { display: none }. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--step-5);
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
}

p,
ul,
ol,
dl {
  margin: 0 0 var(--sp-4);
  max-width: var(--measure);
}

a {
  color: var(--brand-dark);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

hr {
  border: 0;
  border-top: var(--border);
  margin: var(--sp-6) 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

@media (min-width: 48rem) {
  .wrap {
    padding-inline: var(--sp-6);
  }
}

.section {
  padding-block: var(--sp-7);
}

@media (min-width: 48rem) {
  .section {
    padding-block: var(--sp-8);
  }
}

.section--tint {
  background: var(--brand-tint);
}

.section--sand {
  background: var(--sand);
}

/* Full-bleed forest band. The single biggest lever on the jungle feel — a
   dark, immersive stretch reads as canopy in a way a pale card never will.
   Used sparingly: one band per page at most, so it stays an event. */
.section--forest {
  background: linear-gradient(165deg, var(--brand-dark) 0%, var(--brand-deeper) 100%);
  color: #e2ece4;
  position: relative;
}

.section--forest h1,
.section--forest h2,
.section--forest h3 {
  color: #fff;
}

.section--forest .eyebrow {
  color: #8fc9a5;
}

.section--forest .section__head p,
.section--forest .price-note {
  color: #b9cdbf;
}

.section--forest a:not(.btn) {
  color: #fff;
}

.section--forest a:not(.btn):hover {
  color: #9fd4b3;
}

/* Secondary buttons on any dark surface. The default is dark-green-on-
   transparent, which vanishes against the hero photograph and the forest
   bands — these need a light border, light text and a slight backdrop so
   they stay legible over whatever the image happens to be doing. */
.section--forest .btn--secondary,
.hero .btn--secondary {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  background: rgba(10, 30, 20, 0.35);
  backdrop-filter: blur(2px);
}

.section--forest .btn--secondary:hover,
.hero .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  color: #fff;
}

/* ...but a card inside a forest band is a light surface again, so buttons
   within it go back to dark-on-light. Without this they would be white text
   on cream. */
.section--forest .card .btn--secondary {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: transparent;
  backdrop-filter: none;
}

.section--forest .card .btn--secondary:hover {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand-dark);
}

/* A hairline of terracotta where the band meets the page — one warm line
   against all that green, which is what stops it reading as a slab. */
.section--forest::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-glow);
}

/* Cards lifting off a forest band: warm cream, not stark white.
   A card is a light island inside a dark section, so every inherited light
   colour above has to be handed back — otherwise pale body text lands on
   cream and disappears. */
.section--forest .card {
  background: var(--surface-warm);
  border-color: transparent;
  color: var(--ink);
}

.section--forest .card h2,
.section--forest .card h3,
.section--forest .card h4 {
  color: var(--ink);
}

.section--forest .card p,
.section--forest .card li,
.section--forest .card dd {
  color: var(--ink);
}

.section--forest .card .price-note,
.section--forest .card .field-hint,
.section--forest .card dt {
  color: var(--muted);
}

.section--forest .card .eyebrow {
  color: var(--brand);
}

.section--forest .card a:not(.btn) {
  color: var(--brand-dark);
}

.section--forest .card a:not(.btn):hover {
  color: var(--accent-dark);
}

.section__head {
  margin-bottom: var(--sp-6);
}

.section__head p {
  color: var(--muted);
  font-size: var(--step-1);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 var(--sp-2);
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 40rem) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 56rem) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--2-1 {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--sp-7);
  }
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -4rem;
  z-index: 100;
  background: var(--brand-dark);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Header + navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--paper);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 64px;
}

/* brand.logo_status is "image_file" and no clean logo file exists yet, so the
   wordmark is set in type. See BUILD_NOTES.md. */
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.1;
  color: var(--brand-dark);
  text-decoration: none;
  display: block;
  padding-block: var(--sp-2);
}

.wordmark span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: transparent;
  border: var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
}

.nav-toggle__bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: -6px;
}
.nav-toggle__bars::after {
  top: 6px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.site-nav a {
  display: block;
  padding: var(--sp-3) 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: var(--border);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
}

/* Mobile: collapsed panel */
@media (max-width: 55.999rem) {
  .site-nav {
    display: none;
    padding-bottom: var(--sp-4);
  }
  .site-nav.is-open {
    display: block;
  }
  .site-header__inner {
    flex-wrap: wrap;
  }
  .site-nav {
    flex-basis: 100%;
  }
  .site-nav a[aria-current="page"] {
    font-weight: 700;
  }
}

@media (min-width: 56rem) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: block !important;
  }
  .site-nav ul {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
  }
  .site-nav a {
    padding: var(--sp-2) 0;
    border-bottom: 2px solid transparent;
    font-size: var(--step--1);
  }
  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--accent);
  }
  .site-nav .nav-cta a {
    background: var(--accent);
    color: #fff;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius);
    border-bottom: 0;
  }
  .site-nav .nav-cta a:hover {
    background: var(--accent-dark);
    color: #fff;
  }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  padding: var(--sp-3) var(--sp-5);
  min-height: 48px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: var(--accent-dark);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand-dark);
}

.btn--secondary:hover {
  background: var(--brand-tint);
  color: var(--brand-dark);
}

.btn--whatsapp {
  background: #1f7a4d;
  color: #fff;
}

.btn--whatsapp:hover {
  background: #17603c;
  color: #fff;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

/* Inline spinner used on the booking submit button */
.spinner {
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   6. Images — fixed aspect boxes so nothing shifts, and so the missing-photo
      state reads as a calm earthy block rather than a broken icon.
      Real photos drop into /images per images/README.md.
   -------------------------------------------------------------------------- */

.shot {
  position: relative;
  display: block;
  background: var(--slot);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot::after {
  /* Sits behind the image; only visible while the file is absent. Tinted
     green rather than beige — with no photographs supplied yet these blocks
     are most of the page, so they may as well carry the mood. */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    var(--slot) 0 12px,
    var(--slot-deep) 12px 24px
  );
  z-index: 0;
}

.shot img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot--16x9 {
  aspect-ratio: 16 / 9;
}
.shot--4x3 {
  aspect-ratio: 4 / 3;
}
.shot--3x2 {
  aspect-ratio: 3 / 2;
}
.shot--1x1 {
  aspect-ratio: 1 / 1;
}

.figure {
  margin: 0;
}

.figure figcaption {
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: var(--sp-2);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  background: linear-gradient(165deg, var(--brand-dark) 0%, var(--brand-deeper) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero .shot {
  border-radius: 0;
  aspect-ratio: 16 / 10;
}

@media (min-width: 56rem) {
  .hero .shot {
    aspect-ratio: 21 / 9;
  }
}

.hero__media {
  position: relative;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Green-cast rather than neutral black, so the overlay reads as canopy
     shadow instead of a grey scrim laid over the photograph. */
  background: linear-gradient(
    to bottom,
    rgba(14, 51, 35, 0.15) 0%,
    rgba(14, 51, 35, 0.55) 50%,
    rgba(14, 51, 35, 0.93) 100%
  );
}

.hero__body {
  position: relative;
  z-index: 3;
  margin-top: -8rem;
  padding-bottom: var(--sp-7);
}

@media (min-width: 56rem) {
  .hero__body {
    margin-top: -12rem;
    padding-bottom: var(--sp-8);
  }
}

.hero h1 {
  color: #fff;
  max-width: 18ch;
}

.hero__lead {
  color: #ecf1ea;
  font-size: var(--step-1);
  max-width: 52ch;
}

.hero .eyebrow {
  color: #cfe0d2;
}

.hero__facts {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  max-width: none;
  font-size: var(--step--1);
  color: #dfe8e0;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.hero__facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--paper-2);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__body > :last-child {
  margin-bottom: 0;
}

.card h3 {
  margin-bottom: var(--sp-2);
}

.card__foot {
  margin-top: auto;
  padding-top: var(--sp-4);
}

.amenities {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  max-width: none;
}

.amenities li {
  font-size: var(--step--1);
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: var(--sp-1) var(--sp-3);
}

/* --------------------------------------------------------------------------
   9. Prices
      pricing.tax_included is false, so .price-note must accompany every price.
   -------------------------------------------------------------------------- */

.price {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--accent-dark);
  line-height: 1.1;
  display: block;
}

.price small {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--muted);
  display: inline-block;
  margin-left: var(--sp-1);
}

.price-note {
  display: block;
  font-size: var(--step--1);
  color: var(--muted);
  margin: var(--sp-1) 0 var(--sp-4);
}

.extras-note {
  display: block;
  font-size: var(--step--1);
  color: var(--ink);
  background: var(--sand);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-3);
  margin: 0 0 var(--sp-4);
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   10. TODO markers — deliberately visible. Each corresponds to an entry in
       meghauli-safari.json _todos or a "TODO" value in the data.
   -------------------------------------------------------------------------- */

.todo {
  display: block;
  background: var(--todo-bg);
  border: 1px dashed var(--todo-line);
  border-radius: var(--radius);
  color: var(--todo-ink);
  font-size: var(--step--1);
  font-weight: 500;
  padding: var(--sp-3) var(--sp-4);
  margin: 0 0 var(--sp-4);
  max-width: var(--measure);
}

.todo--inline {
  display: inline-block;
  padding: 2px var(--sp-2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. Definition-style fact lists
   -------------------------------------------------------------------------- */

.facts {
  margin: 0 0 var(--sp-5);
  max-width: var(--measure);
}

.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: var(--border);
}

.facts dt {
  flex: 0 0 11rem;
  font-weight: 600;
  color: var(--muted);
  font-size: var(--step--1);
}

.facts dd {
  margin: 0;
  flex: 1 1 14rem;
}

/* --------------------------------------------------------------------------
   12. Location page
   -------------------------------------------------------------------------- */

.map-embed {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 40rem) {
  .map-embed {
    aspect-ratio: 16 / 9;
  }
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Click-to-load cover: keeps Google off the page until the guest asks for it,
   which matters on a slow connection. */
.map-embed__cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  text-align: center;
  padding: var(--sp-5);
  background: repeating-linear-gradient(
    135deg,
    var(--sand) 0 14px,
    var(--sand-deep) 14px 28px
  );
  border: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.map-embed__cover strong {
  font-family: var(--font-display);
  font-size: var(--step-2);
}

.map-embed__cover span {
  font-size: var(--step--1);
  color: var(--muted);
  max-width: 34ch;
}

.map-embed__cover .btn {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   13. Gallery + lightbox
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}

@media (min-width: 48rem) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
  }
}

.gallery-grid button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(18, 28, 21, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__inner {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  text-align: center;
}

.lightbox img {
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
}

.lightbox__caption {
  color: #e6ece6;
  font-size: var(--step--1);
  margin-top: var(--sp-3);
}

.lightbox__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */

.form-grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 40rem) {
  .form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

fieldset {
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin: 0 0 var(--sp-5);
  background: var(--surface-warm);
}

/* The nested nationality fieldset is a grouping device, not a second panel. */
fieldset fieldset {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
}

legend {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  padding-inline: var(--sp-2);
}

label {
  display: block;
  font-weight: 600;
  font-size: var(--step--1);
  margin-bottom: var(--sp-2);
}

.field-hint {
  display: block;
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: var(--sp-1);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  /* Fields stay the lightest thing on the panel so they read as fillable —
     small areas, so this never becomes a slab of white. */
  background: var(--paper-2);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: var(--sp-3);
  min-height: 48px;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:invalid:not(:placeholder-shown),
input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--accent-dark);
}

.checkbox-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
  max-width: none;
}

.checkbox-list label,
.radio-row label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-weight: 500;
  font-size: var(--step-0);
  margin: 0;
  cursor: pointer;
}

.checkbox-list input,
.radio-row input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--brand);
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* Honeypot — off-screen rather than display:none so bots that check
   computed style still fill it. Real guests never reach it (tabindex -1). */
.hp-field {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  display: block;
  color: var(--accent-dark);
  font-size: var(--step--1);
  font-weight: 600;
  margin-top: var(--sp-2);
}

.field-error:empty {
  display: none;
}

/* Turnstile widget plus its own message line, so "you haven't ticked this"
   appears next to the thing that needs ticking rather than in the generic
   send-failure box. */
.turnstile-block {
  margin-top: var(--sp-5);
}

.turnstile-block .field-error {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: #fdeee7;
  border: 1px solid #e0a98f;
  border-radius: var(--radius);
  max-width: var(--measure);
}

/* Live estimate panel */
.estimate {
  background: var(--brand-tint);
  border: 1px solid #cfdccf;
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin: 0 0 var(--sp-5);
}

.estimate__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  font-size: var(--step--1);
  color: var(--muted);
}

.estimate__row--total {
  border-top: 1px solid #cfdccf;
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  font-size: var(--step-1);
  color: var(--ink);
  font-weight: 600;
  align-items: baseline;
}

.estimate__total {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--accent-dark);
}

.estimate__disclaimer {
  font-size: var(--step--1);
  color: var(--muted);
  margin: var(--sp-3) 0 0;
}

@media (min-width: 56rem) {
  .estimate--sticky {
    position: sticky;
    top: 96px;
  }
}

.alert {
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin: 0 0 var(--sp-4);
  max-width: var(--measure);
  border: 1px solid;
}

.alert--error {
  background: #fdeee7;
  border-color: #e0a98f;
  color: #6d2f12;
}

.alert--error a {
  color: #6d2f12;
}

.alert[hidden] {
  display: none;
}

/* Booking confirmation */
.confirmation {
  background: var(--surface-warm);
  border: 2px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.confirmation__ref {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--brand-dark);
  background: var(--brand-tint);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  display: inline-block;
  margin-bottom: var(--sp-4);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   15. Floating WhatsApp button — on every page
   -------------------------------------------------------------------------- */

.wa-float {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: #1f7a4d;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step--1);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 999px;
  min-height: 52px;
  box-shadow: 0 6px 20px rgba(20, 60, 40, 0.35);
}

.wa-float:hover {
  background: #17603c;
  color: #fff;
}

.wa-float svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}

@media (max-width: 25rem) {
  .wa-float__label {
    display: none;
  }
  .wa-float {
    padding: var(--sp-3);
  }
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--brand-dark);
  color: #dfe8e0;
  padding-block: var(--sp-7) var(--sp-8);
  margin-top: var(--sp-8);
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: var(--step-1);
  margin-bottom: var(--sp-3);
}

.site-footer a {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: var(--sp-2);
}

.footer-grid {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 40rem) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 56rem) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  font-size: var(--step--1);
  color: #bccfc0;
}

.footer-bottom p {
  margin-bottom: var(--sp-2);
  max-width: none;
}

/* Build credit. Quiet enough not to compete with the hotel's own name,
   with a terracotta-to-green underline that sweeps in on hover. */
.credit {
  margin-top: var(--sp-3);
}

.credit__link {
  position: relative;
  display: inline-block;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
}

.credit__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-glow) 0%, #8fc9a5 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.credit__link:hover::after,
.credit__link:focus-visible::after {
  transform: scaleX(1);
}

.credit__link:hover {
  color: #9fd4b3;
}

/* Bottom breathing room so the floating button never covers footer links */
body {
  padding-bottom: 0;
}

.site-footer .footer-bottom {
  padding-bottom: 4rem;
}
