:root {
  --bg: #fbfaf7; --ink: #23302b; --muted: #66726c; --line: #e3e0d8;
  --accent: #2f5d50; --accent-ink: #fff; --soft: #eef2ee;
  --free: #e8f1ec; --taken: #d9a79b; --past: #eeeeea;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 .3rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.muted { color: var(--muted); } .small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .8rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.brand { font-family: Georgia, serif; font-size: 1.15rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.brand span { font: .85rem system-ui, sans-serif; color: var(--muted); margin-left: .4rem; }
.top nav { display: flex; gap: 1rem; align-items: center; }
.top nav a { text-decoration: none; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: .7rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.small { padding: .35rem .9rem; font-size: .95rem; }
.btn[disabled] { background: #9aa8a2; cursor: not-allowed; }

.gallery-wrap { padding: 1rem clamp(1rem, 4vw, 3rem) 0; }
.gallery { display: grid; gap: .5rem; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px;
  border-radius: var(--radius); overflow: hidden; }
.gallery > :first-child { grid-row: 1 / 3; }
.gallery img, .gallery .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph { background: linear-gradient(135deg, #cfe0d8, #b8cfc5); display: grid; place-items: center; color: #4a665c; font-size: .95rem; }
.more-photos { margin-top: .8rem; } .more-photos summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.grid-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; margin-top: .8rem; }
.grid-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; align-items: start;
  padding: 1.5rem clamp(1rem, 4vw, 3rem) 3rem; max-width: 1200px; margin: 0 auto; }
.facts { color: var(--muted); margin: 0; } .rating { margin: .2rem 0 1.2rem; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: .8rem 1rem; display: grid; }
.card span { color: var(--muted); font-size: .95rem; }
.amenities { columns: 2; padding-left: 1.1rem; } .amenities li, .rules li { margin-bottom: .3rem; }

.booking-box { position: sticky; top: 5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; box-shadow: 0 6px 24px rgba(35, 48, 43, .08); }
.price-from { font-size: 1.1rem; margin: 0; } .price-from strong { font-size: 1.6rem; }
.quote-form { display: grid; gap: .7rem; margin-top: .8rem; }
.quote-form label { display: grid; gap: .2rem; font-size: .9rem; color: var(--muted); }
.quote-form input { font: inherit; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.errors { background: #fbeaea; border: 1px solid #e3b4b4; color: #7a2323; border-radius: 8px; padding: .6rem .9rem .6rem 1.8rem; margin: .8rem 0 0; }
.quote { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.quote-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.quote-table td { padding: .25rem 0; } .quote-table td:last-child { text-align: right; white-space: nowrap; }
.quote-table .total td { border-top: 1px solid var(--line); font-weight: 700; padding-top: .5rem; }

.legend { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.key { display: inline-block; width: 1rem; height: 1rem; border-radius: 3px; vertical-align: -2px; margin-right: .25rem; border: 1px solid var(--line); }
.key.free { background: var(--free); } .key.taken { background: var(--taken); } .key.past { background: var(--past); }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.month table { width: 100%; border-collapse: separate; border-spacing: 2px; text-align: center; font-size: .85rem; }
.month th { color: var(--muted); font-weight: 500; }
.day { border-radius: 4px; padding: .25rem 0; }
.day.free { background: var(--free); } .day.taken { background: var(--taken); text-decoration: line-through; }
.day.past { background: var(--past); color: #a9aaa4; }
.pager { display: flex; justify-content: space-between; margin-top: 1rem; }

.foot { text-align: center; color: var(--muted); font-size: .9rem; padding: 2rem 1rem; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .booking-box { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 130px 130px; }
  .gallery > :first-child { grid-column: 1 / 3; grid-row: 1; }
  .amenities { columns: 1; }
}

.narrow { max-width: 720px; margin: 2rem auto 3rem; padding: 0 1rem; }
.reserve-form { display: grid; gap: .7rem; margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.reserve-form label { display: grid; gap: .2rem; font-size: .9rem; color: var(--muted); }
.reserve-form input[type=text], .reserve-form input[type=email] { font: inherit; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.reserve-form .check { display: flex; gap: .5rem; align-items: flex-start; color: var(--ink); }
.reserve-form .check input { margin-top: .3rem; }
.notice { background: #eef4f0; border: 1px solid #c9dcd0; border-radius: 8px; padding: .6rem .9rem .6rem 1.8rem; margin: 0 0 .8rem; }
.notice-box { background: #fff7e0; border: 1px solid #e8d49a; border-radius: 8px; padding: .8rem 1rem; }
