:root {
  --salt: #f6f8f7;
  --basalt: #232a2c;
  --basalt-soft: #4b5558;
  --reef: #1d4e89;
  --reef-deep: #12325b;
  --shallows: #9cc3e6;
  --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-text .hero-sub { font: 500 clamp(1.25rem, 2.4vw, 1.75rem)/1.25 var(--display); letter-spacing: -0.01em; margin: -0.1em 0 0.9em; }
.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: #e6eef8; }
.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 ---------- */
/* ---------- reviews ---------- */
.reviews { padding-block: clamp(56px, 9vw, 120px) 0; }
.reviews-head { max-width: 40em; }
.reviews-head p { color: var(--basalt-soft); }
.reviews-head strong { color: var(--basalt); }
.review-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 760px) { .review-grid { grid-template-columns: 1fr 1fr; } .review-lead { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .review-grid { grid-template-columns: repeat(4, 1fr); } .review-lead { grid-column: span 2; grid-row: span 2; } }
.review { margin: 0; padding: clamp(20px, 3vw, 28px); background: #fff; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.review blockquote::before { content: "\201C"; } .review blockquote::after { content: "\201D"; }
.review-lead { background: var(--reef-deep); border-color: var(--reef-deep); color: #fff; justify-content: center; }
.review-lead blockquote { font: 600 clamp(1.35rem, 2.6vw, 1.9rem)/1.3 var(--display); letter-spacing: -0.01em; }
.review figcaption { font: 600 0.9rem/1.2 var(--display); color: var(--basalt-soft); }
.review-lead figcaption { color: var(--shallows); }
.reviews-more { margin: 20px 0 0; font-family: var(--display); }
.facts a { color: inherit; text-decoration: none; }
.facts a:hover { text-decoration: underline; text-underline-offset: 3px; }

.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: #d4e3f3; }
.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); }

.cal-widget { margin-top: 12px; }
.cal-widget iframe { width: 100%; }
@media (max-width: 700px) {
  /* 18 stacked months is a long scroll on a phone; keep it in its own box */
  .cal-widget { max-height: 70vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
}

.book-now {
  margin-top: 48px; padding: clamp(20px, 4vw, 40px);
  background: #fff; border: 1px solid var(--line); border-radius: 6px; max-width: 900px;
}
.book-now h3 { margin: 0 0 16px; }
.book-now iframe { width: 100%; }

.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; }

/* ---------- blog ---------- */
.pagehead { background: var(--reef-deep); }
.foot a { color: inherit; }
.post, .post-index { padding-block: clamp(40px, 7vw, 88px); }
.post-head, .post-body, .post-cta, .post-index > * { max-width: 40rem; margin-inline: auto; }
.post-meta { font: 600 0.92rem/1.2 var(--display); color: var(--basalt-soft); margin-bottom: 14px; }
.post-meta a { color: inherit; }
.post h1, .post-index h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.03em; margin-bottom: 0.35em; text-wrap: balance;
}
.post-dek { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--basalt-soft); }
.post-photo { margin: clamp(24px, 4vw, 48px) auto; max-width: 1080px; }
.post-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.post-photo figcaption { font-size: 0.9rem; color: var(--basalt-soft); margin-top: 8px; }
.post-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 1.6em 0 0.5em; }
.post-body p { font-size: 1.1rem; line-height: 1.75; }
.post-cta {
  margin-top: 48px; padding: clamp(20px, 4vw, 32px);
  background: var(--tile); border-radius: 6px;
}
.post-cta p { font: 600 1.15rem/1.35 var(--display); }
.post-list { list-style: none; margin: 32px auto 0; padding: 0; }
.post-list a {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  padding: 20px 0; border-top: 1px solid var(--line); color: var(--basalt); text-decoration: none;
}
@media (min-width: 640px) { .post-list a { grid-template-columns: 200px 1fr; align-items: center; gap: 24px; } }
.post-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
@media (min-width: 640px) { .post-list a.noimg { grid-template-columns: 1fr; } }
.post-note { color: var(--basalt-soft); font-size: 1rem !important; margin-top: 2em; }
.post-list time { display: block; font: 600 0.85rem/1.2 var(--display); color: var(--basalt-soft); }
.post-list strong { display: block; font: 600 1.35rem/1.2 var(--display); margin: 6px 0; }
.post-list a:hover strong { color: var(--reef); }
.post-list span span { color: var(--basalt-soft); }
.post-photo-inline { margin: 1.4em 0 1.8em; }
.post-photo-inline img { aspect-ratio: auto; }
.post-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 4px; background: var(--line); }
.hero-text .eyebrow { font: 600 clamp(0.8rem, 1.1vw, 0.95rem)/1.4 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; max-width: none; margin-bottom: 1rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.45); }
.post-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.post-body li { font-size: 1.1rem; line-height: 1.7; margin-bottom: 0.4em; }

