/* Phuket Mangrove Kayaking by THINN · Tide Board
   Styled to seamlessly match the main website brand identity:
   Inter + Playfair Display, Forest Green (#1B4332), Brand Gold (#D4A373),
   and Warm Cream (#FEFAE0). */

:root {
  color-scheme: light;

  /* Main Website Brand Tokens */
  --brand-green: #1B4332;
  --brand-green-light: #2D6A4F;
  --brand-green-dark: #0D1B0E;
  --brand-gold: #D4A373;
  --brand-gold-light: #E9C46A;
  --brand-cream: #FEFAE0;
  --brand-cream-dark: #F5F0D0;
  --brand-text: #1A1A1A;
  --brand-text-muted: #6B705C;

  /* Aliases for the tide board layout */
  --olive: var(--brand-green);
  --charcoal: var(--brand-green-dark);
  --sand: var(--brand-gold);
  --sand-soft: #F5EADB;
  --cream: #FAF8F2;
  --sage: #386641;

  --paper: #FFFFFF;
  --line: rgba(27, 67, 50, 0.12);
  --grid: rgba(27, 67, 50, 0.08);
  --closed: #F3EFE6;
  --ink: #1A1A1A;
  --ink-2: #6B705C;

  /* Status Colors */
  --ready-a: #2D6A4F;
  --ready-b: #1B4332;
  --low-a: #9A3412;
  --low-b: #7C2D12;
  --clay: #C85A32;

  --radius-lg: 24px;
  --radius: 20px;
  --shadow: 0 2px 8px -2px rgba(13, 27, 14, 0.05), 0 10px 24px -10px rgba(13, 27, 14, 0.12);

  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, serif;
  --page-max: 580px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Eyebrows matching website badges */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--brand-gold);
}
.eyebrow::after { content: ''; flex: none; width: 32px; height: 1px; background: currentColor; opacity: 0.5; }
.eyebrow--hero { white-space: nowrap; color: var(--brand-gold); }
.eyebrow--hero::after { flex: 0 1 32px; min-width: 0; width: auto; }

/* ── Top bar ──────────────────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--brand-green-dark);
  color: var(--brand-cream);
  padding: calc(14px + env(safe-area-inset-top)) max(16px, calc((100% - var(--page-max)) / 2 + 16px)) 14px;
  border-bottom: 1px solid rgba(212, 163, 115, 0.15);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(212, 163, 115, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  flex: none;
}
.brand__wave-svg {
  width: 20px;
  height: 20px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-cream);
  letter-spacing: 0.01em;
}
.brand__tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar__home {
  font-size: 13px;
  font-weight: 500;
  color: rgba(254, 250, 224, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.topbar__home:hover {
  color: var(--brand-gold);
}
.topbar__book {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--brand-gold);
  color: var(--brand-green-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.topbar__book:hover {
  background: var(--brand-gold-light);
}
.topbar__book:active {
  transform: scale(0.97);
}

/* ── Page Layout ──────────────────────────────────────────────────────── */

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 16px 16px calc(110px + env(safe-area-inset-bottom));
}
.page > * + * { margin-top: 16px; }

/* ── Hero: Right Now ──────────────────────────────────────────────────── */

.hero {
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  color: var(--brand-cream);
  background: linear-gradient(145deg, var(--ready-a) 0%, var(--ready-b) 100%);
  box-shadow: 0 8px 28px -6px rgba(13, 27, 14, 0.35);
  border: 1px solid rgba(212, 163, 115, 0.2);
  transition: background 0.4s;
}
.hero[data-state='low'] {
  background: linear-gradient(145deg, var(--low-a) 0%, var(--low-b) 100%);
  border-color: rgba(234, 179, 8, 0.3);
}
.hero[data-state='off'] {
  background: linear-gradient(145deg, #2D3A2F 0%, #17241A 100%);
  border-color: rgba(255, 255, 255, 0.1);
}
.hero[data-state='loading'],
.hero[data-state='error'] {
  background: var(--sand-soft);
  color: var(--ink);
  border: 1px solid var(--line);
}
.hero[data-state='off'] .hero__stats { border-top-color: rgba(254, 250, 224, 0.15); }
.hero[data-state='off'] .gauge__tube { fill: rgba(255, 255, 255, 0.08); stroke: rgba(254, 250, 224, 0.3); }
.hero[data-state='off'] .gauge__wave { fill: var(--brand-gold); }
.hero[data-state='off'] .gauge__min { stroke: rgba(254, 250, 224, 0.6); }
.hero[data-state='off'] .gauge__min-label { fill: rgba(254, 250, 224, 0.8); }

.hero__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  margin-top: 10px;
}

