/* ─── Flights Page ─────────────────────────────────────────────────────── */
.flights-page { --fl-accent: #003399; }

/* Hero */
.fl-hero {
  background: linear-gradient(rgba(0,10,30,.75), rgba(0,10,30,.62)),
              url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1600&q=80&auto=format&fit=crop')
              center / cover no-repeat;
  position: relative;
}
.fl-hero-inner {
  display: flex; align-items: flex-start; gap: 3rem;
  max-width: 1200px; margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
  min-height: 560px;
}
.fl-hero-left  { flex: 0 0 58%; max-width: 640px; }
.fl-hero-right { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 360px; }

.fl-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.7);
  margin-bottom: 1rem;
  border-left: 2px solid rgba(255,255,255,.5); padding-left: .5rem;
}
.fl-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -.04em; color: #fff;
  margin-bottom: .75rem;
}
.fl-subtitle { font-size: .95rem; color: rgba(255,255,255,.82); line-height: 1.6; max-width: 480px; margin-bottom: 1.75rem; }

/* Popular route cards */
.fl-popular-card {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  cursor: pointer; background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fl-popular-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.fl-popular-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.fl-popular-info { padding: 14px 16px 16px; }
.fl-popular-route { font-weight: 700; font-size: 1rem; margin-bottom: 3px; }
.fl-popular-meta  { font-size: .82rem; color: #717171; margin-bottom: 10px; }
.fl-popular-price { font-size: .85rem; color: #717171; }
.fl-popular-price strong { color: #00A651; font-size: 1.05rem; }
.fl-book-free-btn {
  display: block; width: 100%; background: #000; color: #fff;
  border: none; border-radius: 8px; padding: 10px;
  font-weight: 700; font-size: .88rem; cursor: pointer;
  margin-top: 12px; transition: background .2s; font-family: inherit;
}
.fl-book-free-btn:hover { background: #333; }

/* Hero compact (results mode) */
.fl-hero--results {
  background: linear-gradient(rgba(0,5,20,.88), rgba(0,5,20,.82)),
              url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1600&q=80&auto=format&fit=crop')
              center / cover no-repeat;
}
.fl-hero--results .fl-hero-inner {
  min-height: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  align-items: center;
}
.fl-hero--results .fl-hero-left {
  flex: 1;
  max-width: 100%;
}

/* Search form */
.fl-search-form { display: flex; flex-direction: column; gap: .85rem; }
.fl-search-row { display: flex; align-items: flex-end; gap: .75rem; }
.fl-search-row-main { flex-wrap: nowrap; }
.fl-search-row-meta {
  display: grid;
  grid-template-columns: 1.8fr 1.3fr 1.5fr auto;
  align-items: end;
  gap: .75rem;
}
.fl-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.fl-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: rgba(255,255,255,.65);
  white-space: nowrap;
}

.fl-input-wrap { position: relative; }
.fl-input {
  width: 100%;
  background: rgba(255,255,255,.95);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 12px;
  padding: 0 1rem;
  height: 52px;
  font-size: 1rem; font-family: var(--font-body); font-weight: 500;
  color: #0d0d0d; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
}
.fl-input:focus {
  border-color: rgba(255,255,255,.9);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.2);
}
.fl-input::placeholder { color: #999; }
select.fl-input { cursor: pointer; }

.fl-swap-btn {
  background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.35);
  border-radius: 50%; width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff;
  transition: background .2s, border-color .2s, transform .35s;
  align-self: flex-end;
}
.fl-swap-btn:hover { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.7); transform: rotate(180deg); }

.fl-search-btn {
  flex-shrink: 0; align-self: flex-end;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  white-space: nowrap; height: 52px; padding: 0 1.75rem;
  border-radius: 12px; font-size: .95rem; font-weight: 700;
}

/* Airport autocomplete */
.fl-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 200;
  background: #fff; border: 1.5px solid #D4D4D4; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden;
}
.fl-suggestions[hidden] { display: none; }
.fl-suggestion-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .9rem; cursor: pointer; font-size: .88rem;
  transition: background .15s;
}
.fl-suggestion-item:hover { background: var(--bg-elevated); }
.fl-sug-emoji { font-size: 1rem; flex-shrink: 0; }
.fl-sug-city { font-weight: 600; color: var(--text-primary); }
.fl-sug-code { font-size: .78rem; font-weight: 700; color: var(--text-muted); background: #f0f0f0; padding: .1rem .4rem; border-radius: 4px; }
.fl-sug-name { font-size: .78rem; color: var(--text-muted); margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }

/* Deal card */
.fl-deal-card {
  background: linear-gradient(135deg, #003399 0%, #0057ff 100%);
  color: #fff; border-radius: 20px; padding: 2rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0,51,153,.25);
  min-width: 240px; max-width: 300px; position: relative; overflow: hidden;
}
.fl-deal-card::before {
  content: '✈️';
  position: absolute; font-size: 5rem; right: -1rem; top: -1rem;
  opacity: .15; line-height: 1; pointer-events: none;
}
.fl-deal-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-bottom: .75rem; }
.fl-deal-route { font-size: 1.25rem; font-weight: 700; font-family: var(--font-display); margin-bottom: .3rem; }
.fl-deal-airline { font-size: .82rem; opacity: .8; margin-bottom: 1rem; }
.fl-deal-price { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .25rem; }
.fl-deal-from { font-size: .75rem; opacity: .7; }
.fl-deal-amount { font-size: 2rem; font-weight: 800; font-family: var(--font-display); }
.fl-deal-saving {
  display: inline-block; background: rgba(255,255,255,.2);
  font-size: .75rem; font-weight: 700; padding: .15rem .6rem;
  border-radius: 100px; margin-bottom: .75rem;
}
.fl-deal-free { font-size: .78rem; opacity: .8; font-weight: 600; }

/* PM insight (shared with shopping) */
.pm-insight-bar {
  display: flex; align-items: flex-start; gap: .75rem;
  background: #FFFBE6; border: 1px solid #FFE066; border-radius: 12px;
  padding: .85rem 1.1rem; margin: 1.25rem auto;
  max-width: 1200px; padding-left: 1.25rem; padding-right: 1.25rem;
}
.pm-insight-icon { font-size: 1.25rem; flex-shrink: 0; }
.pm-insight-title { font-weight: 700; font-size: .85rem; color: #92400E; margin-right: .35rem; }
.pm-insight-body { font-size: .85rem; color: #78350F; line-height: 1.5; }

/* Container */
.fl-container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* Popular routes */
.fl-routes-section { padding: 2.5rem 0 3rem; }
.fl-section-title {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--text-primary); margin-bottom: 1.5rem;
}
.fl-routes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem;
}
.fl-route-card {
  background: var(--bg-elevated); border: 1.5px solid var(--border);
  border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.fl-route-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.1); border-color: #C0C0C0; }
.fl-route-img-wrap { position: relative; height: 160px; overflow: hidden; }
.fl-route-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.fl-route-card:hover .fl-route-img { transform: scale(1.05); }
.fl-route-img-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.45)); }
.fl-route-info { padding: 1rem; }
.fl-route-cities {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; margin-bottom: .4rem;
  color: var(--text-primary);
}
.fl-route-duration { font-size: .8rem; color: var(--text-muted); margin-bottom: .6rem; }
.fl-route-price-row { display: flex; align-items: baseline; gap: .4rem; }
.fl-route-from { font-size: .75rem; color: var(--text-muted); }
.fl-route-price { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.fl-route-free {
  font-size: .7rem; font-weight: 700; background: #DCFCE7;
  color: #166534; padding: .1rem .45rem; border-radius: 100px;
}

/* Search results */
.fl-results-section { padding: 2rem 0 3rem; }

/* Trip summary bar */
.fl-trip-summary {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .65rem;
  background: var(--bg-elevated); border: 1.5px solid var(--border);
  border-radius: 14px; padding: .75rem 1.1rem; margin-bottom: 1.5rem;
}
.fl-ts-left { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.fl-ts-route { font-size: .95rem; font-weight: 800; font-family: var(--font-display); color: var(--text-primary); }
.fl-ts-pill {
  padding: .22rem .65rem; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 100px; font-size: .75rem; color: var(--text-secondary); font-weight: 500; white-space: nowrap;
}
.fl-ts-free-pill {
  padding: .22rem .65rem; background: rgba(22,163,74,.08); border: 1px solid rgba(22,163,74,.25);
  border-radius: 100px; font-size: .72rem; color: #16A34A; font-weight: 700; white-space: nowrap;
}
.fl-ts-change {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; padding: .3rem .65rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.fl-ts-change:hover { background: var(--bg-elevated); border-color: #C0C0C0; }

/* Quick filters */
.fl-quick-filters {
  display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.fl-qf-btn {
  padding: .38rem .85rem; border-radius: 100px; border: 1.5px solid var(--border);
  background: var(--bg-primary); color: var(--text-secondary);
  font-size: .78rem; font-weight: 600; cursor: pointer; font-family: var(--font-body);
  transition: all .15s; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.fl-qf-btn:hover { border-color: #A0A0A0; }
.fl-qf-btn.fl-qf-active { background: var(--accent-black); border-color: var(--accent-black); color: #fff; }

.fl-results-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem;
}
.fl-results-count { font-size: .85rem; color: var(--text-muted); font-weight: 400; margin-left: .75rem; }
.fl-sort-tabs { display: flex; gap: .35rem; }
.fl-sort-btn {
  padding: .4rem .85rem; font-size: .82rem; font-weight: 600;
  border: 1.5px solid #D4D4D4; border-radius: 100px;
  background: transparent; cursor: pointer; color: var(--text-secondary);
  transition: background .15s, border-color .15s, color .15s;
}
.fl-sort-btn:hover, .fl-sort-btn.fl-sort-active {
  background: var(--accent-black); border-color: var(--accent-black); color: #fff;
}

/* Flight card */
.fl-results-list { display: flex; flex-direction: column; gap: .75rem; }
.fl-flight-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: box-shadow .25s, border-color .2s, transform .2s;
  position: relative;
}
.fl-flight-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); border-color: #B0B0B0; transform: translateY(-1px); }
.fl-flight-popular { border-color: var(--accent-black); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.fl-popular-badge {
  background: var(--accent-black); color: #fff;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; padding: .3rem .85rem;
  display: flex; align-items: center; gap: .35rem;
}
.fl-flight-card-inner {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.15rem 1.25rem; flex-wrap: wrap;
}

/* Airline col */
.fl-airline-col { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 72px; flex-shrink: 0; }
.fl-airline-logo {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; color: #fff;
  letter-spacing: .04em;
}
.fl-airline-name { font-size: .72rem; font-weight: 600; color: var(--text-secondary); text-align: center; line-height: 1.2; }
.fl-flight-number { font-size: .65rem; color: var(--text-muted); }

/* Times col */
.fl-times-col { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 160px; }
.fl-time-dep, .fl-time-arr { font-size: 1.3rem; font-weight: 700; font-family: var(--font-display); color: var(--text-primary); white-space: nowrap; }
.fl-route-line { display: flex; align-items: center; flex: 1; gap: 3px; }
.fl-route-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.fl-route-bar { flex: 1; height: 1.5px; background: #D4D4D4; }

/* Meta col */
.fl-meta-col { display: flex; flex-direction: column; gap: .25rem; min-width: 100px; }
.fl-duration { font-size: .88rem; font-weight: 600; color: var(--text-primary); }
.fl-stops { font-size: .78rem; }
.fl-direct { color: #16A34A; font-weight: 600; }
.fl-stop   { color: #D97706; font-weight: 600; }
.fl-baggage { display: flex; gap: .25rem; font-size: .9rem; }
.fl-bag-icon { cursor: help; }
.fl-ontime { display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--text-muted); }
.fl-ontime-dot { width: 6px; height: 6px; border-radius: 50%; background: #16A34A; flex-shrink: 0; }

/* Price col */
.fl-price-col { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; margin-left: auto; flex-shrink: 0; }
.fl-price-orig { font-size: 1rem; font-weight: 700; color: var(--text-primary); text-decoration: line-through; color: var(--text-muted); }
.fl-price-free { font-size: .9rem; font-weight: 700; color: #16A34A; }
.fl-book-btn { white-space: nowrap; }

/* Empty state */
.fl-empty { text-align: center; padding: 4rem 1rem; }
.fl-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.fl-empty-title { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: .4rem; }
.fl-empty-sub { font-size: .9rem; color: var(--text-muted); }

/* Tags (reuse shopping .sh-tag-pill) */
.sh-tag-pill {
  display: inline-flex; align-items: center;
  background: var(--bg-elevated); border: 1.5px solid var(--border);
  border-radius: 100px; padding: .35rem .8rem;
  font-size: .78rem; font-weight: 500; color: var(--text-secondary);
  cursor: default; white-space: nowrap; transition: background .15s;
}
.sh-tag-pill:hover { background: #f0f0f0; }
.sh-tags-scroll { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ── Autocomplete ─────────────────────────────────────────────────────────── */
.fl-ac-wrap { position: relative; }
.fl-ac-input {
  width: 100%; background: rgba(255,255,255,.95);
  border: 2px solid rgba(255,255,255,.3); border-radius: 12px;
  padding: 0 1rem; height: 52px;
  font-size: 1rem; font-family: var(--font-body); font-weight: 500;
  color: #0d0d0d; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
}
.fl-ac-input::placeholder { color: #999; }
.fl-ac-input:focus { border-color: rgba(255,255,255,.9); box-shadow: 0 0 0 3px rgba(255,255,255,.2); background: #fff; }
.fl-ac-dropdown {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 300;
  background: #fff; border: 1.5px solid #D4D4D4; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.14); overflow: hidden;
}
.fl-ac-dropdown.fl-ac-open { display: block; }
.fl-ac-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem 1rem; cursor: pointer; font-size: .88rem;
  transition: background .12s;
}
.fl-ac-item:hover, .fl-ac-item.fl-ac-active { background: var(--bg-elevated); }
.fl-ac-flag { font-size: 1.1rem; flex-shrink: 0; }
.fl-ac-city { font-weight: 700; color: var(--text-primary); }
.fl-ac-code {
  font-size: .72rem; font-weight: 800; color: #fff;
  background: var(--accent-black); padding: .15rem .45rem;
  border-radius: 5px; letter-spacing: .05em; flex-shrink: 0;
}
.fl-ac-name {
  font-size: .75rem; color: var(--text-muted);
  margin-left: auto; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 160px;
}

/* ── Custom date button ───────────────────────────────────────────────────── */
.fl-field-date { }
.fl-date-btn {
  display: flex; align-items: center; gap: .6rem;
  width: 100%; background: rgba(255,255,255,.95);
  border: 2px solid rgba(255,255,255,.3); border-radius: 12px;
  padding: 0 1rem; height: 52px;
  font-size: 1rem; font-family: var(--font-body); font-weight: 500;
  color: #0d0d0d; cursor: pointer; text-align: left;
  transition: border-color .2s, box-shadow .2s, background .2s;
  white-space: nowrap; box-sizing: border-box;
}
.fl-date-btn:hover { border-color: rgba(255,255,255,.7); background: #fff; }
.fl-date-btn:focus { outline: none; border-color: rgba(255,255,255,.9); box-shadow: 0 0 0 3px rgba(255,255,255,.2); background: #fff; }
.fl-date-btn svg { flex-shrink: 0; color: #888; }

/* ── Calendar popup ───────────────────────────────────────────────────────── */
.fl-cal-popup {
  position: fixed; z-index: 9000;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.fl-cal-popup.fl-cal-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fl-cal {
  background: #fff; border: 1.5px solid #D4D4D4; border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.16); padding: 1rem;
  min-width: 300px; user-select: none;
}
.fl-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .75rem;
}
.fl-cal-title { font-weight: 700; font-size: .95rem; color: var(--text-primary); }
.fl-cal-nav {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-elevated); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--text-secondary);
  transition: background .15s, color .15s;
}
.fl-cal-nav:hover { background: var(--bg-hover); color: var(--text-primary); }
.fl-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.fl-cal-dow {
  text-align: center; font-size: .7rem; font-weight: 700;
  color: var(--text-muted); padding: .3rem 0; text-transform: uppercase;
}
.fl-cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: .85rem; cursor: pointer;
  background: none; border: none; color: var(--text-primary);
  transition: background .12s, color .12s;
}
.fl-cal-day:hover:not(:disabled) { background: var(--bg-elevated); }
.fl-cal-day:disabled { color: #CCC; cursor: default; }
.fl-cal-today { font-weight: 700; color: var(--accent-black); outline: 1.5px solid var(--accent-black); }
.fl-cal-sel { background: var(--accent-black) !important; color: #fff !important; font-weight: 700; }
.fl-cal-past { color: #CCC !important; }

/* ── Passenger popover trigger ───────────────────────────────────────────── */
.fl-field-pax { position: relative; }
.fl-pax-field-wrap { position: relative; }
.fl-pax-trigger {
  display: flex; align-items: center; gap: .6rem;
  width: 100%; background: rgba(255,255,255,.95);
  border: 2px solid rgba(255,255,255,.3); border-radius: 12px;
  padding: 0 1rem; height: 52px; box-sizing: border-box;
  font-size: .95rem; font-family: var(--font-body); font-weight: 500;
  color: #0d0d0d; cursor: pointer; text-align: left;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.fl-pax-trigger:hover { border-color: rgba(255,255,255,.7); background: #fff; }
.fl-pax-trigger:focus { outline: none; border-color: rgba(255,255,255,.9); box-shadow: 0 0 0 3px rgba(255,255,255,.2); background: #fff; }
.fl-pax-trigger svg:first-child { flex-shrink: 0; color: #888; }
.fl-pax-trigger #flPaxDisplay { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-pax-chevron { flex-shrink: 0; color: #888; transition: transform .2s; }
.fl-pax-trigger[aria-expanded="true"] .fl-pax-chevron { transform: rotate(180deg); }

/* ── Passenger popover panel ─────────────────────────────────────────────── */
.fl-pax-popup {
  position: fixed; z-index: 9000;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none; min-width: 300px;
}
.fl-pax-popup.fl-pax-pop-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fl-pax-pop-inner {
  background: #fff; border: 1.5px solid #D4D4D4; border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.16); padding: .75rem;
  user-select: none;
}
.fl-pax-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem .5rem; gap: 1rem;
}
.fl-pax-row + .fl-pax-row { border-top: 1px solid #F0F0F0; }
.fl-pax-row-info { display: flex; flex-direction: column; gap: 2px; }
.fl-pax-row-label { font-size: .92rem; font-weight: 700; color: #1A1A1A; }
.fl-pax-row-desc  { font-size: .75rem; color: #888; }
.fl-pax-row-ctrl  { display: flex; align-items: center; gap: .75rem; }
.fl-pax-pop-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: #F5F5F5; border: 1.5px solid #E0E0E0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 500; cursor: pointer; color: #333;
  transition: background .15s, border-color .15s, color .15s;
  flex-shrink: 0; line-height: 1;
}
.fl-pax-pop-btn:hover:not(:disabled) { background: #111; border-color: #111; color: #fff; }
.fl-pax-pop-btn:disabled { opacity: .3; cursor: default; }
.fl-pax-pop-val { font-size: 1rem; font-weight: 700; min-width: 24px; text-align: center; color: #1A1A1A; }
.fl-pax-pop-done {
  width: 100%; margin-top: .65rem;
  background: #111; color: #fff; border: none; border-radius: 10px;
  padding: .7rem; font-size: .88rem; font-weight: 700; font-family: var(--font-body);
  cursor: pointer; transition: background .15s;
}
.fl-pax-pop-done:hover { background: #333; }

/* ── Select style ─────────────────────────────────────────────────────────── */
.fl-select {
  width: 100%; background: rgba(255,255,255,.95);
  border: 2px solid rgba(255,255,255,.3); border-radius: 12px;
  padding: 0 2.5rem 0 1rem; height: 52px;
  font-size: 1rem; font-family: var(--font-body); font-weight: 500;
  color: #0d0d0d; outline: none; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.fl-select:focus { border-color: rgba(255,255,255,.9); box-shadow: 0 0 0 3px rgba(255,255,255,.2); background: #fff; }

/* ── Updated flight card times layout ───────────────────────────────────── */
.fl-times-col { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 200px; }
.fl-time-block { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.fl-time { font-size: 1.25rem; font-weight: 800; font-family: var(--font-display); color: var(--text-primary); line-height: 1; }
.fl-iata { font-size: .7rem; font-weight: 700; color: var(--text-muted); margin-top: .15rem; letter-spacing: .05em; }
.fl-route-line { display: flex; align-items: center; flex: 1; gap: .35rem; }
.fl-route-mid { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 3px; }
.fl-route-dur { font-size: .72rem; color: var(--text-muted); white-space: nowrap; }
.fl-route-stop { font-size: .72rem; white-space: nowrap; color: #16A34A; font-weight: 600; }
.fl-route-stop:not(:empty) { color: #D97706; }

/* baggage tags */
.fl-bag-tag {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .72rem; background: var(--bg-elevated); border-radius: 100px;
  padding: .15rem .5rem; color: var(--text-secondary); margin-bottom: .2rem;
  white-space: nowrap;
}

/* price col */
.fl-price-was { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; }
.fl-price-free { font-size: 1rem; font-weight: 800; color: #16A34A; }
.fl-price-main { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); font-family: var(--font-display); letter-spacing: -.02em; }
.fl-price-per  { font-size: .72rem; color: var(--text-muted); margin-top: -.2rem; margin-bottom: .35rem; }
.fl-price-strike { font-size: .82rem; color: var(--text-muted); text-decoration: line-through; text-align: right; }
.fl-price-gratis {
  font-size: 1.5rem; font-weight: 900; color: #16A34A;
  font-family: var(--font-display); letter-spacing: -.03em; line-height: 1;
}
.fl-price-saving {
  font-size: .65rem; font-weight: 700; color: #16A34A;
  background: rgba(22,163,74,.08); border-radius: 6px;
  padding: .15rem .45rem; margin-bottom: .5rem; white-space: nowrap;
}
/* Book button — standalone style for results */
.fl-results-list .fl-book-btn {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--accent-black); color: #fff;
  border: none; border-radius: 10px;
  padding: .65rem 1.1rem; font-size: .82rem; font-weight: 700;
  font-family: var(--font-body); cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.fl-results-list .fl-book-btn:hover { background: #222; }
.fl-results-list .fl-book-btn:active { transform: scale(.97); }
/* route plane icon */
.fl-route-plane-icon {
  width: 11px; height: 11px; color: var(--text-muted);
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.fl-route-bar { flex: 1; height: 1.5px; background: #D4D4D4; position: relative; }
.fl-route-direct { color: #16A34A !important; }

/* route card — remove GRATIS pill, add duration pill */
.fl-route-duration-pill {
  font-size: .72rem; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 100px; padding: .1rem .5rem; color: var(--text-muted); white-space: nowrap;
}

/* ── Booking confirmation overlay ────────────────────────────────────────── */
.fl-booking-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.fl-bo-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease;
}
.fl-booking-overlay.fl-bo-visible .fl-bo-backdrop { opacity: 1; }
.fl-bo-card {
  position: relative; z-index: 1;
  transform: translateY(24px) scale(.96); opacity: 0;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  width: 100%; max-width: 420px;
}
.fl-booking-overlay.fl-bo-visible .fl-bo-card { transform: translateY(0) scale(1); opacity: 1; }
.fl-bo-ticket {
  background: #fff; border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,.28);
  padding: 2rem 1.75rem 1.5rem;
  display: flex; flex-direction: column; align-items: center;
  gap: .5rem; text-align: center;
}
.fl-bo-airline {
  font-size: .72rem; font-weight: 800; color: #fff;
  padding: .3rem .85rem; border-radius: 100px; letter-spacing: .08em;
  margin-bottom: .25rem;
}
.fl-bo-check { margin: .25rem 0; }
.fl-bo-circle { stroke-dasharray: 163; stroke-dashoffset: 163; animation: fl-circle-draw .6s ease forwards .15s; }
.fl-bo-tick   { stroke-dasharray: 30;  stroke-dashoffset: 30;  animation: fl-tick-draw .4s ease forwards .7s; }
@keyframes fl-circle-draw { to { stroke-dashoffset: 0; } }
@keyframes fl-tick-draw   { to { stroke-dashoffset: 0; } }
.fl-bo-title { font-size: 1.1rem; font-weight: 800; color: #16A34A; font-family: var(--font-display); }
.fl-bo-pnr-label { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-top: .5rem; }
.fl-bo-pnr { font-size: 1.75rem; font-weight: 800; font-family: var(--font-display); letter-spacing: .15em; color: var(--text-primary); }
.fl-bo-divider {
  display: flex; align-items: center; gap: .5rem; width: 100%;
  margin: .5rem 0;
}
.fl-bo-divider span:not(.fl-bo-plane) { flex: 1; height: 1px; background: var(--border); }
.fl-bo-plane { font-size: 1.1rem; }
.fl-bo-route { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: .5rem; }
.fl-bo-dest { display: flex; flex-direction: column; align-items: center; }
.fl-bo-time { font-size: 1.3rem; font-weight: 800; font-family: var(--font-display); }
.fl-bo-iata { font-size: .7rem; font-weight: 700; color: var(--text-muted); letter-spacing: .05em; }
.fl-bo-dur  { font-size: .78rem; color: var(--text-muted); text-align: center; line-height: 1.4; flex: 1; }
.fl-bo-meta { width: 100%; background: var(--bg-elevated); border-radius: 12px; padding: .85rem 1rem; margin-top: .5rem; }
.fl-bo-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; padding: .2rem 0;
  border-bottom: 1px solid var(--border);
}
.fl-bo-meta-row:last-child { border-bottom: none; }
.fl-bo-meta-row span:first-child { color: var(--text-muted); }
.fl-bo-meta-row span:last-child  { font-weight: 600; color: var(--text-primary); }
.fl-bo-price-row { padding-top: .5rem; margin-top: .25rem; }
.fl-bo-total { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); }
.fl-bo-actions { display: flex; gap: .75rem; width: 100%; margin-top: .75rem; }
.fl-bo-bp-btn {
  flex: 1; padding: .75rem; background: var(--accent-black); color: #fff;
  border: none; border-radius: 12px; font-size: .9rem; font-weight: 700;
  font-family: var(--font-body); cursor: pointer;
  transition: background .15s;
}
.fl-bo-bp-btn:hover { background: var(--accent-black-light); }
.fl-bo-home-btn {
  flex: 1; padding: .75rem; background: var(--bg-elevated); color: var(--text-primary);
  border: 1.5px solid var(--border); border-radius: 12px; font-size: .9rem; font-weight: 600;
  text-align: center; text-decoration: none;
  transition: background .15s;
}
.fl-bo-home-btn:hover { background: var(--bg-hover); }

/* ── Overlay scroll fix ──────────────────────────────────────────────────── */
.fl-booking-overlay {
  align-items: flex-start;
  overflow-y: auto;
  padding: 1rem;
}
@media (min-height: 700px) {
  .fl-booking-overlay { align-items: center; }
}

/* ── 3-step booking flow ─────────────────────────────────────────────────── */
.fl-bflow-card {
  max-width: 480px; width: 100%;
  background: #fff; border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,.28);
  overflow-y: auto; max-height: calc(100dvh - 2rem);
}

/* Summary bar */
.fl-bflow-bar {
  background: var(--accent-black); color: #fff;
  padding: .85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: relative;
  border-radius: 24px 24px 0 0;
}
.fl-bflow-close-btn {
  position: absolute; top: 50%; right: .75rem; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; border-radius: 50%;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; transition: background .15s; flex-shrink: 0;
}
.fl-bflow-close-btn:hover { background: rgba(255,255,255,.3); }
.fl-bflow-bar-route { display: flex; align-items: center; gap: .4rem; font-weight: 700; font-size: 1rem; font-family: var(--font-display); }
.fl-bflow-iata { font-size: 1.1rem; font-weight: 800; letter-spacing: .03em; }
.fl-bflow-bar-info { font-size: .75rem; opacity: .75; white-space: nowrap; }

/* Step indicator */
.fl-bflow-steps {
  display: flex; align-items: center; padding: 1.1rem 1.5rem .75rem;
  background: var(--bg-elevated);
}
.fl-bflow-step {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  flex-shrink: 0;
}
.fl-bflow-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800;
  background: var(--border); color: var(--text-muted);
  transition: background .25s, color .25s;
}
.fl-bflow-step.fl-bflow-step-active .fl-bflow-step-dot {
  background: var(--accent-black); color: #fff;
}
.fl-bflow-step.fl-bflow-step-done .fl-bflow-step-dot {
  background: #16A34A; color: #fff;
}
.fl-bflow-step-lbl { font-size: .65rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.fl-bflow-step.fl-bflow-step-active .fl-bflow-step-lbl,
.fl-bflow-step.fl-bflow-step-done .fl-bflow-step-lbl { color: var(--text-primary); }
.fl-bflow-line {
  flex: 1; height: 2px; background: var(--border); margin: 0 .4rem;
  transition: background .25s;
}
.fl-bflow-line.fl-bflow-line-done { background: #16A34A; }

/* Step content */
.fl-bflow-content { display: none !important; padding: 1.25rem 1.5rem 1.5rem; overflow-y: auto; }
.fl-bflow-content.is-active { display: block !important; }
.fl-bflow-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; color: var(--text-primary); margin-bottom: 1rem; }

/* Form grid */
.fl-bflow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .75rem; }
.fl-bflow-field { display: flex; flex-direction: column; gap: .25rem; }
.fl-bflow-field label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.fl-bflow-field-full { grid-column: span 2; }
.fl-bflow-input {
  width: 100%; background: var(--bg-elevated); border: 1.5px solid #D4D4D4;
  border-radius: 9px; padding: .6rem .85rem; font-size: .9rem;
  font-family: var(--font-body); color: var(--text-primary); outline: none;
  transition: border-color .2s, box-shadow .2s; box-sizing: border-box;
}
.fl-bflow-input:focus { border-color: var(--accent-black); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.fl-bflow-card-wrap { position: relative; }
.fl-bflow-cardnum { letter-spacing: .12em; font-family: 'Courier New', monospace; }
.fl-bflow-card-icon { position: absolute; right: .85rem; top: 50%; transform: translateY(-50%); font-size: 1.1rem; pointer-events: none; }

/* Error */
.fl-bflow-err { min-height: 1.1rem; font-size: .8rem; color: #DC2626; font-weight: 600; margin-bottom: .5rem; }

/* Secure badge */
.fl-bflow-secure {
  display: flex; align-items: center; gap: .4rem;
  font-size: .75rem; color: var(--text-muted); background: var(--bg-elevated);
  border-radius: 8px; padding: .5rem .75rem; margin-bottom: .75rem;
}

/* Total row */
.fl-bflow-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .88rem; color: var(--text-secondary);
  border-top: 1px solid var(--border); padding-top: .75rem; margin-bottom: .85rem;
}
.fl-bflow-total-amt { font-size: 1.25rem; font-weight: 800; color: var(--text-primary); font-family: var(--font-display); }

/* Buttons */
.fl-bflow-next-btn, .fl-bflow-pay-btn {
  width: 100%; padding: .85rem; border-radius: 12px;
  background: var(--accent-black); color: #fff; border: none;
  font-size: .95rem; font-weight: 700; font-family: var(--font-body);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background .15s, opacity .15s;
}
.fl-bflow-next-btn:hover, .fl-bflow-pay-btn:hover { background: #222; }
.fl-bflow-pay-btn:disabled { opacity: .6; cursor: not-allowed; }
.fl-bflow-pay-row { display: flex; gap: .65rem; }
.fl-bflow-pay-row .fl-bflow-pay-btn { flex: 1; }
.fl-bflow-back-btn {
  display: flex; align-items: center; gap: .35rem;
  padding: .85rem 1rem; border-radius: 12px;
  background: var(--bg-elevated); border: 1.5px solid var(--border);
  font-size: .88rem; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: background .15s;
  white-space: nowrap;
}
.fl-bflow-back-btn:hover { background: var(--bg-hover); }

/* Confirmation */
.fl-bflow-confirm {
  display: flex; flex-direction: column; align-items: center;
  gap: .4rem; text-align: center;
}
.fl-bflow-ok-title { font-size: 1.1rem; font-weight: 800; color: #16A34A; font-family: var(--font-display); margin-top: .25rem; }
.fl-bflow-pnr-lbl { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-top: .4rem; }
.fl-bflow-pnr { font-size: 1.75rem; font-weight: 800; font-family: var(--font-display); letter-spacing: .15em; color: var(--text-primary); }

/* Responsive */
@media (max-width: 768px) {
  .fl-hero-inner { flex-direction: column; min-height: auto; padding: 2rem 1rem; }
  .fl-hero-right { display: none; }
  .fl-search-row-main { flex-wrap: wrap; }
  .fl-search-row-meta { grid-template-columns: 1fr 1fr; }
  .fl-search-btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .fl-swap-btn { align-self: center; margin: .25rem 0; }
  .fl-flight-card-inner { gap: .75rem; padding: .9rem 1rem; }
  .fl-price-col { align-items: flex-start; margin-left: 0; width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .fl-routes-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .fl-trip-summary { flex-direction: column; align-items: flex-start; }
  .fl-ts-change { align-self: flex-end; }
  .fl-price-gratis { font-size: 1.25rem; }

  /* Checkout overlay bottom sheet handled in main.css; only flights-specific overrides */
  .fl-bflow-steps { gap: .15rem; }
  .fl-bflow-step-lbl { font-size: .6rem; }
  .fl-bo-actions { flex-direction: column; }
  .fl-bo-actions .fl-bo-bp-btn,
  .fl-bo-actions .fl-bo-home-btn { flex: none; width: 100%; }
}
@media (max-width: 480px) {
  .fl-search-row-meta { grid-template-columns: 1fr; }
  .fl-flight-card-inner { flex-direction: column; gap: .5rem; }
  .fl-price-col { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; padding-top: .5rem; border-top: 1px solid var(--fl-border, #E8E8E8); }
  .fl-book-btn { width: 100%; justify-content: center; }
}
