/* The homepage search box (index.html #search, search-box.js). Ported from the Tripelyx search box (its
   public/css/search-box.css, 2026-10-29): one wide white card, the tabs on a light-blue tile with a blue underline, the
   fields as separate bordered boxes with a navy Search button, the two-month calendar and the travellers panel as
   overlays (full-screen sheets under 1024px). Left and right are logical (inline start and end) so Arabic mirrors.
   Colours: blue, navy and a silver line, after the American Express palette the owner supplied (2026-10-29). */
.sb {
  --sb-blue: #006FCF; --sb-blue-dark: #005BB0; --sb-tint: #EAF3FC; --sb-navy: #00175A; --sb-navy-2: #0B2A7A;
  --sb-ink: #0E1B33; --sb-muted: #5A687C; --sb-text: #2E3B4E; --sb-line: #E1E5EB; --sb-soft: #F3F5F8;
  --sb-box-line: #D3D9E1; --sb-chip-line: #C3CBD5; --sb-off: #A3ADBA; --sb-off-line: #D5DBE3; --sb-danger: #B42318;
  --sb-silver: linear-gradient(180deg, #FFFFFF 0%, #F4F6F9 100%);
  position: relative; color: var(--sb-ink); text-align: start;
  background: #fff; border-radius: 16px; box-shadow: 0 14px 44px rgba(0, 23, 90, .22), 0 2px 6px rgba(0, 23, 90, .08);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.5;
}
:root[dir="rtl"] .sb { font-family: Cairo, Inter, system-ui, sans-serif; }
.sb *, .sb *::before, .sb *::after { box-sizing: border-box; }
.sb [hidden] { display: none !important; }
.sb button, .sb select, .sb input { font-family: inherit; }
.sb :focus-visible { outline: 3px solid var(--sb-blue); outline-offset: 2px; }
.sb .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- the tabs: five equal columns, each its name and a short line under it ---- */
.sb-nav { border-bottom: 1px solid var(--sb-line); }
.sb-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 14px 18px 0; }
.sb-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 9px 6px 12px; border: 0; border-radius: 12px 12px 0 0; background: transparent; color: var(--sb-ink); font-size: 15px; line-height: 1.25; font-weight: 500; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sb-tab-icon { width: 26px; height: 26px; flex: none; color: var(--sb-navy); }
.sb-tab-text { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.sb-tab-label { white-space: nowrap; }
.sb-tab-sub { font-size: 11.5px; line-height: 1.25; font-weight: 500; color: var(--sb-muted); }
.sb-tab.is-soon .sb-tab-sub { color: #8592A3; text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; font-weight: 600; }
.sb-tab:hover { background: var(--sb-soft); }
.sb-tab[aria-selected="true"] { background: var(--sb-tint); color: var(--sb-blue); font-weight: 600; }
.sb-tab[aria-selected="true"] .sb-tab-icon { color: var(--sb-blue); }
.sb-tab[aria-selected="true"]::after { content: ''; position: absolute; inset-inline: 13%; bottom: -1px; height: 3px; border-radius: 2px; background: var(--sb-blue); }
.sb-tab:focus-visible { outline-offset: -3px; }

/* ---- the panels ---- */
.sb-panels { padding: 16px 18px 18px; }
.sb-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }

/* ---- the fields: separate bordered boxes ---- */
.sb-bar { position: relative; display: flex; align-items: stretch; gap: 12px; height: 58px; flex: none; }
.sb-seg { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 16px; flex: 1 1 0; background: #fff; border: 1px solid var(--sb-box-line); border-radius: 10px; }
.sb-seg:hover { border-color: var(--sb-chip-line); }
.sb-seg-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; contain: inline-size; }
.sb-label { font-size: 12px; line-height: 1.25; font-weight: 500; color: var(--sb-muted); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-label-quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sb-value, .sb-input, .sb-select { font-size: 15px; line-height: 1.35; font-weight: 500; color: var(--sb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; min-height: 0; box-shadow: none; }
.sb-input::placeholder { color: #7A8799; opacity: 1; font-weight: 400; }
.sb-select { width: 100%; min-height: 0; padding: 0; padding-inline-end: 22px; border: 0; outline: 0; box-shadow: none; background: transparent no-repeat right 0 center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2300175A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); -webkit-appearance: none; appearance: none; cursor: pointer; }
:root[dir="rtl"] .sb-select { background-position: left 0 center; }
.sb-ico { width: 22px; height: 22px; flex: none; color: var(--sb-navy); }
.sb-chev { width: 16px; height: 16px; flex: none; color: var(--sb-navy); }
.sb-seg:focus-within:not(.sb-pop-wrap) { border-color: var(--sb-blue); box-shadow: 0 0 0 1px var(--sb-blue); }
.sb-seg :focus-visible { outline: 0; }
.sb-form-stays .sb-seg-dest { flex: 0 0 31%; }
.sb-form-stays .sb-seg-dates { flex: 0 0 29%; }
.sb-form-stays .sb-seg-trav { flex: 1 1 0; }

/* A field that opens a panel (a <details>); it stays unpositioned so the panel is placed against the whole row */
.sb-pop-wrap { position: static; display: block; padding: 0; }
.sb-pop-wrap > summary { list-style: none; }
.sb-pop-wrap > summary::-webkit-details-marker { display: none; }
.sb-seg-btn { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 100%; padding: 0 16px; cursor: pointer; border-radius: 9px; -webkit-tap-highlight-color: transparent; }
.sb-seg-btn:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--sb-blue); }
.sb-pop-wrap[open] { border-color: var(--sb-blue); box-shadow: 0 0 0 1px var(--sb-blue); }
.sb-pop-wrap[open] .sb-chev { transform: rotate(180deg); }

.sb-search { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; min-width: 150px; margin: 0; padding: 0 30px; border: 0; border-radius: 10px; background: var(--sb-navy); color: #fff; font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.sb-search .sb-ico { width: 20px; height: 20px; color: #fff; }
.sb-search:hover { background: var(--sb-navy-2); color: #fff; }

.sb-row { display: flex; align-items: center; gap: 8px 24px; min-height: 44px; flex-wrap: wrap; }
.sb-check { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14.5px; font-weight: 500; color: var(--sb-ink); cursor: pointer; }
.sb-check input { width: 20px; height: 20px; min-height: 0; margin: 0; flex: none; accent-color: var(--sb-blue); }
.sb-note { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; line-height: 1.4; color: var(--sb-muted); }
.sb-note-amber { padding: 8px 14px; background: #F4F7FB; border: 1px solid #D6DEE8; border-radius: 10px; color: var(--sb-text); }
.sb-note .sb-ico { width: 20px; height: 20px; color: var(--sb-blue); }
.sb-badge { display: inline-flex; align-items: center; flex: none; padding: 4px 10px; border-radius: 12px; background: var(--sb-tint); color: var(--sb-blue); font-size: 12.5px; line-height: 1.2; font-weight: 600; white-space: nowrap; }
.sb-pill-select { height: 44px; min-height: 0; padding: 0 14px; padding-inline-end: 38px; border: 1px solid var(--sb-box-line); border-radius: 10px; background: #fff no-repeat right 14px center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2300175A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); color: var(--sb-ink); font-size: 14.5px; font-weight: 500; -webkit-appearance: none; appearance: none; cursor: pointer; }
:root[dir="rtl"] .sb-pill-select { background-position: left 14px center; }

/* ---- the coming-soon tabs: their name, the badge and the plain note; after a complete search, the plain answer ---- */
.sb-head { display: flex; align-items: center; gap: 12px; min-height: 40px; flex: none; flex-wrap: wrap; }
.sb-head-title { font-size: 17px; font-weight: 700; color: var(--sb-ink); }
.sb-head .sb-note { margin-inline-start: auto; }
.sb-soon-msg { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; border: 1px solid #BCD6F2; border-radius: 10px; background: var(--sb-tint); }
.sb-soon-msg p { margin: 0; flex: 1 1 320px; font-size: 14.5px; line-height: 1.45; color: var(--sb-ink); }
.sb-soon-msg p:focus { outline: 0; }
.sb-form-soon .sb-seg-count { flex: 0 1 190px; }
.sb-form-packages .sb-seg-dates { flex: 0 1 290px; }
.sb-form-cars .sb-seg-time { flex: 0 1 170px; }
.sb-form-cars .sb-seg-dropoff { display: none; }
.sb-form-cars.is-dropoff .sb-seg-dropoff { display: flex; }
.sb-inline-select { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--sb-ink); }

/* ---- flights ---- */
.sb-opts { display: flex; align-items: center; gap: 12px; min-height: 44px; flex: none; flex-wrap: wrap; }
.sb-trip { display: flex; gap: 4px; margin: 0; padding: 3px; border: 1px solid var(--sb-box-line); border-radius: 10px; background: #fff; min-width: 0; }
.sb-trip-choice { position: relative; display: flex; }
.sb-trip-choice input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.sb-trip-choice span { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--sb-ink); white-space: nowrap; }
.sb-trip-choice input:checked + span { background: var(--sb-tint); border-color: var(--sb-blue); color: var(--sb-blue); font-weight: 600; }
.sb-trip-choice input:focus-visible + span { outline: 3px solid var(--sb-blue); outline-offset: 2px; }
.sb-fl-single { display: flex; gap: 12px; flex: 1 1 0; min-width: 0; }
.sb-fl-single .sb-seg-from, .sb-fl-single .sb-seg-to { flex: 1 1 0; }
.sb-fl-single .sb-seg-to { padding-inline-start: 24px; }
.sb-fl-single .sb-seg-dates { flex: 0 0 34%; }
.sb-swap { align-self: center; flex: none; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; margin: 0 -24px; padding: 0; border: 1px solid var(--sb-box-line); border-radius: 18px; background: #fff; color: var(--sb-navy); cursor: pointer; box-shadow: 0 2px 6px rgba(0, 23, 90, .1); }
.sb-swap .sb-ico { width: 18px; height: 18px; }
.sb-fl-end { position: relative; display: flex; align-items: stretch; gap: 12px; flex: none; min-width: 0; }
.sb-fl-end .sb-seg-trav { flex: 0 0 190px; }
.sb-fl-multi { display: none; }
/* Multi-city: up to four flights, two a row, each its own box; the travellers and Search beside them */
.sb-form-flights[data-trip="multi"] .sb-fl-single { display: none; }
.sb-form-flights[data-trip="multi"] .sb-bar-flights { height: auto; }
.sb-form-flights[data-trip="multi"] .sb-fl-multi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 58px; gap: 16px 12px; flex: 1 1 auto; min-width: 0; padding-top: 4px; }
.sb-form-flights[data-trip="multi"] .sb-fl-end { flex: 0 0 230px; flex-direction: column; padding-top: 4px; }
.sb-form-flights[data-trip="multi"] .sb-fl-end .sb-seg-trav { flex: none; height: 58px; }
.sb-form-flights[data-trip="multi"] .sb-fl-end .sb-search { width: 100%; }
.sb-leg { position: relative; display: flex; align-items: stretch; min-width: 0; margin: 0; padding: 0; border: 1px solid var(--sb-box-line); border-radius: 10px; background: #fff; }
.sb-leg[data-sb-folded] { display: none; }
.sb-leg-n { position: absolute; top: -9px; inset-inline-start: 14px; z-index: 1; margin: 0; padding: 0 6px; border-radius: 6px; background: #fff; font-size: 11px; line-height: 16px; font-weight: 700; color: var(--sb-muted); }
.sb-optional { font-weight: 500; }
.sb-leg .sb-seg { padding: 0 12px; gap: 10px; border: 0; border-radius: 0; background: transparent; }
.sb-leg .sb-seg:first-of-type { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.sb-leg .sb-seg + .sb-seg::before { content: ''; position: absolute; inset-inline-start: 0; top: 12px; bottom: 12px; width: 1px; background: var(--sb-box-line); }
.sb-leg .sb-seg:focus-within:not(.sb-pop-wrap) { box-shadow: inset 0 0 0 2px var(--sb-blue); }
.sb-leg .sb-pop-wrap[open] { box-shadow: inset 0 0 0 2px var(--sb-blue); }
.sb-leg .sb-seg-from .sb-ico, .sb-leg .sb-seg-to .sb-ico { display: none; }
.sb-leg .sb-seg-btn { padding: 0 12px; gap: 8px; }
.sb-leg .sb-seg-leg-date { flex: 0 0 160px; }
.sb-leg .sb-ico { width: 20px; height: 20px; }
.sb-leg .sb-value, .sb-leg .sb-input { font-size: 14.5px; }
.sb-leg-remove { position: absolute; top: -12px; inset-inline-end: 8px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; min-height: 0; padding: 0; border: 1px solid var(--sb-chip-line); border-radius: 50%; background: #fff; color: var(--sb-navy); cursor: pointer; }
.sb-leg-remove .sb-ico { width: 14px; height: 14px; }
.sb-add-leg { display: none; align-items: center; justify-content: center; height: 58px; border: 1.5px dashed var(--sb-chip-line); border-radius: 10px; background: transparent; color: var(--sb-blue); font-size: 15px; font-weight: 600; cursor: pointer; }
.sb-form-flights[data-trip="multi"] .sb-add-leg { display: flex; }
.sb-form-flights[data-trip="multi"] .sb-add-leg[hidden] { display: none; }

/* ---- the panels the fields open ---- */
.sb-pop:focus { outline: 0; }
.sb-pop { position: absolute; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sb-line); border-radius: 14px; box-shadow: 0 18px 48px rgba(0, 23, 90, .2); color: var(--sb-ink); cursor: auto; }
/* the calendar: from the dates box to the card's end edge */
.sb-pop-dates { inset-inline-end: 0; width: 760px; max-width: calc(100vw - 32px); overflow: hidden; }
.sb-form-stays .sb-pop-dates { inset-inline-start: calc(31% + 12px); width: auto; }
.sb-leg .sb-pop-dates { inset-inline-end: auto; inset-inline-start: 0; width: 760px; }
.sb-leg:nth-of-type(even) .sb-pop-dates { inset-inline-start: auto; inset-inline-end: 0; }
.sb-pop-trav { inset-inline-end: 162px; width: 400px; max-height: 560px; overflow-y: auto; padding: 22px 24px 20px; }
.sb-form-flights .sb-pop-trav { inset-inline-end: 0; }
.sb-sheet-head { display: none; }
.sb-pop-body { display: flex; flex-direction: column; gap: 18px; }

/* the dates panel */
.sb-native { display: flex; gap: 14px; padding: 18px 22px; }
.sb-native-f { display: flex; flex-direction: column; gap: 6px; flex: 1; font-size: 13px; font-weight: 600; color: var(--sb-text); }
.sb-native-f input { height: 48px; padding: 0 12px; border: 1px solid var(--sb-chip-line); border-radius: 10px; background: #fff; font-size: 16px; color: var(--sb-ink); }
.sb-js .sb-native { display: none; }
.sb-cal { display: flex; gap: 0; padding: 10px 4px 0; }
.sb-cal:empty { display: none; }
.sb-month { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 20px; }
.sb-month + .sb-month { border-inline-start: 1px solid var(--sb-line); }
.sb-month-head { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.sb-month-title { margin: 0; flex: 1; text-align: center; font-size: 15.5px; font-weight: 700; color: var(--sb-ink); }
.sb-nav-btn { width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 18px; background: transparent; color: var(--sb-navy); font-size: 22px; line-height: 1; cursor: pointer; }
.sb-nav-btn:hover:not(:disabled) { background: var(--sb-soft); }
.sb-nav-btn:disabled { opacity: .3; cursor: default; }
.sb-nav-btn.is-gone { visibility: hidden; }
.sb-wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 2px 0 4px; text-align: center; font-size: 11.5px; font-weight: 500; color: var(--sb-muted); }
.sb-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(6, 32px); row-gap: 0; }
.sb-day-cell { display: flex; justify-content: center; align-items: center; }
.sb-day-cell.in-range { background: var(--sb-tint); }
.sb-day-cell.is-start { background: linear-gradient(90deg, transparent 50%, var(--sb-tint) 50%); }
.sb-day-cell.is-end { background: linear-gradient(90deg, var(--sb-tint) 50%, transparent 50%); }
:root[dir="rtl"] .sb-day-cell.is-start { background: linear-gradient(270deg, transparent 50%, var(--sb-tint) 50%); }
:root[dir="rtl"] .sb-day-cell.is-end { background: linear-gradient(270deg, var(--sb-tint) 50%, transparent 50%); }
.sb-day-cell.is-start.is-end { background: none; }
.sb-day { width: 40px; height: 30px; min-height: 0; padding: 0; border: 0; border-radius: 15px; background: transparent; color: var(--sb-ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.sb-day:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--sb-blue); }
.sb-day.is-today { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sb-day:disabled { color: #B3BCC8; cursor: default; }
.sb-day-out { display: flex; justify-content: center; align-items: center; color: #C3CAD4; font-size: 13px; }
.sb-day[aria-pressed="true"] { background: var(--sb-blue); color: #fff; font-weight: 700; text-decoration: none; box-shadow: none; }
.sb-day:focus-visible { outline: 3px solid var(--sb-blue); outline-offset: 1px; }
.sb-flex-msg { margin: 0 24px; padding: 8px 12px; border-radius: 8px; background: var(--sb-tint); font-size: 14px; line-height: 1.4; color: var(--sb-ink); }
.sb-flex-msg:empty { display: none; }
.sb-pop-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 16px 12px; }
.sb-chips { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.sb-chip { flex: none; height: 34px; min-height: 0; padding: 0 14px; border: 1px solid var(--sb-chip-line); border-radius: 17px; background: #fff; color: var(--sb-ink); font-size: 12.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.sb-chip[aria-pressed="true"] { border-color: var(--sb-blue); background: var(--sb-tint); color: var(--sb-blue); font-weight: 600; }
.sb-chip[aria-disabled="true"]:hover { background: var(--sb-soft); }
.sb-pop-end { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.sb-nights { margin: 0; font-size: 13.5px; color: var(--sb-muted); white-space: nowrap; }
.sb-done { flex: none; height: 36px; min-height: 0; padding: 0 32px; border: 0; border-radius: 18px; background: var(--sb-navy); color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.sb-done:hover:not(:disabled) { background: var(--sb-navy-2); }
.sb-done:disabled { opacity: .5; cursor: not-allowed; }
.sb-msg { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--sb-danger); }
.sb-msg:empty { display: none; }
.sb-seg.is-invalid, .sb-pop-wrap.is-invalid { border-color: var(--sb-danger); box-shadow: 0 0 0 1px var(--sb-danger); }
.sb-pop-foot .sb-msg { flex-basis: 100%; }

/* the travellers panel */
.sb-room { display: flex; flex-direction: column; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--sb-line); }
.sb-room-title { margin: 0; font-size: 16px; font-weight: 700; }
.sb-room-title:focus { outline: none; }
.sb-room-title:focus-visible { outline: 2px solid var(--sb-blue); outline-offset: 2px; }
.sb-rooms { display: flex; flex-direction: column; gap: 18px; }
.sb-room-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sb-room-head .sb-link-btn { min-height: 32px; font-size: 14.5px; }
.sb-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sb-count-label { display: flex; flex-direction: column; gap: 2px; }
.sb-count-label label { font-size: 15.5px; font-weight: 600; color: var(--sb-ink); }
.sb-count-label small { font-size: 12.5px; color: var(--sb-muted); }
.sb-stepper { display: flex; align-items: center; gap: 14px; }
.sb-step { width: 42px; height: 42px; min-height: 0; padding: 0; border: 1.5px solid var(--sb-blue); border-radius: 21px; background: #fff; color: var(--sb-blue); font-size: 22px; line-height: 1; font-weight: 500; cursor: pointer; }
.sb-step:hover:not(:disabled) { background: var(--sb-tint); }
.sb-step:disabled { border-color: var(--sb-off-line); color: var(--sb-off); cursor: default; }
.sb-count-n { min-width: 22px; text-align: center; font-size: 17px; font-weight: 600; }
.sb-count-select { height: 44px; min-width: 76px; padding: 0 12px; border: 1px solid var(--sb-chip-line); border-radius: 10px; background: #fff; font-size: 16px; color: var(--sb-ink); }
.sb:not(.sb-js) .sb-step, .sb:not(.sb-js) .sb-count-n { display: none; }
.sb-js .sb-count-select { display: none; }
.sb-ages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sb-age { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sb-text); }
.sb-age select { height: 46px; padding: 0 12px; border: 1px solid var(--sb-chip-line); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 500; color: var(--sb-ink); }
.sb-age select[aria-invalid="true"] { border: 2px solid var(--sb-danger); }
.sb-js .sb-age.is-off { display: none; }
.sb-room-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.sb-link-btn { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--sb-blue); font-size: 15px; font-weight: 600; cursor: pointer; }
.sb-link-btn:disabled { color: var(--sb-off); cursor: not-allowed; }
.sb-pop-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--sb-muted); }
.sb-pop-trav .sb-pop-foot { justify-content: space-between; padding: 0; border: 0; }

/* ---- 1024px and up: as Tripelyx at 1440, the type a touch smaller ---- */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .sb-tabs { gap: 4px; padding: 12px 14px 0; }
  .sb-value, .sb-input, .sb-select { font-size: 14px; }
  .sb-seg:not(.sb-pop-wrap), .sb-seg-btn { padding-inline: 12px; gap: 10px; }
  .sb-fl-single .sb-seg-to { padding-inline-start: 22px; }
  .sb-search { min-width: 0; padding: 0 20px; }
  .sb-fl-end .sb-seg-trav { flex-basis: 150px; }
  .sb-bar-flights .sb-seg .sb-ico:not(.sb-chev) { display: none; }
  .sb-pop-trav { inset-inline-end: 140px; }
  .sb-form-cars .sb-seg-time { flex-basis: 132px; }
  .sb-form-cars .sb-seg-time .sb-ico { display: none; }
  .sb-form-packages .sb-seg-dates { flex-basis: 236px; }
  .sb-form-soon .sb-seg-count { flex-basis: 150px; }
  .sb-head .sb-note { margin-inline-start: 0; flex-basis: 100%; }
}

/* ---- under 1024px: fields stacked at 58px, full-width Search, the panels as full-screen sheets ---- */
@media (max-width: 1023.98px) {
  .sb { border-radius: 16px; width: 100%; }
  .sb-tabs { gap: 4px; padding: 10px 10px 0; }
  .sb-tab { min-width: 0; min-height: 70px; padding: 8px 4px 10px; gap: 4px; font-size: 13.5px; }
  .sb-tab-label { white-space: normal; }
  .sb-tab-sub { display: none; }
  .sb-tab-icon { width: 24px; height: 24px; }
  .sb-panels { padding: 14px 14px 16px; }
  .sb-form { gap: 10px; }
  .sb-bar, .sb-form-flights[data-trip="multi"] .sb-bar-flights { flex-direction: column; height: auto; gap: 10px; }
  .sb-seg, .sb-leg .sb-seg, .sb-leg .sb-seg:first-of-type { flex: none; height: 58px; padding: 0 14px; gap: 12px; background: #fff; border: 1px solid var(--sb-box-line); border-radius: 10px; }
  .sb .sb-panel .sb-seg { flex: none; }
  .sb-pop-wrap, .sb-leg .sb-pop-wrap { padding: 0; }
  .sb-seg-btn, .sb-leg .sb-seg-btn { padding: 0 14px; gap: 12px; border-radius: 9px; }
  .sb-leg .sb-seg + .sb-seg::before { display: none; }
  .sb-leg .sb-seg:focus-within:not(.sb-pop-wrap) { box-shadow: 0 0 0 1px var(--sb-blue); border-color: var(--sb-blue); }
  .sb-label { font-size: 11.5px; }
  .sb-value, .sb-input, .sb-select { font-size: 16px; }
  .sb-search, .sb-form-flights[data-trip="multi"] .sb-fl-end .sb-search { width: 100%; height: 54px; flex: none; font-size: 16.5px; }
  .sb-row { gap: 6px 20px; }
  /* flights */
  .sb-opts { gap: 10px; column-gap: 14px; }
  .sb-trip { width: 100%; }
  .sb-trip-choice { flex: 1 1 0; }
  .sb-trip-choice span { width: 100%; height: 40px; padding: 0 8px; }
  .sb-opts .sb-check { gap: 10px; font-size: 14px; white-space: nowrap; }
  .sb-fl-single { position: relative; flex-direction: column; gap: 10px; flex: none; }
  .sb-fl-single .sb-seg-to { padding-inline-start: 14px; }
  .sb-fl-single .sb-seg-from, .sb-fl-single .sb-seg-to { padding-inline-end: 60px; }
  .sb-swap { position: absolute; inset-inline-end: 12px; top: 47px; width: 40px; height: 40px; margin: 0; border-radius: 20px; }
  .sb-fl-end, .sb-form-flights[data-trip="multi"] .sb-fl-end { flex-direction: column; flex: none; gap: 10px; padding-top: 0; }
  .sb-fl-end .sb-seg-trav, .sb-form-flights[data-trip="multi"] .sb-fl-end .sb-seg-trav { flex: none; height: 58px; }
  .sb-form-flights[data-trip="multi"] .sb-fl-multi { display: flex; flex-direction: column; gap: 22px; flex: none; padding-top: 10px; }
  .sb-leg { flex-direction: column; gap: 10px; flex: none; border: 0; background: none; border-radius: 0; }
  .sb-leg-n { top: -10px; inset-inline-start: 12px; }
  .sb-leg .sb-seg-leg-date { flex: none; }
  .sb-leg .sb-seg-from .sb-ico, .sb-leg .sb-seg-to .sb-ico { display: block; }
  .sb-leg-remove { top: -14px; inset-inline-end: 4px; width: 40px; height: 40px; border-radius: 20px; }
  .sb-add-leg, .sb-form-flights[data-trip="multi"] .sb-add-leg { flex: none; height: 52px; }
  /* the coming-soon tabs */
  .sb-head .sb-note { margin-inline-start: 0; flex-basis: 100%; }
  .sb-form-soon .sb-seg-count, .sb-form-cars .sb-seg-time { flex: none; }
  .sb-form-cars .sb-row { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
  .sb-form-cars .sb-bar { flex-direction: row; flex-wrap: wrap; }
  .sb .sb-panel .sb-form-cars .sb-bar > * { flex: 1 1 100%; }
  .sb .sb-panel .sb-form-cars .sb-seg-time { flex: 1 1 calc(50% - 5px); min-width: 0; }
}
/* the tabs three a row on phones */
@media (max-width: 640px) {
  .sb-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sb-tab { grid-column: span 2; }
  .sb-tab:nth-child(4), .sb-tab:nth-child(5) { grid-column: span 3; }
  .sb-tab { border-radius: 12px; }
  .sb-nav { border-bottom: 0; }
  .sb-tab[aria-selected="true"]::after { bottom: 0; }
}

/* The full-screen sheets (the script on, under 1024px): a close button, the content scrolling, a sticky Done bar */
@media (max-width: 1023.98px) {
  .sb:not(.sb-js) .sb-pop { inset-inline: 0; width: auto; max-width: none; }
  .sb.sb-js .sb-pop { position: fixed; inset: 0; z-index: 1100; width: auto; max-width: none; max-height: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; overflow: hidden; }
  .sb.sb-js .sb-sheet-head { display: flex; align-items: center; gap: 12px; flex: none; padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--sb-line); }
  .sb-x { display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--sb-navy); cursor: pointer; }
  .sb-x .sb-ico { width: 24px; height: 24px; }
  .sb-sheet-title { margin: 0; font-size: 18px; font-weight: 700; }
  .sb.sb-js .sb-cal { flex: 1 1 auto; min-height: 0; flex-direction: column; gap: 16px; padding: 0 16px 12px; overflow-y: auto; overscroll-behavior: contain; }
  .sb.sb-js .sb-cal .sb-wk { position: sticky; top: 0; z-index: 1; padding: 14px 0 6px; background: #fff; font-size: 12px; font-weight: 600; }
  .sb.sb-js .sb-month { flex: none; padding: 0; }
  .sb.sb-js .sb-month + .sb-month { border-inline-start: 0; }
  .sb.sb-js .sb-month-head { height: auto; margin: 6px 0 4px; }
  .sb.sb-js .sb-month-title { font-size: 16px; text-align: start; }
  .sb.sb-js .sb-days { grid-template-rows: none; grid-auto-rows: 44px; row-gap: 4px; }
  .sb.sb-js .sb-day { width: 44px; height: 44px; border-radius: 22px; font-size: 15px; }
  .sb.sb-js .sb-flex-msg { flex: none; margin: 8px 16px 0; }
  .sb.sb-js .sb-pop-dates .sb-pop-foot { flex: none; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--sb-line); background: #fff; }
  .sb.sb-js .sb-pop-dates .sb-pop-foot > * { min-width: 0; }
  .sb.sb-js .sb-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .sb.sb-js .sb-chip { height: 44px; border-radius: 22px; font-size: 14px; }
  .sb.sb-js .sb-pop-end { justify-content: space-between; margin-inline-start: 0; }
  .sb.sb-js .sb-nights { color: var(--sb-text); white-space: normal; }
  .sb.sb-js .sb-done { height: 48px; border-radius: 24px; font-size: 15px; }
  .sb.sb-js .sb-pop-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 0; }
  .sb.sb-js .sb-pop-trav .sb-pop-foot { position: sticky; bottom: 0; margin: auto -16px 0; padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--sb-line); background: #fff; }
}
html.sb-lock, html.sb-lock body { overflow: hidden; }
/* an open panel sits above the page's other layers (the assistant's button, the bottom bar); a phone sheet above all */
html.sb-pop-open .hero.hx { z-index: 15; }
html.sb-lock .hero.hx, html.sb-lock .hero.hx .sb-slot { z-index: 1100; }
html.sb-lock .bottom-nav { display: none; }
/* The assistant's round button never sits over the box: while the box passes under its corner of the screen
   (search-box.js sets html.sb-under) it moves below the screen's edge. */
.as-launch { transition: transform .25s ease, visibility .25s; }
html.sb-under .as-launch { transform: translateY(calc(100% + 160px)); visibility: hidden; }

@media (forced-colors: active) {
  .sb, .sb-seg, .sb-pop, .sb-leg { border: 1px solid CanvasText; }
  .sb-tab[aria-selected="true"], .sb-day[aria-pressed="true"], .sb-trip-choice input:checked + span, .sb-chip[aria-pressed="true"] { outline: 2px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) { .as-launch { transition: none; } }

/* ---- the box in the homepage hero (styles.css .hero.hx): it replaces the old services card at the same place ---- */
.hero.hx .sb-slot { position: relative; z-index: 3; }
.hero.hx .hx-search.sb { max-width: none; margin: 0; padding: 0; border-radius: 16px; }
/* Car Rentals with a different drop-off: six boxes in the row, so the times drop their icons and the dates keep room */
@media (min-width: 1024px) {
  .sb-form-cars.is-dropoff .sb-seg-time .sb-ico { display: none; }
  .sb-form-cars.is-dropoff .sb-seg-time { flex-basis: 128px; }
  .sb-form-cars .sb-seg-dates { flex: 1.25 1 0; }
}

/* 2026-10-30: a tab that is not available yet says so first and shows no long form to fill in; it offers the
   vacation-rental search instead (its note in .sb-head explains why). */
.sb-form-soon > :not(.sb-head):not(.sb-soon-msg) { display: none !important; }
.sb-form-soon .sb-soon-msg, .sb-form-soon .sb-soon-msg[hidden] { display: flex !important; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 0 6px; }
.sb-form-soon .sb-soon-msg p { display: none; }
.sb-form-soon .sb-soon-msg { background: none; border: 0; box-shadow: none; }
.sb-form-soon .sb-soon-msg .sb-link-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: #0B1B33; color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
.sb-form-soon .sb-soon-msg .sb-link-btn:hover { background: #13284A; }
