/* The planner is a page, sharing the site's header and footer. */
.search-flow[hidden], main.results[hidden], .search-flow [hidden] { display:none !important; }
body:has(.search-flow:not([hidden])) { background:#fff; }
.search-flow { flex:1; width:100%; padding:36px 24px 28px; }
.search-flow__inner { width:100%; max-width:600px; margin:0 auto; min-height:calc(100svh - 128px); display:flex; flex-direction:column; }
.flow-progress { display:flex; align-items:center; gap:20px; margin:0 0 42px; min-height:44px; }
.search-flow__inner:has(.flow-step:is([data-step="1"], [data-step="2"]):not([hidden])) .flow-progress { margin-bottom:16px; }
.flow-progress__body { flex:1; }
.flow-progress__bars { display:flex; gap:8px; }
.flow-progress__bars span { flex:1; height:7px; background:#eef2f7; border-radius:12px; }
.flow-progress__bars .is-active { background:#ffcc3d; }
#flow-step-label { margin:10px 0 0; font-size:14px; color:#5b677e; }
.flow-back { border:0; background:transparent; color:var(--text); font-size:28px; width:28px; padding:0; cursor:pointer; }
.flow-step h1 { font-size:clamp(22px, 3vw, 28px); line-height:1.25; letter-spacing:-.6px; margin:0 0 28px; font-weight:800; }
.flow-step h1:focus { outline:none; }
.search-flow .field { margin:0 0 24px; }
.search-flow .flow-departure { min-height:64px; border:2px solid #dfe4ec; border-radius:26px; box-shadow:none; background:#fff; position:relative; display:flex; align-items:center; padding:0 48px 0 52px; }
.search-flow .flow-departure input { width:100%; min-width:0; height:60px; border:0; outline:0; padding:0; background:transparent; color:var(--text); font-size:18px; }
.flow-search-icon { position:absolute; left:20px; width:21px; height:21px; color:#5b677e; }
.search-flow .flow-departure:focus-within { border-color:#e8b82f; box-shadow:0 0 0 3px #ffcc3d22; }
.search-flow .flow-departure .typeahead-dropdown { top:calc(100% + 8px); max-height:260px; }
.search-flow .flow-departure .chev { right:20px; }
.search-flow .flow-departure .field-error { position:absolute; top:100%; left:0; }
.search-flow .flow-destination-field { margin:28px 0 0; }
.search-flow .control .input.flow-destination { min-height:64px; border:2px solid #dfe4ec; border-radius:26px; box-shadow:none; padding:12px 44px 12px 52px; }
.search-flow .flow-destination:focus-within { border-color:#e8b82f; box-shadow:0 0 0 3px #ffcc3d22; }
.search-flow .flow-destination > .flow-search-icon { top:20px; }
.search-flow .flow-destination .chev { right:20px; top:24px; }
.search-flow .flow-destination input { height:36px; font-size:18px; }
.search-flow .flow-destination .chip-filter { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.search-flow .flow-destination .chip__x { flex-shrink:0; }
.search-flow .chips-row.is-active { background:#eef2ff; }
.flow-info { background:#0d2145; color:#eef3ff; border-radius:28px; padding:26px; margin:28px 0 0; box-shadow:0 10px 18px #0b1f4415; }
.flow-info h2 { font-family:inherit; font-size:16px; line-height:1.45; font-weight:600; margin:0; letter-spacing:-.2px; }
.flow-info__heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; }
.flow-info__heading > span { font-size:12px; color:#a7b7d2; }
.flow-info p { color:#acbbd5; line-height:1.65; font-size:16px; margin:16px 0 0; }
.flow-route { border-left:2px solid #ffcc3d; padding-left:18px; margin:24px 0; display:grid; gap:20px; }
.flow-route > div { display:flex; align-items:center; gap:14px; }
.flow-route > div > div { display:grid; gap:5px; }
.flow-route span:not(.flow-plane) { color:#a7b7d2; font-size:14px; }
.flow-route strong { font-size:16px; font-weight:600; line-height:1.4; }
.flow-plane { font-size:25px; color:#ffcc3d; }
.flow-plane--return { transform:rotate(90deg); }
.flow-label, .search-flow legend { display:block; font-size:16px; font-weight:600; margin:0 0 14px; line-height:1.5; }
.search-flow fieldset { padding:0; margin:0; border:0; min-width:0; }
.flow-options { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.flow-options button { border:2px solid #dfe4ec; border-radius:24px; min-height:50px; padding:12px 16px; background:#fff; color:var(--text); font-size:16px; font-weight:600; cursor:pointer; text-align:center; }
.flow-options button.is-active { background:#fff9e6; border-color:#ffcc3d; }
.flow-options button:disabled { opacity:.38; cursor:not-allowed; }
.flow-options button:hover:not(:disabled):not(.is-active) { border-color:#a7b7d2; }
.flow-travellers { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 20px; }
.flow-travellers .flow-label { margin:0; }
.flow-counter { display:flex; align-items:center; gap:16px; }
.flow-counter button { width:36px; height:36px; border:2px solid #dfe4ec; border-radius:50%; font-size:22px; background:#fff; color:var(--text); cursor:pointer; line-height:1; }
.flow-counter button:disabled { opacity:.35; cursor:not-allowed; }
.flow-counter output { min-width:18px; text-align:center; font-size:20px; font-weight:600; }
.flow-cities .flow-options button { text-align:left; display:grid; gap:4px; border-radius:24px; }
.flow-cities .flow-options strong { font-size:17px; font-weight:600; }
.flow-cities .flow-options span { font-size:14px; color:#5b677e; font-weight:400; }
.flow-hint { font-size:13px; color:#5b677e; line-height:1.6; margin:12px 0 0; }
.flow-info .flow-info__note { padding-top:12px; border-top:1px solid #ffffff25; font-size:14px; }
.flow-actions { margin-top:auto; padding-top:48px; }
.flow-continue { display:flex; align-items:center; justify-content:center; gap:14px; border:0; width:100%; min-height:62px; border-radius:26px; background:#ffcc3d; color:#0b1f44; font-weight:600; font-size:18px; cursor:pointer; padding:16px; }
.flow-continue:hover { background:#f7c331; }
.flow-continue:disabled { opacity:.6; cursor:wait; }
.search-flow button:focus-visible { outline:3px solid #4478b8; outline-offset:4px; }
.flow-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:480px) {
  .search-flow { padding:28px 20px 24px; }
  .flow-step h1 { font-size:22px; margin-bottom:26px; }
  .flow-info { padding:22px 20px; border-radius:24px; }
  .flow-info p { font-size:14px; }
  .flow-route { padding-left:14px; }
  .flow-route strong { font-size:14px; }
  .flow-info__heading > span { font-size:11px; }
  .flow-options button { font-size:15px; padding:12px; }
}
@media(max-width:767px) {
  .search-flow { padding-top:16px; }
  .flow-progress { margin-bottom:16px; }
}
.search-flow .flow-departure .ta-clear { top:50%; right:15px; transform:translateY(-50%); width:28px; height:32px; padding:0; }
/* A single compact control opens the shared range calendar. */
.range-picker__trigger { width:100%; display:flex; align-items:center; gap:14px; border:1.5px solid #dfe4ec; border-radius:16px; padding:11px 16px; background:#fff; color:var(--text); text-align:left; cursor:pointer; }
.range-picker__trigger > svg { width:22px; height:22px; flex:none; color:#5b677e; }
.range-picker__trigger > span:not(.range-picker__arrow) { flex:1; min-width:0; display:grid; gap:3px; }
.range-picker__trigger small { color:#5b677e; font-size:12px; }
.range-picker__trigger strong { font-size:15px; font-weight:600; }
.range-picker__arrow { color:#8693a7; }
.range-picker__trigger[aria-expanded="true"] { border-color:#e8b82f; }
.range-picker__trigger[aria-invalid="true"] { border-color:#b42318; }
.range-picker__panel { border:1px solid #dfe4ec; border-radius:20px; padding:18px; margin-top:10px; background:#fff; box-shadow:0 8px 24px #0b1f440d; }
.range-picker__phases { display:flex; gap:8px; }
.range-picker__phases button { flex:1; border:1px solid #dfe4ec; padding:8px; border-radius:10px; background:#fff; color:var(--text); cursor:pointer; }
.range-picker__phases button[aria-pressed="true"] { background:#fff9e6; border-color:#ffcc3d; font-weight:600; }
.range-picker__hint, .range-picker__minimum { font-size:12px; line-height:1.5; color:#5b677e; margin:10px 0 0; }
.range-picker__navigation { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:16px 0 12px; }
.range-picker__navigation button { border:1px solid #dfe4ec; border-radius:10px; width:36px; height:36px; font-size:23px; background:#fff; color:var(--text); cursor:pointer; }
.range-picker__month { font-size:15px; text-transform:capitalize; }
.range-picker__weekdays, .range-picker__days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; text-align:center; }
.range-picker__weekdays { color:#5b677e; font-size:12px; margin-bottom:8px; }
.range-picker__days button { min-width:0; min-height:40px; border:0; border-radius:10px; color:var(--text); background:#fff; cursor:pointer; font-size:14px; }
.range-picker__days button.is-in-range { background:#fff7da; border-radius:4px; }
.range-picker__days button[aria-pressed="true"] { background:#ffcc3d; font-weight:700; }
.range-picker__days button:hover:not(:disabled) { box-shadow:inset 0 0 0 2px #e8b82f; }
.range-picker__days button[aria-current="date"] { text-decoration:underline; text-underline-offset:4px; }
.range-picker button:disabled { opacity:.3; cursor:not-allowed; }
@media(max-width:480px) {
  .range-picker__trigger { gap:8px; padding:10px 12px; }
  .range-picker__trigger strong { font-size:13px; }
  .range-picker__trigger > svg { width:19px; height:19px; }
  .range-picker__panel { padding:12px; }
  .range-picker__days { gap:2px; }
}

.search-flow #flow-title-3, .search-flow .flow-cities legend { font-family:inherit; font-size:18px; font-weight:600; line-height:1.5; letter-spacing:normal; }
.search-flow #flow-title-3 { margin-bottom:16px; }
@media(max-width:767px) {
  .search-flow .flow-step h1, .search-flow #flow-title-3 { font-size:20px; }
}
.flow-info--example .flow-route { border-left:2px dotted #c5a333; gap:22px; margin:24px 0 28px; }
.flow-info--example .flow-plane { display:flex; align-items:center; justify-content:center; flex:0 0 24px; }
.flow-info--example .flow-plane svg { width:24px; height:24px; }
.flow-info--example .flow-route > div > div { min-width:0; }
.flow-info--example .flow-route strong { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; }
.flow-info--example .flow-route .flow-route__endpoint { font-size:inherit; color:#eef3ff; overflow-wrap:anywhere; }
.flow-info--example .flow-route .flow-route__arrow { font-size:inherit; color:#ffcc3d; }
.flow-benefit { display:flex; align-items:flex-start; gap:12px; padding:16px; background:#223558; border-radius:24px; }
.flow-benefit__check { display:flex; align-items:center; justify-content:center; width:26px; height:26px; flex:0 0 26px; color:#0d2145; background:#ffcc3d; border-radius:50%; margin-top:1px; }
.flow-benefit__check svg { width:18px; height:18px; }
.flow-benefit strong { display:block; font-size:16px; font-weight:600; line-height:1.4; }
.flow-info .flow-benefit p { margin:3px 0 0; font-size:14px; line-height:1.5; }
@media(max-width:480px) {
  .flow-benefit { padding:14px 12px; gap:10px; border-radius:20px; }
  .flow-benefit strong { font-size:14px; }
  .flow-info .flow-benefit p { font-size:13px; }
}
body:has(.date-help[open]) { overflow:hidden; }
.date-help { width:calc(100% - 32px); max-width:560px; max-height:calc(100svh - 32px); margin:auto; padding:32px; border:1px solid #dfe4ec; border-radius:30px; background:#fff; color:var(--text); box-shadow:0 20px 60px #0b1f4430; text-align:center; overflow:auto; }
.date-help::backdrop { background:rgba(11,31,68,.44); }
.date-help__close { position:absolute; top:12px; right:14px; width:36px; height:36px; border:0; background:transparent; color:#5b677e; font-size:28px; cursor:pointer; }
.date-help__icons { display:flex; align-items:center; justify-content:center; gap:24px; margin:0 0 26px; }
.date-help__icons > span { display:grid; place-items:center; width:64px; height:64px; border-radius:26px; background:#fff9e6; }
.date-help__icons svg { width:30px; height:30px; }
.date-help__icons .date-help__arrow { width:26px; height:26px; }
.date-help__plane { color:#ffcc3d; }
.date-help h2 { font-family:inherit; font-size:28px; line-height:1.25; margin:0 0 24px; font-weight:700; letter-spacing:-.6px; }
.date-help__lead { font-size:18px; line-height:1.5; font-weight:600; margin:0; }
.date-help__lead em { color:#ffc63b; font-style:normal; }
.date-help__copy { font-size:18px; line-height:1.5; margin:6px 0 26px; color:#5b677e; }
.date-help__choice { display:flex; align-items:center; gap:10px; text-align:left; font-size:16px; line-height:1.4; cursor:pointer; margin:0 0 22px; }
.date-help__choice input { appearance:none; width:23px; height:23px; flex:0 0 23px; margin:0; border:1.5px solid #ffcc3d; box-shadow:inset 0 0 0 1px #b2bed0; border-radius:50%; display:grid; place-content:center; background:#fff; cursor:pointer; }
.date-help__choice input:checked { background:#ffcc3d; box-shadow:none; }
.date-help__choice input:checked::after { content:''; width:10px; height:6px; border-left:2px solid #0b1f44; border-bottom:2px solid #0b1f44; transform:translateY(-1px) rotate(-45deg); }
.date-help__continue { width:100%; min-height:58px; padding:14px 18px; border:0; border-radius:24px; background:#ffcc3d; color:#0b1f44; font-size:18px; font-weight:600; cursor:pointer; box-shadow:0 3px 6px #0b1f4412; }
.date-help__continue:hover { background:#f7c331; }
.date-help button:focus-visible, .date-help input:focus-visible { outline:3px solid #4478b8; outline-offset:3px; }
@media(max-width:480px) {
  .date-help { width:calc(100% - 40px); padding:24px 20px 20px; border-radius:24px; }
  .date-help__close { top:10px; right:10px; width:28px; height:28px; font-size:22px; font-weight:400; }
  .date-help h2 { font-size:22px; line-height:1.3; margin-bottom:18px; }
  .date-help__icons { gap:18px; margin-bottom:20px; }
  .date-help__icons > span { width:48px; height:48px; border-radius:20px; }
  .date-help__icons svg { width:26px; height:26px; }
  .date-help__icons .date-help__arrow { width:22px; height:22px; }
  .date-help__lead { font-size:14px; line-height:1.5; }
  .date-help__copy { font-size:14px; line-height:1.5; margin:4px 0 18px; }
  .date-help__choice { font-size:13px; min-height:24px; margin-bottom:16px; gap:9px; }
  .date-help__choice input { width:16px; height:16px; flex-basis:16px; border:1px solid #b2bed0; box-shadow:none; }
  .date-help__choice input:checked { border-color:#ffcc3d; }
  .date-help__choice input:checked::after { width:8px; height:5px; }
  .date-help__continue { font-size:14px; min-height:48px; padding:12px 16px; border-radius:20px; }
}
.search-flow .flow-signin { text-align:center; padding-top:12px; }
.search-flow .flow-signin h1 { font-size:28px; line-height:1.25; max-width:420px; margin:0 auto 14px; letter-spacing:-.6px; }
.flow-signin__intro { font-size:16px; line-height:1.6; color:#5b677e; margin:0 auto 26px; max-width:400px; }
.flow-pass { position:relative; border-radius:26px; padding:24px 24px 26px; background:#0d2145; color:#eef3ff; text-align:left; box-shadow:0 12px 22px #0b1f4420; }
.flow-pass::before, .flow-pass::after { content:''; position:absolute; width:20px; height:20px; border-radius:50%; background:#fff; top:50%; transform:translateY(-50%); }
.flow-pass::before { left:-10px; }
.flow-pass::after { right:-10px; }
.flow-pass__header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:24px; }
.flow-pass__header strong { font-size:16px; font-weight:600; }
.flow-pass__header > span { color:#a7b7d2; font-size:10px; letter-spacing:.4px; }
.flow-pass h2 { font-family:inherit; font-size:32px; line-height:1.2; margin:0 0 22px; padding-right:28px; }
.flow-pass ul { list-style:none; display:grid; gap:14px; padding:0 35px 0 0; margin:0; }
.flow-pass li { display:flex; align-items:center; gap:12px; font-size:14px; line-height:1.5; }
.flow-pass li > span:first-child { color:#ffcc3d; font-size:21px; width:16px; flex:0 0 16px; text-align:center; }
.flow-pass__barcode { position:absolute; right:10px; top:88px; bottom:22px; width:30px; border-left:1px dashed #ffffff30; }
.flow-pass__barcode::after { content:''; position:absolute; inset:10px 0 10px 8px; background:repeating-linear-gradient(90deg,#a7b7d2 0 2px,transparent 2px 5px); }
.flow-google-signin { display:flex; justify-content:center; align-items:center; gap:12px; width:100%; min-height:56px; border:1.5px solid #dfe4ec; border-radius:20px; color:var(--text); background:#fff; font-size:17px; font-weight:600; box-shadow:0 2px 4px #0b1f4415; margin-top:24px; padding:12px 14px; }
.flow-google-signin svg { width:20px; height:20px; flex:none; }
.flow-google-signin:hover { background:#f8fafc; }
.flow-google-signin:focus-visible { outline:3px solid #4478b8; outline-offset:3px; }
.flow-skip-signin { display:grid; justify-items:center; gap:3px; margin:8px auto 0; padding:8px 16px; border:0; background:transparent; color:var(--text); cursor:pointer; }
.flow-skip-signin span { color:var(--text); font-size:15px; font-weight:500; text-decoration:underline; text-underline-offset:4px; }
.flow-skip-signin:hover:not(:disabled) span { text-decoration-thickness:2px; }
.flow-skip-signin:disabled { opacity:.5; cursor:wait; }
.flow-signin__note { font-size:12px; line-height:1.5; color:#5b677e; margin:12px 0 0; }
@media(max-width:480px) {
  .search-flow .flow-signin h1 { font-size:26px; }
  .flow-signin__intro { font-size:14px; margin-bottom:24px; }
  .flow-pass { padding:22px 20px; border-radius:24px; }
  .flow-pass h2 { font-size:30px; }
  .flow-pass li { font-size:13px; }
  .flow-google-signin { font-size:16px; }
}

.flow-pass h2 em { color:#ffcc3d; font-style:normal; }
.flow-pass__plane { color:#ffcc3d; margin-left:4px; }

/* Desktop planner: controls and the action share a column, with the preview beside them.
   Subgrid keeps the preview in its section while the shared submit stays in the form. */
@media(min-width:960px) {
  .search-flow { padding:48px 32px; background:#f6f8fb; display:flex; align-items:flex-start; }
  .search-flow__inner { max-width:1120px; min-height:580px; padding:40px; background:#fff; border:1px solid #e5eaf1; border-radius:32px; box-shadow:0 12px 40px #0b1f4406; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:auto 1fr auto; column-gap:56px; row-gap:32px; }
  .search-flow .flow-progress { grid-column:1 / -1; grid-row:1; margin:0 0 8px; gap:16px; }
  .flow-back { width:32px; height:40px; flex:none; border-radius:10px; }
  .flow-back:hover { background:#f0f3f8; }
  .flow-progress__bars { gap:12px; }
  .flow-progress__bars span { height:5px; }
  #flow-step-label { margin-top:12px; font-size:13px; }
  .flow-step { grid-column:1 / -1; grid-row:2 / 4; display:grid; grid-template-columns:subgrid; grid-template-rows:subgrid; min-width:0; }
  .flow-step__content { grid-column:1; grid-row:1; min-width:0; }
  .search-flow .flow-step h1 { font-size:30px; line-height:1.25; letter-spacing:-.8px; margin:0 0 28px; }
  .search-flow .field { margin-bottom:24px; }
  .search-flow .flow-departure { min-height:58px; border-radius:16px; }
  .search-flow .flow-departure input { height:54px; font-size:16px; }
  .search-flow .flow-departure .typeahead-dropdown { max-height:280px; z-index:10; }
  .flow-step > .flow-info { grid-column:2; grid-row:1 / 3; align-self:start; margin:0; padding:28px; border-radius:24px; }
  .flow-info h2 { font-size:18px; }
  .flow-info p { font-size:15px; }
  .flow-info--example .flow-route { margin:26px 0; gap:24px; }
  .flow-info--example .flow-route strong { font-size:17px; }
  .flow-benefit { padding:16px; border-radius:18px; }
  .flow-benefit strong { font-size:15px; }
  .flow-info .flow-benefit p { font-size:13px; }
  .flow-options { gap:12px; }
  .flow-options button { border-radius:14px; min-height:52px; }
  .flow-cities .flow-options button { border-radius:16px; min-height:88px; padding:16px; }
  .search-flow #flow-title-3, .search-flow .flow-cities legend { font-size:22px; line-height:1.4; letter-spacing:-.3px; }
  .search-flow #flow-title-3 { margin-bottom:20px; }
  .flow-travellers { padding:0 0 28px; margin:0 0 28px; border-bottom:1px solid #e5eaf1; }
  .flow-actions { grid-column:1; grid-row:3; margin:0; padding:0; align-self:end; z-index:1; }
  .flow-continue { min-height:54px; border-radius:16px; font-size:16px; padding:14px 24px; }
  .range-picker__trigger { min-height:64px; }
  .range-picker__panel { max-width:420px; }
  .search-flow .flow-signin { text-align:left; padding:0; }
  .flow-signin__copy { grid-column:1; grid-row:1; align-self:start; }
  .search-flow .flow-signin h1 { font-size:34px; margin:0 0 18px; max-width:440px; }
  .flow-signin__intro { font-size:16px; line-height:1.7; margin:0; max-width:400px; }
  .flow-signin__actions { grid-column:1; grid-row:2; align-self:end; }
  .flow-google-signin { margin:0; min-height:56px; border-radius:16px; font-size:16px; }
  .flow-signin__note { text-align:center; }
  .flow-pass { grid-column:2; grid-row:1 / 3; align-self:start; padding:30px; border-radius:24px; min-height:320px; }
  .flow-pass__header { margin-bottom:34px; }
  .flow-pass__header strong { font-size:18px; }
  .flow-pass h2 { font-size:38px; margin-bottom:30px; }
  .flow-pass ul { gap:20px; }
  .flow-pass li { font-size:14px; }
  .flow-pass__barcode { top:105px; bottom:30px; right:14px; }
}
@media(min-width:1200px) {
  .search-flow { padding-top:56px; padding-bottom:56px; }
  .search-flow__inner { padding:48px; column-gap:64px; min-height:600px; }
}

.search-flow .flow-search-mode { margin-bottom:24px; }
#exact-date-fields input { box-sizing:border-box; width:100%; min-width:0; min-height:50px; padding:12px 16px; border:1.5px solid #dfe4ec; border-radius:14px; color:var(--text); background:#fff; font:inherit; font-size:16px; }
#exact-date-fields input:focus-visible { outline:3px solid #4478b8; outline-offset:3px; }
#exact-date-fields input[aria-invalid="true"] { border-color:#b42318; }
