:root {
  --forest: #2f4a3c;
  --forest-2: #5f7f6c;
  --sage: #dfe7df;
  --barn: #b44d38;
  --barn-dark: #9a3c29;
  --cream: #faf7f1;
  --paper: #ffffff;
  --ink: #1f2a24;
  --muted: #56645b;
  --line: #e3e0d8;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(31, 42, 36, .25);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--cream); }
img { max-width: 100%; }
a { color: var(--barn-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--forest); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.section { padding: 88px 0; }
.band { background: var(--sage); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--barn-dark); margin-bottom: .6em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Buttons */
.btn { display: inline-block; background: var(--barn); color: #fff; text-decoration: none; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--barn); cursor: pointer; font: inherit; font-weight: 600;
  transition: background .2s, transform .2s; }
.btn:hover { background: var(--barn-dark); border-color: var(--barn-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn-small { padding: 8px 18px; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 241, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  color: var(--forest); text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--barn); }
.site-nav a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--forest); margin: 5px 0; transition: .2s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a.btn { margin-top: 14px; text-align: center; border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; min-height: min(92vh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--forest); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 32, 26, .82) 0%, rgba(20, 32, 26, .55) 45%, rgba(20, 32, 26, .1) 100%),
              linear-gradient(0deg, rgba(20, 32, 26, .55) 0%, rgba(20, 32, 26, 0) 35%); }
