/* Rimal Spire - home.css (owner: Lane E). Home page sections only; shared bits live in base.css.
   Nothing here depends on JS: every element is visible and laid out without motion.
   Motion hooks (owned by the motion lane): [data-hero-video].is-playing, --sg-p on .hm-sig, --hl-p on [data-sg-scale]. */

/* ---------- 1. hero + booking bar ---------- */
.hm-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(30rem, calc(100svh - var(--rs-header) - 3.4rem), 46rem); display: flex; align-items: center; background: var(--rs-charcoal); }
.hm-hero-media { position: absolute; inset: 0; z-index: -2; background: var(--rs-charcoal-2); }
.hm-hero-poster, .hm-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; filter: saturate(.94) contrast(1.03) brightness(.97) sepia(.05); }
.hm-hero-video { opacity: 0; transition: opacity .9s var(--rs-ease); }
.hm-hero-video.is-playing { opacity: 1; }
.hm-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(27, 32, 56, .74) 0%, rgba(27, 32, 56, .5) 30%, rgba(27, 32, 56, .1) 58%, rgba(27, 32, 56, 0) 80%), linear-gradient(0deg, rgba(20, 24, 41, .55) 0%, rgba(20, 24, 41, 0) 38%), linear-gradient(180deg, rgba(20, 24, 41, .3), rgba(20, 24, 41, 0) 26%); }
.hm-hero-copy { padding-block: clamp(2.5rem, 6vw, 4.6rem) clamp(4.4rem, 7vw, 5.6rem); color: var(--rs-ivory); }
.hm-hero-kicker { margin-bottom: 1.3rem; color: #F08A5D; text-shadow: 0 1px 10px rgba(20, 22, 34, .55); }
.hm-hero-copy .rs-h1 { max-width: 8.2em; text-shadow: 0 2px 34px rgba(0, 0, 0, .3); }
.hm-hero-sub { margin: 1.5rem 0 0; max-width: 31rem; font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.6; color: rgba(246, 245, 241, .92); }
.hm-hero-hour { margin-top: 2rem; max-width: 27rem; color: rgba(246, 245, 241, .9); }
.hm-hero-hour .rs-hourline-label { color: rgba(246, 245, 241, .82); }
.hm-hero-pause { display: none; position: absolute; right: var(--rs-gutter); bottom: 4.6rem; z-index: 2; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .55rem 1.1rem .55rem .9rem; border: 1px solid rgba(246, 245, 241, .6); border-radius: 999px; background: rgba(27, 32, 56, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--rs-ivory); font-family: var(--rs-body); font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background-color .25s var(--rs-ease), color .25s var(--rs-ease); }
.js .hm-hero-pause { display: inline-flex; }
.hm-hero-pause:hover { background: var(--rs-ivory); color: var(--rs-charcoal); }
.hm-hero-pause-ico { position: relative; width: .7rem; height: .8rem; border-left: 2px solid currentColor; border-right: 2px solid currentColor; box-sizing: border-box; }
.hm-hero-pause[aria-pressed="true"] .hm-hero-pause-ico { border: 0; width: 0; height: 0; border-top: .4rem solid transparent; border-bottom: .4rem solid transparent; border-left: .65rem solid currentColor; }
.hm-hero-pause[aria-pressed="true"] .hm-hero-pause-txt { font-size: 0; }
.hm-hero-pause[aria-pressed="true"] .hm-hero-pause-txt::after { content: "Play"; font-size: .75rem; }
@media (prefers-reduced-motion: reduce) { .hm-hero-pause, .js .hm-hero-pause { display: none; } .hm-hero-video { display: none; } }

.hm-bar {
  position: relative; z-index: 3; width: min(100% - 2 * var(--rs-gutter), 1120px); margin: -3.1rem auto 0;
  display: grid; grid-template-columns: 1.15fr 1.15fr .7fr .7fr auto; align-items: stretch;
  background: var(--rs-ivory); border: 1px solid var(--rs-hair); box-shadow: 0 22px 44px -26px rgba(20, 24, 41, .45); padding: .8rem 1rem .8rem 0;
}
.hm-bar-cell { padding: .3rem 1.4rem; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--rs-hair); min-width: 0; }
.hm-bar-cell:first-child { border-left: 0; }
.hm-bar .field-label { margin: 0 0 .2rem; font-size: .75rem; }
.hm-bar .field { border: 0; background: transparent; padding: 0; height: 2rem; min-height: 0; font-family: var(--rs-body); font-variant-numeric: lining-nums tabular-nums; font-size: 1.1rem; color: var(--rs-charcoal); box-shadow: none; width: 100%; }
.hm-bar .field:focus-visible { outline-offset: 4px; }
.hm-bar .field-error { margin: .2rem 0 0; font-size: .75rem; }
.hm-bar-go { align-self: center; min-height: 3.2rem; padding-inline: 1.8rem; margin-left: .6rem; }
.hm-bar-note { margin-block: .9rem 0; text-align: center; font-size: .85rem; color: var(--rs-muted); }
@media (max-width: 900px) {
  .hm-bar { grid-template-columns: 1fr 1fr; padding: .5rem; gap: .1rem 0; }
  .hm-bar-cell { padding: .6rem .9rem; border-left: 0; border-bottom: 1px solid var(--rs-hair); }
  .hm-bar-cell:nth-child(2n) { border-left: 1px solid var(--rs-hair); }
  .hm-bar-go { grid-column: 1 / -1; margin: .6rem .3rem .3rem; }
}
@media (max-width: 640px) {
  .hm-hero { min-height: 30rem; align-items: flex-end; }
  /* phones: the copy sits low over bright sky at the clip's start, so the shade rises from the bottom instead of the left */
  .hm-hero-shade { background: linear-gradient(0deg, rgba(27, 32, 56, .88) 0%, rgba(27, 32, 56, .7) 42%, rgba(27, 32, 56, .32) 64%, rgba(27, 32, 56, .12) 82%, rgba(20, 24, 41, .3) 100%); }
  .hm-hero-copy { padding-block: 3rem 5.2rem; }
  .hm-hero-sub { margin-top: 1.1rem; }
  .hm-hero-hour { margin-top: 1.4rem; }
  .hm-hero-hour .rs-hourline-label { display: none; }
  .hm-hero-pause { bottom: auto; top: 1rem; right: var(--rs-gutter); }
  .hm-hero-pause-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hm-hero-pause { padding: .55rem .85rem; }
}

