/*
 * Booking search bar.
 *
 * One horizontal strip of labelled segments with dotted dividers and a pill CTA on the
 * right, the pattern large hotel sites use. Self-contained so the embed iframe can load
 * this file alone, with no dependency on the site stylesheet; brand tokens are read
 * from :root when present and fall back to neutral values otherwise.
 */

.bookbar {
  background: var(--bookbar-bg, #ffffff);
  border-top: 1px solid var(--bookbar-line, var(--color-border, rgba(0, 0, 0, 0.14)));
  border-bottom: 1px solid var(--bookbar-line, var(--color-border, rgba(0, 0, 0, 0.14)));
  font-family: var(--bookbar-font, var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif));
  color: var(--bookbar-ink, var(--color-text, #1c1c1c));
}

.bookbar__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(230px, 1.3fr) minmax(170px, 1fr) minmax(140px, 0.8fr) auto;
  align-items: stretch;
  gap: 0;
  min-height: var(--bookbar-min-height, 92px);
}

/* ---------------------------------------------------------------- segments */

.bookbar__seg {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 0;
}

/* Dotted rules between segments, matching the reference layout. */
.bookbar__seg + .bookbar__seg::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  border-left: 1px dotted var(--bookbar-line);
}

.bookbar__seg--wide {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.bookbar__trigger {
  appearance: none;
  background: none;
  border: 0;
  width: 100%;
  padding: 10px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 6px;
}

.bookbar__trigger--static {
  cursor: default;
}

.bookbar__trigger:hover:not(.bookbar__trigger--static) {
  background: rgba(0, 0, 0, 0.025);
}

.bookbar__trigger:focus-visible {
  outline: 2px solid var(--bookbar-accent);
  outline-offset: -2px;
}

/* The first segment is left-aligned; the middle ones centre, as in the reference. */
.bookbar__seg--guests .bookbar__trigger,
.bookbar__seg--currency .bookbar__trigger {
  align-items: center;
  text-align: center;
}

.bookbar__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--bookbar-label-size, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bookbar-muted, var(--text-muted, #707070));
  white-space: nowrap;
}

.bookbar__icon {
  /* Match Labels color (same token as .bookbar__label), not Button/accent. */
  color: inherit;
  flex: none;
}

.bookbar__value {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--bookbar-value-size, 1.0625rem);
  line-height: 1.2;
  color: var(--bookbar-ink, var(--color-text, #1c1c1c));
  white-space: nowrap;
}

.bookbar__dates {
  gap: 13px;
}

.bookbar__arrow {
  color: var(--bookbar-muted);
}

.bookbar__chev {
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--bookbar-ink);
  border-bottom: 1.6px solid var(--bookbar-ink);
  transform: rotate(45deg) translate(-2px, -2px);
  flex: none;
  transition: transform 0.18s ease;
}

.bookbar__seg.is-open .bookbar__chev {
  transform: rotate(225deg) translate(-2px, -2px);
}

/* ---------------------------------------------------------------- action */

.bookbar__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 0 14px 22px;
}

.bookbar__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 15px 34px;
  background: var(--bookbar-accent, var(--brand-primary, #a2232f));
  color: var(--bookbar-on-accent, var(--brand-on-primary, #ffffff));
  font-family: inherit;
  font-size: var(--bookbar-value-size, 1rem);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.bookbar__btn:hover {
  filter: brightness(0.92);
  color: var(--bookbar-on-accent);
  text-decoration: none;
}

.bookbar__btn:active {
  transform: translateY(1px);
}

.bookbar__btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* ---------------------------------------------------------------- panels */

.bookbar__panel {
  position: absolute;
  top: calc(100% - 8px);
  left: 12px;
  z-index: 60;
  min-width: 268px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--bookbar-line);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* display:flex above would otherwise override the HTML [hidden] attribute,
   so opening Dates (and expanding the iframe) revealed every panel at once. */
.bookbar__panel[hidden] {
  display: none !important;
}

.bookbar__seg--currency .bookbar__panel {
  min-width: 150px;
  padding: 8px;
  gap: 2px;
}

.bookbar__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bookbar__field > span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bookbar-muted);
}

.bookbar__field input {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--bookbar-line);
  border-radius: 7px;
  color: var(--bookbar-ink);
  background: #fff;
}

.bookbar__field input:focus {
  outline: none;
  border-color: var(--bookbar-accent);
}

.bookbar__stepper {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.bookbar__stepper-label {
  font-size: 0.95rem;
}

.bookbar__stepper-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bookbar__step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--bookbar-line);
  background: #fff;
  color: var(--bookbar-ink);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bookbar__step:hover:not([disabled]) {
  border-color: var(--bookbar-accent);
  color: var(--bookbar-accent);
}

.bookbar__step[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.bookbar__stepper-controls output {
  min-width: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.bookbar__option {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--bookbar-ink);
}

.bookbar__option:hover {
  background: rgba(0, 0, 0, 0.05);
}

.bookbar__option.is-selected {
  font-weight: 700;
  color: var(--bookbar-accent);
}

.bookbar__panel-done {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--bookbar-ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-end;
}

.bookbar__title {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bookbar-muted);
}

/* ---------------------------------------------------------------- interactive calendar */

.bookbar__panel--dates {
  min-width: 320px;
  max-width: 360px;
  padding: 16px;
  gap: 12px;
}

.bookbar-cal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Status: Check-in / Check-out cards */
.bookbar-cal__status {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--bookbar-line);
  border-radius: 8px;
}

