/* Hallmark · shape: Grand house · genre: editorial · theme: custom (by reference: ghuniversal.com, asked by the client) · job: book · idea: "a family hotel by the surf, set out with the manners of a grand hotel" · vibe: "white linen, navy lacquer, brass, sea photographs"
 * paper: oklch(99.2% 0.002 250) · accent: oklch(72% 0.105 80) · display: Marcellus, Pinyon Script for section names (one role) · body: Manrope · hero: full-bleed dusk photograph with the booking bar laid over its foot · nav: white bar, wordmark, links, one solid action · footer: three columns under a heavy navy rule · imagery: photographs, library 10 (stand-ins) · signature: the booking bar resting on the hero photograph
 * axes: light/roman-serif/warm · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S3 R4 V4 · weakest: S, stand-in photos are not Batukaras; every slot carries data-alt naming the shot the hotel should take */
/* Hallmark · waive 83 · the client asked for a photo-led grand hotel page after ghuniversal.com, so rooms, offers and the surroundings each lead with a photograph · the fasilitas band and the statement keep a non-photo section between photo runs */
/* Hallmark · waive 77 · cek.html is a results page: the search and the list are its whole job · it is reached from the booking bar, never landed on cold */
/* Hallmark · dismissed F15 · splits keep 96px between text and picture; the booking bar spaces fields at 24px and the result rows at 40px, both inside one component */
/* Hallmark · waive 79 · the booking bar is the hero's last content and rests on the photo's foot at the fold; the check measures the head and lead above it · moving the bar up would hide the photograph the reference leads with */
/* Hallmark · waive 81 · the notice band is text, not an image slot · photos, rooms, prices, offers and contacts are samples for client review; removed at launch */
@import url("./tokens.css");
@import url("./base.css");

:root { --bar-h: 84px; }

body { color: var(--color-ink-2); line-height: 1.65; }
h1, h2, h3 { font-weight: 400; color: var(--color-ink); letter-spacing: var(--tracking-display); }
h3 { font-size: var(--text-title); line-height: 1.2; }
h2 { font-size: var(--text-section); line-height: 1.08; }
.lead { font-size: var(--text-lead); color: var(--color-ink-2); }
.meta { font-size: var(--text-sm); color: var(--color-muted); }
.center { text-align: center; }

/* notice */
.notice { background: var(--color-ink); color: var(--color-on-ink-2); font-size: var(--text-sm); }
.notice .container { padding-block: var(--space-xs); }

/* nav: white bar */
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.bar > .container { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--bar-h); }
.brand { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; margin-right: auto; font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-ink); white-space: nowrap; }
.bar > .container > nav { display: flex; gap: var(--space-lg); }
.bar > .container > nav a { text-decoration: none; color: var(--color-ink-2); padding-block: var(--space-xs); border-bottom: 1px solid transparent; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.bar > .container > nav a:hover { color: var(--color-ink); border-bottom-color: var(--color-accent); }
.bar > .container > nav a:active { color: var(--color-muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-ink); border-radius: var(--radius-card); font-weight: 600; font-size: var(--text-sm); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.btn-solid { background: var(--color-ink); color: var(--color-on-ink); }
.btn-solid:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.btn-solid:active { background: var(--color-muted); border-color: var(--color-muted); }
.btn-line { background: transparent; color: var(--color-ink); }
.btn-line:hover { background: var(--color-ink); color: var(--color-on-ink); }
.btn-line:active { background: var(--color-ink-2); color: var(--color-on-ink); }
.btn-light { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-paper); }
.btn-light:hover { background: var(--color-paper-3); border-color: var(--color-paper-3); }
.btn-light:active { background: var(--color-rule); border-color: var(--color-rule); }
.btn[aria-disabled="true"] { background: var(--color-paper-2); color: var(--color-muted); border-color: var(--color-rule); cursor: not-allowed; }
.link { color: var(--color-ink); text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-ink); }
.link:active { color: var(--color-muted); }

