/* The Guesthouse by Balinsasayaw */

:root {
  --sky: #6aabe4;
  --sky-soft: #e8f2fb;
  --sky-mist: #f4f8fc;
  --ink: #0f2233;
  --ink-2: #33475a;
  --muted: #5e7082;
  --line: #dde6ee;
  --line-strong: #c4d1dd;
  --thatch: #8a5a2b;
  --paper: #ffffff;
  --danger: #b3261e;
  --ok: #1f6f4a;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --radius-lg: 32px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(15, 34, 51, .05), 0 12px 32px -12px rgba(15, 34, 51, .16);
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

::selection { background: var(--sky); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
html { scrollbar-color: var(--line-strong) transparent; }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Line icons share one stroke */
svg path, svg rect { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: .95rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1d3a55; box-shadow: 0 8px 20px -8px rgba(15, 34, 51, .5); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-block { width: 100%; }

.round-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-strong); color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.round-btn svg { width: 18px; height: 18px; }
.round-btn:hover { border-color: var(--ink); }
.round-btn:disabled { opacity: .35; cursor: default; }

.text-btn { background: none; border: 0; padding: 8px 0; color: var(--muted); text-decoration: underline; text-underline-offset: .25em; }
.text-btn:hover { color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 500; text-decoration: none; padding: 10px 4px 10px 18px;
  border: 1px solid var(--line-strong); border-radius: 999px;
}
.link-arrow svg { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: max(12px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  transition: transform .4s var(--ease);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1360px; margin-inline: auto;
  height: 60px; padding: 0 10px 0 18px;
  border-radius: 999px;
  color: #fff;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-solid .header-inner {
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(15, 34, 51, .35);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-mark path { stroke-width: 1.8; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-weight: 600; letter-spacing: -.02em; font-size: 1rem; }
.brand-text small { font-size: .75rem; opacity: .85; letter-spacing: .01em; }

.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-book { display: none; }
.nav a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border-radius: 999px; font-size: .9rem; text-decoration: none;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  transition: background-color .2s, border-color .2s;
}
.nav a:hover { background: rgba(255, 255, 255, .3); }
.site-header.is-solid .nav a { background: var(--sky-mist); border-color: var(--line); }
.site-header.is-solid .nav a:hover, .site-header.is-solid .nav a[aria-current="true"] { background: var(--sky-soft); border-color: var(--line-strong); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.today { font-size: .85rem; opacity: .9; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-book { background: #fff; color: var(--ink); }
.header-book:hover { background: var(--sky-soft); }
.site-header.is-solid .header-book { background: var(--ink); color: #fff; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .14);
  position: relative;
}
.site-header.is-solid .menu-toggle { border-color: var(--line-strong); background: #fff; }
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 0; }
.hero-frame {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--header-h) + clamp(48px, 9vh, 110px)) var(--gutter) 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 72%;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, rgba(0,0,0,.6) 80%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 62%, rgba(0,0,0,.6) 80%, transparent 99%);
  animation: heroIn 1.6s var(--ease) both;
}
.hero-frame::before {
  /* sky scrim so white type passes contrast on the pale blue */
  content: ""; position: absolute; inset: 0 0 40%; z-index: -1;
  background: linear-gradient(to bottom, rgba(10, 48, 92, .5) 0%, rgba(10, 48, 92, .32) 55%, rgba(10, 48, 92, 0) 100%);
  pointer-events: none;
}
@keyframes heroIn { from { transform: scale(1.06); filter: blur(6px); } to { transform: none; filter: none; } }

.hero-copy { text-align: center; color: #fff; max-width: 1040px; }
.hero-copy h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.02;
  text-shadow: 0 2px 24px rgba(10, 48, 92, .25);
}
.hero-copy p {
  margin: 20px auto 0; max-width: 34rem;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.55;
  text-shadow: 0 1px 12px rgba(10, 48, 92, .45);
}
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy p { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.quickbook {
  margin-top: clamp(28px, 5vh, 48px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 6px;
  width: min(820px, 100%);
  padding: 8px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-radius: 999px;
  box-shadow: 0 20px 50px -20px rgba(10, 48, 92, .55);
  animation: rise 1s .22s var(--ease) both;
  position: relative;
}
.qb-field {
  display: grid; min-width: 0; padding: 6px 18px; border-radius: 999px; cursor: pointer;
  transition: background-color .2s;
}
.qb-field:hover, .qb-field:focus-within { background: var(--sky-mist); }
.qb-field + .qb-field { box-shadow: -1px 0 0 var(--line); }
.qb-field span { font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.qb-field input, .qb-field select {
  border: 0; background: none; padding: 0; min-height: 26px; font-size: .95rem; font-weight: 500;
  width: 100%; min-width: 0; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.qb-field input::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.qb-submit { min-height: 56px; padding: 0 26px; }
.qb-error {
  position: absolute; left: 24px; top: calc(100% + 10px);
  font-size: .875rem; font-weight: 500; color: #fff;
  background: var(--danger); padding: 6px 14px; border-radius: 999px;
}
.qb-error:empty { display: none; }
.qb-live {
  position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: .85rem; font-weight: 500; color: var(--ink);
  background: rgba(255, 255, 255, .92); padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 8px 20px -12px rgba(10, 48, 92, .5);
}
.qb-live:empty { display: none; }
.qb-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2f9e64; box-shadow: 0 0 0 3px rgba(47, 158, 100, .2); }
.quickbook:has(.qb-error:not(:empty)) .qb-live { visibility: hidden; }

.explore {
  margin-top: auto; padding: clamp(80px, 14vh, 160px) 0 28px;
  display: grid; justify-items: center; gap: 10px;
  text-decoration: none; font-size: .85rem; color: var(--ink-2);
}
.explore-dot {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow);
}
.explore-dot svg { width: 18px; height: 18px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(3px); } }

/* ---------- About ---------- */
.about { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.about-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.tag {
  justify-self: start; font-size: .82rem; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; box-shadow: 0 2px 8px -4px rgba(15,34,51,.15);
}
.statement {
  font-size: clamp(1.7rem, 3.3vw, 2.75rem);
  line-height: 1.2; letter-spacing: -.03em; font-weight: 450;
  max-width: 24ch;
}
.statement .muted { color: #6f8294; }
.amenities {
  list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px;
}
.amenities li { display: grid; justify-items: center; align-content: start; text-align: center; gap: 14px; font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.amenity-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  color: var(--ink);
  transition: transform .4s var(--ease), color .4s var(--ease);
}
.amenity-icon svg { width: 44px; height: 44px; }
.amenity-icon svg path, .amenity-icon svg rect { stroke-width: 1.3; }
.amenities li:hover .amenity-icon { color: var(--thatch); }
.amenities li:hover .amenity-icon { transform: translateY(-4px); }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2, .dining-copy h2, .booking-intro h2, .loc-copy h2, .contact h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.section-head p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.section-head.split { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Rooms ---------- */
.rooms { padding: 0 0 var(--section); }
.room-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.room {
  display: flex; flex-direction: column;
  padding: 12px 12px 20px;
  border: 1px solid var(--line); border-radius: 28px; background: #fff;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .4s;
}
.room:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.room-photo {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--sky-soft);
  aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 18px;
  isolation: isolate;
}
.room-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(8, 22, 36, .62) 0%, rgba(8, 22, 36, .18) 34%, rgba(8, 22, 36, 0) 55%),
    linear-gradient(to bottom, rgba(8, 22, 36, .22), rgba(8, 22, 36, 0) 26%);
  transition: opacity .4s var(--ease);
}
.photo-overlay {
  position: absolute; inset: auto 12px 12px 12px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: #fff;
}
.po-count { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.po-count svg { width: 18px; height: 18px; }
.po-zoom {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transform: scale(.85); opacity: 0; transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.po-zoom svg { width: 16px; height: 16px; }
.room:hover .po-zoom, .room-photo:focus-visible .po-zoom { transform: none; opacity: 1; }
.room-photo .room-status {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,.94); border-color: transparent;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.35);
}
.room-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.room:hover .room-photo img { transform: scale(1.05); }
.room-body { display: flex; flex-direction: column; flex: 1; padding: 18px 8px 0; }
.room-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.room-meta span { font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: var(--sky-mist); border: 1px solid var(--line); color: var(--ink-2); }
.room h3 { font-size: 1.3rem; letter-spacing: -.025em; }
.room p { margin: 8px 0 20px; font-size: .92rem; color: var(--muted); line-height: 1.55; }
.room .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Dining ---------- */
.dining {
  padding: var(--section) 0;
  background: linear-gradient(to bottom, #fff, var(--sky-mist) 30%, var(--sky-mist) 70%, #fff);
}
.dining-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.dining-photo {
  overflow: hidden;
  position: relative;
  border-radius: 28px;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 500px;
  justify-self: center;
  box-shadow: 0 30px 60px -36px rgba(10, 48, 92, .45);
}
.dining-photo img { width: 100%; height: 100%; object-fit: cover; }
.dining-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 22, 36, .6), rgba(8, 22, 36, 0) 42%);
}
.photo-caption {
  position: absolute; left: 22px; bottom: 20px; z-index: 1; color: #fff;
  display: grid; gap: 2px; font-size: .9rem; text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
.photo-caption strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.dining-copy p { margin-top: 18px; color: var(--ink-2); font-size: 1.05rem; max-width: 42ch; }
.facts { display: flex; gap: 32px; margin: 28px 0 32px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .78rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }

/* ---------- Gallery ---------- */
.gallery { padding: calc(var(--section) * .6) 0 var(--section); position: relative; }
.gallery-head { align-items: end; }
.gallery-progress { display: none; align-items: center; gap: 14px; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.gp-count span { color: var(--ink); font-weight: 600; }
.gp-bar { position: relative; width: 160px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.gp-bar span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.gallery-nav { display: flex; gap: 8px; }

.gallery-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-track {
  display: flex; align-items: center; gap: 16px; width: max-content;
  padding: 4px max(var(--gutter), calc((100vw - 1200px) / 2));
}
.g-item {
  flex: none; position: relative; scroll-snap-align: center;
  height: clamp(240px, 50vh, 460px); aspect-ratio: 1 / 1;
  padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--sky-soft);
}
.g-item img {
  position: absolute; top: 0; left: -8%; width: 116%; max-width: none; height: 100%; object-fit: cover;
  transform: translate3d(var(--px, 0px), 0, 0) scale(var(--sc, 1));
  transition: filter .5s var(--ease);
}
.g-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 22, 36, .58), rgba(8, 22, 36, 0) 40%);
}
.g-cap {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1;
  color: #fff; font-size: .88rem; font-weight: 500; text-align: left; line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.g-item:hover img { filter: brightness(1.06); }

/* Scroll-driven mode: the section pins and vertical scroll slides the strip */
.gallery.is-pinned { padding: 0; }
.gallery.is-pinned .gallery-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.gallery.is-pinned .gallery-viewport { overflow: visible; scroll-snap-type: none; }
.gallery.is-pinned .gallery-track { will-change: transform; }
.gallery.is-pinned .gallery-progress { display: flex; }
.gallery.is-pinned .gallery-nav { display: none; }
.gallery.is-pinned .section-head { margin-bottom: clamp(24px, 4vh, 48px); }

/* ---------- Booking ---------- */
.booking { padding: var(--section) 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.booking::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(106, 171, 228, .28), transparent);
  pointer-events: none;
}
.booking-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; position: relative; }
.booking-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.booking-intro p { margin-top: 18px; color: #b9c8d6; max-width: 40ch; }
.booking-intro .muted { color: #93a7ba; }
.steps { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.steps span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); font-size: .85rem; font-variant-numeric: tabular-nums;
}

.booking-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
.book-form { display: grid; gap: 16px; }
.row { display: grid; gap: 16px; }
.row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row.three { grid-template-columns: 1.6fr 1fr 1fr; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 14px; background: #fff;
  font-size: 1rem; /* 16px stops iOS zoom */
  transition: border-color .2s, box-shadow .2s;
  caret-color: var(--sky);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%230f2233' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #66788a; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fb1c2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(106, 171, 228, .22); }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(179, 38, 30, .12); }
.field .field-msg { font-size: .8rem; color: var(--danger); }

.nights {
  margin-top: -4px; font-size: .9rem; color: var(--muted);
  padding: 10px 14px; border-radius: 12px; background: var(--sky-mist);
}
.nights strong { color: var(--ink); font-weight: 600; }
/* Availability */
.avail { border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 12px; }
.avail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.avail-title { font-size: 1.05rem; letter-spacing: -.015em; }
.avail-legend { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.dot.is-free { background: #d7ecdf; border: 1px solid #9bc9ad; }
.dot.is-booked { background: #f3d9d6; border: 1px solid #d9a29c; margin-left: 8px; }
.avail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.avail-item {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  grid-template-areas: "img main btn" "img days btn";
  padding: 8px 8px 8px 8px; border-radius: 16px; background: var(--sky-mist);
  transition: background-color .3s var(--ease), opacity .3s var(--ease);
}
.avail-item.is-picked { background: var(--sky-soft); box-shadow: inset 0 0 0 1.5px var(--sky); }
.avail-item.is-booked { background: #fbf4f3; }
.avail-item img { grid-area: img; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.avail-item.is-booked img { filter: grayscale(.7); opacity: .75; }
.ai-main { grid-area: main; min-width: 0; display: grid; gap: 4px; }
.avail-item .btn { grid-area: btn; }
.ai-name { font-weight: 600; font-size: .95rem; line-height: 1.2; }
.ai-status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; line-height: 1.3; }
.ai-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.is-free .ai-status { color: var(--ok); }
.is-free .ai-status::before { background: #2f9e64; }
.is-booked .ai-status { color: var(--danger); }
.is-booked .ai-status::before { background: var(--danger); }
.ai-days { grid-area: days; display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.ai-days span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  font-size: .68rem; font-weight: 500; font-variant-numeric: tabular-nums;
  background: #d7ecdf; color: #1f5a3c;
}
.ai-days span.is-booked { background: #f3d9d6; color: #8a2a22; text-decoration: line-through; }
.ai-days span.in-range { box-shadow: inset 0 0 0 1.5px var(--ink); }
.avail-item .btn { min-height: 38px; padding: 0 14px; font-size: .85rem; }
.avail-item .btn:disabled { opacity: .5; cursor: not-allowed; border-color: var(--line); }
.avail-item .btn:disabled:active { transform: none; }

.room-status {
  font-size: .75rem; padding: 3px 10px; border-radius: 999px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.room-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.room-status.is-free { background: #e6f4ec; color: var(--ok); border: 1px solid #bfe0cc; }
.room-status.is-booked { background: #fbecea; color: var(--danger); border: 1px solid #efc9c4; }

.form-error { color: var(--danger); font-weight: 500; font-size: .92rem; }
.form-error:empty { display: none; }

.ref { font-size: .9rem; color: var(--muted); }
.ref strong { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.summary-list { margin: 0; display: grid; border-top: 1px solid var(--line); }
.summary-list > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.send-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.send-actions .btn { flex: 1 1 auto; }

/* ---------- Booking summary modal ---------- */
.modal {
  width: min(560px, calc(100% - 32px)); max-height: min(88vh, 860px);
  padding: 0; border: 0; border-radius: 28px;
  background: #fff; color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(8, 22, 36, .6);
  overflow: hidden;
}
.modal[open] { display: flex; animation: modalIn .45s var(--ease); }
.modal::backdrop { background: rgba(8, 22, 36, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .3s var(--ease); }
.modal:focus { outline: none; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal .summary { display: flex; flex-direction: column; width: 100%; min-height: 0; gap: 0; }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 24px 24px 16px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 1.5rem; }
.modal-head .ref { margin-top: 6px; }
.modal-close { flex: none; width: 40px; height: 40px; }
.modal-body { padding: 8px 24px 16px; overflow-y: auto; overscroll-behavior: contain; }
.modal-body .summary-list { border-top: 0; }
.modal-body .summary-list > div:last-child { border-bottom: 0; }
.modal-note { margin-top: 12px; font-size: .85rem; color: var(--muted); padding: 12px 14px; background: var(--sky-mist); border-radius: 14px; }
.modal-foot { padding: 16px 24px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: #fff; }
.modal-foot .text-btn { justify-self: center; }

/* ---------- Location ---------- */
.location { padding: var(--section) 0 calc(var(--section) / 2); }
.loc-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.loc-copy address { font-style: normal; margin-top: 18px; font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.map {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--sky-soft); border: 1px solid var(--line);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }

/* ---------- Contact ---------- */
.contact { padding: calc(var(--section) / 2) 0 var(--section); text-align: center; }
.contact p { margin: 14px auto 0; color: var(--muted); max-width: 44ch; }
.contact-book { margin-top: 28px; min-height: 52px; padding: 0 28px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-weight: 500;
  max-width: 100%;
  transition: border-color .2s, background-color .2s;
}
.contact-pill svg { width: 20px; height: 20px; color: var(--thatch); }
.contact-pill:hover { border-color: var(--ink); background: var(--sky-mist); }
.email-text { overflow-wrap: anywhere; text-align: left; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.brand-footer { color: var(--ink); }
.to-top { font-weight: 500; color: var(--ink); }

/* ---------- Mobile book bar ---------- */
.mobile-book {
  display: none;
  position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  min-height: 52px; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(15, 34, 51, .6);
  transform: translateY(160%); transition: transform .45s var(--ease);
}
.mobile-book.is-on { transform: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 20, 32, .94); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: fade .3s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 64px 72px; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 180px); width: auto; border-radius: 16px; object-fit: contain; }
.lightbox figcaption { font-size: .92rem; color: #c8d5e1; text-align: center; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal (content visible by default; JS opts in) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .today { display: none; }
  .room-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amenities { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header-inner { height: 56px; }
  .header-book { display: none; }
  .menu-toggle { display: inline-block; }
  .nav {
    position: fixed; left: var(--gutter); right: var(--gutter); top: 76px;
    background: #fff; color: var(--ink); border-radius: 24px; padding: 10px;
    box-shadow: 0 30px 60px -20px rgba(15, 34, 51, .45);
    opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a, .site-header.is-solid .nav a { display: flex; height: 52px; font-size: 1.05rem; background: none; border: 0; border-radius: 14px; padding: 0 16px; }
  .nav a:hover { background: var(--sky-mist); }
  .nav-book { display: block; margin-top: 6px; }
  .nav .nav-book a, .site-header.is-solid .nav .nav-book a { background: var(--ink); color: #fff; justify-content: center; border-radius: 999px; }

  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .dining-grid, .booking-grid, .loc-grid { grid-template-columns: 1fr; }
  .booking-intro { position: static; }
  .mobile-book { display: flex; }
}

@media (max-width: 720px) {
  :root { --section: 72px; }
  .hero-frame { padding-top: calc(var(--header-h) + 40px); }
  .hero-copy h1 { font-size: clamp(2.1rem, 9.4vw, 2.8rem); }
  .hero-copy p { font-size: 1rem; margin-top: 14px; }
  .explore { padding-top: 96px; }
  .statement { font-size: clamp(1.5rem, 6.6vw, 1.9rem); }
  .amenities { margin-top: 48px; }
  .amenity-icon { width: 40px; height: 40px; }
  .amenity-icon svg { width: 36px; height: 36px; }
  .section-head h2, .dining-copy h2, .booking-intro h2, .loc-copy h2, .contact h2 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .booking-intro .steps { display: none; }
  .booking-intro p.small { display: none; }
  .booking-grid { gap: 24px; }
  .booking-card { border-radius: 24px; padding: 18px 16px; }
  .dining-photo { max-width: 340px; }
  .facts { flex-wrap: wrap; }
  .g-item { height: auto; width: 72vw; max-width: 320px; }
  .gallery-viewport { scroll-padding-inline: var(--gutter); }
  .map { aspect-ratio: 4 / 3.4; }
  .contact-links { flex-direction: column; align-items: stretch; }
  .contact-pill { justify-content: center; padding: 0 16px; }
  .email-text { font-size: .82rem; }
  .amenities { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 8px; }
  .amenities li { flex: 0 0 31%; font-size: .82rem; gap: 10px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .quickbook {
    grid-template-columns: 1fr 1fr; border-radius: 26px; padding: 8px; gap: 4px;
  }
  .qb-field { border-radius: 18px; padding: 8px 14px; }
  .qb-field + .qb-field { box-shadow: none; }
  .qb-field:nth-child(3) { grid-column: 1 / -1; }
  .qb-submit { grid-column: 1 / -1; min-height: 52px; }
  .qb-error { left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .hero-frame { min-height: 100svh; }
  .hero-img { object-position: 50% 80%; }
  .row.two, .row.three { grid-template-columns: 1fr 1fr; }
  .row.three .field:first-child { grid-column: 1 / -1; }
  .summary-list > div { grid-template-columns: 1fr; gap: 2px; }
  .avail { padding: 12px; gap: 10px; }
  .avail-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main btn" "days days"; gap: 8px; padding: 10px 10px 10px 12px; }
  .avail-item img { display: none; }
  .avail-item .btn { min-height: 36px; padding: 0 12px; font-size: .8rem; }
  .ai-days { gap: 2px; }
  .ai-days span { width: 24px; height: 24px; font-size: .72rem; border-radius: 6px; }
  .site-footer { padding-bottom: 96px; }
}

@media (max-width: 560px) {
  .modal {
    width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }
  .modal[open] { animation: sheetIn .45s var(--ease); }
  .modal-head { padding: 20px 18px 14px; }
  .modal-head h3 { font-size: 1.3rem; }
  .modal-body { padding: 4px 18px 12px; }
  .modal-foot { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); }
  .modal .send-actions .btn { flex: 1 1 100%; }
  .room-photo .room-status { top: 6px; left: 6px; font-size: .66rem; padding: 2px 7px; }
  .photo-overlay { inset: auto 8px 8px 8px; }
  .po-count { font-size: .72rem; }
  .po-count svg, .po-zoom { display: none; }
  .room-list { grid-template-columns: 1fr; gap: 12px; }
  .room { flex-direction: row; align-items: center; gap: 14px; padding: 10px; border-radius: 22px; }
  .room-photo { width: 120px; flex: none; border-radius: 14px; }
  .room-body { padding: 0; }
  .room-meta { margin-bottom: 6px; gap: 4px; }
  .room-meta { display: none; }
  .room h3 { font-size: 1.1rem; }
  .room p { display: none; }
  .room .btn { margin-top: 10px; min-height: 38px; }
  .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row.two { grid-template-columns: 1fr; }
  .facts { gap: 20px; }
  .send-actions .btn { flex-basis: 100%; }
  .lightbox figure { padding: 64px 12px 80px; }
  .g-item { height: clamp(220px, 40vh, 340px); }
  .gallery-head p { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 52px); }
  .lb-next { right: calc(50% - 52px); }
}


/* ---------- Small iPhones: SE (320), 8 / SE 2-3 / mini (375), 12-15 (390), Plus (414) ---------- */
@media (max-width: 430px) {
  :root { --gutter: 16px; --section: 64px; }

  /* iOS zooms any input under 16px; keep every field at 16px */
  .qb-field input, .qb-field select { font-size: 1rem; }
  input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; min-height: 48px; text-align: left; }
  .qb-field input[type="date"] { min-height: 26px; }
  input::-webkit-date-and-time-value { text-align: left; }

  /* trim what repeats on a phone */
  .tag, .rooms .link-arrow, .explore { display: none; }
  .about { padding-top: 40px; }
  .hero-frame { min-height: auto; padding-bottom: 64px; }
  .hero-copy p { max-width: 30ch; margin-inline: auto; }

  /* amenities: tidy two-column list, icon beside label */
  .amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 36px; }
  .amenities li { display: flex; align-items: center; justify-content: flex-start; text-align: left; gap: 10px; font-size: .85rem; line-height: 1.3; }
  .amenities li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .amenity-icon, .amenity-icon svg { width: 28px; height: 28px; flex: none; }

  /* room rows */
  .room { gap: 12px; }
  .room-photo { width: 104px; }
  .room-photo .room-status { font-size: .72rem; padding: 2px 8px; top: 6px; left: 6px; white-space: nowrap; }
  .room-photo .rs-when, .room-photo .photo-overlay { display: none; }
  .room-photo::after { background: linear-gradient(to bottom, rgba(8, 22, 36, .25), rgba(8, 22, 36, 0) 40%); }
  .room h3 { font-size: 1.05rem; }
  .room .btn { padding: 0 14px; font-size: .85rem; }

  /* booking */
  .booking-intro p:not(.small) { font-size: .95rem; }
  .booking-card { padding: 16px 14px; }
  .avail { padding: 10px; }
  .avail-head { gap: 6px; }
  .ai-status { font-size: .78rem; }

  /* gallery + dining */
  .g-item { width: 78vw; }
  .dining-photo { max-width: none; }
  .facts { flex-direction: row; gap: 24px; }

  /* contact */
  .email-text { font-size: .78rem; overflow-wrap: normal; word-break: normal; }
  .contact-pill { min-height: 48px; }
  .to-top { display: inline-block; padding: 10px 0; }
}

@media (max-width: 360px) {
  .brand-text strong { font-size: .92rem; }
  .brand-mark { width: 24px; height: 24px; }
  .hero-copy h1 { font-size: 2rem; }
  .hero-copy p { font-size: .95rem; }
  .quickbook { padding: 6px; }
  .qb-field { padding: 8px 10px; }
  .qb-field input::-webkit-calendar-picker-indicator { display: none; }
  .room-photo { width: 92px; }
  .room .btn { padding: 0 12px; }
  .ai-days span { width: 22px; height: 22px; }
  .avail-item .btn { padding: 0 10px; }
  .send-actions .btn, .loc-actions .btn { flex: 1 1 100%; }
  .email-text { font-size: .72rem; }
  .contact-pill { padding: 0 12px; gap: 8px; }
}