.bookbar-cal__tab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.bookbar-cal__tab:hover {
  background: rgba(0, 0, 0, 0.04);
}

.bookbar-cal__tab.is-active {
  background: rgba(255, 186, 90, 0.16);
  border-color: var(--bookbar-accent);
}

.bookbar-cal__tab-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bookbar-muted);
}

.bookbar-cal__tab-date {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--bookbar-ink);
  white-space: nowrap;
}

.bookbar-cal__tab-arrow {
  color: var(--bookbar-muted);
  font-size: 0.9rem;
}

.bookbar-cal__nights-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bookbar-ink);
  color: #fff;
  white-space: nowrap;
}

/* Month navigation header */
.bookbar-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
}

.bookbar-cal__month-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--bookbar-ink);
  letter-spacing: 0.01em;
}

.bookbar-cal__nav {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--bookbar-line);
  background: transparent;
  color: var(--bookbar-ink);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.bookbar-cal__nav:hover:not([disabled]) {
  background: var(--bookbar-accent);
  color: var(--bookbar-on-accent);
  border-color: var(--bookbar-accent);
}

.bookbar-cal__nav[disabled] {
  opacity: 0.25;
  cursor: not-allowed;
}

/* Weekdays row */
.bookbar-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bookbar-muted);
  padding: 2px 0 6px;
  border-bottom: 1px solid var(--bookbar-line);
}

/* Days grid */
.bookbar-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 3px;
  column-gap: 0;
}

.bookbar-cal__day-slot {
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookbar-cal__day-slot.is-in-range {
  background: rgba(255, 186, 90, 0.22);
}

.bookbar-cal__day-slot.is-range-start {
  background: linear-gradient(to right, transparent 50%, rgba(255, 186, 90, 0.22) 50%);
}

.bookbar-cal__day-slot.is-range-end {
  background: linear-gradient(to left, transparent 50%, rgba(255, 186, 90, 0.22) 50%);
}

.bookbar-cal__day-slot.is-preview-range {
  background: rgba(255, 186, 90, 0.12);
}

.bookbar-cal__day-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--bookbar-ink);
  font-size: 0.86rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  padding: 0;
  position: relative;
  z-index: 2;
}

.bookbar-cal__day-btn:hover:not(.is-disabled) {
  background: rgba(0, 0, 0, 0.08);
}

.bookbar-cal__day-btn.is-today::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bookbar-accent);
}

.bookbar-cal__day-btn.is-selected {
  background: var(--bookbar-accent) !important;
  color: var(--bookbar-on-accent) !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bookbar-cal__day-btn.is-disabled {
  opacity: 0.24;
  cursor: not-allowed;
  pointer-events: none;
}

/* Quick shortcut chips */
.bookbar-cal__shortcuts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid var(--bookbar-line);
}

.bookbar-cal__shortcuts-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bookbar-muted);
  margin-right: 2px;
}