.hero-content { position: relative; padding: 72px 0 110px; width: min(720px, 100% - 32px); margin-left: max(16px, (100% - 1120px) / 2); color: #fff; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.eyebrow-light { color: #f2c9a8; }
.lede { font-size: 1.15rem; color: #e9efe9; max-width: 560px; }

.quick-book { display: grid; grid-template-columns: 1fr 1fr .55fr .55fr auto; gap: 10px; align-items: end; margin-top: 26px;
  background: rgba(255, 255, 255, .96); padding: 12px; border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5); color: var(--ink); }
.quick-book label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.quick-book > * { min-width: 0; }
.quick-book input, .quick-book select { padding: 10px 11px; font-size: .95rem; text-transform: none; letter-spacing: 0; min-width: 0; width: 100%; }
.quick-book .btn { padding: 12px 20px; white-space: nowrap; }
@media (max-width: 680px) {
  .quick-book { grid-template-columns: 1fr 1fr; }
  
  .quick-book .btn { grid-column: 1 / -1; }
  .hero-content { padding: 48px 0 96px; }
}

.hero-badges { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges li { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(4px);
  border-radius: 999px; padding: 6px 12px; font-size: .88rem; color: #fff; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-top: -48px; position: relative; overflow: hidden; }
.facts div { padding: 22px; text-align: center; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--forest); }
.facts span { color: var(--muted); font-size: .9rem; }
@media (max-width: 600px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Stay cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-art { height: 170px; display: grid; place-items: center; font-size: 3.2rem; }
.card-art.c0 { background: linear-gradient(135deg, #5f7f6c, #2f4a3c); }
.card-art.c1 { background: linear-gradient(135deg, #e9b38a, #c2563f); }
.card-art.c2 { background: linear-gradient(135deg, #c9d6b6, #7d9a6f); }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body ul { padding-left: 18px; margin: 0 0 18px; color: var(--muted); }
.price { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price strong { font-family: var(--serif); font-size: 1.5rem; color: var(--forest); }
.price a { font-weight: 600; text-decoration: none; }

/* Perks */
.perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.perks li { background: var(--paper); border-radius: var(--radius); padding: 24px; }
.perks .icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.perks h3 { margin-bottom: .3em; }
.perks p { color: var(--muted); margin: 0; }

/* Season tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs button { font: inherit; font-weight: 600; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--paper); color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.tabpanel { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tabpanel[hidden] { display: none; }
.tabpanel article { border-left: 4px solid var(--barn); background: var(--paper); padding: 22px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.tabpanel p { color: var(--muted); margin: 0; }

/* Booking */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }
.booking-form, .success { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.success { text-align: center; padding: 48px 28px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 14px; }
@media (max-width: 480px) { .field-row { flex-direction: column; gap: 0; } }
label { font-weight: 600; font-size: .9rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(95,127,108,.2); }
input[aria-invalid="true"] { border-color: var(--barn); }
.quote { background: var(--cream); border-radius: 10px; padding: 0 16px; margin-bottom: 12px; }
.quote:not(:empty) { padding: 14px 16px; }
.quote div { display: flex; justify-content: space-between; font-size: .95rem; padding: 3px 0; }
.quote .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.form-error { color: var(--barn-dark); font-weight: 500; min-height: 0; margin: 0 0 12px; }
.form-error:empty { display: none; }
.fineprint { font-size: .82rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* Calendar */
.calendar { background: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-top: 20px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head strong { font-family: var(--serif); font-size: 1.15rem; color: var(--forest); }
.cal-head button { background: none; border: 1.5px solid var(--line); border-radius: 50%; width: 36px; height: 36px;
  cursor: pointer; font-size: 1rem; color: var(--forest); }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: .75rem; font-weight: 600; color: var(--muted); padding: 4px 0; }
.cal-grid button { aspect-ratio: 1; border: 0; background: none; border-radius: 8px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink); }
.cal-grid button:hover:not(:disabled) { background: var(--sage); }
.cal-grid button:disabled { color: #b9bdb7; cursor: not-allowed; }
.cal-grid button.booked { background: repeating-linear-gradient(45deg, #eee 0 4px, #f7f7f7 4px 8px); text-decoration: line-through; }
.cal-grid button.in-range { background: var(--sage); border-radius: 0; }
.cal-grid button.sel { background: var(--forest); color: #fff; }
.cal-grid button.today { box-shadow: inset 0 0 0 1.5px var(--forest-2); }
.legend { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.sw-sel { background: var(--forest); }
.sw-off { background: repeating-linear-gradient(45deg, #ddd 0 3px, #f3f3f3 3px 6px); margin-left: 12px; }

/* FAQ */
details { background: var(--paper); border-radius: 12px; padding: 0 22px; margin-bottom: 12px; border: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--barn); line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 6px; }

/* Footer */
.site-footer { background: var(--forest); color: #dfe7df; padding: 48px 0; }
.site-footer .brand { color: #fff; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #a9bcae; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 4px 0; }

/* Photo gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 200px; gap: 12px; }
.gallery-item { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--sage); }
.gallery-item.wide { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(15, 22, 18, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; text-align: center; max-width: min(1200px, 92vw); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.lightbox figcaption { color: #e8ece9; margin-top: 10px; font-size: .95rem; }
.lb-close, .lb-nav { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }

/* Season card photos */
.tabpanel article img { display: block; width: 100%; height: 190px; object-fit: cover; border-radius: 8px; margin-bottom: 14px; background: var(--sage); }

.quote-note { color: var(--barn-dark); font-size: .88rem; padding-top: 6px; }

/* Friendly guest-count note in the booking form */
.guest-note { background: #f3f7f1; border: 1px solid #d5e2d3; border-left: 4px solid var(--forest-2); border-radius: 10px;
  padding: 14px 16px; margin: 4px 0 16px; font-size: .9rem; color: #33413a; }
.guest-note strong { display: block; color: var(--forest); margin-bottom: 6px; font-size: .95rem; }
.guest-note p { margin: 0 0 6px; }
.guest-note p:last-child { margin-bottom: 0; }

.quote .subtotal { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 6px; }
.quote .tax { font-size: .88rem; color: var(--muted); }

/* Ski areas */
.ski-band { background: linear-gradient(180deg, #eef3ef 0%, #dfe7df 100%); }
.ski-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ski-list li { display: flex; gap: 16px; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.ski-time { flex: 0 0 74px; height: 74px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-content: center; text-align: center;
  font-family: var(--serif); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.ski-time small { display: block; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: 2px; }
.ski-list h3 { margin-bottom: .2em; }
.ski-list p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Stay cards: sleeps badge */
.card-art { position: relative; }
.sleeps { position: absolute; left: 14px; bottom: 12px; background: rgba(255, 255, 255, .92); color: var(--forest); font-size: .8rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; }
.price small { color: var(--muted); font-size: .85rem; }

/* Mobile sticky book bar */
.mobile-book { display: none; }
@media (max-width: 820px) {
  .mobile-book { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .25); transition: transform .25s; }
  .mobile-book.hide { transform: translateY(110%); }
  .mobile-book strong { font-family: var(--serif); color: var(--forest); font-size: 1.1rem; }
  .mobile-book span { display: block; font-size: .78rem; color: var(--muted); }
  .mobile-book .btn { padding: 10px 18px; }
  body { padding-bottom: 72px; }
}

/* Footer */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer li a { text-decoration: none; color: #dfe7df; }
.site-footer li a:hover { color: #fff; text-decoration: underline; }
.footer-blurb { color: #c3d1c6; max-width: 340px; margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

#footer-phone:empty { display: none; }

/* Single stay (whole house only): picture left, details right on wider screens */
@media (min-width: 720px) {
  .card:only-child { flex-direction: row; }
  .card:only-child .card-art { flex: 0 0 38%; height: auto; min-height: 240px; font-size: 4rem; }
  .card:only-child .card-body { padding: 26px 30px; }
}
