/* ==========================================================================
   The hotel's room bar: design A "Room bar" (owner's pick, 18 Nov 2026). Cinematic theme, hotel pages only.
   Markup: resources/views/property/shared/hotel_room_bar.blade.php · behaviour: js/hotel-room-bar.js.

   ≥ 992px  the docked CTA band (cinematic.css section 9) carries this bar: the room's photo, name and price a night
            (the button that grows the bar into the booking panel), check-in → check-out, guests, "Reserve this
            room". Open, the bar grows upward in place into the panel: dates, rooms and guests, rate, total.
   < 992px  the band is the red floating pill above the site's bottom nav ("Double Rooms · ₦95,000 / night");
            open, the pill grows into the same panel as a bottom sheet over a dimmed page.

   This file loads BEFORE cinematic.css and bootstrap (pushed from the theme), so every rule is scoped
   `.pp--cinematic …` with two classes or more: it wins on specificity, never on order.
   Motion: the grid-rows trick (0fr → 1fr) grows the panel to its own height; its content comes in staggered;
   the price roll and the name/photo crossfade are js (Web Animations). Reduce Motion: no movement at all.
   ========================================================================== */

/* The bar is a dark plate in both site modes, like the hero bar it stands in for, so everything inside it (the
   page's calendar and steppers included) reads the theme's dark values here. Same values as cinematic.css §0. */