/* Guest map of the property (drawn by tools/stay_map.py) */
.stay-map { margin: clamp(28px, 4vw, 48px) 0 0; }
.stay-map-scroll { overflow-x: auto; border-radius: 6px; border: 1px solid var(--line); }
.smap { display: block; width: 100%; min-width: 720px; height: auto; font-family: var(--display); }
.stay-map figcaption { font-size: 0.92rem; color: var(--basalt-soft); margin-top: 10px; }
.smap .land { fill: #f1ece2; }
.smap .sand { fill: #ead9b0; }
.smap .ocean { fill: #9fd3d1; }
.smap .road { fill: none; stroke: #d3d6d3; stroke-width: 44; }
.smap .hard { fill: #e3ddd1; }
.smap .drive { fill: none; stroke: #e3ddd1; stroke-width: 30; stroke-linecap: round; }
.smap .walk path { fill: none; stroke: #b7a98f; stroke-width: 5; stroke-dasharray: 2 12; stroke-linecap: round; }
.smap .heritage { fill: #e6dccb; stroke: #b7a98f; stroke-width: 3; stroke-dasharray: 8 8; }
.smap .lawn { fill: #cfdcbc; }
.smap .court { fill: #b9cf9a; stroke: #fff; stroke-width: 3; }
.smap .deck { fill: #e7e0d4; }
.smap .pool { fill: #3fa7b4; }
.smap .bldg { fill: #fff; stroke: #8f9a9c; stroke-width: 2; }
.smap .stack { fill: #fff; stroke: #4b5558; stroke-width: 2.5; }
.smap .stack.here { fill: var(--reef); stroke: var(--reef-deep); }
.smap .shower circle { fill: #fff; stroke: #3fa7b4; stroke-width: 5; }
.smap .honu { fill: var(--reef); }
.smap .letter { font-size: 56px; font-weight: 700; fill: #4b5558; text-anchor: middle; opacity: 0.7; }
.smap .l { font-size: 28px; font-weight: 600; fill: var(--basalt); text-anchor: middle; paint-order: stroke; stroke: #f1ece2; stroke-width: 7px; stroke-linejoin: round; }
.smap .l.sm { font-size: 23px; }
.smap .l.muted { fill: #6e6457; }
.smap .l.beach { font-size: 34px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--koa); stroke: #ead9b0; }
.smap .l.beach-sm { font-size: 26px; }
.smap .l.sea { fill: var(--reef-deep); stroke: #9fd3d1; font-size: 32px; }
.smap .l.sea.sm { font-size: 22px; font-weight: 400; font-style: italic; }
.smap .l.road-lbl { fill: #6b7476; stroke: #d3d6d3; letter-spacing: 0.06em; }
.smap .pin circle { fill: var(--reef); stroke: #fff; stroke-width: 7; }
.smap .pin path { stroke: var(--reef); stroke-width: 6; }
.smap .pin rect { fill: var(--reef); }
.smap .pin text { fill: #fff; font-size: 30px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.smap .compass circle { fill: #fff; stroke: #8f9a9c; stroke-width: 3; }
.smap .compass path { fill: none; stroke: var(--basalt); stroke-width: 5; stroke-linecap: round; }
.smap .compass .tip { fill: var(--basalt); stroke: none; }
.smap .compass text { font-size: 30px; font-weight: 700; fill: var(--basalt); }
.smap-key { white-space: nowrap; margin-left: 10px; }
.smap-key i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.smap-key .k-shower { background: #fff; border: 2.5px solid #3fa7b4; width: 7px; height: 7px; }

/* placeholders for details the owners still need to give */
.tbd { background: #fde68a; color: #7a4b00; padding: 0 4px; border-radius: 3px; }

/* Mark and Cory's story */
.story { padding-block: clamp(48px, 7vw, 88px) 0; }
.story-copy { max-width: 40em; }
.story-copy p { margin: 0 0 1em; }
.story-sign { font-style: italic; color: var(--koa); }
