/* Gilbert Creek Lodge — mobile-first styles */
:root {
  --forest: #25331f;
  --forest-2: #3a4d30;
  --timber: #8a5a2b;
  --rust: #b0532a;
  --rust-dark: #8f4020;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --stone: #e7dfd0;
  --ink: #1f231d;
  --muted: #5d6157;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(31, 35, 29, 0.12);
  --wrap: 1180px;
  --font-head: "Zilla Slab", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust-dark); }
a:hover { color: var(--rust); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--forest); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }

[id] { scroll-margin-top: 80px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--forest); color: #eef0e8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--timber); margin-bottom: 0.4em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

/* Placeholder content waiting on the owner. Visible on purpose so nothing ships unconfirmed. */
[data-tbd] { background: #fff3c4; outline: 1px dashed #c9a227; border-radius: 4px; padding: 0 4px; }

/* Buttons */
.btn { display: inline-block; background: var(--rust); color: #fff; text-decoration: none; font-weight: 700; padding: 0.85em 1.5em; border-radius: 999px; border: 0; cursor: pointer; font-size: 1rem; transition: background 0.15s; }
.btn:hover { background: var(--rust-dark); color: #fff; }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--stone); color: var(--forest); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.8); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-small { padding: 0.55em 1.1em; font-size: 0.95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(37, 51, 31, 0.97); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.brand:hover { color: #fff; }
.brand-mark { width: 28px; height: 28px; color: #d9b98a; }
.nav-toggle { background: none; border: 0; padding: 12px; cursor: pointer; color: #fff; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--forest); flex-direction: column; padding: 8px 16px 20px; }
.site-nav.open { display: flex; }
.site-nav a { color: #eef0e8; text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-weight: 600; }
.site-nav a.btn { margin-top: 12px; text-align: center; border: 0; color: #fff; }
.site-nav a[aria-current="page"] { color: #d9b98a; }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 22px; padding: 0; background: none; }
  .site-nav a { padding: 0; border: 0; font-size: 0.98rem; }
  .site-nav a.btn { margin: 0; }
}

/* Hero */
.hero { position: relative; color: #fff; min-height: min(88vh, 760px); display: grid; align-items: end; overflow: hidden; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,16,0.15) 30%, rgba(20,26,16,0.78) 100%); }
.hero-content { position: relative; z-index: 1; padding: 120px 16px 48px; max-width: var(--wrap); margin: 0 auto; width: 100%; }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.hero p { font-size: 1.2rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 1.2rem 0 0; padding: 0; list-style: none; font-weight: 600; }
.hero-facts li::before { content: "◆"; color: #d9b98a; margin-right: 6px; font-size: 0.7em; vertical-align: 2px; }

.page-hero { position: relative; color: #fff; overflow: hidden; }
.page-hero picture, .page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(20, 26, 16, 0.55); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 40px; }
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 60ch; font-size: 1.15rem; }
.page-header { padding: 48px 0 8px; }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 18px 20px 20px; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card h3 { margin-bottom: 0.3em; }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } .split-reverse > :first-child { order: 2; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row li { background: var(--paper); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.stat-row strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--forest); }

.check-list { list-style: none; padding: 0; columns: 1; }
@media (min-width: 700px) { .check-list.cols-2 { columns: 2; column-gap: 32px; } }
.check-list li { padding-left: 1.6em; position: relative; margin-bottom: 0.45em; break-inside: avoid; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--forest-2); font-weight: 700; }

/* Season cards */
.season { border-top: 5px solid var(--timber); }
.season-summer { border-color: #6b8f3a; } .season-fall { border-color: #c27a2c; } .season-winter { border-color: #6f8fa8; } .season-groups { border-color: var(--rust); }

/* Direct vs Vrbo */
.compare { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--stone); vertical-align: top; }
.compare thead th { background: var(--forest); color: #fff; }

/* Reviews */
.reviews { display: grid; gap: 18px; }
@media (min-width: 800px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { background: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 0; }
.review blockquote { margin: 0 0 12px; font-size: 1.02rem; }
.review figcaption { font-size: 0.9rem; color: var(--muted); }
.review .score { font-weight: 700; color: var(--forest-2); }

/* Hosts */
.host { display: grid; gap: 24px; align-items: center; }
.host-photo img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; object-position: 50% 40%; box-shadow: var(--shadow); border: 5px solid #fff; }
@media (min-width: 800px) { .host { grid-template-columns: auto 1fr; gap: 40px; } }

/* Rooms */
.room { display: grid; gap: 0; }
.room .card-body ul { margin: 0; }
.bed-tag { display: inline-block; background: var(--stone); border-radius: 999px; padding: 2px 10px; font-size: 0.9rem; font-weight: 600; margin: 2px 4px 2px 0; }

/* Gallery */
.gallery-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.gallery-nav a { display: block; padding: 6px 14px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); text-decoration: none; font-weight: 600; color: var(--forest); }
.gallery-group { margin-bottom: 40px; scroll-margin-top: 80px; }
.gallery-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { display: block; border-radius: 8px; overflow: hidden; background: var(--stone); }
.gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.03); }

.lightbox { border: 0; padding: 0; background: rgba(10, 12, 9, 0.95); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #fff; }
.lightbox::backdrop { background: rgba(10, 12, 9, 0.9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 82vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(0,0,0,0.4); border: 0; color: #fff; font-size: 2.2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; padding: 0 60px; font-size: 0.95rem; }

/* FAQ */
.faq details { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--timber); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 16px; }

/* Policies */
.policy-list dt { font-weight: 700; color: var(--forest); margin-top: 1em; }
.policy-list dd { margin: 0.2em 0 0; }

/* Forms */
.form { display: grid; gap: 14px; max-width: 640px; }
.form label { font-weight: 600; display: grid; gap: 6px; }
.form input, .form textarea, .form select { font: inherit; padding: 0.7em 0.8em; border: 1px solid #c9c1b0; border-radius: 8px; background: #fff; width: 100%; }
.form textarea { min-height: 140px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-status { font-weight: 600; }

.map { height: 360px; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--stone); }

/* Booking shell (calendar widget arrives in phase 3) */
.booking-shell { display: grid; gap: 24px; }
@media (min-width: 950px) { .booking-shell { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.booking-panel { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

/* CTA band & footer */
.cta-band { background: var(--rust); color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.cta-band h2 { color: #fff; margin-bottom: 0.2em; font-size: 1.7rem; }
.cta-band p { margin: 0; }
.site-footer { background: #1a2316; color: #c9cdbf; padding: 40px 0 24px; }
.site-footer a { color: #e6d3b3; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-grid nav { display: grid; gap: 6px; }
.footer-brand { font-family: var(--font-head); font-size: 1.3rem; color: #fff; margin-bottom: 0.3em; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 24px; padding-top: 16px; }

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

/* Availability calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cal-prompt { margin: 0; font-weight: 600; text-align: center; flex: 1; }
.cal-nav { background: var(--cream); border: 1px solid var(--stone); width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--forest); }
.cal-nav:disabled { opacity: 0.35; cursor: default; }
.cal-months { display: grid; gap: 24px; }
.cal-months .cal-month:nth-child(2) { display: none; }
@media (min-width: 700px) { .cal-months { grid-template-columns: 1fr 1fr; } .cal-months .cal-month:nth-child(2) { display: block; } }
.cal-title { font-size: 1.1rem; text-align: center; margin-bottom: 8px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow span { text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; background: #eef3e6; color: var(--forest); position: relative; }
.cal-day:hover:not(:disabled) { background: #d6e4c3; }
.cal-day:disabled { cursor: default; }
.cal-day.past { background: transparent; color: #b8b4aa; }
.cal-day.booked, .cal-day.unavailable { background: #ece6db; color: #a39c8e; text-decoration: line-through; }
.cal-day.too-short { background: #f3f0e9; color: #a39c8e; }
.cal-day.checkout-only { background: linear-gradient(135deg, #eef3e6 50%, #ece6db 50%); }
.cal-day.in-range { background: #f1d9c9; color: var(--rust-dark); text-decoration: none; }
.cal-day.selected { background: var(--rust); color: #fff; text-decoration: none; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; align-items: center; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.lg-available { background: #eef3e6; border: 1px solid #c9d8b4; } .lg-booked { background: #ece6db; } .lg-selected { background: var(--rust); }
.booking-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--stone); }
.guests-field { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.guests-field select { font: inherit; padding: 0.5em 0.6em; border: 1px solid #c9c1b0; border-radius: 8px; background: #fff; }
.guest-fields { display: flex; flex-wrap: wrap; gap: 10px 20px; flex-basis: 100%; }
.guest-note { flex-basis: 100%; margin: -4px 0 0; }
.damage-choice { flex-basis: 100%; border: 1px solid var(--stone); border-radius: 8px; padding: 10px 14px; margin: 0; display: grid; gap: 6px; }
.damage-choice legend { font-weight: 600; padding: 0 4px; }
.damage-choice label { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pay-schedule { margin: 12px 0 0; padding: 10px 12px; background: var(--cream, #f7f2e8); border-radius: 8px; }
.booking-quote { flex-basis: 100%; }
.booking-quote:empty { display: none; }
.link-btn { background: none; border: 0; color: var(--rust-dark); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
#continue-btn { margin-left: auto; }
#continue-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Quote, checkout details, notices */
.quote-table { width: 100%; border-collapse: collapse; margin: 4px 0 0; font-size: 0.98rem; }
.quote-table td, .quote-table th { padding: 5px 0; text-align: left; }
.quote-table td:last-child, .quote-table th:last-child { text-align: right; white-space: nowrap; }
.quote-table tr.tax td { color: var(--muted); font-size: 0.92rem; }
.quote-table tfoot th { border-top: 2px solid var(--stone); padding-top: 10px; font-size: 1.1rem; color: var(--forest); }
.notice { background: #eef3e6; border: 1px solid #c9d8b4; border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
.notice-warn { background: #fff3c4; border-color: #c9a227; }
.form-error { color: #9b2c1c; font-weight: 600; margin: 0 0 8px; }
.booking-details { margin-top: 20px; max-width: none; }
.check-label { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check-label input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
