:root {
  --forest: #1f3a2e;
  --forest-2: #2d5443;
  --moss: #6f8f5e;
  --cream: #f6f2ea;
  --paper: #fffdf8;
  --ink: #1d231f;
  --muted: #5d6a61;
  --line: #e4ddcf;
  --accent: #c8743a;
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20,38,30,.55) 0%, rgba(20,38,30,.35) 40%, rgba(20,38,30,.85) 100%),
    url("img/hero.jpg") center 60% / cover,
    var(--forest);
  color: var(--cream);
  padding: max(env(safe-area-inset-top), 20px) 22px 110px;
  overflow: hidden;
}
/* Home page: tall photo, text sits at the bottom */
.hero:not(.hero-small) { min-height: min(78vh, 640px); display: flex; flex-direction: column; }
.hero:not(.hero-small) .hero-inner { width: 100%; margin: auto auto 0; }
.hero:not(.hero-small) .lang { width: 100%; }
.hero-inner { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.ridge {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 90px; color: var(--cream);
}
.hero-inner { position: relative; max-width: 640px; margin: 36px auto 0; }
.eyebrow {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  color: #b9cdb0; margin-bottom: 10px;
}
.hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); letter-spacing: -0.02em; }
.lede { margin-top: 14px; font-size: 1.05rem; color: #dbe5d5; max-width: 36ch; }
.hero-ctas { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.lang {
  position: relative; z-index: 1;
  display: flex; justify-content: flex-end; gap: 4px; max-width: 640px; margin: 0 auto;
}
.lang button {
  font: inherit; font-size: .8rem; font-weight: 600;
  background: transparent; color: #cfdcc8;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: 4px 10px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--forest); border-color: var(--cream); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; text-decoration: none;
  border-radius: 999px; padding: 12px 20px; border: 0; cursor: pointer;
  min-height: 44px;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn.ghost-dark { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn.small { padding: 8px 16px; min-height: 40px; font-size: .9rem; background: var(--forest); color: var(--cream); }
.btn.link { background: none; color: var(--muted); }
.btn:focus-visible, .lang button:focus-visible { outline: 3px solid #f0b37e; outline-offset: 2px; }

/* Layout */
main { max-width: 640px; margin: 0 auto; padding: 0 18px 40px; }
section { margin-top: 44px; }
.section-lede { color: var(--muted); margin-top: 6px; }

/* Info */
.info { margin-top: -8px; }
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin: 0;
}
.info-grid div { background: var(--paper); padding: 14px 16px; }
.info-grid dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.info-grid dd { margin: 4px 0 0; font-weight: 600; font-size: .95rem; }

/* Services */
.services, .guide { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.service {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.s-icon {
  font-size: 1.5rem; width: 48px; height: 48px; display: grid; place-items: center;
  background: #e9efe3; border-radius: 12px; grid-row: span 2;
}
.s-body h3 { font-size: 1.05rem; }
.s-body p { color: var(--muted); font-size: .92rem; margin-top: 3px; }
.s-side { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.s-price { font-weight: 700; color: var(--forest); }

/* Guide */
.guide li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.guide li:last-child { border-bottom: 0; }
.guide li > span { font-size: 1.4rem; }
.guide h3 { font-size: 1rem; }
.guide p { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.guide { gap: 0; }

/* Direct booking */
.direct {
  background: var(--forest); color: var(--cream);
  border-radius: 20px; padding: 26px 22px;
}
.direct p { color: #dbe5d5; margin: 8px 0 16px; }
.code-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .9rem; color: #b9cdb0; }
.code-row code {
  font: 700 1rem ui-monospace, Menlo, monospace; letter-spacing: .06em;
  background: rgba(255,255,255,.1); color: #fff;
  border: 1.5px dashed rgba(255,255,255,.4); border-radius: 10px; padding: 6px 12px;
  user-select: all;
}

.contact-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

footer { text-align: center; color: var(--muted); font-size: .78rem; padding: 10px 18px 40px; }

/* Reservation sheet */
dialog {
  border: 0; padding: 0; width: min(100%, 520px); max-width: 100%;
  margin: auto auto 0; border-radius: 22px 22px 0 0;
  background: var(--paper); color: var(--ink);
}
@media (min-width: 560px) { dialog { margin: auto; border-radius: 22px; } }
dialog::backdrop { background: rgba(20, 30, 24, .55); }
dialog form { padding: 24px 22px max(env(safe-area-inset-bottom), 22px); display: grid; gap: 14px; }
.sheet-icon { font-size: 2rem; }
.sheet-price { color: var(--forest); font-weight: 700; margin-top: -8px; }
dialog label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
dialog label[hidden] { display: none; }
dialog input, dialog textarea {
  font: inherit; font-weight: 400; padding: 12px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; width: 100%;
}
.hint { font-size: .82rem; color: var(--muted); }
.sheet-actions { display: grid; gap: 8px; }

/* Extend-your-stay banner */
.extend {
  margin-top: 28px; padding: 20px; border-radius: var(--radius);
  background: #fbe9da; border: 1px solid #f0cfb2;
}
.extend h2 { font-size: 1.2rem; }
.extend p { margin: 6px 0 14px; color: #5a3d27; }

/* Availability */
.badge {
  display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 600;
  background: #fff3c4; color: #6b5300; padding: 3px 10px; border-radius: 999px;
}
.badge[hidden] { display: none; }
.cal {
  margin-top: 16px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h3 { font-size: 1rem; text-transform: capitalize; }
.cal-nav {
  font: inherit; font-size: 1.4rem; line-height: 1; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--forest); cursor: pointer;
}
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: .72rem; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.cal-day { padding: 8px 0; border-radius: 8px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.cal-day.open { background: #e3eedb; color: var(--forest); font-weight: 600; }
.cal-day.booked { color: #a49c8e; text-decoration: line-through; }
.cal-day.past { color: #cfc8ba; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.cal-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot.open { background: #e3eedb; box-shadow: inset 0 0 0 1px #b8cfa8; }
.dot.booked { background: #eee9df; }
.cal-updated { margin-left: auto; }

.sub { font-size: 1.05rem; margin-top: 22px; }
.openings { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.openings li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.openings li > div:first-child { display: grid; }
.openings li span { color: var(--muted); font-size: .85rem; }
.openings li.empty { color: var(--muted); }
.o-links { display: flex; gap: 6px; flex-wrap: wrap; }
.btn.small.alt { background: var(--accent); }

.share {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.share p { font-weight: 600; }

/* Gallery */
.gallery {
  list-style: none; margin: 16px -18px 0; padding: 0 18px 6px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery li { scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); background: #e9e3d6;
}
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
@media (min-width: 640px) { .gallery { grid-auto-columns: 46%; } }

/* Forms (reserve sheet + booking page) */
[hidden] { display: none !important; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row > label:only-child, .field-row > label:has(+ label[hidden]) { grid-column: 1 / -1; }
.pay-only { display: grid; gap: 14px; }
dialog select, .book-form select, .book-form input, .book-form textarea {
  font: inherit; font-weight: 400; padding: 12px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; width: 100%; min-height: 46px;
}
.sheet-total { display: flex; justify-content: space-between; font-size: 1rem; border-top: 1px solid var(--line); padding-top: 12px; }
.form-err { color: #a23a2a; font-size: .9rem; min-height: 0; }
.form-err:empty { display: none; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Booking + thank-you pages */
.hero-small { padding-bottom: 80px; }
.hero-small .hero-inner { margin-top: 20px; }
.hero-small h1 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
.lang .back { color: #cfdcc8; text-decoration: none; font-size: .9rem; font-weight: 600; align-self: center; }
.lang .spacer { flex: 1; }
.book-form { display: grid; gap: 14px; margin-top: 8px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: grid; gap: 14px;
}
.card h2 { font-size: 1.15rem; }
.book-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.times { color: var(--muted); font-size: .85rem; margin-top: -4px; }
.quote-status { font-weight: 600; }
.quote-status.good { color: #2f6b3f; }
.quote-status.bad { color: #a23a2a; }
.quote dl, .thanks dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 10px 0 0; }
.quote dt, .thanks dt { color: var(--muted); }
.quote dd, .thanks dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.quote .tax { font-size: .88rem; }
.quote .total { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.btn.wide { width: 100%; }
.thanks { margin-top: 8px; }
.thanks dd { font-weight: 600; }
