/* ==========================================================================
   Whitefish Lodge and Cabins — north-woods / lakefront design system
   Self-hosted fonts, no external CDN. Mobile-first.
   ========================================================================== */

/* ---- Fonts (self-hosted woff2, one-time build fetch; see build.py) ---- */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Palette (committed hexes) ---- */
:root {
  --forest: #1F3D2B;
  --pine: #2C5238;
  --lake: #1B5566;
  --wood: #B07C43;
  --campfire: #C4562A;
  --cream: #F6F1E7;
  --paper: #FFFFFF;
  --ink: #211E1A;
  --mist: #6B7A70;

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

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 6px;
  --max-width: 1200px;
  --shadow-soft: 0 12px 32px -16px rgba(33, 30, 26, 0.35);
  --shadow-card: 0 6px 18px -10px rgba(33, 30, 26, 0.25);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--lake); }
a:hover { color: var(--forest); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw + 1rem, 3.75rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 1rem, 1.6rem); }
p { margin: 0 0 var(--space-2); }
ul, ol { padding-left: 1.25rem; }
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ---- Utility ---- */
.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;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wood);
  border-bottom: 2px solid var(--wood);
  padding-bottom: 0.25rem;
  margin-bottom: var(--space-2);
}
.section {
  padding: var(--space-5) 0;
}
.section--tight { padding: var(--space-4) 0; }
.section--forest {
  background: var(--forest);
  color: var(--cream);
}
.section--forest h2, .section--forest h3 { color: var(--cream); }
.text-center { text-align: center; }
.mist { color: var(--mist); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-campfire {
  background: var(--campfire);
  color: var(--paper);
  box-shadow: var(--shadow-card);
}
.btn-campfire:hover { background: #a94820; color: var(--paper); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-lake {
  background: var(--lake);
  color: var(--paper);
}
.btn-lake:hover { background: #143f4c; color: var(--paper); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  background: var(--forest);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
}
.brand-emblem {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
  font-weight: 600;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wood);
  font-weight: 600;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(246, 241, 231, 0.4);
  border-radius: var(--radius);
  color: var(--cream);
  width: 44px;
  height: 40px;
  cursor: pointer;
}
.nav-toggle-bars { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav {
  display: none;
  width: 100%;
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: var(--space-2) 0 var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.site-nav a:not(.btn) {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(246, 241, 231, 0.12);
}
.site-nav a:not(.btn):hover { color: var(--wood); }
.site-nav .btn { margin-top: var(--space-1); align-self: flex-start; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important;
    width: auto;
    align-items: center;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: var(--space-3);
  }
  .site-nav a:not(.btn) { border-bottom: none; padding: 0; }
  .site-nav .btn { margin-top: 0; }
}

/* ==========================================================================
   Hero (lakefront SVG scene)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper);
}
.hero-scene {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
}
@media (min-width: 640px) {
  .hero-scene { aspect-ratio: 16 / 10; }
}
@media (min-width: 1024px) {
  .hero-scene { aspect-ratio: 21 / 9; }
}
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4) var(--space-3) var(--space-5);
  background: linear-gradient(180deg, rgba(31,61,43,0) 30%, rgba(20,32,23,0.82) 100%);
}
.hero-copy .container { padding: 0; }
.hero-copy h1 { color: var(--paper); }
.hero-copy .eyebrow { color: var(--wood); border-color: var(--wood); }
.hero-lede { max-width: 46ch; font-size: 1.1rem; margin-bottom: var(--space-3); }
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* page hero (smaller, non-home pages) */
.page-hero {
  background: var(--forest);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.page-hero .hero-scene { aspect-ratio: 21 / 9; min-height: 220px; }
.page-hero .hero-copy { justify-content: center; padding: var(--space-4) var(--space-3); background: linear-gradient(180deg, rgba(20, 32, 23, 0.55), rgba(20, 32, 23, 0.8)); }
.page-hero h1 { color: var(--paper); margin-bottom: 0.4rem; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.page-hero .eyebrow { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }

/* ==========================================================================
   Social proof band
   ========================================================================== */
.proof-band {
  background: var(--pine);
  color: var(--cream);
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-3) 0;
}
@media (min-width: 640px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); text-align: left; }
}
.proof-item { display: flex; flex-direction: column; gap: 0.15rem; }
.proof-stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--wood);
}
.proof-label {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--cream);
  opacity: 0.9;
}

/* ==========================================================================
   Cards / gallery scene placeholders
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.card-body { padding: var(--space-3); }
.card-body h3 { margin-bottom: 0.4rem; }

.scene-tile {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.scene-tile svg { width: 100%; height: 100%; display: block; }
.scene-label {
  position: absolute;
  bottom: var(--space-1);
  left: var(--space-1);
  right: var(--space-1);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Real photography — hero images, gallery tiles, photo bands, figures
   ========================================================================== */
img.hero-scene { object-fit: cover; }

