/* Cottonwood Ski Home — direct booking site.
   Dependency-free, system-font, mobile-first. Palette: deep pine, warm cream,
   wood amber. */
:root {
  --pine: #1d3a2f;
  --pine-dark: #12241d;
  --pine-soft: #2c5344;
  --cream: #faf6ef;
  --cream-2: #f1e9db;
  --ink: #23281f;
  --muted: #5c665c;
  --line: #ddd5c3;
  --amber: #c07f2a;
  --amber-dark: #9a6419;
  --white: #fff;
  --danger: #a33a2a;
  --ok: #2e6b3e;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(18, 36, 29, .12);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pine-soft); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--pine); }
h3 { font-size: 1.2rem; color: var(--pine); }
p { margin: 0 0 1em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 720px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(29, 58, 47, .97);
  color: var(--cream);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; }
.brand-mark { font-size: 1.5rem; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #cfe0d4; }
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a { color: #e8efe9; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.main-nav a:hover { background: rgba(255,255,255,.1); }
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--amber); color: #fff; font-weight: 700; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px; transition: background .15s;
}
.btn:hover { background: var(--amber-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--pine); border: 2px solid var(--pine); }
.btn-outline:hover { background: var(--pine); color: #fff; }
.btn-small { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; text-align: center; }
.nav-cta { margin-left: 8px; }
@media (max-width: 760px) {
  .main-nav a:not(.nav-cta) { display: none; }
}

/* Hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; background: var(--pine-dark); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,17,.82) 0%, rgba(10,22,17,.35) 55%, rgba(10,22,17,.15) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 48px 20px 40px; width: 100%; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: .15em; color: #fff; }
.hero .tagline { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: #e9efe9; max-width: 640px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 26px; font-size: .98rem; }
.hero-facts span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.rating-line { margin: 0 0 18px; font-weight: 600; }
.rating-line .stars { color: #f5b942; letter-spacing: 2px; }

/* Booking widget */
.booking-card {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; max-width: 560px;
}
.booking-card h2 { font-size: 1.35rem; margin-bottom: 4px; }
.booking-card .save-note { color: var(--ok); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.field input, .field select {
  width: 100%; padding: 11px 12px; font-size: 1rem; border: 1.5px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); font-family: inherit;
}
.field input:focus, .field select:focus { outline: 2px solid var(--pine-soft); border-color: var(--pine-soft); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.form-error { color: var(--danger); font-weight: 600; margin: 10px 0 0; }
.form-note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.quote-box { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.quote-box h3 { font-size: 1rem; margin-bottom: 8px; }
.quote-line { display: flex; justify-content: space-between; padding: 3px 0; font-size: .96rem; }
.quote-line.discount { color: var(--ok); }
.quote-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 1.1rem; }
.quote-line .per-night { color: var(--muted); font-weight: 400; font-size: .85rem; }
.quote-empty { color: var(--muted); font-size: .95rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid figure { margin: 0; cursor: pointer; border-radius: 10px; overflow: hidden; position: relative; }
.gallery-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .25s; }
.gallery-grid figure:first-child img { aspect-ratio: auto; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: .82rem; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.65), transparent); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 18, 14, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 10px; object-fit: contain; }
.lightbox .lb-caption { color: #e8efe9; text-align: center; margin-top: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Rooms */
.room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .room-grid { grid-template-columns: 1fr; } }
.room-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.room-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.room-card .room-body { padding: 16px 18px 18px; }
.room-card h3 { margin-bottom: 4px; }
.room-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Amenities */
.amen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 700px) { .amen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .amen-grid { grid-template-columns: 1fr; } }
.amen-grid li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.amen-grid .icon { flex: 0 0 26px; font-size: 1.25rem; line-height: 1.3; }
.amen-grid small { display: block; color: var(--muted); font-size: .85rem; }

/* Location */
.location-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .location-wrap { grid-template-columns: 1fr; } }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.map-frame img { width: 100%; }
.map-frame figcaption { padding: 10px 14px; font-size: .85rem; color: var(--muted); }
.drive-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.drive-table th, .drive-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.drive-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.drive-table td:last-child { text-align: right; font-weight: 700; color: var(--pine); white-space: nowrap; }
.opening-list { list-style: none; padding: 0; margin: 0; }
.opening-list li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.opening-list .date { font-weight: 700; color: var(--pine); white-space: nowrap; }

/* Rules / FAQ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.rule-list { list-style: none; padding: 0; margin: 0; }
.rule-list li { padding: 9px 0 9px 28px; border-bottom: 1px solid var(--line); position: relative; }
.rule-list li::before { content: "•"; position: absolute; left: 8px; color: var(--amber); font-weight: 700; }
details.faq { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 10px; padding: 14px 18px; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--pine); font-family: var(--font-display); font-size: 1.05rem; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* Availability calendar */
.cal-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .cal-wrap { grid-template-columns: 1fr; } }
.cal { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 14px; }
.cal h3 { text-align: center; font-size: 1.05rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: .9rem; }
.cal-grid .dow { font-weight: 700; color: var(--muted); font-size: .75rem; padding: 4px 0; }
.cal-grid .day { padding: 7px 0; border-radius: 6px; }
.cal-grid .day.blocked { color: #b9b2a2; text-decoration: line-through; background: #f4f0e6; }
.cal-grid .day.past { color: #cfc8b8; }
.cal-grid .day.free { color: var(--pine); font-weight: 600; }
.cal-grid .day.selected { background: var(--pine); color: #fff; font-weight: 700; }
.cal-grid .day.in-range { background: #dce8de; }
.cal-legend { display: flex; gap: 18px; font-size: .85rem; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.cal-legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Booking page */
.book-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .book-layout { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.page-hero { background: var(--pine); color: #fff; padding: 40px 0 32px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: #d7e3d9; margin: 0; }

/* Confirmation */
.confirm-box { text-align: center; max-width: 640px; margin: 0 auto; }
.confirm-box .big-check { font-size: 3.2rem; }
.confirm-details { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 20px auto; }
.confirm-details .quote-line { font-size: 1rem; }

/* Footer */
.site-footer { background: var(--pine-dark); color: #cfe0d4; padding: 40px 0 32px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.footer-grid h3 { color: #fff; font-size: 1rem; }
.site-footer .fine { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); color: #9db3a5; font-size: .82rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 200; background: #fff; color: var(--pine); padding: 8px 14px; border-radius: 8px; }