/* ---------- shared section head ---------- */
.hm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 4rem; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.hm-head .rs-h2 { margin-top: 1rem; max-width: 16ch; }
.hm-head .rs-lede { max-width: 38ch; }

/* ---------- 3. signature: room at 14:00 and 21:00 ---------- */
.hm-sig { --sg-p: 0; padding-block: clamp(3.5rem, 6vw, 5rem); overflow: hidden; }
.hm-sig-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hm-sig-copy .rs-h2 { margin-top: 1rem; max-width: 11ch; }
.hm-sig-copy .rs-lede { margin: 1.5rem 0 1.8rem; }
.hm-sig-ctl { display: inline-flex; margin-bottom: 1.8rem; border: 1px solid rgba(246, 245, 241, .45); }
.hm-sig-btn { min-height: 2.75rem; padding: .6rem 1.4rem; background: transparent; border: 0; color: var(--rs-ivory); font-family: var(--rs-body); font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background-color .25s var(--rs-ease), color .25s var(--rs-ease); }
.hm-sig-btn + .hm-sig-btn { border-left: 1px solid rgba(246, 245, 241, .45); }
.hm-sig-btn:hover { background: rgba(246, 245, 241, .12); }
.hm-sig-btn[aria-pressed="true"] { background: var(--rs-ivory); color: var(--rs-evening); }
.hm-sig-btn .rs-num { margin-right: .35rem; letter-spacing: .06em; }
.hm-sig-frame { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--rs-evening-2); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .7); }
.hm-sig-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-sig-img--night { clip-path: inset(0 0 calc((1 - var(--sg-p)) * 100%) 0); }
.hm-sig-wipe { position: absolute; left: 0; right: 0; top: calc(var(--sg-p) * 100%); height: 2px; margin-top: -1px; background: var(--rs-brass-lt); box-shadow: 0 0 22px 4px rgba(201, 169, 120, .55); opacity: calc(var(--sg-p) * (1 - var(--sg-p)) * 4); pointer-events: none; }
.hm-sig-cap { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; font-size: .9375rem; color: var(--rs-muted-lt); }
.hm-sig-cap span:last-child { text-align: right; }
.hm-sig-cap b { margin-right: .5rem; font-weight: 500; color: var(--rs-brass-lt); letter-spacing: .08em; }
.hm-sig-scale { margin-top: 1.6rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.6rem; align-items: center; }
.hm-sig-now { margin: 0; min-width: 5.2ch; text-align: right; }
.hm-sig-stage .rs-hourscale-ticks { margin-top: 1rem; }
.hm-sig-stage .rs-hourline-marker { box-shadow: 0 0 0 4px var(--rs-evening); }
.hm-sig-stage .rs-hourline-marker::after { background: var(--rs-evening); }
@media (max-width: 900px) { .hm-sig-grid { grid-template-columns: 1fr; } .hm-sig-copy .rs-h2 { max-width: 16ch; } }
@media (max-width: 560px) { .hm-sig-scale { grid-template-columns: 1fr; gap: .8rem; } .hm-sig-now { text-align: left; } .hm-sig-stage .rs-hourscale-ticks li:nth-child(even) { visibility: hidden; } .hm-sig-btn { flex: 1; padding-inline: .8rem; } .hm-sig-ctl { display: flex; } }
/* no JS or reduced motion: the pair sits side by side, with labels, and nothing needs scrolling to be seen */
html:not(.js) .hm-sig-ctl, html:not(.js) .hm-sig-wipe, html:not(.js) .hm-sig-scale { display: none; }
html:not(.js) .hm-sig-frame { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; aspect-ratio: auto; background: none; box-shadow: none; overflow: visible; }
html:not(.js) .hm-sig-img { position: static; aspect-ratio: 3 / 4; clip-path: none; }
@media (prefers-reduced-motion: reduce) {
  .hm-sig-ctl, .hm-sig-wipe, .hm-sig-scale { display: none; }
  .hm-sig-frame { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; aspect-ratio: auto; background: none; box-shadow: none; overflow: visible; }
  .hm-sig-img, .hm-sig-img--night { position: static; aspect-ratio: 3 / 4; clip-path: none; }
}

