/* Flights search: from ⇄ to, dates, travellers and the button on one row */
.search.flights { grid-template-columns: 1.4fr 34px 1.4fr 1fr 1fr 1.2fr auto; }
.search.flights .swap { align-self: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 1rem; color: var(--ink-2); display: grid; place-items: center; padding: 0; z-index: 1; transition: transform .25s, background .15s; }
.search.flights .swap:hover { background: #f5f6fa; transform: rotate(180deg); }
.search.flights .swap + .f::before { display: none; }
.search.flights input[data-fl-input] { text-overflow: ellipsis; }
.search.flights .guest-box { inset-inline-start: auto; inset-inline-end: 0; }

/* Results */
.fl-results { display: grid; grid-template-columns: 260px 1fr; gap: 26px; padding-top: 26px; padding-bottom: 60px; align-items: start; }
.fl-filters { position: sticky; top: 90px; padding: 0; overflow: hidden; }
.fl-fbox > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; cursor: pointer; border-bottom: 1px solid var(--line); }
.fl-fbox > summary::-webkit-details-marker { display: none; }
.fl-fbox .link { background: none; border: 0; cursor: pointer; font: inherit; color: var(--brand); padding: 0; }
.fl-fgroup { padding: 14px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.fl-fgroup:last-child { border-bottom: 0; }
.fl-fgroup > b { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fl-fgroup label { display: flex; align-items: center; gap: 8px; font-size: .93rem; cursor: pointer; }
.fl-fgroup label small { margin-inline-start: auto; color: var(--ink-2); font-weight: 600; }
.fl-fgroup label.off { opacity: .45; }
.fl-fgroup input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.fl-fgroup img { border-radius: 4px; }
.fl-main { min-width: 0; }
.fl-head h1 { margin: 0 0 4px; }
.fl-sort { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 14px 0 16px; box-shadow: var(--shadow-sm); }
.fl-sort button { border: 0; background: none; padding: 12px 10px; cursor: pointer; font: inherit; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; border-bottom: 3px solid transparent; }
.fl-sort button + button { border-inline-start: 1px solid var(--line); }
.fl-sort button.on { color: var(--ink); border-bottom-color: var(--brand); background: #fff7f8; }
.fl-sort small { color: var(--muted); font-size: .82rem; }
.fl-card { display: grid; grid-template-columns: 1fr 190px; margin-bottom: 14px; transition: box-shadow .2s, transform .2s; }
.fl-card:hover { box-shadow: var(--shadow); }
.fl-legs { padding: 14px 18px; display: grid; gap: 10px; min-width: 0; }
.fl-leg { display: grid; grid-template-columns: 150px auto 1fr auto; align-items: center; gap: 14px; }
.fl-air { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fl-air small { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-logos { display: flex; gap: 4px; }
.fl-logos img { border-radius: 6px; background: #fff; }
.fl-time { display: flex; flex-direction: column; align-items: center; }
.fl-time b { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.fl-time sup { color: var(--brand); font-size: .7rem; margin-inline-start: 2px; }
.fl-time small { color: var(--muted); font-weight: 700; font-size: .8rem; }
.fl-path { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; text-align: center; }
.fl-path i { display: block; width: 100%; height: 2px; background: #cfd5e1; position: relative; border-radius: 2px; }
.fl-path i::after { content: '✈'; position: absolute; inset-inline-end: -4px; top: -9px; font-size: .8rem; color: #9aa4b6; font-style: normal; }
[dir=rtl] .fl-path i::after { transform: scaleX(-1); }
.fl-path i.st::before { content: ''; position: absolute; left: 50%; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-2); transform: translateX(-50%); }
.fl-path small { font-size: .78rem; color: var(--muted); }
.fl-path small.good { color: var(--good); font-weight: 700; }
.fl-path small.warn { color: #c05a00; font-weight: 600; }
.tag.hot { background: #fde8eb; color: #c2183c; }
.fl-more summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .88rem; list-style: none; }
.fl-more summary::-webkit-details-marker { display: none; }
.fl-more summary::after { content: ' ▾'; }
.fl-more[open] summary::after { content: ' ▴'; }
.fl-det { margin-top: 10px; padding: 12px; background: #f7f8fb; border-radius: 12px; display: grid; gap: 8px; }
.fl-dl { margin: 4px 0 0; }
.fl-seg { display: flex; gap: 10px; align-items: flex-start; }
.fl-seg img { border-radius: 6px; flex: none; margin-top: 2px; }
.fl-seg p { margin: 0; }
.fl-lay { margin: 0; padding: 6px 10px; background: #fff4d6; color: #7a5300; border-radius: 8px; }
.fl-buy { padding: 16px 18px; border-inline-start: 1px dashed var(--line); display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 10px; text-align: center; }
.fl-buy .price { font-size: 1.6rem; }
.fl-moreb { width: 100%; margin-top: 4px; }
.fl-sk { min-height: 140px; grid-template-columns: 1fr; }

/* Checkout */
.fl-pax { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 4px; margin: 0 0 16px; }
.fl-pax legend { font-weight: 800; padding: 0 6px; }
.checkout select { border: 1px solid #d5dae4; border-radius: 12px; padding: 12px 10px; font: 500 1rem var(--font); color: var(--ink); background: #fff; }
.fl-phone { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.fl-phone input:first-child::before { content: '+'; }
.fl-summary .fl-leg-sum { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; display: grid; gap: 6px; }
.fl-summary .fl-leg-sum p { margin: 0; }
.fl-incl { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.fl-incl .no { color: var(--muted); }

@media (max-width: 1000px) {
  .search.flights, .search.flights.compact { grid-template-columns: 1fr 1fr; }
  .search.flights .swap { display: none; }
  .fl-results { grid-template-columns: 1fr; }
  .fl-filters { position: static; }
}
@media (max-width: 640px) {
  .fl-card { grid-template-columns: 1fr; }
  .fl-buy { border-inline-start: 0; border-top: 1px dashed var(--line); flex-direction: row; align-items: center; justify-content: space-between; text-align: start; }
  .fl-leg { grid-template-columns: auto 1fr auto; gap: 10px; }
  .fl-air { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .fl-logos img { width: 22px; height: 22px; }
  .fl-time b { font-size: 1.1rem; }
  .fl-sort button { padding: 10px 6px; }
}
.fl-summary .fl-seg img { width: 28px; height: 28px; aspect-ratio: auto; margin: 0; border-radius: 6px; }
.fl-summary .fl-seg > div { min-width: 0; }

/* Trip type and direct-only switch (top row of the search box) */
.fl-trip { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 2px 6px 4px; flex-wrap: wrap; }
.fl-seg-ctl { display: inline-flex; background: #f1f3f8; border-radius: 999px; padding: 3px; }
.fl-seg-ctl label { cursor: pointer; }
.fl-seg-ctl input { position: absolute; opacity: 0; pointer-events: none; }
.fl-seg-ctl span { display: block; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.fl-seg-ctl input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.fl-seg-ctl input:focus-visible + span { outline: 3px solid rgba(255, 79, 100, .55); }
.fl-switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--ink); }
.fl-switch input { position: absolute; opacity: 0; }
.fl-switch i { width: 36px; height: 20px; border-radius: 999px; background: #cfd5e1; position: relative; transition: background .2s; flex: none; }
.fl-switch i::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.fl-switch input:checked + i { background: var(--brand); }
.fl-switch input:checked + i::after { transform: translateX(16px); }
[dir=rtl] .fl-switch input:checked + i::after { transform: translateX(-16px); }
.fl-switch input:focus-visible + i { outline: 3px solid rgba(255, 79, 100, .55); }
.search .f.fl-off { opacity: .45; }
.band .fl-switch, .band .fl-seg-ctl { color: var(--ink); }

/* Range sliders */
.fl-range { display: grid; gap: 4px; margin-bottom: 6px; }
.fl-rl { color: var(--ink-2); font-weight: 600; }
.fl-rv { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; color: var(--ink); }
.fl-rt { position: relative; height: 22px; }
.fl-rt::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 3px; background: #e2e6ee; }
.fl-rt i { position: absolute; top: 10px; height: 3px; border-radius: 3px; background: var(--brand); }
.fl-rt input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 22px; }
.fl-rt input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); cursor: pointer; box-shadow: var(--shadow-sm); }
.fl-rt input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); cursor: pointer; }
.fl-rt input::-moz-range-track { background: none; }
.fl-fgroup .fl-xtra { display: none; }
.fl-fgroup.fl-open .fl-xtra { display: flex; }
.fl-mb { justify-self: start; background: none; border: 0; color: var(--brand); font-weight: 700; cursor: pointer; padding: 0; }
.fl-sort small b { color: var(--ink); }
.fl-fgroup label > span { min-width: 0; }
.search .fl-seg-ctl input, .search .fl-switch input { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.fl-seg-ctl label, .fl-switch { position: relative; }

/* Flights hero: wing above the clouds, slow drift, colour grade (CSS only, flights pages) */
.hero.small { background: var(--navy); padding: 84px 0 64px; }
.hero.small::before, .hero.small::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero.small::before {
  background: url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=2000&q=65') 0% 78% / 100% auto no-repeat, var(--navy);
  animation: flsky 22s ease-out both;
}
.hero.small::after {
  background:
    radial-gradient(55% 70% at 90% 0%, rgba(255, 122, 89, .30), transparent 60%),
    linear-gradient(270deg, rgba(6, 16, 34, .72) 0%, rgba(6, 16, 34, .30) 50%, rgba(6, 16, 34, 0) 100%),
    linear-gradient(180deg, rgba(6, 16, 34, .15) 0%, rgba(6, 16, 34, .55) 100%);
}
[dir=ltr] .hero.small::after { transform: scaleX(-1); }
@keyframes flsky { from { background-size: 110% auto, auto; background-position: 0% 70%, 0 0; } to { background-size: 100% auto, auto; background-position: 0% 78%, 0 0; } }
@media (max-width: 900px) { .hero.small::before { background-size: cover, auto; animation: none; background-position: 25% 50%, 0 0; } .hero.small { padding: 48px 0 40px; } }
@media (prefers-reduced-motion: reduce) { .hero.small::before { animation: none; } }
/* Durations: never broken in the middle; total trip time vs. time in the air. */
.fl-path bdi, .fl-sort bdi, .fl-times bdi { white-space: nowrap; }
.fl-sort small { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.fl-sort small b { font-size: .95rem; }
.fl-sd { white-space: nowrap; font-size: .76rem; }
.fl-path small.fl-net { font-size: .72rem; color: var(--muted); font-weight: 500; }
.fl-times { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 2px 0 10px; color: var(--ink-2); }
.fl-times b { color: var(--ink); }
@media (max-width: 640px) { .fl-sd { font-size: .7rem; } .fl-sort small b { font-size: .88rem; } }
