:root {
  --ground: #F3F5F2;
  --surface: #FFFFFF;
  --ink: #18241F;
  --ink-2: #3C4A43;
  --ink-3: #4A5751;
  --line: #DDE3DC;
  --line-2: #C9D2CB;
  --pine: #1F4D3A;
  --pine-dark: #163828;
  --pine-tint: #E4EFE7;
  --accent: #B4501C;
  --accent-dark: #93400F;
  --perk: #8A3A12;
  --radius: 14px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--pine); }
a:hover { color: var(--pine-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 24px; padding-right: 24px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand svg { color: var(--pine); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 500; }
.site-header nav a { text-decoration: none; padding: 10px 0; }
.site-footer { background: var(--ink); color: #DDE7E0; margin-top: 48px; }
.site-footer a { color: #FFFFFF; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-top: 36px; padding-bottom: 36px; }
.footer-row p { margin: 0 0 6px; }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 18px; color: #FFFFFF; }

/* buttons & fields */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 8px; background: var(--accent); color: #FFFFFF; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { min-height: 44px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
input { font: inherit; font-weight: 400; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink); background: var(--surface); min-width: 0; width: 100%; }

/* hero + search */
.hero { background: var(--pine); color: #FFFFFF; }
.hero .wrap { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.kicker { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #CFE3D6; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); max-width: 820px; }
.lede { margin: 0; font-size: 19px; max-width: 640px; color: var(--pine-tint); }
.proof { margin: 0; font-weight: 600; }
.search { margin-top: 8px; background: var(--surface); border-radius: var(--radius); padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 980px; }
.search .btn { grid-column: 1 / -1; }
.search > * { min-width: 0; }
.search label, .search input { max-width: 100%; box-sizing: border-box; }
.search input[type=date] { -webkit-appearance: none; appearance: none; min-height: 46px; }
@media (min-width: 860px) { .search { grid-template-columns: minmax(0,1.3fr) minmax(0,1.3fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.4fr); align-items: end; } .search .btn { grid-column: auto; } }
.search-status { margin: 0; min-height: 1.5em; color: var(--pine-tint); }

/* sections, chips, grid */
.section { padding-top: 40px; padding-bottom: 16px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.section-head h2 { font-size: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #FFFFFF; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .15s; }
.card a:hover { box-shadow: 0 8px 28px rgba(24,36,31,.12); }
.card-img { aspect-ratio: 4 / 3; background: #C9D8CD; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--pine); }
.card-title { font-size: 18px; font-weight: 600; line-height: 1.3; }
.card-facts { font-size: 14px; color: var(--ink-3); }
.card-perk { font-size: 14px; font-weight: 600; color: var(--perk); }
.card-price { margin-top: 6px; font-size: 15px; font-weight: 600; }
.card.unavailable { display: none; }
.empty { padding: 24px 0; font-size: 17px; }
.why { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.why h3 { font-size: 22px; margin-bottom: 6px; }
.why p { margin: 0; color: var(--ink-2); }

/* home page */
.crumbs { padding-top: 18px; padding-bottom: 12px; font-weight: 500; }
.crumbs a { text-decoration: none; display: inline-block; padding: 8px 0; }
.gallery { position: relative; display: grid; grid-template-columns: 1fr; gap: 8px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; background: #C9D8CD; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g0 { aspect-ratio: 3 / 2; }
.gallery .g1, .gallery .g2, .gallery .g3, .gallery .g4 { display: none; }
.gallery .placeholder { display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.all-photos { position: absolute; right: 28px; bottom: 12px; }
@media (min-width: 860px) {
  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; }
  .gallery .g0 { grid-row: 1 / 3; aspect-ratio: auto; }
  .gallery .g1, .gallery .g2, .gallery .g3, .gallery .g4 { display: block; }
  .gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 440px; }
  .gallery.n1 .g0 { grid-row: auto; }
  .gallery.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 440px; }
  .gallery.n2 .g0 { grid-row: auto; }
  .gallery.n3 { grid-template-columns: 2fr 1fr; }
  .gallery.n4 .g3 { grid-column: 2 / 4; }
}
@media (min-width: 720px) { .all-photos { right: 36px; } }
.detail { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; padding-top: 28px; }
.detail-main { flex: 999 1 520px; min-width: 0; }
.detail-main h1 { font-size: clamp(30px, 4vw, 44px); margin: 6px 0 8px; }
.detail-main h2 { font-size: 24px; margin: 32px 0 12px; }
.detail-facts { margin: 0; font-size: 17px; color: var(--ink-2); }
.prose { margin-top: 20px; font-size: 17px; line-height: 1.65; }
.prose p { margin: 0 0 14px; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 16px; }
.amenities li::before { content: "✓"; color: var(--pine); font-weight: 700; margin-right: 8px; }
.rules { margin: 0; padding-left: 20px; }
.rules li { margin-bottom: 6px; }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.reviews li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.reviews blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.review-meta { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); }

/* booking box */
.book { flex: 1 1 340px; max-width: 440px; position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 24px rgba(24,36,31,.08); }
@media (max-width: 899px) { .book { position: static; max-width: none; } }
.book-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.date-btn { min-height: 56px; text-align: left; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); font: inherit; cursor: pointer; display: flex; flex-direction: column; color: var(--ink); }
.date-btn span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.date-btn[aria-expanded="true"] { border-color: var(--pine); box-shadow: 0 0 0 1px var(--pine); }
.book-guests { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.book-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.quote:empty { display: none; }
.quote { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.quote .row { display: flex; justify-content: space-between; gap: 12px; }
.quote .total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: 18px; font-weight: 700; }
.quote .err { color: #9B1C1C; margin: 0; }
.quote .btn { margin-top: 10px; }
.quote small { color: var(--ink-3); }

/* calendar */
.cal { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-size: 15px; }
.cal-nav { min-width: 44px; min-height: 44px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); font-size: 20px; cursor: pointer; color: var(--ink); }
.cal-nav[disabled] { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cal-dow { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 4px 0; }
.cal-day { min-height: 40px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; padding: 0; }
.cal-day:hover:not([disabled]) { background: var(--pine-tint); }
.cal-day[disabled] { color: #A3ADA7; text-decoration: line-through; cursor: default; }
.cal-day.in-range { background: var(--pine-tint); border-radius: 0; }
.cal-day.sel { background: var(--pine); color: #FFFFFF; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.cal-foot button { background: none; border: 0; font: inherit; font-weight: 600; color: var(--pine); cursor: pointer; min-height: 44px; padding: 0 4px; text-decoration: underline; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: #0D1411; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #FFFFFF; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 28px; cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #DDE7E0; margin: 0; }

/* phone: keep a booking button in reach */
.mobile-book { display: none; }
@media (max-width: 899px) {
  .page-home .mobile-book { display: flex; position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 5; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
  .page-home .site-footer { padding-bottom: 72px; }
}

/* full photo grid on each home page */
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
@media (min-width: 720px) { .photo-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.photo-grid li { display: flex; }
.photo-grid a { display: block; width: 100%; cursor: zoom-in; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #C9D8CD; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.photo-grid a:hover { outline: 2px solid var(--pine); outline-offset: 1px; }
.gallery a { cursor: zoom-in; }
.gallery img { pointer-events: none; }

/* beds */
.beds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.beds li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.beds strong { font-size: 15px; }
.beds span { font-size: 15px; color: var(--ink-2); }
.beds .sr-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.beds li { position: relative; }

/* listing text */
.prose h3 { font-family: var(--body); font-size: 17px; font-weight: 600; margin: 22px 0 8px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
a[href^="tel:"] { white-space: nowrap; }

/* town pages, rating, footer links */
.crumbs span { color: var(--ink-3); margin: 0 6px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.detail-rating { margin: 6px 0 20px; font-weight: 600; }
.detail-rating span { color: #C98A1B; }
.town-head { padding-top: 8px; display: grid; gap: 12px; }
.town-head .lede { color: var(--ink-2); max-width: 720px; }
.nearby { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.nearby li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.nearby h3 { margin: 0 0 4px; font-size: 17px; }
.nearby p { margin: 0; color: var(--ink-2); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 44px; }
.faq details p { margin: 0 0 14px; color: var(--ink-2); }
.other-towns { margin-top: 18px; }
.town-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.town-links a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--pine); color: #FFFFFF; text-decoration: none; }
.town-links img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.town-links a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.6)); }
.town-name, .town-count { position: absolute; left: 16px; z-index: 1; }
.town-name { bottom: 34px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.town-count { bottom: 14px; font-size: 14px; }
.grid-small { margin-bottom: 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .btn, .btn-ghost, .chip { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
  .btn:active, .btn-ghost:active, .chip:active { transform: scale(.96); box-shadow: none; }
  .card a { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
  .card a:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(24,36,31,.16); }
  .card-img { overflow: hidden; }
  .card-img img, .town-links img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  .card a:hover .card-img img, .town-links a:hover img { transform: scale(1.06); }
  .card-perk { display: inline-block; transform-origin: left center; }
  .card a:hover .card-perk { animation: pop .4s cubic-bezier(.3,1.6,.5,1); }
  .gallery a img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  .gallery a:hover img { transform: scale(1.03); }
  .hero .kicker, .hero h1, .hero .lede, .hero .proof, .hero .search { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
  .hero h1 { animation-delay: .06s; }
  .hero .lede { animation-delay: .12s; }
  .hero .proof { animation-delay: .18s; }
  .hero .search { animation-delay: .24s; }
  html.js .reveal, html.js .grid > .card { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
  html.js .reveal.in, html.js .grid > .card.in { opacity: 1; transform: none; }
  .card-price:not([hidden]) { animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.85); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }
@media (min-width: 860px) { .footer-row { display: grid; grid-template-columns: 1.6fr 1.2fr 1fr; } }
#towns h2, .section > h2 { margin-bottom: 16px; }
.rules-sub { margin: 18px 0 6px; font-size: 17px; }
