/* ============================================================
   Traveronto — flight.css
   Flight search results page: header, modify-search form,
   filter panel/drawer, .fc-* flight result cards, pagination,
   skeleton, empty state, responsive overrides.
   ============================================================ */

:root {
  --muted: #6B6B7B;
  --blue: #2a7fde;
}

/* ─────────────────── PAGE HEADER / SRP HERO ─────────────────── */
.tr-srp-hdr {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 45%, #C93D26 100%);
  padding: 28px 0 24px;
  margin-top: 0;
}
.tr-srp-top-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.tr-srp-location-wrap { flex: 1; min-width: 0; }
.tr-srp-title {
  color: #fff; font-size: clamp(1.35rem, 3.5vw, 2rem); font-weight: 800;
  margin: 0 0 10px; letter-spacing: -0.02em; line-height: 1.2;
}
.tr-srp-title .bi { font-size: 0.85em; margin-right: 6px; opacity: .85; }
.tr-route-arrow { opacity: .6; margin: 0 4px; }
.tr-srp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-srp-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.tr-srp-chip .bi { font-size: 12px; opacity: .8; }
.tr-srp-modify-group { flex-shrink: 0; display: flex; gap: 8px; align-items: center; }
.tr-srp-modify-btn {
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff; font-size: 13px; font-weight: 700; padding: 9px 18px;
  border-radius: 10px; transition: background .18s, border-color .18s; white-space: nowrap;
}
.tr-srp-modify-btn:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.55); color: #fff; }

/* Modify-search expandable form wrapper */
.tr-srp-modify-form { padding-top: 4px; }

.tr-srp-body { padding-top: 0; background: #f7f8fc; min-height: 60vh; }

/* ─────────────────── TRIP TYPE TOGGLE ─────────────────── */
.trip-toggle {
  display: inline-flex; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 18px;
}
.tt-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; font-size: 13px; font-weight: 700;
  border: none; border-radius: 9px; cursor: pointer;
  background: transparent; color: rgba(255,255,255,0.6);
  transition: all .18s; font-family: inherit; white-space: nowrap;
}
.tt-btn i { font-size: 13px; opacity: .8; }
.tt-btn:hover:not(.active) { background: rgba(255,255,255,0.08); color: #fff; }
.tt-btn.active {
  background: #fff; color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.tt-btn.active i { opacity: 1; }
@media (max-width: 480px) {
  .trip-toggle { display: flex; width: 100%; }
  .tt-btn { flex: 1 1 0; justify-content: center; padding: 9px 8px; }
}

/* ─────────────────── HEADER SEARCH BAR (Modify Search form) ─────────────────── */
.hdr-search {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 16px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
}
.hdr-field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 140px; min-width: 0; position: relative; }
.hdr-field label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: rgba(255,255,255,0.5);
}
.hdr-field input, .hdr-field select {
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.1); color: #fff;
  border-radius: 10px; padding: 11px 13px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  min-height: 46px; width: 100%;
}
.hdr-field input::placeholder { color: rgba(255,255,255,0.4); }
.hdr-field input:focus, .hdr-field select:focus { outline: none; border-color: var(--primary); }
.hdr-field select option { color: #1A1A2E; background: #fff; }

/* ── Validation errors — floating popover (Priceline-style) ──
   Same pattern as homepage .tr-field-error / hotel-list .hl-field-err:
   anchored to .hdr-field (position:relative, set above) and positioned
   absolutely below the control so it never shifts surrounding layout. */
.tr-field-error {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: 100%;
  background: #E74E35;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(231,78,53,0.28);
  white-space: normal;
  box-sizing: border-box;
}
.tr-field-error.show { display: flex; }
.tr-field-error::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 18px;
  width: 10px;
  height: 10px;
  background: #E74E35;
  transform: rotate(45deg);
  border-radius: 2px;
}
.hdr-field input[style*="border-color: rgb(231, 78, 53)"],
.hdr-field input[style*="border-color:#E74E35"],
.hdr-city-inp-wrap.tr-field-error-border,
.hdr-dates-inp-wrap.tr-field-error-border {
  border-color: #E74E35 !important;
  box-shadow: 0 0 0 2px rgba(231,78,53,0.15);
}

.hdr-search-btn {
  background: var(--primary); color: #fff; border: none; border-radius: 10px;
  padding: 11px 28px; font-size: 14px; font-weight: 700; cursor: pointer;
  min-height: 46px; white-space: nowrap;
  transition: background .18s, transform .15s;
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
}
.hdr-search-btn:hover { background: var(--primary-dark); transform: translateY(-1px); color: #fff; }

/* Swap button */
.hdr-swap-btn {
  border: 1.5px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.1); color: #fff;
  border-radius: 10px; width: 46px; height: 46px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .18s, transform .25s; align-self: flex-end;
}
.hdr-swap-btn:hover { background: rgba(255,255,255,0.2); transform: rotate(180deg); }