.hero__verdict {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: clamp(34px, 10vw, 48px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: var(--brand-cream);
}
.hero[data-state='loading'] .hero__verdict,
.hero[data-state='error'] .hero__verdict { font-size: clamp(24px, 7vw, 32px); font-family: var(--font); }

.hero__sub {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.48;
  color: rgba(254, 250, 224, 0.9);
}
.hero__sub strong { font-weight: 700; color: #FFFFFF; }
.hero__sub a { color: var(--brand-gold-light); text-underline-offset: 3px; font-weight: 600; }

.gauge { width: 64px; height: 140px; overflow: visible; }
.hero[data-state='loading'] .gauge,
.hero[data-state='error'] .gauge,
.hero[data-state='loading'] .hero__stats,
.hero[data-state='error'] .hero__stats { display: none; }

.gauge__tube { fill: rgba(255, 255, 255, 0.08); stroke: rgba(254, 250, 224, 0.35); stroke-width: 1.5; }
.gauge__water { transition: transform 0.8s ease; }
.gauge__wave { fill: var(--brand-gold); animation: wave 3.2s linear infinite; }
.gauge__min { stroke: var(--brand-cream); stroke-width: 2; stroke-dasharray: 4 3; }
.gauge__min-label { fill: var(--brand-cream); font-size: 11px; font-weight: 700; }

@keyframes wave { to { transform: translateX(38px); } }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(254, 250, 224, 0.2);
}
.stat dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.stat dd {
  font-size: 17px;
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  color: var(--brand-cream);
}
.stat .stat__sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(254, 250, 224, 0.7);
  margin-top: 0;
  white-space: normal;
  line-height: 1.3;
}
#stat-next-sub span { display: block; }

.trend::before { display: inline-block; margin-right: 4px; font-weight: 700; }
.trend--rising::before { content: '↗'; }
.trend--falling::before { content: '↘'; }
.trend--turning::before { content: '→'; }

/* ── Day chips ────────────────────────────────────────────────────────── */

.days-wrap { margin-inline: -16px; }
.days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 4px 16px 8px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.days::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(13, 27, 14, 0.04);
  scroll-snap-align: start;
  cursor: pointer;
  line-height: 1.15;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.chip:active { transform: scale(0.96); }
.chip__dow { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.chip__date { font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin-top: 3px; color: var(--ink); }
.chip__month { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.chip__hours {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.chip__hours::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-green-light); }

.chip--none {
  background: #EAE6DC;
  border-color: rgba(107, 112, 92, 0.22);
  box-shadow: none;
  opacity: 0.52;
  filter: grayscale(0.5);
}
.chip--none:hover {
  opacity: 0.8;
  filter: none;
}
.chip--none .chip__dow,
.chip--none .chip__month { color: #8C9280; }
.chip--none .chip__date { color: #7B8170; }
.chip--none .chip__hours {
  color: #8C9280;
  font-weight: 500;
  font-size: 10px;
}
.chip--none .chip__hours::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #8C9280;
}

.chip[aria-pressed='true'] {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--brand-cream);
  box-shadow: 0 6px 18px -4px rgba(27, 67, 50, 0.4);
}
.chip[aria-pressed='true'] .chip__dow,
.chip[aria-pressed='true'] .chip__month { color: var(--brand-gold); }
.chip[aria-pressed='true'] .chip__date { color: var(--brand-cream); }
.chip[aria-pressed='true'] .chip__hours { color: var(--brand-cream); }
.chip[aria-pressed='true'] .chip__hours::before { background: var(--brand-gold); }

.chip--none[aria-pressed='true'] {
  background: #3A453C;
  border-color: #3A453C;
  color: #E5E7EB;
  opacity: 0.95;
  filter: none;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.3);
}
.chip--none[aria-pressed='true'] .chip__dow,
.chip--none[aria-pressed='true'] .chip__month,
.chip--none[aria-pressed='true'] .chip__hours { color: #D1D5DB; }
.chip--none[aria-pressed='true'] .chip__date { color: #FFFFFF; }
.chip--none[aria-pressed='true'] .chip__hours::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #D1D5DB;
}

/* ── Cards ────────────────────────────────────────────────────────────── */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 4px;
  color: var(--brand-green);
}
.card__meta { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.card__meta:empty { display: none; }

.stepper { display: flex; gap: 8px; flex: none; }
.stepper__btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--brand-green);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.stepper__btn:hover:not(:disabled) { background: var(--sand-soft); border-color: var(--brand-gold); }
.stepper__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stepper__btn:disabled { opacity: 0.3; cursor: default; }