.photo-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: var(--forest);
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Readability scrim behind labels that sit on photography. Only tiles that
   actually carry a label get darkened; label-less tiles stay untouched. */
.photo-tile:has(.scene-label)::after,
.scene-tile:has(img):has(.scene-label)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(10, 14, 18, 0) 0%, rgba(10, 14, 18, 0.78) 100%);
  pointer-events: none;
}
.photo-tile .scene-label,
.scene-tile .scene-label { z-index: 1; }
.photo-tile--tall { aspect-ratio: 3 / 4; }
.photo-tile--wide { aspect-ratio: 2 / 1; }
/* Inside a .card the card already carries radius + shadow */
.card .photo-tile { border-radius: 0; box-shadow: none; }
.season-card .photo-tile img { transition: transform 0.25s ease; }
.season-card:hover .photo-tile img { transform: scale(1.04); }

/* Full-width photo band (home aurora teaser) */
.photo-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.photo-band > img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.photo-band-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4) 0;
  background: linear-gradient(180deg, rgba(10, 14, 18, 0) 35%, rgba(10, 14, 18, 0.78) 100%);
  color: var(--cream);
}
.photo-band-copy h2 { color: var(--paper); }
.photo-band-copy .eyebrow { color: var(--wood); border-color: var(--wood); }
.photo-band-copy p { max-width: 56ch; }

/* Editorial figure inside article bodies */
.photo-figure { margin: var(--space-3) 0; }
.photo-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.photo-figure--portrait { max-width: 420px; }
.photo-figure figcaption {
  font-size: 0.85rem;
  color: var(--mist);
  margin-top: 0.5rem;
}
.grid--figures { align-items: start; }

/* ==========================================================================
   Rate card / spec list
   ========================================================================== */
.rate-card {
  background: var(--paper);
  border: 1px solid rgba(44, 82, 56, 0.15);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
}
.rate-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--forest);
  font-weight: 600;
}
.rate-price span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--mist);
  font-weight: 500;
}
.spec-list {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
}
.spec-list li {
  font-size: 0.92rem;
  padding-left: 1.4rem;
  position: relative;
}
.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 8px;
  height: 8px;
  background: var(--wood);
  border-radius: 50%;
}
.amenity-list {
  columns: 1;
  gap: var(--space-3);
  padding-left: 1.1rem;
}
@media (min-width: 640px) { .amenity-list { columns: 2; } }

.wood-divider {
  border: none;
  border-top: 3px solid var(--wood);
  width: 64px;
  margin: var(--space-3) 0;
}

table.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-2) 0 var(--space-3);
  font-size: 0.95rem;
}
table.spec-table th, table.spec-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(44, 82, 56, 0.15);
}
table.spec-table th {
  font-family: var(--font-display);
  color: var(--forest);
  font-weight: 600;
  background: rgba(44, 82, 56, 0.06);
}

/* ==========================================================================
   Booking / Book Direct band
   ========================================================================== */
.book-band {
  background: var(--campfire);
  color: var(--paper);
}
.book-band h2 { color: var(--paper); }
.book-band .eyebrow { color: var(--paper); border-color: rgba(255,255,255,0.6); }

.fallback-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.fallback-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Seasonal teaser strip
   ========================================================================== */
.season-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.season-card:hover .scene-tile { transform: scale(1.02); }
.season-card .scene-tile { transition: transform 0.25s ease; }
.season-card h3 { color: var(--forest); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
}
.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  padding: var(--space-5) 0 var(--space-3);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer-grid h4 {
  color: var(--wood);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--wood); }
.nap-block address {
  font-style: normal;
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(246,241,231,0.12);
  padding: var(--space-2) 0 var(--space-4);
  font-size: 0.82rem;
  color: var(--mist);
}
.footer-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }

/* ==========================================================================
   About page policies + map
   ========================================================================== */
