/* Book the Haus — warm, mobile-first. Palette pulled from the Toadhaus photos:
   white brick, cognac leather, honey wood, plant green. */
:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --ink: #2a2420;
  --muted: #74685e;
  --line: #e8dfd3;
  --accent: #b5652b;      /* cognac */
  --accent-ink: #ffffff;
  --accent-soft: #f5e6d8;
  --moss: #3f5a3c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 36, 32, .06), 0 8px 24px rgba(42, 36, 32, .08);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --gutter: 16px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); }
h3 { font-size: 1.15rem; }
h4 { margin: 1.2em 0 .4em; font-size: .95rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* header / footer */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); background: rgba(251, 247, 241, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { white-space: nowrap; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 1rem; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { text-decoration: none; padding: 6px 8px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { background: var(--accent-soft); }
.site-footer { margin-top: 64px; padding: 32px var(--gutter) 96px; border-top: 1px solid var(--line); text-align: center; }
.site-footer p { margin: .3em 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #9c5422; }
.btn-light { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 1.3rem; cursor: pointer; }

/* home */
.hero { position: relative; min-height: 78vh; display: grid; align-items: end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: relative; padding: 96px var(--gutter) 40px; color: #fff; background: linear-gradient(to top, rgba(30, 22, 16, .78), rgba(30, 22, 16, 0)); }
.hero-overlay h1 { max-width: 14ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; margin: 0 0 .6em; opacity: .9; }
.lede { font-size: 1.1rem; max-width: 36ch; margin: 0 0 1.4em; }
.section { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 0; }
.cards { display: grid; gap: 20px; }
.card { display: block; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--accent-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.card-body p { margin: .3em 0 .8em; }
.link-arrow { color: var(--accent); font-weight: 600; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.img-placeholder { width: 100%; height: 100%; min-height: 220px; display: grid; place-items: center; color: var(--muted); background: repeating-linear-gradient(45deg, var(--accent-soft), var(--accent-soft) 12px, #f9eee3 12px, #f9eee3 24px); font-weight: 500; }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; background: var(--surface); border-radius: var(--radius); padding: 18px 20px 18px 64px; position: relative; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 999px; background: var(--moss); color: #fff; display: grid; place-items: center; font-weight: 600; }

/* property */
.property { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 0; }
.placeholder-banner { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; }
.property-head h1 { margin-bottom: .15em; }
.property-head p { margin: 0 0 16px; }
.gallery { position: relative; display: grid; gap: 6px; border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr 1fr; }
.gallery-item { padding: 0; border: 0; cursor: zoom-in; background: var(--accent-soft); aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: filter .15s; }
.gallery-item:hover img { filter: brightness(.92); }
.gallery-main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery-item:nth-child(n+4) { display: none; }
.gallery-all { position: absolute; right: 12px; bottom: 12px; min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.gallery-empty { display: block; aspect-ratio: 16 / 9; }

.property-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 28px; }
.section-tight { padding: 28px 0; border-top: 1px solid var(--line); }
.prose { white-space: pre-line; }
.desc-block + .desc-block { margin-top: 1.2em; }
.highlights { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.highlights li { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--accent); }
.sleep { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sleep-tile, .rule-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.amenity-preview { columns: 2; column-gap: 24px; padding: 0; list-style: none; margin: 0 0 12px; }
.amenity-preview li { padding: 6px 0; break-inside: avoid; }
.amenity-preview li::before { content: '✓'; color: var(--moss); font-weight: 700; margin-right: 8px; }
.amenity-groups { display: grid; gap: 4px 32px; }
.amenity-groups ul, .rules { padding-left: 1.1em; margin: 0; }
.amenity-groups li, .rules li { margin: .25em 0; }
.struck li { text-decoration: line-through; color: var(--muted); }
details.more { margin-top: 12px; }
details.more summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }

/* booking card */
.book-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px; display: grid; gap: 12px; }
.book-card h2 { margin: 0; }
.book-card > p { margin: 0; }
.book-card label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.book-card input, .book-card select, .book-card textarea { font: 400 1rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; min-width: 0; }
.book-card input:focus, .book-card select:focus, .book-card textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quote { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.quote p { margin: 4px 0 0; }
.quote-line { display: flex; justify-content: space-between; gap: 12px; }
.quote-line[hidden] { display: none; }
.quote-total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-weight: 700; }
.cal { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.cal[hidden] { display: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-title { font-size: .95rem; }
.cal-nav { font: 600 1.2rem var(--sans); width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.cal-nav:hover:not(:disabled) { background: var(--accent-soft); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cal-dow { font-size: .72rem; color: var(--muted); padding: 4px 0; }
.cal-day { font: 500 .9rem var(--sans); height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; padding: 0; }
.cal-day small { font-size: .62rem; color: var(--muted); font-weight: 400; }
.cal-day.is-picked small { color: inherit; }
.cal-day:hover:not(:disabled) { background: var(--accent-soft); }
.cal-day:disabled { color: var(--muted); opacity: .45; cursor: default; }
.cal-day.is-booked { text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--line) 4px 5px); }
.cal-day.in-range { background: var(--accent-soft); border-radius: 0; }
.cal-day.is-picked { background: var(--accent); color: var(--accent-ink); text-decoration: none; opacity: 1; }
.cal-legend { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; }
.cal-key { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--line) 4px 5px); border: 1px solid var(--line); }
.quote p.error { color: #a12d2d; }
.quote .discount { color: var(--moss); font-weight: 600; }
.cancel-note { margin: 2px 0 0; padding: 8px 10px; background: var(--accent-soft); border-radius: 8px; }
.cancel-note[hidden] { display: none; }
.book-card label.agree { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .9rem; }
.book-card label.agree input { width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.form-status { margin: 0; }
.form-status.error { color: #a12d2d; }
.form-status.notice { background: var(--accent-soft); padding: 10px 12px; border-radius: 10px; }
.mobile-book-cta.is-hidden { opacity: 0; pointer-events: none; }
.mobile-book-cta { transition: opacity .2s; position: fixed; left: var(--gutter); right: var(--gutter); bottom: 16px; z-index: 5; box-shadow: var(--shadow); }

/* dialogs */
dialog { border: 0; padding: 0; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(20, 16, 12, .7); }
.tour { width: 100vw; height: 100vh; margin: 0; background: var(--bg); overflow-y: auto; padding: 0 var(--gutter) 40px; }
.tour-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 0; background: var(--bg); }
.tour-head h2 { margin: 0; }
.tour-rooms { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; position: sticky; top: 68px; background: var(--bg); z-index: 1; }
.tour-rooms a { flex: none; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.tour-room { max-width: var(--max); margin: 24px auto 0; scroll-margin-top: 120px; }
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tour-grid figure { margin: 0; }
.tour-grid button { padding: 0; border: 0; width: 100%; cursor: zoom-in; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; }
.tour-grid img { width: 100%; height: 100%; object-fit: cover; }
.tour-grid figcaption { font-size: .8rem; color: var(--muted); padding: 4px 2px; }
.viewer { width: 100vw; height: 100vh; margin: 0; background: #14100c; color: #fff; display: grid; place-items: center; }
.viewer:not([open]) { display: none; }
.viewer figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.viewer img { max-width: 100vw; max-height: 84vh; object-fit: contain; }
.viewer figcaption { font-size: .9rem; opacity: .85; padding: 0 var(--gutter); text-align: center; }
.viewer-close { position: fixed; top: 12px; right: 12px; }
.viewer-prev, .viewer-next { position: fixed; top: 50%; transform: translateY(-50%); }
.viewer-prev { left: 8px; }
.viewer-next { right: 8px; }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); height: 460px; }
  .gallery-item { min-height: 0; }
  .gallery-item { aspect-ratio: auto; }
  .gallery-item:nth-child(n+4) { display: block; }
  .gallery-main { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
  .tour-grid { grid-template-columns: repeat(3, 1fr); }
  .amenity-groups { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .property-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
  .book { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; border-radius: var(--radius); }
  .mobile-book-cta { display: none; }
  .site-footer { padding-bottom: 32px; }
  .hero-overlay { padding: 140px 64px 64px; }
}

/* booking status page */
.booking-status { max-width: 640px; }
.booking-status .lead { font-size: 1.1rem; }
.booking-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.booking-facts dt { color: var(--muted); }
.booking-facts dd { margin: 0; font-weight: 600; }
