:root {
  --bg: #faf7f2;
  --bg-alt: #f1ebe1;
  --surface: #ffffff;
  --ink: #1f2a24;
  --muted: #5f6b63;
  --line: #e3dccf;
  --brand: #2f4a3a;
  --brand-ink: #ffffff;
  --accent: #b5643c;
  --busy: #e9e3d9;
  --sel: #d9e6dc;
  --warn: #9b2c2c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 36, .06), 0 8px 24px rgba(31, 42, 36, .06);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: .2em 0 .3em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.4em 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .3em; }
h4 { margin: 1.2em 0 .4em; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.pre { white-space: pre-line; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin: .25em 0; }

.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 999px; padding: .8em 1.5em;
  font: 600 1rem var(--sans); cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: #243a2d; }
.btn:active { transform: translateY(1px); }
.btn-small { padding: .45em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; margin-top: .6rem; }

/* header */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff;
  background: var(--hero, linear-gradient(160deg, #3d5c49 0%, #2f4a3a 45%, #6b4a33 100%)) center / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.6)); }
.hero-inner { position: relative; padding-top: 6rem; padding-bottom: 4rem; width: 100%; }
.hero h1 { max-width: 16ch; }
.lead { font-size: 1.15rem; max-width: 52ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; opacity: .9; margin: 0; }
.search { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; background: var(--surface);
  color: var(--ink); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 640px; }
.search label { flex: 1 1 160px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.search .btn { flex: 1 1 160px; }

/* forms */
input, textarea, select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: .65em .8em; margin-top: .3em; }
input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .75rem; }
label.check { display: flex; gap: .6em; align-items: flex-start; font-weight: 400; font-size: .82rem; }
label.check input { width: auto; margin-top: .25em; }
.errorlist { list-style: none; padding: 0; margin: .3em 0 0; color: var(--warn); font-size: .82rem; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

/* sections */
.section { padding: 4rem 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2rem; }
.section-head h2 { margin-top: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none;
  color: var(--ink); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(31, 42, 36, .12); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { margin: 0 0 .8rem; font-size: .93rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.card-price { margin-top: auto; color: var(--muted); }
.card-price strong { color: var(--ink); font-size: 1.15rem; }
.placeholder { width: 100%; height: 100%; min-height: 200px; display: grid; place-items: center;
  background: linear-gradient(135deg, #cfd9cf, #e8dccb); }
.placeholder span { font: 600 4rem var(--serif); color: rgba(47, 74, 58, .35); }

.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem 1.5rem; }
.amenities li { display: flex; align-items: center; gap: .7rem; }
.amenities .ico { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; background: var(--surface); border-radius: 50%; box-shadow: var(--shadow); flex: none; }
.amenities.compact .ico { box-shadow: none; background: var(--bg-alt); }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; text-align: center; }
.ico-lg { font-size: 2rem; }
.loc-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: start; }
.loc-grid h2 { margin-top: 0; }
.map { width: 100%; min-height: 360px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 800px) { .loc-grid { grid-template-columns: 1fr; } }

/* room page */
.room-page { padding-top: 1.5rem; padding-bottom: 2rem; }
.back { text-decoration: none; font-size: .9rem; font-weight: 500; }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px;
  border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0 2rem; }
.gallery .g-item { padding: 0; border: 0; cursor: zoom-in; background: var(--bg-alt); overflow: hidden; }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery .g-item:hover img { opacity: .9; }
.gallery .g-item:first-child { grid-row: span 2; }
.gallery.g1 { grid-template-columns: 1fr; grid-template-rows: 440px; }
.gallery.g2 { grid-template-columns: 1fr 1fr; grid-template-rows: 440px; }
.gallery.g3, .gallery.g4 { grid-template-columns: 2fr 1fr; }
.gallery.g1 .g-item:first-child, .gallery.g2 .g-item:first-child { grid-row: auto; }
.gallery.g4 .g-item:nth-child(4) { display: none; }
.gallery .g-item.placeholder { cursor: default; }
.g-more { position: absolute; right: 12px; bottom: 12px; background: #fff; border: 1px solid var(--ink); border-radius: 8px; padding: .4em .9em; font: 600 .85rem var(--sans); cursor: pointer; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
  .gallery .g-item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery .g-item:nth-child(n+4) { display: none; }
  .gallery.g1, .gallery.g2 { grid-template-columns: 1fr; grid-template-rows: 260px; }
  .gallery.g2 .g-item:nth-child(2) { display: none; }
}

.room-grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .room-grid { grid-template-columns: 1fr; } }
.facts { display: flex; flex-wrap: wrap; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.facts div { background: var(--surface); border-radius: 10px; padding: .7rem 1rem; box-shadow: var(--shadow); min-width: 110px; }
.facts strong { display: block; }
.facts span { font-size: .82rem; color: var(--muted); }
.prose { font-size: 1.02rem; }

.booking-box { position: sticky; top: 84px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 6px 30px rgba(31, 42, 36, .12);
  padding: 1.5rem; border: 1px solid var(--line); }
.price-line { font-size: 1.05rem; color: var(--muted); }
.price-line strong { font-size: 1.6rem; color: var(--ink); font-family: var(--serif); }
.booking-box form { margin-top: 1.2rem; }
.quote { background: var(--bg); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .93rem; }
.quote div { display: flex; justify-content: space-between; padding: .15rem 0; }
.quote .total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .5rem; font-weight: 600; }
.quote .warn { color: var(--warn); margin: 0; font-weight: 500; }

/* calendar */
.calendar { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.cal-nav { position: absolute; left: .6rem; right: .6rem; top: .7rem; display: flex; justify-content: space-between; pointer-events: none; }
.cal-nav button { pointer-events: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .cal-months { grid-template-columns: 1fr; } .cal-month + .cal-month { display: none; } }
.cal-title { text-align: center; font-weight: 600; margin: .3rem 0 .8rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-dow { font-size: .75rem; color: var(--muted); padding-bottom: .3rem; }
.cal-day { aspect-ratio: 1; border: 0; background: none; border-radius: 8px; font: 500 .9rem var(--sans); cursor: pointer; color: var(--ink); }
.cal-day:hover:not(.past) { outline: 1px solid var(--ink); }
.cal-day.past { color: #c2c2bb; cursor: default; }
.cal-day.busy { background: var(--busy); color: #a39d92; text-decoration: line-through; }
.cal-day.sel { background: var(--sel); border-radius: 0; }
.cal-day.sel-start, .cal-day.sel-end { background: var(--brand); color: #fff; border-radius: 8px; text-decoration: none; }
.legend { margin-top: .6rem; display: flex; align-items: center; gap: .4rem; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-left: .6rem; }
.lg-busy { background: var(--busy); margin-left: 0; }
.lg-sel { background: var(--brand); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10, 12, 11, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .9rem; }

/* done page */
.done { padding: 4rem 16px; text-align: center; }
.done-ico { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: var(--sel); color: var(--brand); display: grid; place-items: center; font-size: 2rem; font-weight: 700; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; text-align: left; background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin: 2rem 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }

.flash { padding: .8rem 1rem; border-radius: 10px; margin: 1rem 0; background: var(--sel); }
.flash-error { background: #f8e1e1; color: var(--warn); }

/* footer */
.footer { background: var(--brand); color: #e7ece8; padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer a { color: #fff; }
.footer .brand { color: #fff; }
.footer .muted { color: #b9c6bd; }
.footer h4 { color: #b9c6bd; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
