/* ==========================================================================
   Canebrake Outfitters — Design System
   Tokens sourced from BRAND-GUIDELINES.md (sampled from the logo artwork).
   Ports directly into Next.js as globals.css.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --gold-ember:   #F0B060;
  --gold-primary: #E0A050;
  --gold-amber:   #E09040;
  --gold-copper:  #D08040;
  --gold-deep:    #C07030;

  --ink:    #0A0A0A;
  --char:   #141210;
  --bark:   #2A1F14;
  --timber: #403020;
  --bone:   #EDE6DA;
  --ash:    #9A9088;

  --confirmed: #6B8F4E;
  --pending:   #E0A050;
  --cancelled: #A63D2F;

  --gradient-gold: linear-gradient(135deg, #F0B060 0%, #D08040 55%, #C07030 100%);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --border: 1px solid var(--timber);

  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 84px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-ember); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--bone);
}
h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
p { margin: 0 0 1.1em; }

/* accessible focus — gold ring, meets contrast on ink */
:focus-visible {
  outline: 2px solid var(--gold-ember);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- utilities ---------- */
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right));
}
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-primary); margin-bottom: .9rem;
}
.lede { font-size: 1.15rem; color: #D8D0C4; max-width: 62ch; }
.muted { color: var(--ash); font-size: .95rem; }
.center { text-align: center; }
.stack-lg { padding-block: clamp(64px, 9vw, 112px); }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--timber), transparent); border: 0; margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold-primary); color: var(--ink);
  padding: .75rem 1.25rem; font-weight: 600; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--ink); }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  position: relative; padding-left: 1.4rem; margin-bottom: .6rem; font-size: .97rem;
}
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-primary);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  letter-spacing: .02em; padding: .85rem 1.6rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient-gold); color: #1A1206; }
.btn-primary:hover { filter: brightness(1.08); color: #1A1206; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--gold-primary); border-color: var(--gold-deep); }
.btn-ghost:hover { background: rgba(224,160,80,.09); color: var(--gold-ember); border-color: var(--gold-primary); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.02rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10,10,10,.86);
  backdrop-filter: blur(12px);
  border-bottom: var(--border);
}
.site-header .wrap {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand img { width: 52px; height: auto; }  /* height auto — the mark is 1.02:1, not square */
.brand-name {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  color: var(--bone); line-height: 1.1;
}
.brand-name span { display: block; font-family: var(--font-body); font-size: .66rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-primary); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  color: var(--bone); font-size: .9rem; font-weight: 500; white-space: nowrap;
  position: relative; padding-block: .3rem;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--gold-primary); transition: width .22s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--gold-primary); }

.header-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

/* plain text log-in beside the primary Create Account button */
.login-link {
  color: var(--bone); font-size: .93rem; font-weight: 500;
  white-space: nowrap; padding: .5rem .25rem;
}
.login-link:hover { color: var(--gold-primary); }

/* the drawer CTAs only exist below 1024px — see the responsive block */
.nav-cta { display: none; }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--bone);
  cursor: pointer; padding: .5rem; margin-right: -.5rem;
  min-width: 44px; min-height: 44px;              /* touch target */
  align-items: center; justify-content: center;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline; }