/* Timeline Strip */
.timeline { margin-top: 18px; }
.strip {
  position: relative;
  height: 16px;
  border-radius: 8px;
  background: var(--closed);
  box-shadow: inset 0 0 0 1px var(--line);
}
.strip__seg {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 8px;
  background: var(--brand-green-light);
}
.strip__seg--long { background: rgba(45, 106, 79, 0.35); }
.strip__seg + .strip__seg--long { border-radius: 0 8px 8px 0; }
.strip__seg:not(.strip__seg--long) { border-radius: 8px 0 0 8px; }
.strip__high {
  position: absolute;
  top: -9px;
  width: 0;
  height: 0;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top: 6px solid var(--brand-gold);
  border-bottom: 0;
}
.strip__now {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
  border-radius: 1px;
}
.strip-axis { position: relative; height: 18px; margin-top: 6px; font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.strip-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.strip-axis span:first-child { transform: none; }
.strip-axis span:last-child { transform: translateX(-100%); }

/* Session details */
.sessions { margin-top: 10px; }
.session { padding-top: 14px; border-top: 1px solid var(--line); }
.session + .session { margin-top: 14px; }
.session__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.session__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.session__start {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand-green);
}
.session__why { font-size: 13px; color: var(--ink-2); }
.session__facts { margin: 12px 0 0; display: grid; gap: 0; }
.session__fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.session__fact dt { color: var(--ink-2); }
.session__fact dd { font-weight: 700; text-align: right; color: var(--brand-green); }
.session--past { opacity: 0.5; }
.session--empty { padding-top: 14px; }
.session__none { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--ink); }
.session__reason { margin-top: 4px; font-size: 14px; color: var(--ink-2); }

.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sand-soft);
  color: var(--brand-green);
}
.badge--now { background: var(--brand-green); color: var(--brand-cream); }

.link-btn {
  margin-top: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--brand-green);
  border-radius: 999px;
  background: none;
  color: var(--brand-green);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.link-btn:hover {
  background: rgba(27, 67, 50, 0.05);
}