.pp--cinematic .hx-bar {
  color-scheme: dark;
  --sb-ink:            #F5F0EB;
  --sb-ink-soft:       #D9D0C7;
  --sb-bg:             #0F0D0C;
  --sb-surface:        #1A1614;
  --sb-surface-2:      #221D1A;
  --sb-surface-3:      #2C2521;
  --sb-border:         #332B26;
  --sb-border-strong:  #4A3F37;
  --sb-text:           #F1EAE4;
  --sb-muted:          #A99E95;
  --sb-muted-2:        #8B8078;
  --sb-primary-soft:   rgba(230, 51, 56, 0.16);
  --sb-gold:           #FF8A8D;
  --pp-focus:          #fff;
  --hx-line:           rgba(255, 255, 255, 0.14);
  position: relative;
  color: var(--sb-text);
  font-family: var(--sb-font-body);
  font-size: 15px;
  line-height: 1.3;
}
.pp--cinematic .hx-bar .pp-cal { --pp-cal-range: rgba(230, 51, 56, 0.22); }
.pp.pp--cinematic .hx-bar :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.pp--cinematic .hx-bar__sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---- The row ---------------------------------------------------------------------------------------- */
.pp--cinematic .hx-bar__row { display: flex; align-items: center; min-width: 0; }
.pp--cinematic .hx-bar__thumb {
  position: relative; flex: none; overflow: hidden;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--sb-surface-3); color: var(--sb-muted);
}
.pp--cinematic .hx-bar__thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.pp--cinematic .hx-bar__room {
  --pp-bc: transparent;
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-width: 0; min-height: 60px;
  border-radius: 14px;
  color: #fff; text-align: left;
  transition: background-color var(--sb-dur-fast) var(--sb-ease);
}
.pp--cinematic .hx-bar__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* A slot that swaps its text: the leaving copy is lifted out of the flow and clipped */
.pp--cinematic .hx-bar__name,
.pp--cinematic .hx-bar__amount { position: relative; display: block; overflow: hidden; white-space: nowrap; }
.pp--cinematic .hx-bar__swap { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp--cinematic .hx-bar__swap.is-leaving { position: absolute; left: 0; top: 0; pointer-events: none; }
.pp--cinematic .hx-bar__name { font-size: 15px; line-height: 20px; font-weight: var(--sb-w-medium); color: rgba(255, 255, 255, 0.92); max-width: 260px; }
.pp--cinematic .hx-bar__price { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.pp--cinematic .hx-bar__amount { font-size: 22px; line-height: 28px; font-weight: var(--sb-w-bold); color: #fff; }
.pp--cinematic .hx-bar__unit { flex: none; font-family: var(--sb-font-meta); font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.pp--cinematic .hx-bar__chev {
  flex: none; font-size: 12px; color: rgba(255, 255, 255, 0.7);
  transition: transform 420ms var(--sb-ease-out);
}
.pp--cinematic .hx-bar.is-open .hx-bar__chev { transform: rotate(180deg); }

.pp--cinematic .hx-bar__sep { flex: none; width: 1px; height: 44px; background: var(--hx-line); }
.pp--cinematic .hx-bar__field {
  --pp-bc: transparent;
  display: flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 0 22px;
  border-radius: 12px; color: #fff; text-align: left;
  transition: background-color var(--sb-dur-fast) var(--sb-ease);
}
.pp--cinematic .hx-bar__f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pp--cinematic .hx-bar__label {
  margin: 0;
  font-family: var(--sb-font-meta); font-size: 11px; line-height: 14px; font-weight: var(--sb-w-medium);
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
}
.pp--cinematic .hx-bar__value { font-size: 16px; line-height: 20px; font-weight: var(--sb-w-medium); color: #fff; white-space: nowrap; }
.pp--cinematic .hx-bar__value.is-empty { font-weight: var(--sb-w-normal); color: rgba(255, 255, 255, 0.72); }
.pp--cinematic .hx-bar__arrow { font-size: 11px; color: rgba(255, 255, 255, 0.45); }
@media (hover: hover) and (pointer: fine) {
  .pp--cinematic .hx-bar__room:hover,
  .pp--cinematic .hx-bar__field:hover { background: rgba(255, 255, 255, 0.06); }
}
.pp--cinematic .hx-bar__field[aria-expanded="true"] { background: rgba(255, 255, 255, 0.06); }

.pp--cinematic .hx-bar__go,
.pp--cinematic .hx-bar__book {
  --pp-bc: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border-radius: 14px;
  background: #C8262B; color: #fff;
  font-size: 16px; font-weight: var(--sb-w-medium); white-space: nowrap;
  box-shadow: 0 8px 20px rgba(200, 38, 43, 0.28);
  transition: background-color var(--sb-dur-fast) var(--sb-ease), transform var(--sb-dur-press) var(--sb-ease);
}
.pp--cinematic .hx-bar__go { flex: none; margin-left: auto; }
.pp--cinematic .hx-bar__go:hover,
.pp--cinematic .hx-bar__book:hover:not(:disabled) { background: #B11F24; }
.pp--cinematic .hx-bar__go:active,
.pp--cinematic .hx-bar__book:active:not(:disabled) { transform: scale(0.98); }
.pp--cinematic .hx-bar__book:disabled {
  --pp-bc: var(--sb-border-strong);
  background: var(--sb-surface-3); color: var(--sb-muted); box-shadow: none; cursor: not-allowed;
}
.pp--cinematic .hx-bar__go[aria-busy="true"],
.pp--cinematic .hx-bar__book[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.pp--cinematic .hx-bar__off {
  display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; padding: 0 12px;
  font-size: 14px; color: var(--sb-muted);
}

/* ---- The panel: grows from nothing to its own height (0fr → 1fr), content staggered in ------------------- */
/* A sheet curve (fast start, long soft landing) over 0.6s, so the growth reads as one deliberate movement on a
   wide screen rather than a jump; closing is a little quicker. */
.pp--cinematic .hx-bar { --hx-morph: cubic-bezier(0.32, 0.72, 0, 1); }
.pp--cinematic .hx-bar__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 440ms var(--hx-morph), visibility 0s linear 440ms;
}
.pp--cinematic .hx-bar.is-open .hx-bar__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 620ms var(--hx-morph), visibility 0s;
}
.pp--cinematic .hx-bar__panel-in { min-height: 0; overflow: hidden; }
.pp--cinematic .hx-bar.is-open.is-settled .hx-bar__panel-in { overflow-y: auto; overscroll-behavior: contain; }

.pp--cinematic .hx-bar__head,
.pp--cinematic .hx-bar__box {
  opacity: 0; transform: translateY(14px);
  transition: opacity 160ms ease-out, transform 160ms ease-out;
}
.pp--cinematic .hx-bar.is-open .hx-bar__head,
.pp--cinematic .hx-bar.is-open .hx-bar__box {
  opacity: 1; transform: none;
  transition: opacity 360ms ease-out var(--hx-d, 120ms), transform 520ms var(--hx-morph) var(--hx-d, 120ms);
}
.pp--cinematic .hx-bar__box--dates { --hx-d: 180ms; }
.pp--cinematic .hx-bar__box--party { --hx-d: 250ms; }
.pp--cinematic .hx-bar__box--sum   { --hx-d: 320ms; }

.pp--cinematic .hx-bar__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp--cinematic .hx-bar__title {
  font-family: var(--sb-font-meta); font-size: 12px; line-height: 16px; font-weight: var(--sb-w-medium);
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
}
.pp--cinematic .hx-bar__title:focus { outline: none; }
.pp--cinematic .hx-bar__title:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.pp--cinematic .hx-bar__close {
  --pp-bc: var(--hx-line);
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px; color: #fff; font-size: 14px; font-weight: var(--sb-w-medium);
  transition: background-color var(--sb-dur-fast) var(--sb-ease);
}
.pp--cinematic .hx-bar__close:hover { background: rgba(255, 255, 255, 0.08); }

.pp--cinematic .hx-bar__grid { display: grid; gap: 14px; min-width: 0; }
.pp--cinematic .hx-bar__box {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--hx-line); border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}
.pp--cinematic .hx-bar__box--sum { gap: 8px; }

/* The page's own calendar, a little tighter in here */
.pp--cinematic .hx-bar__cal { min-width: 0; min-height: 300px; }
.pp--cinematic .hx-bar__cal .pp-cal { gap: 6px; }
.pp--cinematic .hx-bar__cal .pp-cal__legend { display: none; }
.pp--cinematic .hx-bar__cal .pp-cal__foot { min-height: 40px; }

/* Rooms and guests */
.pp--cinematic .hx-bar__step { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.pp--cinematic .hx-bar__step-text { display: flex; flex-direction: column; min-width: 0; }
.pp--cinematic .hx-bar__step-title { font-size: 15px; line-height: 20px; font-weight: var(--sb-w-medium); color: var(--sb-text); }
.pp--cinematic .hx-bar__step-sub { font-family: var(--sb-font-meta); font-size: 12px; line-height: 18px; color: var(--sb-muted); }
.pp--cinematic .hx-bar .pp-stepper__btn { --pp-bc: rgba(255, 255, 255, 0.35); color: #fff; }
.pp--cinematic .hx-bar .pp-stepper__btn:hover:not(:disabled) { --pp-bc: #fff; background: rgba(255, 255, 255, 0.1); }
.pp--cinematic .hx-bar .pp-stepper__value { color: #fff; font-weight: var(--sb-w-bold); }
.pp--cinematic .hx-bar__line { margin: 0; font-size: 14px; line-height: 20px; color: var(--sb-text); }
.pp--cinematic .hx-bar__line--soft { color: var(--sb-muted); }
.pp--cinematic .hx-bar__rates { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.pp--cinematic .hx-bar__rate-list { display: flex; flex-direction: column; gap: 8px; }
.pp--cinematic .hx-bar__rate {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 14px;
  border: 1px solid var(--sb-border); border-radius: 14px;
  cursor: pointer;
  transition: border-color var(--sb-dur-fast) var(--sb-ease), background-color var(--sb-dur-fast) var(--sb-ease);
}
.pp--cinematic .hx-bar__rate:hover { border-color: var(--sb-border-strong); }
.pp--cinematic .hx-bar__rate.is-on { border-color: #E63338; background: rgba(230, 51, 56, 0.1); }
.pp--cinematic .hx-bar__rate.is-off { opacity: 0.55; cursor: not-allowed; }
.pp--cinematic .hx-bar__rate:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.75); }
.pp--cinematic .hx-bar__rate input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #E63338; }
.pp--cinematic .hx-bar__rate-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp--cinematic .hx-bar__rate-name { font-size: 15px; line-height: 20px; font-weight: var(--sb-w-medium); color: var(--sb-ink); }
.pp--cinematic .hx-bar__rate-sub { font-size: 12px; line-height: 17px; color: var(--sb-muted); }
.pp--cinematic .hx-bar__rate-price { flex: none; font-size: 14px; font-weight: var(--sb-w-bold); color: var(--sb-ink); white-space: nowrap; }
.pp--cinematic .hx-bar__rate-one { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-top: 4px; font-size: 15px; color: var(--sb-text); }

/* The total and Reserve */
.pp--cinematic .hx-bar__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 0; transition: opacity var(--sb-dur-fast) var(--sb-ease); }
.pp--cinematic .hx-bar__total strong { font-size: 28px; line-height: 34px; font-weight: var(--sb-w-bold); color: #fff; }
.pp--cinematic .hx-bar__total span { font-size: 14px; color: var(--sb-ink-soft); }
.pp--cinematic .hx-bar__total.is-busy { opacity: 0.45; }
.pp--cinematic .hx-bar__note { margin: 0; font-size: 13px; line-height: 19px; color: var(--sb-muted); }
.pp--cinematic .hx-bar__why { margin: 0; font-size: 14px; line-height: 20px; font-weight: var(--sb-w-medium); color: var(--sb-gold); }
.pp--cinematic .hx-bar__nodates { margin: 0; font-size: 14px; line-height: 20px; color: var(--sb-muted); }
.pp--cinematic .hx-bar__short { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px dashed var(--sb-border-strong); border-radius: 14px; }
.pp--cinematic .hx-bar__short-title { margin: 0; font-size: 15px; font-weight: var(--sb-w-bold); color: var(--sb-ink); }
.pp--cinematic .hx-bar__short-why { margin: 0; font-size: 13px; line-height: 19px; color: var(--sb-muted); }
.pp--cinematic .hx-bar__alt {
  --pp-bc: transparent;
  align-self: flex-start; min-height: 44px; margin-top: 2px;
  font-size: 14px; font-weight: var(--sb-w-medium); color: #FF8A8D;
  text-decoration: underline; text-underline-offset: 4px;
}
.pp--cinematic .hx-bar__book { width: 100%; height: 54px; margin-top: auto; }
.pp--cinematic .hx-bar__box--sum .hx-bar__book { margin-top: 10px; }
.pp--cinematic .hx-bar__box--sum .hx-bar__off { margin: 10px 0 0; padding: 0; }
.pp--cinematic .hx-bar__other {
  display: inline-flex; align-items: center; align-self: center; min-height: 44px;
  font-size: 14px; font-weight: var(--sb-w-medium); color: rgba(255, 255, 255, 0.85);
  text-decoration: underline; text-underline-offset: 4px;
}
.pp--cinematic .hx-bar__other:hover { color: #fff; }

/* ==========================================================================
   Desktop: the glass plate in the docked band
   ========================================================================== */
@media (min-width: 992px) {
  .pp--cinematic .hx-bar {
    border: 1px solid var(--cin-glass-border);
    border-radius: 22px;
    background: var(--cin-glass);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .pp--cinematic .hx-bar__row { gap: 0; min-height: 88px; padding: 14px 14px 14px 16px; }
  .pp--cinematic .hx-bar__thumb { margin-right: 6px; }
  .pp--cinematic .hx-bar__room { flex: 0 1 auto; padding: 0 16px 0 10px; margin-right: 8px; }
  .pp--cinematic .hx-bar__chev { margin-left: 6px; }
  .pp--cinematic .hx-bar__dates { flex: 0 1 auto; min-width: 0; }
  .pp--cinematic .hx-bar__guests { flex: none; }
  /* The panel: never taller than the room under the site header (66px) and above the band */
  .pp--cinematic .hx-bar__panel { max-height: calc(100vh - 230px - var(--pp-consent-inset, 0px)); }
  /* No padding on the panel's own box: at 0fr it must be 0px tall */
  .pp--cinematic .hx-bar__head { padding: 12px 18px 12px 24px; border-top: 1px solid var(--hx-line); }
  .pp--cinematic .hx-bar__grid { grid-template-columns: minmax(300px, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; padding: 0 16px 16px; }
  .pp--cinematic .hx-bar__cal .pp-cal { --pp-cal-cell: 38px; }
  /* The plate spans the shell (cinematic.css's later base rule makes this box a flex row, which would shrink it) */
  .pp--cinematic .pp-cin-cta.pp-cin-cta--room .pp-cin-cta__inner { display: block; }
  /* The band's own padding stays; only the plate grows */
  /* Open, the band behind the plate is see-through (owner, 18 Nov 2026: "the white bg on the desktop when the bar
     morph should be transparent and have about 95 percent opacity"): no white strip, no frosted blur, the page shows
     around the plate; the plate itself is 95% opaque dark glass. Closed, the band is as before. */
  .pp--cinematic .pp-cin-cta.pp-cin-cta--room {
    transition: background-color 320ms var(--sb-ease-out), box-shadow 320ms var(--sb-ease-out), border-color 320ms var(--sb-ease-out);
  }
  .pp--cinematic .pp-cin-cta.pp-cin-cta--room.is-room-open {
    border-top-color: transparent;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .pp--cinematic .pp-cin-cta--room.is-room-open .hx-bar {
    background: rgba(26, 22, 20, 0.95);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .pp--cinematic .hx-bar__thumb { display: none; }
  .pp--cinematic .hx-bar__field { padding: 0 14px; }
  .pp--cinematic .hx-bar__go { padding: 0 20px; }
  .pp--cinematic .hx-bar__name { max-width: 180px; }
  .pp--cinematic .hx-bar__grid { grid-template-columns: minmax(280px, 1.2fr) minmax(0, 1fr); }
  .pp--cinematic .hx-bar__box--sum { grid-column: 2; }
  .pp--cinematic .hx-bar__box--dates { grid-row: span 2; }
}

/* ==========================================================================
   Phones and small tablets: the red floating pill, and the bottom sheet it grows into
   ========================================================================== */
@media (max-width: 991.98px) {
  /* The band leaves the page flow: it is the pill's fixed holder above the bottom nav (or the cookie notice).
     No transform here, so the dimmed page (::before) covers the viewport. */
  .pp--cinematic .pp-cin-cta.pp-cin-cta--room {
    --pp-section-bg: transparent;
    position: fixed;
    left: 0; right: 0;
    bottom: max(var(--pp-nav-h, 62px), var(--pp-consent-inset, 0px));
    z-index: 1039;
    margin: 0;
    /* 27px above the bottom nav (owner, 18 Nov 2026: 15px higher, clear of the nav's Search button) */
    padding: 0 max(16px, env(safe-area-inset-right)) 27px max(16px, env(safe-area-inset-left));
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
  }
  body:not(:has(.pub-mob-nav)) .pp--cinematic .pp-cin-cta.pp-cin-cta--room {
    bottom: var(--pp-consent-inset, 0px);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .pp--cinematic .pp-cin-cta.pp-cin-cta--room .pp-cin-cta__inner {
    display: block; width: auto; max-width: 560px; margin: 0 auto; padding: 0;
  }
  .pp--cinematic .pp-cin-cta.pp-cin-cta--room.is-room-open::before {
    content: "";
    position: fixed; inset: 0;
    background: rgba(6, 4, 3, 0.62);
    pointer-events: auto;
    animation: hx-bar-dim 300ms ease-out both;
  }
  @keyframes hx-bar-dim { from { opacity: 0; } }

  .pp--cinematic .hx-bar {
    pointer-events: auto;
    border: 1px solid transparent;
    border-radius: 29px;
    background: #C8262B;
    box-shadow: 0 12px 30px rgba(200, 38, 43, 0.35);
    transition: background-color 320ms ease-out, border-radius 420ms var(--sb-ease-out),
                border-color 320ms ease-out, box-shadow 320ms ease-out;
  }
  .pp--cinematic .hx-bar.is-open {
    border-color: var(--sb-border);
    border-radius: 24px;
    background: var(--sb-surface);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  }
  .pp--cinematic .hx-bar__thumb,
  .pp--cinematic .hx-bar__sep,
  .pp--cinematic .hx-bar__field,
  .pp--cinematic .hx-bar__go,
  .pp--cinematic .hx-bar__row > .hx-bar__off { display: none; }
  .pp--cinematic .hx-bar__room {
    flex: 1; width: 100%;
    min-height: 58px; padding: 0 18px 0 20px; gap: 10px;
    border-radius: 29px;
  }
  /* One line: the room on the left, its price on the right */
  .pp--cinematic .hx-bar__who { flex: 1; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .pp--cinematic .hx-bar__name { flex: 0 1 auto; min-width: 0; max-width: none; font-size: 15px; color: #fff; }
  .pp--cinematic .hx-bar__price { flex: none; gap: 4px; }
  .pp--cinematic .hx-bar__amount { font-size: 15px; line-height: 20px; font-weight: var(--sb-w-bold); text-align: right; }
  .pp--cinematic .hx-bar__amount .hx-bar__swap.is-leaving { left: auto; right: 0; }
  .pp--cinematic .hx-bar__unit { font-size: 13px; color: rgba(255, 255, 255, 0.88); }
  .pp--cinematic .hx-bar__chev { color: #fff; }
  .pp--cinematic .hx-bar:not(.is-open) .hx-bar__room:focus-visible {
    outline: 3px solid #fff; outline-offset: 2px;   /* no dark ring around it (owner, 18 Nov 2026: no black stroke) */
  }

  /* The sheet's content is always taller than the screen allows, so the sheet grows to a set height (0 → the
     room above the pill) rather than to its content: the growth then runs the whole curve instead of hitting
     the cap in its first tenth of a second. */
  .pp--cinematic .hx-bar__panel {
    grid-template-rows: 1fr;
    height: 0;
    transition: height 340ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 340ms;
  }
  .pp--cinematic .hx-bar.is-open .hx-bar__panel {
    grid-template-rows: 1fr;
    height: calc(100vh - var(--pp-nav-h, 62px) - 150px);
    height: calc(100dvh - var(--pp-nav-h, 62px) - 150px);
    transition: height 520ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s;
  }
  .pp--cinematic .hx-bar__head { padding: 10px 14px 10px 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .pp--cinematic .hx-bar__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 14px 14px; }
  .pp--cinematic .hx-bar__box { padding: 14px; }
  /* The total and Reserve stay in sight at the foot of the sheet while the dates and rooms scroll above them */
  .pp--cinematic .hx-bar__box--sum {
    order: 3;
    position: sticky; bottom: 0; z-index: 1;
    gap: 6px;
    background: var(--sb-surface-2);
    box-shadow: 0 -14px 28px rgba(0, 0, 0, 0.45);
  }
  .pp--cinematic .hx-bar__box--sum .hx-bar__book { margin-top: 6px; }
  .pp--cinematic .hx-bar__total strong { font-size: 24px; line-height: 30px; }
  .pp--cinematic .hx-bar__other { min-height: 44px; margin-bottom: -8px; }
}

/* Page scroll stays put while the phone sheet is open (the same rule as the page's dialogs) */
body.pp-body.hx-bar-lock { overflow: hidden !important; }

/* ==========================================================================
   Reduce Motion: the bar still opens, closes and changes, instantly
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .pp--cinematic .hx-bar,
  .pp--cinematic .hx-bar__panel,
  .pp--cinematic .hx-bar.is-open .hx-bar__panel,
  .pp--cinematic .hx-bar__head,
  .pp--cinematic .hx-bar__box,
  .pp--cinematic .hx-bar.is-open .hx-bar__head,
  .pp--cinematic .hx-bar.is-open .hx-bar__box,
  .pp--cinematic .hx-bar__chev,
  .pp--cinematic .hx-bar__room,
  .pp--cinematic .hx-bar__field,
  .pp--cinematic .hx-bar__go,
  .pp--cinematic .hx-bar__book,
  .pp--cinematic .hx-bar__total { transition: none !important; }
  .pp--cinematic .hx-bar__head,
  .pp--cinematic .hx-bar__box { transform: none; }
  .pp--cinematic .pp-cin-cta.pp-cin-cta--room.is-room-open::before { animation: none; }
  .pp--cinematic .hx-bar__go:active,
  .pp--cinematic .hx-bar__book:active:not(:disabled) { transform: none; }
}

@media print {
  .pp--cinematic .pp-cin-cta.pp-cin-cta--room { display: none; }
}

/* A silent date change: the bar's price and total dim while the new ones load (js/hotel-rooms.js) */
.pp--cinematic .hx-bar :is([data-hx-bar-price], [data-hx-bar-total], [data-hx-bar-book]) { transition: opacity 200ms ease; }
.pp--cinematic .hx-bar.is-updating :is([data-hx-bar-price], [data-hx-bar-total], [data-hx-bar-book]) { opacity: 0.5; }
@media (prefers-reduced-motion: reduce) { .pp--cinematic .hx-bar :is([data-hx-bar-price], [data-hx-bar-total], [data-hx-bar-book]) { transition: none; } }