/* stop the page scrolling behind the open drawer */
body.nav-locked { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h)); /* mobile: ignore collapsing browser chrome */
  display: flex; align-items: center;
  padding-block: clamp(56px, 10vw, 80px);
  overflow: hidden;
}
/* PLACEHOLDER: swap for real lodge/marsh photography */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 72% 22%, rgba(224,160,80,.16), transparent 62%),
    radial-gradient(ellipse 90% 60% at 20% 85%, rgba(64,48,32,.5), transparent 70%),
    linear-gradient(180deg, #0C0B0A 0%, #0A0A0A 55%, #080807 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--ink) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
/* badge and buttons on the left, the photograph on the right */
.hero-split {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-inner { max-width: 720px; }
.hero-logo {
  width: min(100%, 480px); height: auto;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--timber);
  box-shadow: 0 26px 70px rgba(0,0,0,.6);
}
.hero h1 { margin-bottom: .35em; }

/* for screen readers and search engines — the page still needs one h1 */
.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;
}
.hero .lede { font-size: 1.22rem; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-meta {
  margin-top: 3.5rem; padding-top: 1.75rem; border-top: var(--border);
  display: flex; flex-wrap: wrap; gap: 2.5rem;
}
.hero-meta div { min-width: 120px; }
.hero-meta strong {
  display: block; font-family: var(--font-display); font-size: 1.7rem;
  color: var(--gold-primary); font-weight: 600; line-height: 1;
}
.hero-meta span { font-size: .82rem; color: var(--ash); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.card {
  background: var(--char); border: var(--border); border-radius: var(--radius-lg);
  padding: 2rem; transition: border-color .22s ease, transform .22s ease;
}
.card:hover { border-color: var(--gold-deep); transform: translateY(-3px); }
.card h3 { margin-bottom: .4em; }
.card-media {
  aspect-ratio: 4/3; border-radius: var(--radius); margin: -2rem -2rem 1.5rem;
  border-bottom: var(--border);
  background: linear-gradient(140deg, #241B12, #14110E 60%, #0E0C0A);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: grid; place-items: center;
  color: var(--timber); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
.card-media-photo { overflow: hidden; }
.card-media-photo img { width: 100%; height: 100%; object-fit: cover; }

/* lodge card photo: rotates every 7s, opens the gallery on click */
.lodge-rotator {
  position: relative; display: block; width: calc(100% + 4rem);
  padding: 0; border: 0; border-bottom: var(--border); font: inherit; cursor: zoom-in;
}
.lodge-rotator img { transition: opacity .6s ease; }
.lodge-rotator img.is-fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .lodge-rotator img { transition: none; } }
.lodge-rotator-hint {
  position: absolute; right: .75rem; bottom: .75rem;
  padding: .3rem .6rem; border-radius: var(--radius);
  background: rgba(10,10,10,.72); color: var(--bone);
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
}
.lodge-rotator:hover .lodge-rotator-hint,
.lodge-rotator:focus-visible .lodge-rotator-hint { color: var(--gold-primary); }
.lodge-rotator:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: -2px; }

/* lodge gallery modal */
.gallery-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 1100px; max-height: calc(100svh - 48px);
  display: flex; flex-direction: column; gap: .75rem;
  background: var(--char); border: var(--border); border-radius: var(--radius-lg);
  padding: 3.25rem 1.25rem 1.25rem; box-shadow: 0 26px 70px rgba(0,0,0,.65);
}
.gallery-stage { position: relative; margin: 0; flex: 1 1 auto; min-height: 0; }
.gallery-stage img {
  width: 100%; height: min(68svh, 640px); object-fit: contain;
  background: var(--ink); border-radius: var(--radius);
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(10,10,10,.72); color: var(--bone);
  border: var(--border); border-radius: 50%; cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.gallery-nav:hover { color: var(--gold-primary); border-color: var(--gold-deep); }
.gallery-prev { left: .75rem; }
.gallery-next { right: .75rem; }
.gallery-count { margin: 0; text-align: center; color: var(--ash); font-size: .85rem; }
.gallery-thumbs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x proximity; overscroll-behavior: contain;
}
.gallery-thumbs button {
  flex: 0 0 auto; width: 96px; aspect-ratio: 4/3; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); opacity: .55; scroll-snap-align: center;
  transition: opacity .2s ease, border-color .2s ease;
}
.gallery-thumbs button:hover { opacity: .85; }
.gallery-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold-primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.price { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-primary); font-weight: 600; }
.price small { font-family: var(--font-body); font-size: .8rem; color: var(--ash); font-weight: 400; letter-spacing: .04em; }

/* the single headline offer — one card carries the price, so it gets the gold edge */
.offer-card { border-color: var(--gold-deep); }
.offer-card:hover { border-color: var(--gold-primary); }
.price-hero { font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1; margin-bottom: .35rem; }
.price-hero small { display: block; margin-top: .6rem; font-size: .88rem; }