/* hero: full-bleed photograph, booking bar laid over its foot */
.hero { position: relative; min-height: clamp(460px, calc(100dvh - var(--bar-h) - 34px - 88px), 860px); display: grid; grid-template-rows: 1fr auto; align-items: center; color: var(--color-on-ink); isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -1; }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, var(--color-scrim-0) 30%, var(--color-scrim) 100%), linear-gradient(90deg, var(--color-scrim) 0%, var(--color-scrim-0) 70%); }
.hero-text { padding-block: var(--space-3xl) calc(var(--space-3xl) + var(--space-xl)); }
.hero h1 { color: var(--color-on-ink); font-size: var(--text-display); line-height: 1.02; max-width: 12ch; }
.hero .lead { color: var(--color-on-ink); margin-top: var(--space-lg); max-width: 36ch; }
.book-wrap { position: relative; z-index: var(--z-raised); margin-bottom: -88px; color: var(--color-ink-2); }
.hero + .section { padding-top: calc(var(--section-gap) + 88px); }
.book { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr) auto; align-items: end; gap: var(--space-md) var(--space-lg); background: var(--color-paper); padding: var(--space-xl); box-shadow: var(--shadow-card); border-radius: var(--radius-card); }
.book-title { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-ink); align-self: center; padding-right: var(--space-md); }
.field { display: grid; gap: var(--space-2xs); min-width: 0; }
.field label { font-size: var(--text-sm); color: var(--color-muted); }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 var(--space-sm); border: 1px solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); transition: border-color var(--dur-short) var(--ease-out); }
.field input:hover, .field select:hover { border-color: var(--color-ink); }
.form-error { grid-column: 1 / -1; color: var(--color-error); font-size: var(--text-sm); }

/* sections */
.section { padding-block: var(--section-gap); }
.paper-2 { background: var(--color-paper-2); }
.ink { background: var(--color-ink); color: var(--color-on-ink-2); }
.ink h2, .ink .lead { color: var(--color-on-ink); }

/* rooms: text on the left, the photo strip bleeding to the right edge */
.rooms { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-3xl); align-items: center; padding-left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
.rooms-text { display: grid; gap: var(--space-lg); justify-items: start; }
.rooms-text .lead { color: var(--color-ink); }
.slides { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; scroll-snap-align: start; aspect-ratio: 16 / 10; min-height: 560px; color: var(--color-on-ink); }
.slide-photo { position: absolute; inset: 0; }
.slide-photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, var(--color-scrim-0) 55%, var(--color-scrim) 100%); }
.slide-cap { position: absolute; left: var(--space-xl); right: var(--space-xl); bottom: var(--space-xl); z-index: 3; display: grid; gap: var(--space-2xs); }
.slide-cap h3 a { color: var(--color-on-ink); text-decoration: none; }
.slide-cap h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.slide-nav { display: flex; gap: var(--space-xs); margin-top: var(--space-md); }
.slide-nav button { min-height: 44px; padding: 0 var(--space-md); background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--color-muted); cursor: pointer; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.slide-nav button:hover { color: var(--color-ink); }
.slide-nav button:active { color: var(--color-ink-2); }
.slide-nav button[aria-current="true"] { color: var(--color-ink); border-bottom-color: var(--color-accent); }

/* section names in script, one role */
.script { font-family: var(--font-script); font-size: clamp(3.25rem, 3.5vw + 1.75rem, 5.75rem); line-height: 1.1; letter-spacing: 0; text-wrap: balance; }

/* facilities on navy, photo beside */
.fac-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fac-photo { min-height: 720px; }
.fac-body { display: grid; gap: var(--space-lg); align-content: center; padding: var(--space-3xl) max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))) var(--space-3xl) var(--space-3xl); }
.fac-body .fac { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-lg); }
.split-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.fac { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-ink-2); }
.fac li { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-bottom: 1px solid var(--color-ink-2); color: var(--color-on-ink); }
.fac .ico { width: 28px; height: 28px; flex: none; color: var(--color-accent); }

/* offers */
.offers, .others { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer { background: var(--color-paper); display: grid; grid-template-rows: auto 1fr; }
.offer-photo { aspect-ratio: 4 / 5; }
.offer-body { display: grid; gap: var(--space-sm); align-content: start; justify-items: start; padding: var(--space-xl); }
.offer-body h3 a { text-decoration: none; }
.offer-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.price { color: var(--color-ink); font-weight: 600; }
.offer-body .btn { margin-top: var(--space-sm); }

/* statement */
.story { display: grid; justify-items: center; }
.statement { font-family: var(--font-display); font-size: var(--text-display-s); line-height: 1.15; color: var(--color-ink); text-align: center; max-width: 22ch; text-wrap: balance; }

/* surroundings mosaic */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs); background: var(--color-paper); }
.tile { position: relative; min-height: 600px; display: grid; place-items: center; color: var(--color-on-ink); isolation: isolate; text-align: center; }
.tile-wide { grid-column: 1 / -1; min-height: 720px; }
.tile > [data-slot] { position: absolute; inset: 0; z-index: -1; }
.tile > [data-slot]::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--color-scrim); opacity: 0.7; }
.tile-text { display: grid; gap: var(--space-sm); justify-items: center; padding: var(--space-xl); }
.tile-text h3 { color: var(--color-on-ink); }
.tile-text .btn { margin-top: var(--space-sm); }

