:root {
  --bg: #fbf9f5;
  --bg-alt: #f2eee6;
  --ink: #23201c;
  --muted: #6b645a;
  --accent: #2f4a3a;
  --accent-ink: #ffffff;
  --line: #ddd5c8;
  --card: #ffffff;
  --booked: #d9d2c6;
  --sel: #2f4a3a;
  --sel-soft: #dbe5dd;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171614; --bg-alt: #1f1d1a; --ink: #eee9e1; --muted: #aaa196;
    --accent: #8fb79c; --accent-ink: #10140f; --line: #38342e; --card: #23211d;
    --booked: #3a362f; --sel: #8fb79c; --sel-soft: #2c3a30;
  }
}
:root[data-theme="dark"] {
  --bg: #171614; --bg-alt: #1f1d1a; --ink: #eee9e1; --muted: #aaa196;
  --accent: #8fb79c; --accent-ink: #10140f; --line: #38342e; --card: #23211d;
  --booked: #3a362f; --sel: #8fb79c; --sel-soft: #2c3a30;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

.site-header {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 12px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-header nav { display: flex; gap: 20px; align-items: center; }
.site-header nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; }
@media (max-width: 720px) { .site-header nav a:not(.btn) { display: none; } }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: 14px 26px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-small { padding: 8px 16px; font-size: .9rem; }

.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: end; color: #fff; }
.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(0,0,0,.65), rgba(0,0,0,.05) 60%); }
.hero-text { position: relative; z-index: 1; padding: 48px clamp(16px, 5vw, 64px); max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; opacity: .9; }
.lede { font-size: 1.15rem; max-width: 34em; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.hero .btn { background: #fff; color: #1d2a21; }

.section { padding: clamp(48px, 8vw, 96px) 0; }
.alt { background: var(--bg-alt); }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.rating { font-family: var(--serif); font-size: 1.4rem; margin-bottom: .25em; }
.rating span { font-size: 3rem; font-weight: 600; }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin: 16px 0 0; }
.scores div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 4px 0; }
.scores dd { margin: 0; font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gallery figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }

.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
@media (max-width: 860px) { .rooms { grid-template-columns: 1fr; } }
.room { margin: 0; }
.room img { aspect-ratio: 3/2; object-fit: cover; width: 100%; border-radius: 12px; background: var(--bg); }
.room figcaption { padding-top: 12px; }
.room h3 { margin-bottom: .2em; }
.note { margin-top: 24px; color: var(--muted); }

.amenities { columns: 2; column-gap: 48px; padding: 0; list-style: none; margin: 16px 0 0; }
.amenities li { break-inside: avoid; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); position: relative; }
.amenities li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .amenities { columns: 1; } }

.distances { width: 100%; border-collapse: collapse; }
.distances th, .distances td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.distances td { text-align: right; color: var(--muted); }
.map iframe { width: 100%; aspect-ratio: 1; border: 0; border-radius: 16px; }

.booking { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; margin-top: 24px; align-items: start; }
@media (max-width: 920px) { .booking { grid-template-columns: 1fr; } }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-status { color: var(--muted); font-size: .9rem; text-align: center; }
.cal-nav { background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; width: 40px; height: 40px; font-size: 1.3rem; cursor: pointer; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .cal-months { grid-template-columns: 1fr; } }
.month h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; text-align: center; margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dow { text-align: center; font-size: .75rem; color: var(--muted); padding: 4px 0; }
.day {
  aspect-ratio: 1; border: 0; background: transparent; color: var(--ink); font: 500 .9rem var(--sans);
  border-radius: 8px; cursor: pointer;
}
.day:hover:not(:disabled) { outline: 1px solid var(--accent); }
.day:disabled { cursor: default; color: var(--muted); opacity: .45; }
.day.booked { background: var(--booked); text-decoration: line-through; opacity: 1; color: var(--muted); }
.day.in-range { background: var(--sel-soft); border-radius: 0; }
.day.start, .day.end { background: var(--sel); color: var(--accent-ink); border-radius: 8px; }
.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-booked { background: var(--booked); }
.sw-sel { background: var(--sel); margin-left: 12px; }

.form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 14px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: 1rem var(--sans);
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn { width: 100%; }
.summary { font-weight: 500; margin: -4px 0 14px; }
.summary.error { color: #b3261e; }
.small { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
details p { margin: 10px 0 0; color: var(--muted); }

.site-footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 4px 0; }

/* Let grid children shrink below their image size on small screens. */
.two-col > *, .rooms > *, .booking > *, .cal-months > *, .gallery > * { min-width: 0; }
.form .row > *, .form input { min-width: 0; }

/* Booking side column: Airbnb first, direct booking for returning guests. */
.side { display: grid; gap: 16px; }
.airbnb-card h3 { margin-bottom: .3em; }
.airbnb-card .btn { width: 100%; text-align: center; }
.direct summary { font-weight: 600; cursor: pointer; }
.direct[open] summary { margin-bottom: 12px; }
.direct .form { margin-top: 12px; }