/* run-of-the-day list */
.timeline { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.timeline li {
  position: relative; padding-left: 1.5rem; padding-bottom: 1rem;
  font-size: .95rem; color: #D8D0C4;
}
.timeline li::before {
  content: ''; position: absolute; left: 0; top: .52em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-primary); z-index: 1;
}
.timeline li::after {
  content: ''; position: absolute; left: 3px; top: 1.1em; bottom: -.1em;
  width: 1px; background: var(--timber);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline strong {
  display: block; color: var(--bone); font-weight: 600;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .15rem;
}

/* ---------- section head ---------- */
.section-head { max-width: 700px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; }

/* ---------- calendar ---------- */
.cal-shell { background: var(--char); border: var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: var(--border); gap: 1rem; flex-wrap: wrap;
}
.cal-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin: 0; }
.cal-nav { display: flex; gap: .5rem; }
.cal-nav button {
  background: transparent; border: 1px solid var(--timber); color: var(--bone);
  width: 38px; height: 38px; border-radius: var(--radius); cursor: pointer;
  font-size: 1.1rem; line-height: 1; transition: all .2s ease;
}
.cal-nav button:hover { border-color: var(--gold-primary); color: var(--gold-primary); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow {
  padding: .85rem .5rem; text-align: center; font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ash);
  border-bottom: var(--border);
}
.cal-day {
  min-height: 92px; padding: .6rem; border-right: 1px solid rgba(64,48,32,.45);
  border-bottom: 1px solid rgba(64,48,32,.45); position: relative;
  display: flex; flex-direction: column; gap: .35rem;
}
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.is-empty { background: rgba(0,0,0,.25); }
.cal-day .num { font-size: .85rem; color: var(--ash); font-weight: 500; }
.cal-day.is-today .num { color: var(--gold-ember); font-weight: 700; }

.slot {
  font-size: .72rem; padding: .28rem .45rem; border-radius: 3px;
  border-left: 2px solid; line-height: 1.3; cursor: pointer;
  transition: background .18s ease;
}
.slot-open { background: rgba(107,143,78,.14); border-color: var(--confirmed); color: #B4CFA0; }
.slot-open:hover { background: rgba(107,143,78,.26); }
.slot-few { background: rgba(224,160,80,.14); border-color: var(--pending); color: var(--gold-ember); }
.slot-few:hover { background: rgba(224,160,80,.26); }
.slot-full { background: rgba(166,61,47,.13); border-color: var(--cancelled); color: #D69B92; cursor: not-allowed; opacity: .75; }

.legend { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1rem 1.5rem; border-top: var(--border); }
.legend span { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ash); }
.legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }

/* signed-out prompt on calendar */
.cal-gate {
  background: rgba(224,160,80,.07); border: 1px solid var(--gold-deep);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.cal-gate p { margin: 0; font-size: .95rem; }

/* ---------- forms ---------- */
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--bone); margin-bottom: .45rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; font-family: var(--font-body); font-size: 1rem;
  background: var(--ink); color: var(--bone);
  border: 1px solid var(--timber); border-radius: var(--radius);
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-primary); outline: none;
  box-shadow: 0 0 0 3px rgba(224,160,80,.14);
}
.field input::placeholder, .field textarea::placeholder { color: #6B6259; }
.field-hint { font-size: .8rem; color: var(--ash); margin-top: .35rem; }

/* show/hide password: the eye sits inside the right edge of the input */
.pw-field { position: relative; display: block; }
.field .pw-field input { padding-right: 3.25rem; }
.pw-toggle {
  position: absolute; top: 50%; right: .25rem; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--radius);
  color: var(--ash); cursor: pointer; transition: color .2s ease;
}
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--gold-primary); }
.pw-toggle:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: -4px; }
.pw-toggle .icon-hide { display: none; }
.pw-toggle[aria-pressed="true"] .icon-show { display: none; }
.pw-toggle[aria-pressed="true"] .icon-hide { display: block; }