/* gallery rail */
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.rail { list-style: none; margin: 0; padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); display: flex; gap: var(--space-2xs); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rail li { flex: none; height: 560px; scroll-snap-align: start; }
.rail .tall { width: 420px; }
.rail .wide { width: 760px; }
.rail-photo { width: 100%; height: 100%; }

/* location */
.loc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.loc .lead { margin-block: var(--space-md) var(--space-xl); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; display: block; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: var(--space-md) 0; border-bottom: 1px solid var(--color-rule); vertical-align: top; }
.table th { font-weight: 600; color: var(--color-ink); padding-right: var(--space-lg); font-size: var(--text-md); }
.table td { font-variant-numeric: tabular-nums; }

/* room page */
.hero-room .hero-text { align-self: end; }
.detail { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: start; }
.detail .lead { margin-block: var(--space-md) var(--space-xl); }
.detail-photos { display: grid; gap: var(--space-md); }
.detail-photos .a { aspect-ratio: 16 / 10; }
.detail-photos .b { aspect-ratio: 16 / 9; }

/* results page */
.results-head { background: var(--color-ink); color: var(--color-on-ink); padding-block: var(--space-3xl); }
.res-book { margin-top: var(--space-2xl); color: var(--color-ink-2); }
.results-head h1 { color: var(--color-on-ink); font-size: var(--text-section); }
.results-head .lead { color: var(--color-on-ink-2); margin-top: var(--space-md); }
.result-section { padding-block: var(--section-gap-s) var(--section-gap); }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); }
.result { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--space-xl); align-items: center; padding-bottom: var(--space-xl); border-bottom: 1px solid var(--color-rule); }
.result-photo { display: block; }
.frame { aspect-ratio: 4 / 3; }
.result-body { display: grid; gap: var(--space-sm); }
.result-body h3 a { text-decoration: none; }
.result-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.feats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.feats li { font-size: var(--text-sm); padding: var(--space-2xs) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); }
.result-buy { display: grid; gap: var(--space-2xs); justify-items: start; }
.state { font-size: var(--text-sm); color: var(--color-ink); font-weight: 600; }
.total { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-ink); }
.result-buy .btn { margin-top: var(--space-sm); }
.result.is-off { opacity: 0.6; }
.empty { padding: var(--space-lg); background: var(--color-paper-2); margin-bottom: var(--space-xl); }
.updated { margin-top: var(--space-xl); }

/* footer: three columns under a heavy navy rule */
.foot { border-top: 6px solid var(--color-ink); background: var(--color-paper); padding-block: var(--space-2xl) var(--space-xl); font-size: var(--text-sm); }
.foot-brand { display: flex; align-items: center; gap: var(--space-md); font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-ink); line-height: 1.2; }
.foot-brand small { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-muted); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); }
.foot-cols > div { display: grid; gap: var(--space-xs); align-content: start; }
.foot-label { font-family: var(--font-body); font-size: var(--text-md); font-weight: 600; color: var(--color-ink); padding-bottom: var(--space-sm); margin-bottom: var(--space-xs); border-bottom: 1px solid var(--color-rule); }
.foot-legal { display: grid; gap: var(--space-xs); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); color: var(--color-muted); }

/* floating WhatsApp */
.wa-float { position: fixed; right: var(--space-lg); bottom: var(--space-lg); z-index: var(--z-sticky); display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--color-wa); color: var(--color-on-ink); box-shadow: var(--shadow-card); transition: transform var(--dur-short) var(--ease-out); }
.wa-float:hover { transform: translateY(-2px); }
.wa-float:active { transform: translateY(0); }
.wa-float .ico { width: 26px; height: 26px; }

.ico { display: block; }

/* mobile menu */
.menu-btn { display: none; width: 48px; height: 48px; place-items: center; background: transparent; border: 1px solid var(--color-rule); border-radius: var(--radius-card); color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.menu-btn:hover { background: var(--color-paper-2); }
.menu-btn:active { background: var(--color-paper-3); }
.menu-btn .ico { width: 24px; height: 24px; }
.menu { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - var(--bar-h)); overflow-y: auto; background: var(--color-paper); box-shadow: var(--shadow-card); padding-block: var(--space-xs) var(--space-lg); }
.menu nav { display: grid; }
.menu nav a { font-size: var(--text-md); color: var(--color-ink); text-decoration: none; padding-block: var(--space-sm); border-bottom: 1px solid var(--color-rule); transition: color var(--dur-short) var(--ease-out); }
.menu nav a:hover { color: var(--color-muted); }
.menu nav a:active { color: var(--color-ink-2); }
.menu-foot { margin-top: var(--space-md); }
.menu-foot .btn { width: 100%; }
.menu-scrim { position: fixed; inset: 0; z-index: calc(var(--z-sticky-nav) - 1); background: var(--color-scrim); }