/* City autocomplete trigger button (dark glass — same as hdr-field input) */
.hdr-city-btn {
  border: 1.5px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.1); color: #fff;
  border-radius: 10px; padding: 11px 13px; font-size: 14px; font-weight: 600;
  font-family: inherit; min-height: 46px; width: 100%;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  transition: border-color .18s; text-align: left;
}
.hdr-city-btn:focus, .hdr-city-btn[aria-expanded="true"] { border-color: var(--primary); outline: none; }
.hdr-city-btn .chev { font-size: 11px; opacity: .65; margin-left: auto; flex-shrink: 0; transition: transform .2s; }
.hdr-city-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* City autocomplete trigger as a real text input */
.hdr-city-inp-wrap {
  position: relative; display: flex; align-items: center;
  border: 1.5px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.1);
  border-radius: 10px; min-height: 46px; transition: border-color .18s;
  width: 100%;
}
.hdr-city-inp-wrap:focus-within,
.hdr-city-inp-wrap.is-open { border-color: var(--primary); }
.hdr-city-inp-icon {
  color: var(--primary); font-size: 14px; flex-shrink: 0; margin-left: 13px; pointer-events: none;
  display: flex; align-items: center;
}
/* hdr-city-inp lives INSIDE hdr-city-inp-wrap which already has the border —
   strip away every border/background that .hdr-field input would otherwise add */
.hdr-city-inp-wrap .hdr-city-inp,
.hdr-field .hdr-city-inp-wrap input.hdr-city-inp {
  border: none !important; background: transparent !important;
  box-shadow: none !important;
  color: #fff; outline: none;
  font-size: 14px; font-weight: 600; font-family: inherit;
  min-height: 46px; width: 100%; padding: 11px 10px; cursor: text;
}
.hdr-city-inp::placeholder { color: rgba(255,255,255,0.4); font-weight: 600; }
.hdr-city-inp-wrap .chev {
  font-size: 11px; opacity: .65; margin-right: 13px; flex-shrink: 0;
  transition: transform .2s; pointer-events: none;
}
.hdr-city-inp-wrap.is-open .chev { transform: rotate(180deg); }

/* Merged Depart/Return (or Check-in/Check-out) date-range field */
.hdr-dates-field { position: relative; }
.hdr-dates-inp-wrap {
  position: relative; display: flex; align-items: center;
  border: 1.5px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.1);
  border-radius: 10px; min-height: 46px; transition: border-color .18s;
  width: 100%;
}
.hdr-dates-inp-wrap:focus-within { border-color: var(--primary); }
.hdr-dates-icon {
  color: var(--primary); font-size: 14px; flex-shrink: 0; margin-left: 13px; pointer-events: none;
  display: flex; align-items: center;
}
.hdr-dates-inp-wrap .hdr-dates-inp,
.hdr-field .hdr-dates-inp-wrap input.hdr-dates-inp {
  border: none !important; background: transparent !important;
  box-shadow: none !important;
  color: #fff; outline: none;
  font-size: 14px; font-weight: 600; font-family: inherit;
  min-height: 46px; width: 100%; padding: 11px 13px 11px 10px; cursor: pointer;
}
.hdr-dates-inp::placeholder { color: rgba(255,255,255,0.4); font-weight: 600; }

/* City dropdown (white card below trigger) */
.city-drop {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0; min-width: 280px;
  background: #fff; border-radius: 13px;
  box-shadow: 0 10px 36px rgba(26,26,46,0.2); border: 1px solid #e7e7ec;
  z-index: 9999; display: none; overflow: hidden;
}
.city-drop.open { display: block; }
/* The trigger <input> already handles live search on keyup — the
   in-dropdown search box is redundant and creates a "double search bar"
   visual. Hide it globally; the city-drop-list still shows results. */
