:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --tint: #efe8dc;
  --ink: #2a2622;
  --muted: #6b645b;
  --line: #e2d9cb;
  --green: #2f4a32;
  --green-deep: #243a27;
  --red: #9e2b25;
  --red-dark: #84221d;
  --acorn: #a0702f;
  --radius: 10px;
  --wrap: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Set from the admin's Style page (library/Style.php) */
  --text-size: 17px;
  --heading-scale: 1;
  --heading-weight: 600;
}

*, *::before, *::after { box-sizing: border-box; }

/* Everything sized in rem grows and shrinks with the chosen text size */
html { scroll-behavior: smooth; scroll-padding-top: 72px; font-size: calc(var(--text-size) * 16 / 17); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-size);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: var(--heading-weight);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: calc(clamp(2.2rem, 5.5vw, 4rem) * var(--heading-scale)); }
h2 { font-size: calc(clamp(1.8rem, 3.6vw, 2.6rem) * var(--heading-scale)); }
h3 { font-size: calc(1.35rem * var(--heading-scale)); }

p { margin: 0 0 1em; }
a { color: var(--green); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.small { font-size: .9rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shown on the dev site only */
.dev-banner {
  background: #fff3a8; color: #3b3200;
  text-align: center; font-size: .85rem; font-weight: 600;
  padding: 6px 12px; border-bottom: 1px solid #c9a800;
}

/* Placeholder text that must be replaced before going live */
.todo { background: #fff3a8; color: #3b3200; outline: 1px dashed #c9a800; border-radius: 3px; padding: 0 .2em; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: .8em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--red);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); border-color: currentColor; }
.btn-small { padding: .5em 1.1em; font-size: .92rem; }
.btn .todo { background: transparent; color: inherit; outline-color: currentColor; }

.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: flex; align-items: center; gap: .5em;
  font-family: var(--serif); font-weight: var(--heading-weight); font-size: 1.3rem;
  color: var(--green); text-decoration: none;
}
.brand-mark { width: 26px; height: 26px; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--green); }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 16px; text-align: center; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 28, 18, .78) 0%, rgba(20, 28, 18, .35) 45%, rgba(20, 28, 18, 0) 75%);
}
.hero-text { position: relative; z-index: 1; padding-bottom: clamp(40px, 8vh, 80px); width: 100%; }
.hero h1 { max-width: 15ch; margin-bottom: .3em; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; margin-bottom: 1em; opacity: .95; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 40ch; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Facts */
.facts { background: var(--green); color: #fff; }
.facts-list {
  list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 22px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 18px 12px; text-align: center;
}
.facts-list strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: var(--heading-weight); line-height: 1.2; }
.facts-list span { font-size: .88rem; opacity: .85; }

/* Sections and their backgrounds */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.bg-tint { background: var(--tint); }
.bg-green { background: var(--green); color: #f3efe6; }
.bg-green h2, .bg-green h3 { color: #fff; }
.bg-green a:not(.btn) { color: #fff; }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .rich { color: var(--muted); font-size: 1.08rem; }
.bg-green .section-head .rich { color: inherit; opacity: .9; }

/* Text written in the admin */
.rich > :last-child { margin-bottom: 0; }
.rich + .text-link { display: inline-block; margin-top: 1em; }
.rich ul { list-style: none; margin: 0 0 1em; padding: 0; }
.rich ul li { position: relative; padding-left: 1.7em; margin-bottom: .45em; }
.rich ul li::before {
  content: ""; position: absolute; left: .1em; top: .5em;
  width: .9em; height: .5em;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); opacity: .8;
}
.rich ol { margin: 0 0 1em; padding-left: 1.4em; }
/* Long lists beside a photo go into two columns */
.split-text .rich ul:has(> li:nth-child(7)) { columns: 2; column-gap: 28px; }
.split-text .rich ul li { break-inside: avoid; }
@media (max-width: 520px) { .split-text .rich ul:has(> li:nth-child(7)) { columns: 1; } }

/* Split layouts: text beside a photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 88px); }
.split.no-media { grid-template-columns: 1fr; max-width: 780px; }
.split-media { margin: 0; }
.split-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 861px) {
  .split.media-left .split-media { order: -1; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.room { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.room img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room-body { padding: 20px 22px 8px; }
.room-body { color: var(--ink); }
.room-body .rich { color: var(--muted); font-size: .97rem; margin-bottom: 1em; }
.room-list { background: var(--green); color: #fff; display: flex; align-items: center; }
.room-list .room-body { padding: 28px; }
.room-list h3 { color: #fff; }
.room-list .rich { color: #fff; }
@media (max-width: 960px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rooms { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery a { display: block; overflow: hidden; border-radius: 6px; background: var(--tint); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

/* Location */
.distances { list-style: none; padding: 0; margin: 0 0 1.4em; border-top: 1px solid var(--line); }
.distances li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.distances li span:last-child { font-weight: 600; color: var(--green); white-space: nowrap; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--line); aspect-ratio: 4 / 3.4; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 40px 18px 0;
  font-family: var(--serif); font-size: 1.15rem; font-weight: var(--heading-weight);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 400; font-size: 1.6rem; color: var(--green);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details .rich { color: var(--muted); padding: 0 40px 18px 0; }

/* Booking and contact */
.book-inner { text-align: center; }
.book-inner .rich { font-size: 1.1rem; opacity: .9; }
.bg-green .btn-ghost { color: #fff; }
.contact-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.6em; }

/* Footer */
.site-footer { background: var(--green-deep); color: rgba(255, 255, 255, .8); padding: 36px 0; font-size: .95rem; }
.site-footer p { margin: 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.brand-footer { color: #fff; margin-bottom: 4px !important; }
.site-footer .small { color: rgba(255, 255, 255, .6); }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0;
  background: rgba(14, 16, 12, .94);
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(14, 16, 12, .94); }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 4px; }
.lightbox-caption { color: rgba(255, 255, 255, .85); margin: 14px 16px 0; font-size: .95rem; text-align: center; }
.lb-btn {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff;
  border: 0; border-radius: 999px; width: 48px; height: 48px;
  font-size: 2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