.bookbar-cal__chip {
  appearance: none;
  border: 1px solid var(--bookbar-line);
  background: rgba(0, 0, 0, 0.03);
  color: var(--bookbar-ink);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bookbar-cal__chip:hover {
  border-color: var(--bookbar-accent);
  color: var(--bookbar-accent);
  background: rgba(255, 186, 90, 0.1);
}

/* Footer */
.bookbar-cal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.bookbar-cal__reset {
  appearance: none;
  border: 0;
  background: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bookbar-muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

.bookbar-cal__reset:hover {
  color: var(--bookbar-ink);
}

/* ---------------------------------------------------------------- embed
 *
 * Partner-site iframe: the rates strip ONLY (no site header/nav). Dark strip
 * matching the homepage bar look, without sticky dock or Hide/Rates toggle.
 */

.bookbar--embed {
  border: 0;
  background: var(--bookbar-bg, #1e2126);
  width: 100%;
}

.bookbar--embed .bookbar__inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 16px 0 20px;
  min-height: var(--bookbar-min-height, 76px);
  background: transparent;
}

.bookbar--embed .bookbar__seg {
  padding: 8px 0;
}

.bookbar--embed .bookbar__seg + .bookbar__seg::before {
  top: 18px;
  bottom: 18px;
  background: var(--bookbar-line, rgba(255, 255, 255, 0.14));
}

.bookbar--embed .bookbar__trigger {
  padding: 8px 16px;
  gap: 4px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.bookbar--embed .bookbar__trigger:hover:not(.bookbar__trigger--static) {
  background: color-mix(in srgb, var(--bookbar-ink, #ffffff) 8%, transparent);
}

.bookbar--embed .bookbar__label {
  font-size: var(--bookbar-label-size, 0.68rem);
  letter-spacing: 0.06em;
  color: var(--bookbar-muted, rgba(255, 255, 255, 0.65));
}

.bookbar--embed .bookbar__value {
  font-size: var(--bookbar-value-size, 0.96rem);
  font-weight: 600;
  color: var(--bookbar-ink, #ffffff);
}

.bookbar--embed .bookbar__action {
  padding: 8px 0 8px 16px;
}

.bookbar--embed .bookbar__btn {
  padding: 12px 28px;
  font-size: var(--bookbar-value-size, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--bookbar-accent, #ffba5a);
  color: var(--bookbar-on-accent, #111111);
  border-radius: 999px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--bookbar-accent, #ffba5a) 35%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.bookbar--embed .bookbar__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.bookbar--embed .bookbar__btn:active {
  transform: translateY(1px);
}

/* Embed panel: follows configured bar colors */
.bookbar--embed .bookbar__panel {
  background: var(--bookbar-panel-bg, #1f2328);
  color: var(--bookbar-ink, #f0f0f0);
  border: 1px solid var(--bookbar-line, rgba(255, 255, 255, 0.16));
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 18px rgba(0, 0, 0, 0.3);
}

.bookbar--embed .bookbar-cal__status {
  background: rgba(255, 255, 255, 0.04);
}

.bookbar--embed .bookbar-cal__tab:hover {
  background: rgba(255, 255, 255, 0.06);
}

.bookbar--embed .bookbar-cal__tab.is-active {
  background: rgba(255, 186, 90, 0.18);
  border-color: var(--bookbar-accent);
}

.bookbar--embed .bookbar-cal__day-btn:hover:not(.is-disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.bookbar--embed .bookbar-cal__chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e0e0e0;
}

.bookbar--embed .bookbar-cal__chip:hover {
  background: var(--bookbar-accent);
  color: var(--bookbar-on-accent);
  border-color: var(--bookbar-accent);
}

.bookbar--embed .bookbar-cal__nights-pill {
  background: var(--bookbar-accent);
  color: var(--bookbar-on-accent);
}

.bookbar--embed .bookbar__step {
  background: color-mix(in srgb, var(--bookbar-ink, #ffffff) 8%, transparent);
  border-color: var(--bookbar-line, rgba(255, 255, 255, 0.2));
  color: var(--bookbar-ink, #ffffff);
}

.bookbar--embed .bookbar__step:hover:not([disabled]) {
  border-color: var(--bookbar-accent);
  color: var(--bookbar-accent);
  background: color-mix(in srgb, var(--bookbar-accent, #ffba5a) 12%, transparent);
}

.bookbar--embed .bookbar__option {
  color: var(--bookbar-ink, #f0f0f0);
}

.bookbar--embed .bookbar__option:hover {
  background: color-mix(in srgb, var(--bookbar-ink, #ffffff) 8%, transparent);
}

.bookbar--embed .bookbar__panel-done {
  background: var(--bookbar-accent, #ffba5a);
  color: var(--bookbar-on-accent, #111111);
  font-weight: 700;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--bookbar-accent, #ffba5a) 30%, transparent);
}

.bookbar--embed .bookbar__title {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .bookbar__inner {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    padding: 6px 16px 16px;
  }
  .bookbar__seg--dates { grid-column: 1 / -1; }
  .bookbar__action { grid-column: 1 / -1; padding: 6px 0 0; }
  .bookbar__btn { width: 100%; }
  .bookbar__seg + .bookbar__seg::before { display: none; }
  .bookbar__seg { border-top: 1px solid var(--bookbar-line); padding: 6px 0; }
  .bookbar__seg--dates { border-top: 0; }
  .bookbar__trigger { padding: 12px 0; align-items: flex-start !important; text-align: left !important; }
  .bookbar__panel { left: 0; right: 0; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bookbar__chev,
  .bookbar__btn { transition: none; }
}

/* ---------------------------------------------------------------- home variant
 *
 * Sticky dock under the navbar holds the rates strip + a right-edge side tab.
 * Both navbar and rates stay available. The side tab is the only show/hide
 * control — open shows "Hide", closed peeks as "Rates". Book now also restores.
 */

.bookbar-home-dock {
  position: sticky;
  top: var(--bookbar-sticky-top, var(--site-header-h, 76px));
  z-index: 40;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  isolation: isolate;
}

/*
 * Collapsed at top of home: take no layout space so the hero sits flush under
 * the navbar. The Rates tab floats over the hero (fixed under the header).
 */
.bookbar-home-dock.is-collapsed {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  width: 100%;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  overflow: visible;
  pointer-events: none;
  border: 0 !important;
  box-shadow: none !important;
}

.bookbar--home {
  position: relative;
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: var(--bookbar-home-h, var(--bookbar-min-height, var(--site-header-h, 76px)));
  min-height: var(--bookbar-home-h, var(--bookbar-min-height, var(--site-header-h, 76px)));
  max-height: var(--bookbar-home-h, var(--bookbar-min-height, var(--site-header-h, 76px)));
  background: var(--bookbar-bg, #2a2a2a);
  overflow: visible;
  isolation: isolate;
  transition:
    max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    box-shadow 0.35s ease,
    background-color 0.35s ease;
}

.bookbar--home.bookbar--has-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--bookbar-hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.05);
  transform: scale(1.12);
  transform-origin: center;
  opacity: 0.28;
  pointer-events: none;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  transition: opacity 0.28s ease;
}

.bookbar--home.bookbar--has-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Keep configured bar color visible; do not wash the strip back to near-black. */
  background: var(--bookbar-bg, #2a2a2a);
  opacity: 0.88;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.bookbar--home .bookbar__inner {
  position: relative;
  z-index: 1;
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 72px 0 40px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  align-items: center;
  transition: opacity 0.22s ease;
}

.bookbar--home .bookbar__seg {
  padding: 0;
  height: 100%;
}

.bookbar--home .bookbar__seg + .bookbar__seg::before {
  top: 18px;
  bottom: 18px;
}

.bookbar--home .bookbar__trigger {
  padding: 6px 20px;
  gap: 4px;
  height: 100%;
  justify-content: center;
}

.bookbar--home .bookbar__trigger:hover:not(.bookbar__trigger--static) {
  background: rgba(255, 255, 255, 0.06);
}

.bookbar--home .bookbar__label {
  font-size: var(--bookbar-label-size, 0.65rem);
}

.bookbar--home .bookbar__value {
  font-size: var(--bookbar-value-size, 0.98rem);
}

.bookbar--home .bookbar__action {
  padding: 0 0 0 20px;
  height: 100%;
}

.bookbar--home .bookbar__btn {
  padding: 11px 28px;
  font-size: var(--bookbar-value-size, 0.95rem);
}

.bookbar--home .bookbar__panel {
  --bookbar-ink: #1c1c1c;
  --bookbar-muted: #707070;
  --bookbar-line: rgba(0, 0, 0, 0.14);
  color: #1c1c1c;
}

.bookbar-home-dock.is-pinned:not(.is-collapsed) .bookbar--home {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  background: var(--bookbar-bg, #1f1f1f);
}

/* ---- right-edge side toggle ----
 * Sits on the horizontal bar's right side. One control for show and hide.
 */

.bookbar-side-toggle {
  appearance: none;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: var(--bookbar-home-h, var(--site-header-h, 76px));
  margin: 0;
  padding: 8px 6px;
  border: 0;
  border-left: 1px solid var(--bookbar-line, rgba(255, 255, 255, 0.14));
  border-radius: 0;
  background: rgba(0, 0, 0, 0.28);
  /* Match Text / value color (--bookbar-ink), not a hardcoded white. */
  color: var(--bookbar-ink, rgba(255, 255, 255, 0.92));
  font: inherit;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.bookbar-side-toggle:hover {
  background: rgba(0, 0, 0, 0.45);
  color: var(--bookbar-ink, #fff);
}

.bookbar-side-toggle:focus-visible {
  outline: 2px solid var(--brand-primary, #ffb356);
  outline-offset: -2px;
}

.bookbar-side-toggle__text {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.bookbar-side-toggle__text--closed {
  display: none;
}

.bookbar-side-toggle__chev {
  width: 8px;
  height: 8px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(-135deg);
  flex: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- collapsed: strip folds away; side tab stays as a peek handle ---- */

.bookbar-home-dock.is-collapsed .bookbar--home {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.bookbar-home-dock.is-collapsed .bookbar--home .bookbar__inner,
.bookbar-home-dock.is-collapsed .bookbar--home.bookbar--has-hero::before,
.bookbar-home-dock.is-collapsed .bookbar--home.bookbar--has-hero::after {
  opacity: 0;
}

.bookbar-home-dock.is-collapsed .bookbar-side-toggle {
  position: fixed;
  top: var(--bookbar-sticky-top, var(--site-header-h, 76px));
  right: 0;
  z-index: 45;
  width: auto;
  height: 36px;
  flex-direction: row;
  gap: 8px;
  padding: 0 16px 0 14px;
  border-left: 0;
  border-radius: 0 0 10px 10px;
  background: var(--bookbar-bg, #2a2a2a);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
}

.bookbar-home-dock.is-collapsed .bookbar-side-toggle:hover {
  background: var(--bookbar-panel-bg, #1a1a1a);
}

.bookbar-home-dock.is-collapsed .bookbar-side-toggle__text--open {
  display: none;
}

.bookbar-home-dock.is-collapsed .bookbar-side-toggle__text--closed {
  display: inline;
  writing-mode: horizontal-tb;
  transform: none;
  letter-spacing: 0.1em;
}

.bookbar-home-dock.is-collapsed .bookbar-side-toggle__chev {
  transform: rotate(45deg);
}

@media (max-width: 980px) {
  .bookbar--home {
    height: auto;
    min-height: 0;
    max-height: 280px;
  }
  .bookbar-home-dock.is-collapsed .bookbar--home {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
  }
  .bookbar--home .bookbar__inner {
    padding: 8px 52px 14px 16px;
    height: auto;
  }
  .bookbar--home .bookbar__seg,
  .bookbar--home .bookbar__action {
    height: auto;
  }
  .bookbar-side-toggle {
    width: 36px;
    height: 100%;
    min-height: 48px;
  }
  .bookbar-side-toggle__text--open {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bookbar--home,
  .bookbar--home .bookbar__inner,
  .bookbar--home.bookbar--has-hero::before,
  .bookbar--home.bookbar--has-hero::after,
  .bookbar-side-toggle,
  .bookbar-side-toggle__chev {
    transition: none;
  }
}

/* ---------------------------------------------------------------- compact variant
 *
 * /book search strip. Same appearance tokens as Booking Widget
 * (Web CMS → Booking Widget → View Rates bar appearance).
 */

.bookbar--compact {
  background: var(--bookbar-bg, #1e2126);
  color: var(--bookbar-ink, #f4f4f4);
  border: 1px solid var(--bookbar-line, rgba(255, 255, 255, 0.14));
  border-radius: 10px;
  font-family: var(--bookbar-font, inherit);
}

.bookbar--compact .bookbar__inner {
  min-height: var(--bookbar-min-height, 76px);
  padding: 0 10px;
}

.bookbar--compact .bookbar__trigger {
  padding: 12px 16px;
  gap: 5px;
}

.bookbar--compact .bookbar__trigger:hover:not(.bookbar__trigger--static) {
  background: color-mix(in srgb, var(--bookbar-ink, #ffffff) 8%, transparent);
}

.bookbar--compact .bookbar__label {
  font-size: var(--bookbar-label-size, 0.65rem);
  color: var(--bookbar-muted, #b8b8b8);
}

.bookbar--compact .bookbar__value {
  font-size: var(--bookbar-value-size, 0.95rem);
  color: var(--bookbar-ink, #f4f4f4);
}

.bookbar--compact .bookbar__action {
  padding: 10px 0 10px 14px;
}

.bookbar--compact .bookbar__btn {
  padding: 11px 24px;
  font-size: var(--bookbar-value-size, 0.9rem);
  background: var(--bookbar-accent, var(--brand-primary, #ffba5a));
  color: var(--bookbar-on-accent, #ffffff);
}

.bookbar--compact .bookbar__seg + .bookbar__seg::before {
  top: 14px;
  bottom: 14px;
  border-left-color: var(--bookbar-line, rgba(255, 255, 255, 0.14));
}

/* Dropdown panels stay light for readability against a dark bar. */
.bookbar--compact .bookbar__panel {
  --bookbar-ink: #1c1c1c;
  --bookbar-muted: #707070;
  --bookbar-line: rgba(0, 0, 0, 0.14);
  color: #1c1c1c;
  background: #ffffff;
}
