/* Greenkunja — Terai paddy palette */
:root {
  --paddy: #2E5B3C;
  --paddy-deep: #1E3F29;
  --mustard: #E2B23B;
  --sky: #EAF1F2;
  --paper: #FCFDFB;
  --ink: #1C2620;
  --muted: #5A6A5F;
  --line: #DCE4DE;
  --wa: #1F8F4E;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font: 400 clamp(24px, 3vw, 30px)/1.2 var(--serif); margin-bottom: 18px; }
h3 { font: 600 17px/1.35 var(--sans); }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Preview bar */
.preview-bar { background: var(--mustard); color: var(--ink); font-size: 14px; text-align: center; padding: 8px 16px; }
.preview-bar a { font-weight: 600; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(252,253,251,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paddy-deep); font: 400 22px/1 var(--serif); }
.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--paddy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 20px; border-radius: var(--r-md);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s;
}
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 999px; }
.btn-ink { background: var(--paddy); color: #fff; }
.btn-ink:hover { background: var(--paddy-deep); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #18773F; }
.btn-wa-alt { background: #fff; color: var(--wa); border-color: var(--wa); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--sky); }

/* Title */
.title-block { padding: 36px 0 22px; }
h1 { font: 400 clamp(36px, 6vw, 60px)/1.04 var(--serif); color: var(--paddy-deep); letter-spacing: -.01em; }
.lede { margin-top: 12px; font-size: clamp(18px, 2.2vw, 21px); color: var(--ink); max-width: 38em; }
.where { margin-top: 12px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.where .ic { width: 18px; height: 18px; }
.where a { text-decoration: underline; text-underline-offset: 3px; }

/* Gallery */
.gallery-wrap { position: relative; }
.gallery {
  display: grid; gap: 8px; height: min(52vw, 480px);
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr;
  border-radius: var(--r-lg); overflow: hidden;
}
.g { position: relative; padding: 0; border: 0; background: var(--sky); cursor: zoom-in; overflow: hidden; display: block; width: 100%; height: 100%; }
.g:disabled { cursor: default; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.g:hover img { filter: brightness(.88); }
.g0 { grid-row: 1 / 3; }
.ph { width: 100%; height: 100%; min-height: 120px; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--sky) 0 14px, #E2EBEC 14px 28px); color: var(--muted); font-size: 14px; }
.show-all { position: absolute; right: 16px; bottom: 16px; min-height: 40px; font-size: 14px; padding: 0 14px; border-radius: var(--r-sm); }
.show-all .ic { width: 18px; height: 18px; }

/* Two-column layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; padding-top: 32px; }
.block { padding: 32px 0; border-top: 1px solid var(--line); }
.main-col .block.first { border-top: 0; padding-top: 0; }
.h-sm { font: 400 24px/1.25 var(--serif); margin-bottom: 8px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); }
.facts li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--mustard); margin: 0 18px 3px -11px; vertical-align: middle; }

.highlights { display: grid; gap: 22px; }
.hl { display: flex; gap: 18px; align-items: flex-start; }
.hl .ic { width: 28px; height: 28px; color: var(--paddy); margin-top: 2px; }
.hl p { color: var(--muted); margin-top: 2px; }

.prose p { max-width: 62ch; }
.prose p + p { margin-top: 14px; }

.room { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.room-img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sky); }
.room-img img, .room-img .ph { width: 100%; height: 100%; object-fit: cover; }
.room-body h3 { font: 400 22px/1.25 var(--serif); }
.room-sub { color: var(--muted); margin: 4px 0 14px; }
.ticks, .amen { list-style: none; margin: 0; padding: 0; }
.ticks li, .amen li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.ticks .ic, .amen .ic { color: var(--paddy); }
.amen { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }

/* Booking card */
.side-col { position: sticky; top: 92px; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; background: #fff; box-shadow: 0 10px 30px -18px rgba(30,63,41,.35); display: grid; gap: 12px; }
.card-k { font: 400 22px/1.25 var(--serif); color: var(--paddy-deep); }
.card-t { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.card-list { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.card-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.card-list .ic { width: 18px; height: 18px; color: var(--paddy); }
.card-list a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.card-list a:hover { text-decoration: underline; }

/* Terrace band — the one big moment */
.band { position: relative; margin: 32px 0 0; height: min(64vw, 620px); overflow: hidden; background: var(--paddy-deep); }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 0 28px; background: linear-gradient(to top, rgba(14,30,20,.7), transparent); }
.band-cap span { display: block; width: min(1120px, 100% - 32px); margin-inline: auto; color: #fff; font: 400 clamp(22px, 3.4vw, 36px)/1.2 var(--serif); }

/* Area */
.intro { color: var(--muted); max-width: 62ch; margin: -8px 0 22px; }
.near { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.near li, .rules li { display: flex; gap: 14px; align-items: flex-start; }
.near .ic, .rules .ic { width: 26px; height: 26px; color: var(--paddy); margin-top: 2px; }
.near strong, .rules strong { display: block; font-weight: 600; }
.near span, .rules span { color: var(--muted); font-size: 15px; }
.area-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 28px; }
.area-strip .g { aspect-ratio: 3 / 4; border-radius: var(--r-md); }
.area-strip .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; color: #fff; font-size: 13px; text-align: left; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }

/* Map */
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); height: 420px; margin-bottom: 16px; background: var(--sky); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 32px; }

/* Footer */
.foot { margin-top: 40px; background: var(--paddy-deep); color: #D9E5DC; padding: 44px 0 110px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; }
.foot-brand { font: 400 24px/1.2 var(--serif); color: #fff; margin-bottom: 6px; }
.foot-links { display: grid; gap: 6px; justify-items: end; }
.foot-links a { color: #fff; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-copy { grid-column: 1 / -1; color: #9DB5A3; font-size: 13px; }

/* Mobile bar */
.mbar { display: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: #0E1A12; color: #fff; display: grid; grid-template-rows: auto 1fr; }
.lb[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.lb-count { font-size: 15px; color: #C7D3CA; }
.lb-stage { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; min-height: 0; padding-bottom: 24px; }
.lb figure { margin: 0; height: 100%; min-height: 0; display: grid; grid-template-rows: 1fr auto; gap: 12px; justify-items: center; }
.lb img { max-height: 100%; max-width: 100%; object-fit: contain; min-height: 0; }
.lb figcaption { color: #C7D3CA; font-size: 15px; text-align: center; }
.lb-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; justify-self: center; }
.lb-btn:hover { background: rgba(255,255,255,.12); }
.lb-top .lb-btn { font-size: 18px; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .side-col { position: static; }
  .card { margin-top: 8px; }
  .rules { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .top-in .btn { margin-left: auto; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top-in { height: 60px; }
  .title-block { padding: 24px 0 18px; }

  /* Gallery becomes a swipe carousel, edge to edge */
  .gallery-wrap { width: 100%; }
  .gallery {
    display: flex; height: auto; gap: 0; border-radius: 0;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .g { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; height: auto; }
  .gallery .g:disabled { display: none; }
  .gallery .g:first-child:disabled { display: block; }
  .show-all { right: 12px; bottom: 12px; }

  .layout { padding-top: 24px; }
  .block { padding: 26px 0; }
  .room { grid-template-columns: 1fr; gap: 16px; }
  .amen, .near { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; gap: 16px; }
  .area-strip { grid-template-columns: 1fr 1fr; }
  .map { height: 320px; }
  .band { height: 70vw; }

  .foot-in { grid-template-columns: 1fr; }
  .foot-links { justify-items: start; }

  .mbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line);
  }
  .mbar strong { display: block; font-size: 15px; }
  .mbar span { color: var(--muted); font-size: 13px; }
  .mbar .btn { min-height: 46px; }

  .lb-stage { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { display: none; }
}
