:root {
  --salt: #f6f8f7;
  --basalt: #232a2c;
  --basalt-soft: #4b5558;
  --reef: #0d5767;
  --reef-deep: #093f4b;
  --shallows: #86c9c8;
  --koa: #8b5a2b;
  --tile: #e7e0d4;
  --line: #d5dcda;
  --booked: #c9cfce;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Literata", Georgia, serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  /* Left/right padding that lines full-bleed content up with .wrap */
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--salt);
  color: var(--basalt);
  font: 400 1.0625rem/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--reef); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--shallows);
  outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; margin-bottom: 0.35em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: grid;
  grid-template-rows: auto 1fr;
  color: #fff;
  isolation: isolate;
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(9, 25, 29, 0.82) 0%, rgba(9, 25, 29, 0.35) 45%, rgba(9, 25, 29, 0.05) 70%, rgba(9, 25, 29, 0.45) 100%);
}
.topnav {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 20px var(--edge);
  font-family: var(--display);
}
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.navlinks { display: flex; gap: clamp(0.9rem, 2.5vw, 2rem); }
.navlinks a { color: #fff; text-decoration: none; font-size: 0.98rem; opacity: 0.9; }
.navlinks a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.hero-text {
  align-self: end;
  padding: 0 var(--edge) clamp(40px, 8vh, 96px);
}
.hero h1 {
  max-width: 11em;
  font-size: clamp(2.5rem, 7.2vw, 5.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 0.4em;
  text-wrap: balance;
}
.hero-text p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6rem; }

.btn {
  display: inline-block; font: 600 1rem/1 var(--display);
  padding: 15px 24px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn-light { background: #fff; color: var(--reef-deep); }
.btn-light:hover { background: var(--shallows); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-dark { background: var(--reef); color: #fff; }
.btn-dark:hover { background: var(--reef-deep); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- facts ---------- */
.facts { background: var(--reef-deep); color: #e6f2f1; }
.facts ul {
  list-style: none; margin: 0 auto; max-width: var(--max);
  padding: 18px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  font-family: var(--display); font-size: 1rem;
}
.facts strong { color: #fff; font-weight: 700; }

/* ---------- intro ---------- */
.intro {
  display: grid; gap: clamp(28px, 5vw, 72px);
  grid-template-columns: 1fr;
  padding-block: clamp(56px, 9vw, 120px);
  align-items: center;
}
@media (min-width: 900px) { .intro { grid-template-columns: 1fr 1.05fr; } }
.intro-copy { max-width: 36em; }
.intro-photo { margin: 0; }
.intro-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.note { font-style: italic; color: var(--koa); }

/* ---------- rooms ---------- */
.rooms { padding-bottom: clamp(56px, 9vw, 120px); }
.room-grid {
  display: grid; gap: 28px 48px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 700px) { .room-grid { grid-template-columns: 1fr 1fr; } }
.room-grid > div { border-top: 2px solid var(--basalt); padding-top: 14px; }
.room-grid p { color: var(--basalt-soft); margin: 0; }

.gallery {
  display: grid; gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 42vw;
}
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 2; }
}
.gallery a, .strip a { display: block; overflow: hidden; border-radius: 3px; background: var(--tile); }
.gallery img, .strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img, .strip a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .gallery img, .strip img { transition: none; } }

/* ---------- grounds ---------- */
.grounds { background: var(--tile); padding-block: clamp(56px, 9vw, 120px) 32px; }
.grounds-cols { display: grid; gap: 24px 64px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grounds-cols { grid-template-columns: 1fr 1.1fr; } }
.grounds-cols > p { font-size: 1.15rem; max-width: 30em; }
.amen { margin: 0; padding: 0; list-style: none; }
.amen li { padding: 10px 0 10px 26px; border-bottom: 1px solid rgba(35, 42, 44, 0.15); position: relative; }
.amen li::before {
  content: ""; position: absolute; left: 4px; top: 1.15em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--reef);
}
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30vw);
  gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 40px var(--edge) 12px;
  scroll-padding-inline: var(--edge);
  height: calc(clamp(220px, 26vw, 340px) + 52px);
  scrollbar-color: var(--reef) transparent;
}
.strip a { scroll-snap-align: start; }
.stairs-note { font-size: 0.95rem; color: var(--basalt-soft); margin-top: 12px; }

/* ---------- booking ---------- */
.book { padding-block: clamp(56px, 9vw, 120px); }
.book-head { max-width: 40em; }
.cal { margin-top: 12px; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-status { margin: 0; font-size: 0.95rem; color: var(--basalt-soft); text-align: center; }
.cal-nav {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; color: var(--basalt);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.cal-nav:hover:not([disabled]) { border-color: var(--reef); color: var(--reef); }
.cal-nav[disabled] { opacity: 0.35; cursor: default; }
.cal-months { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cal-months { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cal-months { grid-template-columns: 1fr 1fr 1fr; } }
.month h3 { font-size: 1.05rem; margin-bottom: 10px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dow { font: 600 0.75rem/1 var(--display); color: var(--basalt-soft); text-align: center; padding-bottom: 6px; }
.day {
  aspect-ratio: 1 / 1; min-height: 38px;
  display: grid; place-items: center;
  font: 500 0.92rem/1 var(--display);
  border: 0; border-radius: 4px; background: #fff; color: var(--basalt);
  cursor: pointer; padding: 0;
}
.day:hover:not([disabled]) { box-shadow: inset 0 0 0 2px var(--reef); }
.day.past { background: transparent; color: #a7b0b0; cursor: default; }
.day.booked { background: var(--booked); color: #6f7a7a; text-decoration: line-through; cursor: not-allowed; }
.day.turn { background: linear-gradient(135deg, var(--booked) 50%, #fff 50%); }
.day.in-range { background: #cfe9e8; }
.day.pick { background: var(--reef); color: #fff; }
.cal-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; font-size: 0.9rem; color: var(--basalt-soft); }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.lg-open { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.lg-booked { background: var(--booked); }
.lg-pick { background: var(--reef); }

.inquiry {
  margin-top: 48px; padding: clamp(20px, 4vw, 40px);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  display: grid; gap: 16px; max-width: 900px;
}
.inquiry .row { display: grid; gap: 16px; align-items: end; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.inquiry label { display: grid; gap: 6px; font: 600 0.92rem/1.2 var(--display); }
.opt { font-weight: 400; color: var(--basalt-soft); }
.inquiry input, .inquiry select, .inquiry textarea {
  font: 400 1rem/1.4 var(--body); color: var(--basalt);
  padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--salt);
  width: 100%;
}
.inquiry textarea { resize: vertical; }
.inquiry .btn { justify-self: start; }
.inquiry .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; min-height: 1.4em; font-size: 0.95rem; }
.form-msg.err { color: #a23a1d; }
.form-msg.ok { color: var(--reef); }

/* ---------- policies + nearby ---------- */
.policies, .nearby { padding-bottom: clamp(48px, 7vw, 96px); }
.policies dl { margin: 0; display: grid; gap: 0 48px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.policies dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.policies dt { font: 600 1rem/1.3 var(--display); margin-bottom: 4px; }
.policies dd { margin: 0; color: var(--basalt-soft); }
.nearby ul { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.nearby li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nearby li span:last-child { color: var(--basalt-soft); white-space: nowrap; }

.foot { background: var(--basalt); color: #c5cdcc; padding-block: 36px; font-size: 0.92rem; }
.foot p { margin: 0 0 4px; }

/* ---------- lightbox ---------- */
.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: rgba(10, 18, 20, 0.95); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10, 18, 20, 0.6); }
.lightbox img { max-width: 94vw; max-height: 84vh; object-fit: contain; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; padding: 0 70px; font-size: 0.95rem; color: #d7dfde; }