/* booking: sheet and bottom bar on small screens */
.book-top { display: contents; }
.sheet-close { display: none; width: 44px; height: 44px; place-items: center; background: transparent; border: 0; color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); border-radius: var(--radius-pill); }
.sheet-close:hover { background: var(--color-paper-2); }
.sheet-close:active { background: var(--color-paper-3); }
.book-bar { display: none; }
.ink :focus-visible, .hero :focus-visible, .tile :focus-visible, .slide :focus-visible, .wa-float:focus-visible { outline-color: var(--color-on-ink); }

@media (max-width: 75rem) {
  .bar > .container > nav { display: none; }
  .menu-btn { display: grid; }
  .book { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .book-title, .book .btn { grid-column: 1 / -1; }
  .fac { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 60rem) {
  :root { --bar-h: 68px; }
  .rooms, .loc, .detail, .split-head, .result { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .rooms { padding-inline: var(--gutter); }
  .slide { min-height: 0; aspect-ratio: 4 / 3; }
  .offers, .others, .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .fac { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile-wide { min-height: 380px; }
}
@media (max-width: 40rem) {
  .book { grid-template-columns: minmax(0, 1fr); padding: var(--space-lg); }
  .book-wrap { margin-bottom: -48px; }
  .hero + .section { padding-top: calc(var(--section-gap) + 48px); }
  .brand span { font-size: var(--text-md); }
  .bar .btn { padding: 0 var(--space-md); }
  .fac { grid-template-columns: minmax(0, 1fr); }
}
.book :focus-visible { outline-color: var(--color-focus); }
.foot-legal p { max-width: none; }

@media (max-width: 60rem) {
  .fac-split { grid-template-columns: minmax(0, 1fr); }
  .fac-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .fac-body { padding: var(--section-gap-s) var(--gutter); }
  .rail li { height: 380px; }
  .rail .tall { width: 68vw; }
  .rail .wide { width: 88vw; }
  .gallery-head { flex-wrap: wrap; }
  .tile-wide, .tile { min-height: 460px; }
  .js .hero { min-height: calc(100svh - var(--bar-h) - 34px - 76px); grid-template-rows: 1fr; }
  .js .hero .hero-text { align-self: end; padding-block: var(--space-3xl) var(--space-2xl); }
  .js .hero + .section { padding-top: var(--section-gap); }
  .js .book-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-modal); margin: 0; padding: 0; transform: translateY(100%); visibility: hidden; transition: transform var(--dur-long) var(--ease-out), visibility 0s linear var(--dur-long); }
  .js .book-wrap.is-open { transform: none; visibility: visible; transition: transform var(--dur-long) var(--ease-out), visibility 0s; }
  .js .book-wrap .book { grid-template-columns: minmax(0, 1fr); border-radius: 12px 12px 0 0; padding: var(--space-lg) var(--gutter) var(--space-xl); max-height: 90dvh; overflow-y: auto; }
  .js .book-top { display: flex; justify-content: space-between; align-items: center; }
  .js .sheet-close { display: grid; }
  .js .book-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); padding: var(--space-xs) var(--gutter); background: var(--color-paper); border-top: 1px solid var(--color-rule); }
  .js .book-bar .btn { width: 100%; min-height: 56px; font-size: var(--text-md); }
  .js body:has(.book-bar) { padding-bottom: 76px; }
  .js body:has(.book-bar) .wa-float { bottom: calc(76px + var(--space-md)); }
  .js .sheet-scrim { position: fixed; inset: 0; z-index: calc(var(--z-modal) - 1); background: var(--color-scrim); }
}
@media (max-width: 40rem) {
  .bar-cta { display: none; }
  .script { font-size: clamp(3rem, 12vw, 4rem); }
}
@media (max-width: 60rem) {
  .js .hero { isolation: auto; }
  .js .hero-photo { z-index: 0; }
  .js .hero .hero-text { position: relative; z-index: 1; }
  .js .book-bar:has([aria-expanded="true"]) { visibility: hidden; }
}