.map-embed {
  border: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.policy-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.policy-list li {
  background: var(--paper);
  border-left: 4px solid var(--wood);
  padding: var(--space-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Things-to-do hub + seasonal article body
   ========================================================================== */
.article-body h2 { margin-top: var(--space-4); }
.article-body p { max-width: 68ch; }
.pull-fact {
  background: var(--paper);
  border: 1px dashed var(--wood);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--forest);
  max-width: 60ch;
  margin: var(--space-3) 0;
}

/* ==========================================================================
   Book picker (book.html)
   ========================================================================== */
.picker-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .picker-grid { grid-template-columns: repeat(3, 1fr); } }
.picker-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--pine);
}
.picker-card h3 { margin-bottom: 0.3rem; }
.coming-soon-banner {
  background: rgba(196, 86, 42, 0.1);
  border: 1px solid rgba(196, 86, 42, 0.35);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

/* Ensure nothing overflows small screens */
@media (max-width: 374px) {
  body { font-size: 16px; }
}

/* ==========================================================================
   Booking widget (phase 03) — picker, calendar, form, summary, error
   ========================================================================== */

/* Utility the orchestrator toggles: #booking-widget starts hidden, JS
   reveals it after boot; #booking-fallback starts visible, JS hides it
   only after the widget boots successfully. */
.is-hidden { display: none !important; }

.fallback-contact--center { justify-content: center; }

.booking-fallback {
  background: rgba(196, 86, 42, 0.1);
  border: 1px solid rgba(196, 86, 42, 0.35);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}
.booking-fallback h3 { margin-bottom: 0.4rem; }

.booking-widget { margin-bottom: var(--space-5); }

/* ---- Unit-type picker ---- */
.booking-picker {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
  margin: var(--space-3) 0 var(--space-4);
}
@media (min-width: 640px) {
  .booking-picker { grid-template-columns: repeat(2, 1fr); }
}
.picker-option {
  background: var(--paper);
  border: 2px solid rgba(44, 82, 56, 0.15);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
  font: inherit;
  color: inherit;
}
.picker-option:hover { transform: translateY(-2px); }
.picker-option h3 { margin-bottom: 0.3rem; }
.picker-option .picker-rate {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest);
}
.picker-option.is-selected {
  border-color: var(--campfire);
  box-shadow: 0 0 0 2px var(--campfire);
}

/* Single-item campground variant of the phase-01 picker-grid (overrides the
   3-column rule above at the same specificity via source order). */
.picker-grid--campground { grid-template-columns: 1fr; max-width: 420px; }

/* ---- Two-month availability calendar (WFCCalendar) ---- */
.wfc-calendar {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  position: relative;
  min-width: 0;
}
.wfc-calendar.is-loading { opacity: 0.6; pointer-events: none; }

.cal-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.cal-nav button {
  background: var(--cream);
  border: 1px solid rgba(44, 82, 56, 0.2);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--forest);
}
.cal-nav button:disabled { opacity: 0.4; cursor: not-allowed; }

.cal-months {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  min-width: 0;
}
@media (min-width: 760px) {
  .cal-months { grid-template-columns: repeat(2, 1fr); }
}

.cal-month { width: 100%; min-width: 0; }
.cal-month-heading {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: var(--space-1);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  margin-bottom: 2px;
}
.cal-weekday {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mist);
  text-transform: uppercase;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  min-width: 0;
}
.cal-day, .cal-day-blank {
  aspect-ratio: 1 / 1;
  min-width: 0;
}
.cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1px solid rgba(44, 82, 56, 0.12);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.cal-day:hover:not(:disabled) { background: rgba(27, 85, 102, 0.12); }
.cal-day.is-today { border-color: var(--wood); border-width: 2px; }
.cal-day.is-unavailable {
  background: rgba(107, 122, 112, 0.15);
  color: var(--mist);
  text-decoration: line-through;
  cursor: not-allowed;
}
.cal-day.is-selected { background: var(--campfire); color: var(--paper); border-color: var(--campfire); }
.cal-day.is-in-range { background: rgba(196, 86, 42, 0.25); }

.cal-hint {
  min-height: 1.2em;
  color: var(--campfire);
  font-size: 0.88rem;
  margin: var(--space-2) 0 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.cal-retry {
  background: var(--cream);
  border: 1px solid rgba(44, 82, 56, 0.2);
  border-radius: var(--radius);
  padding: 0.25rem 0.75rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--forest);
}

/* ---- Guest form ---- */
.booking-form { margin-top: var(--space-3); }
.form-row {
  margin-bottom: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-row label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--forest);
}
.form-row input, .form-row textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(44, 82, 56, 0.25);
  border-radius: var(--radius);
  background: var(--paper);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--lake);
  outline-offset: 1px;
}
.form-row input.has-error, .form-row textarea.has-error {
  border-color: var(--campfire);
}
.field-error {
  color: var(--campfire);
  font-size: 0.82rem;
  min-height: 1.1em;
}
#booking-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---- Price + deposit summary ---- */
.booking-summary {
  background: rgba(44, 82, 56, 0.06);
  border-left: 4px solid var(--wood);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-2) var(--space-3);
  margin: var(--space-3) 0;
}
.summary-line { margin: 0 0 0.3rem; }
.summary-deposit {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--forest);
}
.summary-balance { color: var(--mist); font-size: 0.9rem; }

/* ---- Error / retry state (409 / 422 / 502 / network) ---- */
.booking-error {
  background: rgba(196, 86, 42, 0.12);
  border: 1px solid rgba(196, 86, 42, 0.4);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-3);
}
.booking-error-message { color: var(--campfire); font-weight: 600; margin: 0; }

/* Hard requirement: usable at 375px with no horizontal scroll — grids never
   grow past their container (min-width:0 on every flex/grid ancestor above)
   and the two month grids stack to a single column well above 375px. */
@media (max-width: 374px) {
  .cal-day { font-size: 0.78rem; }
}