.fineprint { margin-top: 12px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.fineprint strong { color: var(--brand-green); }

/* ── Chart ────────────────────────────────────────────────────────────── */

.chart { position: relative; margin-top: 10px; min-height: 236px; }
.chart__svg { display: block; font-family: var(--font); user-select: none; -webkit-user-select: none; }
.chart__svg:focus-visible { outline-offset: 4px; }
.chart__empty { padding: 90px 0; text-align: center; color: var(--ink-2); }

.c-closed { fill: var(--closed); }
.c-grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.c-axis { fill: var(--ink-2); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.c-area { fill: var(--brand-green-light); fill-opacity: 0.14; }
.c-session { fill: var(--brand-gold); fill-opacity: 0.5; }
.c-session--long { fill-opacity: 0.25; }
.c-start { stroke: var(--brand-green); stroke-width: 1.5; }
.c-ready { fill: var(--brand-green-light); fill-opacity: 0.55; }
.c-min { stroke: var(--clay); stroke-width: 1.5; stroke-dasharray: 5 4; }
.c-min-label,
.c-label,
.c-now-label {
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.c-min-label { fill: var(--clay); font-size: 11px; font-weight: 600; }
.c-line { fill: none; stroke: var(--brand-green); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.c-dot { fill: var(--brand-green); stroke: var(--paper); stroke-width: 2; }
.c-label { fill: var(--ink); font-size: 11px; font-weight: 700; }
.c-label--sub { fill: var(--ink-2); font-weight: 500; }
.c-now { stroke: var(--brand-gold); stroke-width: 1.8; }
.c-now-label { fill: var(--brand-green-dark); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; }
.c-now-dot { fill: var(--brand-gold); stroke: var(--paper); stroke-width: 2.5; }
.c-cross-line { stroke: var(--ink); stroke-width: 1; stroke-opacity: 0.7; }
.c-cross-dot { fill: var(--paper); stroke: var(--brand-green); stroke-width: 2.5; }
.c-hit { fill: transparent; cursor: crosshair; touch-action: pan-y; }

.chart__tip {
  position: absolute;
  top: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--brand-green-dark);
  color: var(--brand-cream);
  border: 1px solid rgba(212, 163, 115, 0.3);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.4);
}
.chart__tip[hidden] { display: none; }
.chart__tip-value { font-size: 15px; font-weight: 700; color: var(--brand-gold); }
.chart__tip-time { opacity: 0.8; }
.chart__tip-state { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.chart__tip-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.chart__tip-state.is-ready::before { background: var(--brand-gold); }
.chart__tip-state.is-low::before { background: #d98c63; }
.chart__tip-state.is-off::before { background: var(--sand); }

.key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.key li { display: inline-flex; align-items: center; gap: 6px; }
.key__sw { width: 14px; height: 10px; border-radius: 2px; }
.key__sw--ready { background: rgba(45, 106, 79, 0.6); }
.key__sw--min { height: 0; border-top: 2px dashed var(--clay); border-radius: 0; }
.key__sw--session { background: rgba(212, 163, 115, 0.6); box-shadow: inset 2px 0 0 var(--brand-green); }
.key__sw--closed { background: var(--closed); box-shadow: inset 0 0 0 1px var(--line); }

.tide-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tide-table th,
.tide-table td { padding: 10px 0; border-top: 1px solid var(--line); text-align: right; font-size: 14px; }
.tide-table th { text-align: left; font-weight: 600; white-space: nowrap; }
.tide-table td { font-weight: 700; padding-left: 12px; color: var(--brand-green); }
.tide-table td:last-child { color: var(--ink-2); font-weight: 500; width: 5.5em; }
.tt-tag {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--sand-soft);
  color: var(--brand-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.tt-icon { display: inline-block; width: 0; height: 0; margin-right: 10px; border: 5px solid transparent; vertical-align: 1px; }
.tt-icon--high { border-bottom: 7px solid var(--brand-green); border-top: 0; }
.tt-icon--low { border-top: 7px solid var(--brand-gold); border-bottom: 0; }

.sun { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }

/* ── Call To Action (Bottom) ──────────────────────────────────────────── */

.cta {
  position: relative;
  overflow: hidden;
  padding: 32px 24px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
  border: 1px solid rgba(212, 163, 115, 0.25);
  box-shadow: 0 12px 32px -8px rgba(13, 27, 14, 0.4);
  color: var(--brand-cream);
  text-align: center;
}
.cta__mark { width: 52px; height: 52px; color: var(--brand-gold); margin: 0 auto; display: block; }
.cta__title {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--brand-cream);
}
.cta__text { margin: 8px auto 0; max-width: 34ch; font-size: 14.5px; opacity: 0.85; line-height: 1.5; }
.cta__buttons { display: grid; gap: 12px; margin-top: 22px; }
.cta__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 16px; }
.cta__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-gold);
  text-underline-offset: 4px;
  transition: color 0.15s;
}
.cta__links a:hover {
  color: var(--brand-cream);
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.1s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--sand {
  background: var(--brand-gold);
  color: var(--brand-green-dark);
}
.btn--sand:hover {
  background: var(--brand-gold-light);
}
.btn--olive {
  background: var(--brand-green);
  color: var(--brand-cream);
}
.btn--olive:hover {
  background: var(--brand-green-light);
}
.btn--outline {
  border: 1.5px solid rgba(254, 250, 224, 0.4);
  color: var(--brand-cream);
}
.btn--outline:hover {
  border-color: var(--brand-cream);
  background: rgba(254, 250, 224, 0.08);
}
.btn--icon {
  width: 52px;
  padding: 0;
  flex: none;
  border: 1.5px solid var(--brand-green);
  color: var(--brand-green);
  background: var(--paper);
}
.btn--icon:hover {
  background: var(--sand-soft);
}
.btn__icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn__icon .btn__icon-fill { fill: currentColor; stroke: none; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer { padding: 12px 4px 0; text-align: center; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.footer p + p { margin-top: 6px; }
.footer__wave { width: 72px; height: 12px; margin-bottom: 8px; fill: none; stroke: var(--brand-gold); stroke-width: 1.8; stroke-linecap: round; }
.footer a { color: var(--brand-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Sticky Booking Dock ──────────────────────────────────────────────── */

.dock {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  display: flex;
  gap: 10px;
  padding: 10px max(16px, calc((100% - var(--page-max)) / 2 + 16px)) calc(10px + env(safe-area-inset-bottom));
  background: rgba(254, 250, 224, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(27, 67, 50, 0.12);
  transition: transform 0.25s ease;
}
.dock__book { flex: 1; }
.dock--hidden { transform: translateY(110%); }

/* ── States ───────────────────────────────────────────────────────────── */

.no-data .days-wrap,
.no-data .card { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 600px) {
  .cta__buttons { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile Optimizations (<= 480px) ─────────────────────────────────── */

@media (max-width: 480px) {
  .topbar {
    padding-inline: 12px;
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-bottom: 10px;
    gap: 8px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .brand__wave-svg {
    width: 17px;
    height: 17px;
  }
  .brand__text {
    min-width: 0;
  }
  .brand__name {
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand__tag {
    font-size: 8.5px;
  }
  .topbar__home {
    display: none; /* Hide home text to prevent header crowding on small phones */
  }
  .topbar__book {
    padding: 7px 13px;
    font-size: 11px;
    letter-spacing: 0.04em;
    min-height: 36px;
  }

  .page {
    padding-inline: 12px;
    padding-top: 12px;
  }
  .page > * + * {
    margin-top: 14px;
  }

  .hero {
    padding: 18px 14px 16px;
    border-radius: 20px;
  }
  .hero__head {
    gap: 8px;
  }
  .hero__verdict {
    font-size: clamp(28px, 8.5vw, 36px);
  }
  .gauge {
    width: 54px;
    height: 124px;
  }
  .hero__stats {
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
  }
  .stat dt {
    font-size: 9px;
  }
  .stat dd {
    font-size: 15px;
  }
  .stat .stat__sub {
    font-size: 11px;
    word-break: break-word;
  }

  .days-wrap {
    margin-inline: -12px;
  }
  .days {
    padding-inline: 12px;
    gap: 6px;
  }
  .chip {
    width: 72px;
    padding: 8px 3px 8px;
    border-radius: 15px;
  }
  .chip__date {
    font-size: 21px;
  }
  .chip__dow {
    font-size: 9.5px;
  }

  .card {
    padding: 16px 14px;
    border-radius: 18px;
  }
  .card__title {
    font-size: 20px;
  }
  .session__start {
    font-size: 27px;
  }
  .session__fact {
    font-size: 13px;
  }

  .cta {
    padding: 24px 16px 20px;
    border-radius: 20px;
  }
  .cta__title {
    font-size: 20px;
  }
  .btn {
    min-height: 48px;
    font-size: 14px;
    padding: 0 18px;
  }

  .dock {
    padding-inline: 12px;
    padding-top: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
}