/* sections 2, 4 and 5 (running order, rooms, evenings) now live in v2.css */
.hm-direct-t { display: block; font-style: normal; font-size: .9375rem; color: var(--rs-brass-lt); margin-bottom: .15rem; }
.hm-bridge { padding: 0 0 clamp(2.4rem, 4vw, 3.2rem); }
.hm-bridge-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding-top: clamp(1.6rem, 3vw, 2.2rem); border-top: 1px solid var(--rs-evening-hair); }
.hm-bridge-in p { margin: 0; font-family: var(--rs-display); font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.25; max-width: 28ch; }

/* ---------- 6. where you are ---------- */
.hm-loc-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hm-loc-copy .rs-h2 { margin-top: 1rem; max-width: 12ch; }
.hm-loc-copy .rs-lede { margin: 1.8rem 0 1.8rem; }
.hm-times { list-style: none; margin: 0 0 1.8rem; padding: 0; max-width: 26rem; border-top: 1px solid #BDBBB1; }
.hm-times li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid #BDBBB1; }
.hm-times b { font-weight: 500; }
.hm-times span { color: var(--rs-muted); }
.hm-addr { margin: 0; font-size: .92rem; color: var(--rs-muted); line-height: 1.8; }
.hm-map { position: relative; overflow: hidden; border: 1px solid #BDBBB1; width: 100%; aspect-ratio: 5 / 4; background: var(--rs-ivory); }
.hm-map-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-map-note { position: absolute; left: 1rem; bottom: 1rem; margin: 0; padding: .35rem .7rem; background: var(--rs-ivory); border: 1px solid var(--rs-hair); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--rs-muted); z-index: 2; }
@media (max-width: 900px) { .hm-loc-grid { grid-template-columns: 1fr; } .hm-map { aspect-ratio: 4 / 3; } }
/* Location map (assets/js/map.js): live MapLibre over the static plate; the plate stays when the map fails */
.hm-map-col { min-width: 0; }
.hm-map-col .hm-map { aspect-ratio: 3 / 2; }
@media (max-width: 900px) { .hm-map-col .hm-map { aspect-ratio: 4 / 3; } }
.hm-map-col .hm-map-note { top: 1rem; bottom: auto; }
/* marker placement: map.js anchors the dot on the point (hotel label to the left, others to the right); MapLibre owns the transform */
.hm-pin.hm-pin--rimal { flex-direction: row-reverse; }
.hm-map.is-live .hm-map-fallback { opacity: 0; visibility: hidden; transition: opacity .4s var(--rs-ease), visibility 0s .4s; }
.hm-map .maplibregl-canvas { outline: none; }
.hm-map .maplibregl-canvas:focus-visible { outline: 2px solid var(--rs-brass); outline-offset: -2px; }
.hm-map.is-live { cursor: grab; }
.hm-map.is-fallback .maplibregl-canvas-container, .hm-map.is-fallback .maplibregl-control-container { visibility: hidden; }
.hm-map-list { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hm-map-btn { font: inherit; font-size: .875rem; font-weight: 500; min-height: 2.75rem; padding: .5rem 1rem; background: var(--rs-ivory); color: var(--rs-charcoal); border: 1px solid #BDBBB1; border-radius: 0; cursor: pointer; transition: background-color .25s var(--rs-ease), border-color .25s var(--rs-ease), color .25s var(--rs-ease); }
.hm-map-btn small { font-size: .75rem; font-weight: 400; color: var(--rs-muted); margin-left: .35rem; }
.hm-map-btn:hover { border-color: var(--rs-charcoal); }
.hm-map-btn:focus-visible { outline: 2px solid var(--rs-brass); outline-offset: 2px; }
.hm-map-btn[aria-pressed="true"] { background: var(--rs-charcoal); border-color: var(--rs-charcoal); color: var(--rs-ivory); }
.hm-map-btn[aria-pressed="true"] small { color: #d9cfbd; }
.hm-map-attr { margin: .8rem 0 0; font-size: .75rem; line-height: 1.5; color: var(--rs-muted); }
.hm-map-attr a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hm-pin { display: inline-flex; align-items: center; gap: .4rem; pointer-events: none; white-space: nowrap; }
.hm-pin i { flex: none; width: .7rem; height: .7rem; border-radius: 50%; background: var(--rs-brass); border: 2px solid var(--rs-ivory); box-shadow: 0 0 0 1px var(--rs-charcoal); box-sizing: border-box; }
.hm-pin b { font-weight: 500; font-size: .75rem; letter-spacing: .04em; color: var(--rs-charcoal); background: rgba(246, 245, 241, .92); padding: .12rem .4rem; }
.hm-pin--main i { width: 1rem; height: 1rem; background: var(--rs-charcoal); box-shadow: 0 0 0 1px var(--rs-charcoal), 0 0 0 6px rgba(20, 24, 41, .14); }
.hm-pin--main b { background: var(--rs-charcoal); color: var(--rs-ivory); }
.hm-map .maplibregl-ctrl-group { border-radius: 0; box-shadow: none; border: 1px solid #BDBBB1; }

/* ---------- 7. book-direct band ---------- */
.hm-offer { position: relative; isolation: isolate; overflow: hidden; background: var(--rs-evening); color: var(--rs-ivory); }
.hm-offer-media.rs-frame { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; opacity: .55; }
.hm-offer-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(27, 32, 56, .94) 0%, rgba(27, 32, 56, .78) 55%, rgba(27, 32, 56, .55) 100%); }
.hm-offer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(4rem, 8vw, 6.5rem); }
.hm-offer-copy .rs-h2 { margin-top: 1rem; max-width: 14ch; }
.hm-offer-copy .rs-rule { background: var(--rs-brass-lt); }
.hm-offer-copy .rs-lede { margin: 1.6rem 0 2rem; color: var(--rs-muted-lt); }
.hm-code { display: inline-block; border: 1px solid var(--rs-brass-lt); padding: .05rem .6rem; letter-spacing: .18em; font-weight: 500; color: var(--rs-ivory); }
.hm-direct { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rs-evening-hair); }
.hm-direct li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rs-evening-hair); }
.hm-direct b { font-family: var(--rs-body); font-size: .9375rem; font-weight: 500; letter-spacing: .02em; color: var(--rs-brass-lt); padding-top: .2rem; }
.hm-direct span { color: rgba(246, 245, 241, .88); line-height: 1.55; }
@media (max-width: 860px) { .hm-offer-grid { grid-template-columns: 1fr; } .hm-direct li { grid-template-columns: 1fr; gap: .3rem; } }