/* validation */
.field-error { font-size: .8rem; color: #D69B92; margin-top: .35rem; }
.field.has-error input,
.field.has-error select { border-color: var(--cancelled); }
.field.has-error input:focus { box-shadow: 0 0 0 3px rgba(166,61,47,.16); }
.field.is-ok input { border-color: var(--confirmed); }

.form-error {
  background: rgba(166,61,47,.12); border: 1px solid var(--cancelled);
  color: #E8B5AC; padding: .85rem 1rem; border-radius: var(--radius);
  font-size: .9rem; margin-bottom: 1.25rem;
}
.form-error[hidden] { display: none; }

/* ---------- modal ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.74); backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px;
  max-height: calc(100svh - 48px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--char); border: var(--border); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: 0 26px 70px rgba(0,0,0,.65);
}
.modal-close {
  position: absolute; top: .6rem; right: .6rem;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; color: var(--ash); cursor: pointer;
  border-radius: var(--radius); transition: color .2s ease;
}
.modal-close:hover { color: var(--gold-primary); }
body.modal-open { overflow: hidden; }

/* ---------- signed-in calendar state ---------- */
.cal-gate.is-authed { border-color: var(--confirmed); background: rgba(107,143,78,.08); }
.cal-gate.is-authed strong { color: #B4CFA0; }
.slot-held { background: rgba(224,160,80,.2); border-color: var(--gold-ember); color: var(--gold-ember); }
.cal-day.is-actionable { cursor: pointer; }
.cal-day.is-actionable:hover { background: rgba(224,160,80,.07); }

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

.btn-block { width: 100%; }

.auth-card {
  max-width: 440px; margin: clamp(48px, 8vw, 96px) auto;
  background: var(--char); border: var(--border); border-radius: var(--radius-lg); padding: 2.5rem;
}
.auth-logo { width: 76px; height: auto; margin: 0 auto 1.5rem; }
.auth-title { font-size: 1.85rem; margin-bottom: .3em; }
.auth-sub { margin-bottom: 1.85rem; }
.auth-note { margin-top: 1rem; }
.auth-alt {
  margin: 1.75rem 0 0; padding-top: 1.5rem; border-top: var(--border);
  text-align: center; font-size: .93rem; color: var(--ash);
}

/* ---------- footer ---------- */
.site-footer { border-top: var(--border); padding-block: 3.5rem 2rem; background: #080807; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-grid h4 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-primary); margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .55rem; }
.footer-grid a { color: var(--ash); font-size: .93rem; }
.footer-grid a:hover { color: var(--gold-primary); }
.footer-bottom {
  border-top: var(--border); padding-top: 1.75rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: #6B6259;
}

/* ---------- placeholder marker (remove once real content lands) ---------- */
.todo {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #0A0A0A; background: var(--gold-amber);
  padding: .12rem .4rem; border-radius: 2px; vertical-align: middle; margin-left: .4rem;
}

/* ---------- mobile calendar: compact day grid + agenda detail ----------
   Below 640px the week grid can't hold slot chips legibly. Days collapse to
   tap targets with status dots; tapping one reveals its slots in .cal-detail.
   Above 640px .cal-detail stays hidden and the chips render inline as normal. */
.cal-dot-row { display: none; gap: 3px; justify-content: center; margin-top: auto; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; display: block; }
.cal-dot.is-open { background: var(--confirmed); }
.cal-dot.is-few  { background: var(--pending); }
.cal-dot.is-full { background: var(--cancelled); }

.cal-detail { display: none; border-top: var(--border); padding: 1.25rem; }
.cal-detail h4 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-primary);
  margin: 0 0 .9rem;
}
.cal-detail .slot { font-size: .9rem; padding: .7rem .8rem; margin-bottom: .5rem; }
.cal-detail .slot:last-child { margin-bottom: 0; }
.cal-detail .empty { color: var(--ash); font-size: .9rem; margin: 0; }

/* ---------- responsive ---------- */

/* tablet + small laptop — six nav items plus auth need ~1024px to sit on one line */
@media (max-width: 1023px) {
  :root { --gutter: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--char); border-bottom: var(--border);
    padding: .5rem var(--gutter) 1rem;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open a { padding: .95rem 0; width: 100%; border-bottom: 1px solid rgba(64,48,32,.4); }
  .nav.is-open a:last-child { border-bottom: 0; }
  /* the drawer carries the auth CTAs on mobile; header bar is logo + toggle only */
  .header-actions .btn,
  .header-actions .login-link { display: none; }
  .nav-cta { display: block; width: 100%; margin-top: .6rem; border-bottom: 0; }
  .nav.is-open a.nav-cta { border-bottom: 0; padding: .85rem 1.6rem; }
  .nav a:not(.nav-cta) + .nav-cta { margin-top: 1.1rem; }
  .grid-2 { grid-template-columns: 1fr; }

  /* hero stacks: badge, buttons, then the photograph */
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo img { max-width: 460px; margin-inline: auto; }
}

/* phone */
@media (max-width: 640px) {
  :root { --gutter: 18px; --header-h: 68px; }
  body { font-size: 16px; }

  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: 1rem; }
  .brand-name span { font-size: .58rem; letter-spacing: .18em; }

  .hero { min-height: auto; padding-block: 48px 64px; }
  .hero-logo { width: min(88vw, 420px); margin-bottom: 20px; }
  .hero .lede { font-size: 1.08rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-meta {
    margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem;
  }
  .hero-meta div { min-width: 0; }
  .hero-meta strong { font-size: 1.45rem; }

  .section-head { margin-bottom: 2rem; }
  .card { padding: 1.5rem; }
  .card-media { margin: -1.5rem -1.5rem 1.25rem; }
  .lodge-rotator { width: calc(100% + 3rem); }
  .gallery-panel {
    max-width: none; height: 100svh; max-height: 100svh; border: 0; border-radius: 0;
    padding: 3.25rem .75rem calc(1rem + env(safe-area-inset-bottom));
  }
  .gallery-stage img { height: 100%; }
  .gallery-nav { width: 40px; height: 40px; }
  .gallery-thumbs button { width: 72px; }
  .card:hover { transform: none; }
  /* modal goes full screen on a phone */
  .modal { padding: 0; }
  .modal-panel {
    max-width: none; width: 100%; height: 100svh; max-height: 100svh;
    border: 0; border-radius: 0;
    padding: 1.5rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom));
  }
  .auth-card { padding: 1.75rem; margin-block: 32px; }
  .auth-logo { width: 64px; margin-bottom: 1.25rem; }
  .auth-title { font-size: 1.6rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row-city { grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
  .field-row-city .field:first-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* calendar → compact tap grid */
  .cal-head { padding: 1rem 1.1rem; }
  .cal-title { font-size: 1.15rem; }
  .cal-dow { padding: .6rem .2rem; font-size: .62rem; letter-spacing: .04em; }
  .cal-day {
    min-height: 52px; padding: .4rem .2rem; align-items: center; gap: .25rem;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .cal-day .num { font-size: .9rem; color: var(--bone); }
  .cal-day.is-empty { cursor: default; }
  .cal-day.is-selected { background: rgba(224,160,80,.12); box-shadow: inset 0 0 0 1px var(--gold-primary); }
  .cal-day .slot { display: none; }        /* chips move into .cal-detail */
  .cal-dot-row { display: flex; }
  .cal-detail { display: block; }
  .legend { padding: .9rem 1.1rem; gap: 1rem; }
  .legend span { font-size: .78rem; }
  .cal-gate { padding: 1.1rem; }
  .cal-gate .btn { width: 100%; }
}

/* the desktop calendar never scrolls sideways; only the mid-range grid needs it */
.cal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 641px) and (max-width: 760px) {
  .cal-scroll .cal-grid { min-width: 640px; }
}

/* touch devices: hover lifts read as stuck state after a tap */
@media (hover: none) {
  .card:hover { transform: none; border-color: var(--timber); }
  .btn-primary:hover { transform: none; }
}

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

/* ---------- date requests ---------- */
/* A selected date's detail panel shows on every screen size, so the request
   form is reachable on desktop too. */
.cal-detail.is-active { display: block; }
.cal-request { margin-top: 1rem; max-width: 420px; }
.cal-request select, .cal-request textarea { width: 100%; }
.cal-price { font-size: .88rem; color: var(--ash); margin: 0 0 .9rem; }
.cal-note { font-size: .9rem; color: var(--ash); margin: .9rem 0 0; }
.cal-cta { margin-top: 1rem; max-width: 420px; }
.form-success {
  border: 1px solid var(--confirmed); background: rgba(107,143,78,.1); color: #C4DDB2;
  border-radius: var(--radius); padding: .8rem 1rem; margin: .9rem 0 0; font-size: .92rem;
}

/* ---------- reviews ---------- */
.review-list { margin-bottom: 2rem; }
.review { display: flex; flex-direction: column; }
.review-stars { color: var(--gold-primary); letter-spacing: .12em; margin: 0 0 .75rem; }
.review-stars span { color: rgba(237,230,218,.2); }
.review-body { white-space: pre-line; margin: 0 0 1rem; }
.review-by { margin-top: auto; font-size: .88rem; color: var(--ash); }
.review-verified { color: #B4CFA0; margin-left: .35rem; }
.review-write { max-width: 640px; }
.review-write h3 { margin-top: 0; }
.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; border: 0; padding: 0; margin: 0 0 1rem; }
.star-pick legend { float: left; width: 100%; margin-bottom: .35rem; font-size: .9rem; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 2rem; line-height: 1; cursor: pointer; color: rgba(237,230,218,.25); padding: .1rem; }
.star-pick input:checked ~ label,
.star-pick label:hover, .star-pick label:hover ~ label { color: var(--gold-primary); }
.star-pick input:focus-visible + label { outline: 2px solid var(--gold-primary); outline-offset: 2px; border-radius: 2px; }
.review-write textarea { width: 100%; }