.city-drop-search { display: none; }
.city-drop-list { padding-top: 4px; max-height: 230px; overflow-y: auto; }
.city-drop-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid #f3f3f7; transition: background .14s;
}
.city-drop-opt:last-child { border-bottom: none; }
.city-drop-opt:hover, .city-drop-opt.city-active { background: rgba(231,78,53,0.07); }
.city-drop-opt:hover .opt-city { color: var(--primary); }
.city-drop-opt .opt-code {
  font-size: 12px; font-weight: 800; color: var(--primary);
  background: rgba(231,78,53,0.1); padding: 3px 7px; border-radius: 5px;
  flex-shrink: 0; letter-spacing: 0.04em;
}
.city-drop-opt .opt-info { flex: 1; min-width: 0; }
.city-drop-opt .opt-city { font-size: 13px; font-weight: 700; color: #1A1A2E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-drop-opt .opt-country { font-size: 11px; color: #999; font-weight: 500; margin-top: 1px; }
.city-drop .city-drop-inp { color: #1A1A2E !important; background: transparent !important; border: none !important; }
.city-drop .city-drop-inp::placeholder { color: #bbb !important; }
.city-drop-empty {
  padding: 22px 14px; text-align: center; font-size: 13px; color: #aaa; font-weight: 500;
}
.city-drop-empty i { color: var(--primary); font-size: 16px; }

/* Cabin class dropdown */
.cabin-list { padding: 6px; }
.cabin-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: #1A1A2E;
  cursor: pointer; transition: background .14s, color .14s; white-space: nowrap;
}
.cabin-opt:hover { background: rgba(231,78,53,0.07); color: var(--primary); }
.cabin-opt.active { background: rgba(231,78,53,0.08); color: var(--primary); }
.cabin-opt .cabin-check { font-size: 13px; flex-shrink: 0; opacity: 0; width: 14px; }
.cabin-opt.active .cabin-check { opacity: 1; }

/* Flatpickr brand overrides */
.flatpickr-calendar{font-family:'Inter',sans-serif!important;border-radius:14px!important;box-shadow:0 16px 48px rgba(26,26,46,0.18)!important;border:1px solid #e7e7ec!important;}
.flatpickr-day.selected,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.endRange{background:#E74E35!important;border-color:#E74E35!important;color:#fff!important;}
.flatpickr-day:hover:not(.selected):not(.startRange):not(.endRange){background:rgba(231,78,53,0.1)!important;color:#E74E35!important;}
.flatpickr-day.today{border-color:#E74E35!important;font-weight:700;}
.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#E74E35!important;}

/* ── Flatpickr mobile safeguard ──────────────────────────────────────
   flatpickr's multi-month layout uses fixed pixel widths per month
   (~307px each), so a 2-month range calendar is ~620px+ wide. If JS
   sets showMonths based on window.innerWidth at init time but the
   page is later resized without reload (e.g. DevTools device
   toolbar), or on any viewport <768px, force the calendar back to a
   single-month, 100%-width layout so it never overflows the screen. */
@media (max-width: 767px) {
  .flatpickr-calendar {
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
  }
  .flatpickr-calendar.multiMonth .flatpickr-months .flatpickr-month,
  .flatpickr-calendar .flatpickr-months .flatpickr-month {
    width: 100% !important;
  }
  .flatpickr-calendar.multiMonth .flatpickr-innerContainer,
  .flatpickr-calendar.multiMonth .flatpickr-rContainer,
  .flatpickr-calendar.multiMonth .dayContainer,
  .flatpickr-innerContainer,
  .flatpickr-rContainer,
  .dayContainer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .flatpickr-calendar.multiMonth .flatpickr-months .flatpickr-month ~ .flatpickr-month,
  .flatpickr-calendar .flatpickr-days > .dayContainer ~ .dayContainer {
    display: none !important;
  }
  .flatpickr-calendar.multiMonth .flatpickr-days {
    width: 100% !important;
  }
}

/* Pax popup button */
.pax-btn {
  border: 1.5px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.1); color: #fff;
  border-radius: 10px; padding: 11px 13px; font-size: 14px; font-weight: 600;
  font-family: inherit; min-height: 46px; width: 100%;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  transition: border-color .18s; text-align: left;
}
.pax-btn:focus, .pax-btn[aria-expanded="true"] { border-color: var(--primary); outline: none; }
.pax-btn .bi-person-fill { color: var(--primary); flex-shrink: 0; }
.pax-btn .pax-chev { margin-left: auto; opacity: .7; transition: transform .2s; }
.pax-btn[aria-expanded="true"] .pax-chev { transform: rotate(180deg); }
.pax-pop {
  position: absolute; top: calc(100% + 6px); right: 0; left: auto; min-width: 270px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22); border: 1px solid #e7e7ec;
  padding: 14px 16px; z-index: 9999; display: none; color: var(--dark);
}
.pax-pop.open { display: block; }
.pax-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f0f5; }
.pax-row:last-of-type { border-bottom: none; }
.pax-lbl strong { font-size: 14px; font-weight: 700; color: var(--dark); display: block; }
.pax-lbl span { font-size: 11px; color: #999; }
.pax-step { display: flex; align-items: center; gap: 10px; }
.pax-step button {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--primary);
  background: #fff; color: var(--primary); font-size: 18px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; transition: all .18s; flex-shrink: 0; padding: 0; font-family: inherit;
}
.pax-step button:hover { background: var(--primary); color: #fff; }
.pax-step button:disabled { border-color: #ddd; color: #ddd; cursor: not-allowed; background: #fff; }
.pax-step span { font-size: 16px; font-weight: 800; min-width: 22px; text-align: center; }
.pax-done {
  display: block; width: 100%; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; padding: 10px; font-size: 14px;
  font-weight: 700; cursor: pointer; margin-top: 12px; transition: background .18s; font-family: inherit;
}
.pax-done:hover { background: var(--primary-dark); }

/* ─────────────────── MULTI-CITY SEGMENTS ─────────────────── */
/* .hdr-search-multi keeps the same row/wrap behaviour as .hdr-search
   (display:flex from .hdr-search, flex-wrap:wrap, align-items:flex-end).
   #multiSegmentsWrap and .multi-seg-add-btn each get flex-basis:100% so
   they always occupy their own full-width line, while the trailing
   Passengers / Cabin Class / Search controls flow as a normal row
   beneath them (and wrap naturally on narrow screens) instead of each
   stretching to fill a column-direction track. */
#multiSegmentsWrap {
  flex: 1 1 100%;
  display: flex; flex-direction: column; gap: 10px;
}
.multi-seg-row {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
  position: relative; padding-right: 0;
}
.multi-seg-field { position: relative; }
.multi-seg-add-btn {
  /* flex-basis:100% forces this onto its own line in the wrapping
     .hdr-search-multi row; width:fit-content keeps the pill itself
     small instead of stretching full-width. */
  flex: 0 0 100%;
  width: fit-content;
  align-self: flex-start; background: rgba(255,255,255,0.1);
  border: 1.5px dashed rgba(255,255,255,0.3); color: #fff;
  border-radius: 10px; padding: 9px 18px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .18s, border-color .18s;
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
}
.multi-seg-add-btn:hover { background: rgba(255,255,255,0.18); border-color: var(--primary); color: #fff; }
.multi-seg-remove {
  flex: 0 0 auto; width: 38px; height: 46px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.multi-seg-remove:hover { background: rgba(231,78,53,0.25); border-color: var(--primary); color: #fff; }
.multi-from-trigger, .multi-to-trigger { width: 100%; }
.multi-from-drop, .multi-to-drop { z-index: 9998; }
.multi-depart-display { cursor: pointer; }

/* ─────────────────── SRP LAYOUT (filter col + results col) ─────────────────── */
.tr-srp-layout { align-items: flex-start; padding: 28px 0 40px; }

/* Filter column (desktop sticky / mobile drawer) */
#tr-srp-filter-col {
  position: fixed; top: 0; left: -110%; width: 85%; max-width: 360px;
  height: 100vh; z-index: 1055; overflow-y: auto; background: #fff;
  transition: left .26s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 24px rgba(15,23,42,0.2);
  display: flex; flex-direction: column; padding-bottom: 32px;
}
#tr-srp-filter-col.is-open { left: 0; }
@media (min-width: 992px) {
  #tr-srp-filter-col {
    position: sticky !important; top: 84px !important; left: auto !important;
    width: auto !important; max-width: none !important; height: auto !important;
    max-height: none !important; z-index: auto !important;
    box-shadow: none !important; overflow-y: visible !important; overflow: visible !important;
    transition: none !important; display: block !important; padding-bottom: 0 !important;
  }
}
.tr-filter-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 1050; display: none;
}
.tr-filter-backdrop.is-open { display: block; }

.tr-filter-drawer-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 14px; border-bottom: 1px solid #eef0f5; flex-shrink: 0;
  font-size: 15px; font-weight: 700; color: #1A1A2E;
}
.tr-filter-close-btn {
  width: 32px; height: 32px; border-radius: 50%; padding: 0;
  border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center;
  color: #555; background: #f8f9fb;
}
.tr-filter-close-btn:hover { background: #E74E35; color: #fff; border-color: #E74E35; }

.tr-filter-panel {
  background: #fff; border: 1px solid #eef0f6; border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,23,42,0.05), 0 8px 28px rgba(15,23,42,0.07);
  transition: box-shadow .25s ease;
}
.tr-filter-panel:hover { box-shadow: 0 4px 16px rgba(15,23,42,0.07), 0 16px 48px rgba(15,23,42,0.10); }
@media (max-width: 991px) {
  .tr-filter-panel { border: none; border-radius: 0; flex: 1; box-shadow: none !important; height: 100%; display: flex; flex-direction: column; }
  .tr-filter-panel-body { flex: 1; overflow-y: auto; }
}
.tr-filter-panel-hdr {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  border-bottom: 1px solid #eef0f5; font-size: 15px; font-weight: 700; color: #1A1A2E;
}
.tr-filter-panel-hdr .fa { color: #E74E35; font-size: 14px; }
.tr-filter-panel-body { padding: 0; }

/* ─────────────────── FILTER PANEL SECTIONS ─────────────────── */
.tr-fp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid #f0f0f5;
}
.tr-fp-title { font-size: 15px; font-weight: 700; color: #1f2937; }
.tr-fp-clear {
  font-size: 12px; font-weight: 600; color: #E74E35; background: none; border: none;
  padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.tr-fp-clear:hover { color: #c43a24; }
.tr-fp-divider { border: none; border-top: 1px solid #f0f0f5; margin: 0; }
.tr-fp-section { padding: 14px 16px; border-bottom: 1px solid #f0f0f5; }
.tr-fp-section:last-of-type { border-bottom: none; }
.tr-fp-section-title {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #6b7280; margin-bottom: 10px;
}

/* Price range slider */
.tr-price-range-labels {
  display: flex; justify-content: space-between; font-size: 13px;
  font-weight: 600; color: #374151; margin-bottom: 8px;
}
input[type="range"].tr-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 2px;
  background: linear-gradient(to right, #E74E35 0%, #E74E35 100%, #e2e2ea 100%);
  outline: none; cursor: pointer; margin: 8px 0;
}
input[type="range"].tr-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: #E74E35; border: 2.5px solid #fff;
  box-shadow: 0 1px 6px rgba(231,78,53,.35); cursor: pointer;
}
input[type="range"].tr-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #E74E35;
  border: 2.5px solid #fff; box-shadow: 0 1px 6px rgba(231,78,53,.35); cursor: pointer;
}
.tr-price-row { display: flex; gap: 10px; margin-top: 12px; }
.tr-price-inp-grp { flex: 1; }
.tr-price-inp-lbl {
  display: block; font-size: 11px; font-weight: 600; color: #9ca3af;
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em;
}
.tr-price-inp {
  width: 100%; border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 7px 10px;
  font-size: 13px; font-weight: 600; color: #1f2937; background: #fff;
  transition: border-color .18s;
}
.tr-price-inp:focus { border-color: #E74E35; outline: none; }
.tr-price-apply-row { display: flex; gap: 8px; margin-top: 12px; }
.tr-fp-btn-reset, .tr-fp-btn-apply {
  flex: 1; border: none; border-radius: 8px; padding: 8px 0; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: background .18s, color .18s;
}
.tr-fp-btn-reset { background: #f3f4f6; color: #6b7280; }
.tr-fp-btn-reset:hover { background: #e5e7eb; color: #374151; }
.tr-fp-btn-apply { background: #E74E35; color: #fff; }
.tr-fp-btn-apply:hover { background: #c43a24; }

/* Stop pills */
.stop-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.stop-pill {
  padding: 7px 13px; border-radius: 999px; border: 1.5px solid #ddd;
  font-size: 12px; font-weight: 700; color: var(--muted); background: #fff;
  cursor: pointer; transition: all .15s; white-space: nowrap; font-family: inherit;
}
.stop-pill:hover { border-color: var(--primary); color: var(--primary); }
.stop-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Baggage pills */
.baggage-pills { display: flex; flex-direction: column; gap: 8px; }
.baggage-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; border: 1.5px solid #ddd;
  font-size: 13px; font-weight: 600; color: var(--muted); background: #fff;
  cursor: pointer; transition: all .15s; width: 100%; font-family: inherit;
  text-align: left;
}
.baggage-pill i { font-size: 15px; flex-shrink: 0; }
.baggage-pill:hover { border-color: var(--primary); color: var(--primary); }
.baggage-pill.active { border-color: var(--primary); background: #FFF5F3; color: var(--primary); }

/* Airline / air-type checklist (populated dynamically) */
.tr-fp-checklist { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow-y: auto; }
.tr-fp-check-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 2px;
  font-size: 13px; font-weight: 600; color: #374151; cursor: pointer;
  border-radius: 6px; transition: background .15s; width: 100%;
}
.tr-fp-check-row:hover { background: #fafafc; }
.tr-fp-check-row input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: #E74E35; cursor: pointer; flex-shrink: 0;
}
.tr-fp-check-lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-fp-check-count { font-size: 12px; font-weight: 600; color: #9ca3af; flex-shrink: 0; }
.tr-fp-empty-hint { font-size: 12px; color: #9ca3af; padding: 6px 2px; }
/* Airlines checklist container — flex only for the loading spinner state */
.airline_loader {
  /* populated dynamically — default to column layout for checkboxes */
  display: flex; flex-direction: column; gap: 2px;
  color: #E74E35; font-size: 18px;
}
.airline_loader:empty,
.airline_loader .tr-fp-empty-hint {
  align-items: center; justify-content: center;
  text-align: center; padding: 16px 0;
}

/* Sort options */
.tr-sort-wrap { display: flex; flex-direction: column; gap: 8px; }
.tr-sort-btn {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border: 1.5px solid #e5e7eb; border-radius: 8px; background: #fff;
  font-size: 13px; font-weight: 500; color: #374151; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; text-align: left; width: 100%;
}
.tr-sort-btn:hover { background: #fef2f0; border-color: #E74E35; }
.tr-sort-btn.active { background: #fff5f3; border-color: #E74E35; color: #E74E35; font-weight: 600; }

/* Apply filters main button */
.tr-fp-apply-main {
  display: block; width: calc(100% - 32px); margin: 8px 16px 16px;
  padding: 11px 0; background: #E74E35; color: #fff; border: none;
  border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .18s; letter-spacing: .02em;
}
.tr-fp-apply-main:hover { background: #c43a24; }

/* ─────────────────── RESULTS TOPBAR ─────────────────── */
.tr-srp-results-topbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.tr-mobile-filter-btn {
  background: #fff; border: 1.5px solid #E74E35; color: #E74E35;
  font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 10px;
  transition: background .15s, color .15s;
}
.tr-mobile-filter-btn:hover { background: #E74E35; color: #fff; }
.results-count {
  font-size: clamp(13px,2vw,15px); font-weight: 700; color: var(--dark);
  background: #fff; border: 1px solid #eef0f6; border-radius: 10px;
  padding: 7px 14px; box-shadow: 0 1px 4px rgba(15,23,42,.05);
  display: inline-flex; align-items: center; gap: 6px;
}
.results-count span { color: var(--muted); font-weight: 500; }

/* Loading-more banner */
.tr-loading-more {
  text-align: center; padding: 12px; margin-bottom: 14px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.tr-loading-more i { color: var(--primary); margin-right: 6px; }

/* ─────────────────── FLIGHT CARD (.fc-*) ─────────────────── */
.flight-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  transition: box-shadow .25s, transform .25s;
  display: grid;
  grid-template-columns: 5px 185px 1fr 170px;
  overflow: hidden;
}
.flight-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}
/* Cheapest card highlight */
.flight-card.fc-cheapest {
  background: linear-gradient(100deg, #fffbfa 0%, #fff 28%);
  box-shadow: 0 2px 14px rgba(231,78,53,0.1), 0 0 0 1.5px rgba(231,78,53,0.14);
}
.flight-card.fc-cheapest:hover {
  box-shadow: 0 12px 36px rgba(231,78,53,0.18), 0 0 0 1.5px rgba(231,78,53,0.2);
}
/* Airline gradient accent strip */
.fc-strip {
  grid-column: 1; grid-row: 1 / -1;
  align-self: stretch; border-radius: var(--radius) 0 0 var(--radius);
  flex-shrink: 0; background: linear-gradient(180deg, var(--primary), var(--primary-dark, #c43a24));
}

/* Card body wraps multiple slice rows for round-trip / multi-city */
.fc-body {
  grid-column: 2 / 4; grid-row: auto;
  display: flex; flex-direction: column; min-width: 0;
}
.fc-slice-row {
  display: grid; grid-template-columns: 185px 1fr; align-items: stretch;
}
.fc-slice-row + .fc-slice-row { border-top: 1px solid var(--border); }

/* Admin-only debug bar — sits OUTSIDE the card grid, above the article */
.fc-admin-debug {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 2px 10px; font-size: 10px; font-weight: 600; color: #999;
  background: #f7f7fb; border: 1px solid #e8e8ee; border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0; margin-bottom: -4px;
}
.fc-admin-debug-id { opacity: .7; font-family: monospace; }

/* Airline column */
.fc-airline {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 16px 22px 18px;
  border-right: 1px solid var(--border);
}
/* Airline logo image + fallback */
.fc-logo-wrap {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.fc-logo-img {
  width: 44px; height: 44px; border-radius: 10px;
  object-fit: contain; background: #f5f5f8;
  border: 1px solid #eee;
}
.fc-logo {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #fff;
  flex-shrink: 0; letter-spacing: -0.01em;
}
.fc-airline-info { min-width: 0; }
.fc-name { font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.35; word-break: break-word; }
.fc-sub { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Middle column: route + price live in same row for the FIRST slice;
   subsequent slices share the same grid via .fc-slice-row */
.fc-middle {
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
}
.fc-route {
  display: flex; align-items: center; gap: 16px;
}
.fc-point { text-align: center; flex-shrink: 0; }
.fc-time {
  font-size: 25px; font-weight: 900; color: var(--dark);
  letter-spacing: -0.03em; line-height: 1;
}
.fc-time .next-day {
  font-size: 10px; font-weight: 700; color: var(--gold);
  vertical-align: super; margin-left: 1px;
}
.fc-airport {
  font-size: 12px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.06em; margin-top: 4px;
}
.fc-city {
  font-size: 11px; color: #bbb; font-weight: 500; margin-top: 2px; white-space: nowrap;
}
.fc-line-wrap { flex: 1; text-align: center; min-width: 80px; }
.fc-dur-text { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.fc-bar {
  position: relative; height: 2px;
  background: #e2e2ea;
  border-radius: 2px; margin: 0 12px;
}
.fc-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  background: linear-gradient(to right, #d0d0df 0%, var(--primary) 100%);
  border-radius: 2px;
}
.fc-dot-start, .fc-dot-end {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; border: 2px solid #fff; z-index: 1;
}
.fc-dot-start { left: -12px; background: #c0c0cc; box-shadow: 0 0 0 2px #c0c0cc; }
.fc-dot-end { right: -12px; background: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.fc-stop-marker {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); border: 2px solid #fff; z-index: 1;
}
.fc-bar-icon {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 1.5px solid #e0e0ea;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--primary); z-index: 2;
}
.fc-stops-lbl {
  font-size: 11px; font-weight: 700; margin-top: 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.fc-stops-lbl.ns { color: var(--green); }
.fc-stops-lbl.os { color: var(--gold); }
.fc-stops-lbl.ms { color: var(--primary); }

/* Tags row (rendered once, on first slice) */
.fc-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.fc-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
  background: var(--light); color: var(--muted);
}
.fc-tag i { font-size: 12px; }
.fc-tag-green { background: rgba(26,157,87,0.1); color: var(--green); }
.fc-tag-blue { background: rgba(42,127,222,0.1); color: var(--blue); }
.fc-tag-gold { background: rgba(245,166,35,0.12); color: #c88000; }

/* Price column (rendered once per card, spans all slice rows) */
.fc-price-col {
  grid-column: 4; grid-row: 1 / -1;
  display: flex; flex-direction: column;
  align-items: flex-end; justify-content: center;
  padding: 20px 20px 20px 16px; gap: 6px;
  border-left: 1px solid var(--border);
  text-align: right;
}
.fc-badge {
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
}
.fc-badge-cheapest { background: rgba(26,157,87,0.1); color: var(--green); }
.fc-badge-fastest { background: rgba(42,127,222,0.1); color: var(--blue); }
.fc-amt {
  font-size: 28px; font-weight: 900; color: var(--primary);
  letter-spacing: -0.025em; line-height: 1;
}
.fc-per { display: none; }
.fc-trip-type {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  background: var(--light); color: var(--muted);
  white-space: nowrap; margin-top: -2px;
}
.fc-trip-type i { font-size: 10px; }
.btn-select {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: #fff; border: none;
  border-radius: 9px; padding: 11px 18px; font-size: 13px; font-weight: 800;
  cursor: pointer; transition: background .18s, transform .15s, box-shadow .15s;
  text-decoration: none; white-space: nowrap; margin-top: 6px;
  font-family: inherit; width: 100%; letter-spacing: 0.01em;
}
.btn-select:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(231,78,53,0.38); color: #fff; }
.btn-select:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Spinner shown while bookFlight()'s addToCart request is in flight */
.btn-select .btn-select-spinner { display: none; }
.btn-select.is-loading .btn-select-label { display: none; }
.btn-select.is-loading .btn-select-spinner { display: inline-block; }

/* ─────────────────── PAGINATION ─────────────────── */
.tr-flight-pagination .page-link { color: var(--dark); border: none; font-weight: 700; }
.tr-flight-pagination .page-item.active .page-link { background: var(--primary); color: #fff; }
.tr-flight-pagination .page-item.disabled .page-link { color: #ccc; }

/* ─────────────────── SKELETON ─────────────────── */
.skeleton-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 14px; padding: 22px 24px;
  display: flex; align-items: center; gap: 16px;
}
.sk {
  background: linear-gradient(90deg,#eee 25%,#f5f5f5 50%,#eee 75%);
  background-size: 400% 100%; animation: sk-anim 1.4s ease infinite; border-radius: 8px;
}
@keyframes sk-anim { 0%{background-position:100% 50%} 100%{background-position:0 50%} }
.sk-line { height: 14px; margin-bottom: 10px; }

/* Empty state */
.empty-state {
  text-align: center; padding: 60px 20px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.empty-state i { font-size: 52px; color: #ddd; }
.empty-state h3, .empty-state h4 { margin: 16px 0 8px; color: var(--dark); }
.empty-state p { color: var(--muted); margin: 0; }

/* Filter FAB (mobile) */
.filter-fab {
  position: fixed; bottom: 24px; right: 20px; z-index: 999;
  background: var(--primary); color: #fff; border: none;
  border-radius: 50px; padding: 12px 22px; font-size: 14px;
  font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 20px rgba(231,78,53,0.4);
  display: none; align-items: center; gap: 8px;
  transition: background .18s, transform .15s; font-family: inherit;
}
.filter-fab:hover { background: var(--primary-dark); transform: translateY(-2px); color: #fff; }

/* ─────────────────── EMPTY STATE (no search yet) ─────────────────── */
.tr-srp-hdr-empty { padding: 44px 0 36px; }
.tr-srp-empty-intro { text-align: left; max-width: none; margin: 0 0 28px; }
.tr-srp-empty-intro .tr-srp-title { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.tr-srp-empty-sub { color: rgba(255,255,255,0.65); font-size: clamp(14px,2vw,16px); margin: 0 0 24px; line-height: 1.6; }
.tr-srp-empty-form { width: 100%; }
.tr-srp-body-empty { padding-top: 28px; padding-bottom: 40px; }
.tr-srp-empty-placeholder { width: 100%; }
.tr-srp-empty-placeholder i { color: var(--primary); opacity: .35; }

/* ─────────────────── RESPONSIVE ─────────────────── */
@media (max-width: 991px) {
  .filter-fab { display: inline-flex; }
  .flight-card { grid-template-columns: 5px 148px 1fr 152px; }
  .fc-slice-row { grid-template-columns: 148px 1fr; }
  .fc-airline { padding: 18px 10px 18px 14px; gap: 10px; }
  .fc-logo { width: 38px; height: 38px; }
}
@media (max-width: 767px) {
  .hdr-field { flex: 1 1 100% !important; }
  .hdr-search-btn { width: 100%; justify-content: center; }
  .hdr-field.hdr-half { flex: 1 1 calc(50% - 5px) !important; min-width: 0; }

  .flight-card { grid-template-columns: 1fr; }
  .fc-strip { grid-column: 1; grid-row: 1; height: 5px; width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
  .fc-body { grid-column: 1; grid-row: auto; }
  .fc-slice-row { grid-template-columns: 1fr; }
  .fc-airline { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 16px; }
  .fc-middle { padding: 14px 16px; gap: 10px; }
  .fc-time { font-size: 20px; }
  .fc-city { display: none; }
  .fc-price-col {
    grid-column: 1;
    border-left: none; border-top: 1px solid var(--border);
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 14px 16px; gap: 12px;
    grid-row: auto;
  }
  .btn-select { width: auto; flex: 1 1 auto; max-width: 160px; margin-top: 0; }
  .fc-badge { display: none; }
  .fc-amt { font-size: 22px; }
  .fc-trip-type { margin-top: 0; }
}
@media (max-width: 575px) {
  .tr-srp-results-topbar { flex-direction: column; align-items: flex-start; }
  .results-count { width: 100%; }
}

/* ── Admin Supplier Panel (flights) ──────────────────── */
.tr-admin-badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #E74E35;
    color: #fff;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: middle;
}
.tr-supplier-grid { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tr-supplier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    user-select: none;
}
.tr-supplier-row:hover  { background: #fef2f0; border-color: #E74E35; }
.tr-supplier-row.active { background: #fff5f4; border-color: #E74E35; }
.tr-supplier-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    cursor: pointer;
}
.tr-supplier-name { font-size: .85rem; font-weight: 500; color: #374151; }
.tr-supplier-count {
    font-size: .78rem;
    font-weight: 700;
    color: #E74E35;
    background: #fde8e4;
    border-radius: 12px;
    padding: 1px 8px;
    min-width: 28px;
    text-align: center;
}
