.tour-bookingbox {
  --bookingbox-navy: #052744;
  --bookingbox-blue: #0867df;
  --bookingbox-blue-soft: #e9f3ff;
  --bookingbox-aqua: #00b8bd;
  --bookingbox-sun: #ffc441;
  --bookingbox-line: #cbdde8;
  --bookingbox-muted: #637c8d;
  position: relative;
  width: min(1300px, calc(100% - 80px));
  margin: auto;
  padding: 18px 20px 14px;
  display: grid;
  grid-template-columns: 1.25fr .86fr .78fr 220px;
  gap: 12px;
  overflow: visible;
  border: 1px solid rgb(5 39 68 / 9%);
  border-top: 5px solid var(--bookingbox-aqua);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 50px rgb(6 40 61 / 16%);
  color: var(--bookingbox-navy);
  isolation: isolate;
}

.page-hero .tour-bookingbox {
  width: 100%;
  margin-top: 24px;
}

.tour-bookingbox *,
.tour-bookingbox *::before,
.tour-bookingbox *::after { box-sizing: border-box; }

.bookingbox-control { position: relative; min-width: 0; }
.bookingbox-rates {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.bookingbox-rates > legend {
  margin: 0 0 8px 2px;
  color: var(--bookingbox-navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.bookingbox-rate-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 10px; }
.bookingbox-rate-item { display: grid; gap: 4px; }
.bookingbox-rate-option { position: relative; display: block; cursor: pointer; }
.bookingbox-rate-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bookingbox-rate-card {
  min-height: 88px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--bookingbox-line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}
.bookingbox-rate-option:hover .bookingbox-rate-card { transform: translateY(-1px); border-color: #8fb9d6; }
.bookingbox-rate-option > input:checked + .bookingbox-rate-card { border-color: var(--bookingbox-blue); background: var(--bookingbox-blue-soft); box-shadow: inset 0 0 0 1px var(--bookingbox-blue), 0 8px 20px rgb(8 103 223 / 10%); }
.bookingbox-rate-option > input:focus-visible + .bookingbox-rate-card { outline: 3px solid var(--bookingbox-sun); outline-offset: 2px; }
.bookingbox-rate-copy { min-width: 0; }
.bookingbox-rate-copy > strong { display: block; margin-bottom: 3px; color: var(--bookingbox-navy); font-size: 13px; line-height: 1.25; }
.bookingbox-rate-copy > small { display: block; color: var(--bookingbox-muted); font-size: 10px; line-height: 1.35; }
.bookingbox-rate-included { display: block; margin-top: 6px; color: #14755f; font-size: 9px; font-weight: 800; line-height: 1.35; }
.bookingbox-rate-price { flex: 0 0 auto; text-align: right; }
.bookingbox-rate-price small { display: block; color: var(--bookingbox-muted); font-size: 8px; font-weight: 800; line-height: 1.25; text-transform: uppercase; }
.bookingbox-rate-price strong { display: block; margin: 2px 0; color: var(--bookingbox-blue); font-size: 17px; line-height: 1; white-space: nowrap; }
.bookingbox-rate-details { display: none; align-items: center; justify-content: flex-end; gap: 5px; color: var(--bookingbox-blue); font-size: 11px; font-weight: 850; text-decoration: none; }
.bookingbox-rate-details:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .tour-booking-rail .bookingbox-rate-details:not([hidden]) { display: inline-flex; }
}
.bookingbox-fallback-label,
.bookingbox-native-travelers label {
  display: block;
  margin: 0 0 5px 2px;
  color: var(--bookingbox-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.bookingbox-native-control {
  width: 100%;
  height: 66px;
  padding: 0 14px;
  border: 1px solid var(--bookingbox-line);
  border-radius: 12px;
  background: #fff;
  color: var(--bookingbox-navy);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.bookingbox-native-travelers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bookingbox-native-travelers .bookingbox-native-control { height: 45px; }

.bookingbox-trigger {
  display: none;
  width: 100%;
  height: 68px;
  padding: 9px 12px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--bookingbox-line);
  border-radius: 12px;
  background: #fff;
  color: var(--bookingbox-navy);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.tour-bookingbox.is-enhanced .bookingbox-trigger { display: flex; }
.tour-bookingbox.is-enhanced .bookingbox-native-control,
.tour-bookingbox.is-enhanced .bookingbox-fallback-label,
.tour-bookingbox.is-enhanced .bookingbox-native-travelers { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.bookingbox-trigger:hover { border-color: #8fb9d6; background: #fbfdff; }
.bookingbox-trigger[aria-expanded="true"] { border-color: var(--bookingbox-blue); box-shadow: 0 0 0 4px rgb(8 103 223 / 12%); }
.bookingbox-trigger:focus-visible,
.bookingbox-submit:focus-visible,
.bookingbox-panel button:focus-visible { outline: 3px solid var(--bookingbox-sun); outline-offset: 2px; }

.bookingbox-trigger-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--bookingbox-blue-soft);
  color: var(--bookingbox-blue);
}
.bookingbox-trigger-icon svg { width: 21px; height: 21px; }
.bookingbox-trigger-copy { min-width: 0; flex: 1; }
.bookingbox-trigger-label { display: block; margin-bottom: 2px; color: var(--bookingbox-muted); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.bookingbox-trigger-copy strong { display: block; overflow: hidden; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.bookingbox-chevron { width: 16px; height: 16px; flex: 0 0 16px; color: #668196; transition: transform .18s ease; }
.bookingbox-trigger[aria-expanded="true"] .bookingbox-chevron { transform: rotate(180deg); }

.bookingbox-submit {
  min-height: 68px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd15c, var(--bookingbox-sun));
  box-shadow: 0 7px 0 #e6a600;
  color: var(--bookingbox-navy);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.bookingbox-submit:hover { transform: translateY(-2px); box-shadow: 0 9px 0 #e6a600; }
.bookingbox-submit:active { transform: translateY(4px); box-shadow: 0 3px 0 #e6a600; }
.bookingbox-submit svg { width: 18px; height: 18px; }

.bookingbox-note {
  grid-column: 1 / -1;
  margin: 0 2px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--bookingbox-muted);
  font-size: 10px;
  line-height: 1.35;
}
.bookingbox-note svg { width: 16px; height: 16px; flex: 0 0 16px; color: #13866f; }
.bookingbox-error { grid-column: 1 / -1; margin: 0; padding: 8px 11px; border-radius: 9px; background: #fff0ed; color: #9d2418; font-size: 12px; font-weight: 750; }
.bookingbox-noscript { grid-column: 1 / -1; margin: 0; color: var(--bookingbox-muted); font-size: 11px; }

.bookingbox-panel {
  position: absolute;
  z-index: 3020;
  top: calc(100% + 12px);
  padding: 18px;
  border: 1px solid var(--bookingbox-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 65px rgb(3 35 57 / 24%);
}
.bookingbox-panel[hidden], .bookingbox-backdrop[hidden] { display: none; }
.bookingbox-destination-panel { left: 0; width: min(640px, calc(100vw - 34px)); }
.bookingbox-calendar-panel { left: 50%; width: min(720px, calc(100vw - 34px)); transform: translateX(-50%); }
.bookingbox-travelers-panel { right: 0; width: 390px; }

.bookingbox-panel-head { min-height: 48px; margin-bottom: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e4edf3; padding-bottom: 13px; }
.bookingbox-panel-head span { display: block; margin-bottom: 3px; color: var(--bookingbox-aqua); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.bookingbox-panel-head strong { display: block; font-size: 18px; line-height: 1.2; }
.bookingbox-panel-head button,
.bookingbox-calendar-nav button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid #d4e2ec;
  border-radius: 11px;
  background: #f6fafd;
  color: var(--bookingbox-navy);
  cursor: pointer;
}
.bookingbox-panel-head button svg,
.bookingbox-calendar-nav button svg { width: 18px; height: 18px; }

.bookingbox-destination-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.bookingbox-destination-option {
  position: relative;
  min-height: 82px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8e5ed;
  border-radius: 14px;
  background: #fff;
  color: var(--bookingbox-navy);
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}
.bookingbox-destination-option:hover { transform: translateY(-2px); border-color: #8fb9d6; background: #f8fcff; }
.bookingbox-destination-option[aria-pressed="true"] { border-color: var(--bookingbox-blue); background: var(--bookingbox-blue-soft); box-shadow: inset 0 0 0 1px var(--bookingbox-blue); }
.bookingbox-destination-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #e6f8ff, #dff9ef); color: var(--bookingbox-blue); }
.bookingbox-destination-mark svg { width: 21px; height: 21px; }
.bookingbox-destination-option strong { display: block; margin-bottom: 3px; font-size: 13px; line-height: 1.15; }
.bookingbox-destination-option small { display: block; padding-right: 4px; color: var(--bookingbox-muted); font-size: 9px; line-height: 1.35; }
.bookingbox-destination-option em { position: absolute; top: 8px; right: 8px; padding: 3px 6px; border-radius: 999px; background: #fff3cf; color: #7b5600; font-size: 7px; font-style: normal; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

.bookingbox-calendar-head { align-items: center; }
.bookingbox-calendar-nav { display: flex; align-items: center; gap: 6px; }
.bookingbox-calendar-nav button:disabled { opacity: .35; cursor: not-allowed; }
.bookingbox-calendar-months { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.bookingbox-calendar-title { margin: 0 0 12px; font-size: 14px; text-align: center; text-transform: capitalize; }
.bookingbox-calendar-weekdays,
.bookingbox-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.bookingbox-calendar-weekdays span { padding: 4px 0 7px; color: var(--bookingbox-muted); font-size: 8px; font-weight: 900; text-align: center; text-transform: uppercase; }
.bookingbox-calendar-days button,
.bookingbox-calendar-spacer { aspect-ratio: 1; min-width: 34px; border-radius: 10px; }
.bookingbox-calendar-days button { border: 0; background: transparent; color: var(--bookingbox-navy); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.bookingbox-calendar-days button:hover:not(:disabled) { background: var(--bookingbox-blue-soft); color: var(--bookingbox-blue); }
.bookingbox-calendar-days button[aria-pressed="true"] { background: var(--bookingbox-blue); color: #fff; box-shadow: 0 5px 12px rgb(8 103 223 / 25%); }
.bookingbox-calendar-days button[data-in-range="true"] { border-radius: 8px; background: #dceeff; color: var(--bookingbox-blue); }
.bookingbox-range-help { margin: -5px 0 11px; color: var(--bookingbox-muted); font-size: 11px; font-weight: 750; line-height: 1.45; }
.bookingbox-range-selection { margin-bottom: 16px; padding: 8px; display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 8px; border: 1px solid var(--bookingbox-line); border-radius: 14px; background: #f7fbfe; }
.bookingbox-range-selection > span { min-width: 0; padding: 9px 11px; border: 1px solid transparent; border-radius: 10px; }
.bookingbox-range-selection small { display: block; margin-bottom: 3px; color: var(--bookingbox-muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.bookingbox-range-selection strong { display: block; overflow: hidden; color: var(--bookingbox-navy); font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.bookingbox-range-selection > svg { width: 18px; height: 18px; justify-self: center; color: var(--bookingbox-muted); }
.bookingbox-calendar-panel[data-bookingbox-range-stage="start"] [data-bookingbox-range-step="start"],
.bookingbox-calendar-panel[data-bookingbox-range-stage="end"] [data-bookingbox-range-step="end"] { border-color: var(--bookingbox-blue); background: var(--bookingbox-blue-soft); box-shadow: inset 0 0 0 1px rgb(8 103 223 / 10%); }
.bookingbox-calendar-panel[data-bookingbox-range-stage="start"] [data-bookingbox-range-step="start"] small,
.bookingbox-calendar-panel[data-bookingbox-range-stage="end"] [data-bookingbox-range-step="end"] small { color: var(--bookingbox-blue); }
.bookingbox-calendar-days button[data-today="true"] { box-shadow: inset 0 0 0 1px var(--bookingbox-aqua); }
.bookingbox-calendar-days button:disabled { color: #b6c5cf; cursor: not-allowed; text-decoration: line-through; }

.bookingbox-traveler-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e4edf3; }
.bookingbox-traveler-row strong { display: block; margin-bottom: 3px; font-size: 14px; }
.bookingbox-traveler-row small { color: var(--bookingbox-muted); font-size: 10px; }
.bookingbox-stepper { display: flex; align-items: center; gap: 10px; }
.bookingbox-stepper button { width: 44px; height: 44px; border: 1px solid #bcd2e1; border-radius: 50%; background: #fff; color: var(--bookingbox-blue); font-size: 22px; line-height: 1; cursor: pointer; }
.bookingbox-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.bookingbox-stepper output { min-width: 24px; font-size: 15px; font-weight: 900; text-align: center; }
.bookingbox-panel-done { width: 100%; min-height: 46px; margin-top: 14px; border: 0; border-radius: 11px; background: var(--bookingbox-blue); color: #fff; font: inherit; font-size: 13px; font-weight: 850; cursor: pointer; }

.bookingbox-backdrop { position: fixed; z-index: 3000; inset: 0; background: transparent; }
.tour-bookingbox.has-open-panel { z-index: 3010; }
.search-wrap.bookingbox-layer-open { z-index: 3010; }

@media (max-width: 1050px) {
  .tour-bookingbox { width: calc(100% - 34px); grid-template-columns: 1fr 1fr; }
  .bookingbox-destination-control { grid-column: 1 / -1; }
  .bookingbox-submit { min-height: 68px; }
  .bookingbox-note { display: none; }
}

@media (max-width: 580px) {
  .tour-bookingbox { width: calc(100% - 30px); padding: 14px; grid-template-columns: 1fr; gap: 10px; border-radius: 16px; }
  .bookingbox-destination-control { grid-column: 1; }
  .bookingbox-native-control { height: 58px; font-size: 16px; }
  .bookingbox-trigger { height: 60px; padding: 8px 11px; }
  .bookingbox-trigger-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .bookingbox-trigger-label { font-size: 8px; }
  .bookingbox-trigger-copy strong { font-size: 13px; }
  .bookingbox-submit { min-height: 58px; font-size: 15px; }
  .bookingbox-rate-card { align-items: flex-start; }
  .bookingbox-rate-copy > strong { font-size: 14px; }
  .bookingbox-rate-price strong { font-size: 16px; }
  .bookingbox-note { display: flex; justify-content: center; text-align: center; }
  .bookingbox-panel {
    position: fixed;
    z-index: 3010;
    top: auto;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-height: min(78dvh, 650px);
    padding: 16px;
    overflow-y: auto;
    transform: none;
    border-radius: 20px;
  }
  .bookingbox-destination-grid { grid-template-columns: 1fr; }
  .bookingbox-destination-option { min-height: 70px; }
  .bookingbox-calendar-months { grid-template-columns: 1fr; }
  .bookingbox-range-selection { grid-template-columns: 1fr 20px 1fr; }
  .bookingbox-range-selection > span { padding: 8px; }
  .bookingbox-range-selection strong { font-size: 10px; }
  .bookingbox-calendar-month-secondary { display: none; }
  .bookingbox-calendar-days button,
  .bookingbox-calendar-spacer { min-width: 38px; }
  .bookingbox-panel-head { position: sticky; z-index: 2; top: -16px; margin: -16px -16px 12px; padding: 16px 16px 12px; background: #fff; }
  .bookingbox-calendar-head { align-items: flex-start; }
  .bookingbox-calendar-nav { gap: 4px; }
  body.bookingbox-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .bookingbox-trigger,
  .bookingbox-submit,
  .bookingbox-chevron,
  .bookingbox-destination-option { transition: none; }
}
