/* ═══════════════════════════════════════════════════════════════════
   FindFlights — Main CSS
   Built on Bootstrap 5 with custom premium design system
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --ff-navy:       #071d49;
  --ff-navy-light: #0d2d6b;
  --ff-blue:       #0073ec;
  --ff-blue-light: #3d9eff;
  --ff-teal:       #00a698;
  --ff-teal-light: #e0f4f3;
  --ff-orange:     #f06800;
  --ff-orange-light: #fff3e8;
  --ff-gray-50:    #f8fafc;
  --ff-gray-100:   #f1f5f9;
  --ff-gray-200:   #e2e8f0;
  --ff-gray-400:   #94a3b8;
  --ff-gray-600:   #475569;
  --ff-gray-800:   #1e293b;
  --ff-white:      #ffffff;
  --ff-border:     #e2e8f0;
  --ff-shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --ff-shadow:     0 4px 16px rgba(0,0,0,.10);
  --ff-shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --ff-radius:     12px;
  --ff-radius-lg:  18px;
  --ff-radius-xl:  24px;
  --ff-font:       'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--ff-font);
  background: var(--ff-gray-50);
  color: var(--ff-gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--ff-blue); transition: color .2s; }
a:hover { color: var(--ff-navy); }

/* ── Navbar ───────────────────────────────────────────────────────── */
.ff-navbar {
  background: rgba(7, 29, 73, 0.97) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: .8rem 0;
  transition: all .3s;
}
.ff-navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.ff-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--ff-blue), var(--ff-teal));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.ff-logo-text {
  font-size: 1.25rem; font-weight: 800;
  color: #fff; letter-spacing: -.5px;
}
.ff-brand-logo {
  height: 38px;
  max-width: 180px;
  object-fit: contain;
  border-radius: 10px;
  overflow: hidden;
  vertical-align: middle;
  transition: transform .2s ease;
}
.navbar-brand:hover .ff-brand-logo {
  transform: scale(1.02);
}
.ff-brand-logo-sm {
  height: 28px;
  max-width: 140px;
  object-fit: contain;
  border-radius: 8px;
  overflow: hidden;
  vertical-align: middle;
}
.ff-navbar .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-weight: 500; font-size: .9rem;
  padding: .5rem 1rem !important; border-radius: 8px;
  transition: all .2s;
}
.ff-navbar .nav-link:hover,
.ff-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.1);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.ff-btn-primary {
  background: linear-gradient(135deg, var(--ff-blue), var(--ff-teal));
  border: none; color: #fff; font-weight: 600;
  border-radius: 10px; transition: all .25s;
}
.ff-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,115,236,.4);
  color: #fff;
}
.ff-btn-outline {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-weight: 500; border-radius: 10px; transition: all .2s;
}
.ff-btn-outline:hover { background: rgba(255,255,255,.2); color: #fff; }

.ff-dropdown {
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius); box-shadow: var(--ff-shadow-lg);
  overflow: hidden;
}
.ff-dropdown .dropdown-item:hover { background: var(--ff-gray-100); }

/* ── Hero / Search Section ────────────────────────────────────────── */
.ff-hero {
  position: relative;
  overflow: visible;
  padding: 3.25rem 0 2.5rem;
  background: var(--ff-navy);
  z-index: 10;
}
.ff-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/airport-hero.jpg') center 65% / cover no-repeat;
  opacity: 0.48;
  filter: brightness(0.92) contrast(1.15);
  pointer-events: none;
  z-index: 0;
}
.ff-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(0, 115, 236, 0.15) 0%, transparent 60%),
    linear-gradient(
      180deg,
      rgba(7, 29, 73, 0.76) 0%,
      rgba(7, 29, 73, 0.32) 30%,
      rgba(7, 29, 73, 0.78) 75%,
      var(--ff-navy) 100%
    );
  pointer-events: none;
  z-index: 1;
}
.ff-hero-title {
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.ff-hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  font-weight: 400;
}

/* Search Widget */
.ff-search-card {
  position: relative;
  z-index: 5;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--ff-radius-xl);
  padding: 1.75rem;
}
.ff-tab-btn {
  background: transparent; border: none;
  color: rgba(255,255,255,.65); font-weight: 600; font-size: .9rem;
  padding: .6rem 1.25rem; border-radius: 10px;
  transition: all .2s; cursor: pointer;
  display: flex; align-items: center; gap: .4rem;
}
.ff-tab-btn.active,
.ff-tab-btn:hover {
  background: rgba(255,255,255,.15); color: #fff;
}
.ff-tab-btn.active { color: #fff; }

.ff-search-input {
  background: rgba(255,255,255,.92) !important;
  border: 1.5px solid rgba(255,255,255,.3) !important;
  border-radius: 12px !important;
  font-weight: 500; font-size: .9rem !important;
  color: var(--ff-navy) !important;
  padding: .75rem 1rem !important; height: auto !important;
  transition: all .2s;
  text-overflow: ellipsis;
}
.ff-search-input:focus {
  background: #fff !important;
  border-color: var(--ff-blue) !important;
  box-shadow: 0 0 0 3px rgba(0,115,236,.15) !important;
}
.ff-search-input::placeholder { color: var(--ff-gray-400) !important; }
.ff-search-input.ff-input-with-clear { padding-right: 2.35rem !important; }

/* ── Clear Input Button ───────────────────────────────────────────── */
.ff-input-with-clear {
  padding-right: 2.5rem !important;
}

.ff-input-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #e2e8f0;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
  font-size: 11px;
  line-height: 1;
}
.ff-input-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
  transform: translateY(-50%) scale(1.08);
}
.ff-input-clear:active {
  transform: translateY(-50%) scale(0.92);
}

/* Clear button on dark header inputs (e.g. search page bar) */
.ff-input-clear-dark {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  right: 9px;
  width: 22px;
  height: 22px;
  font-size: 10px;
}
.ff-input-clear-dark:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}
.ff-input-clear-dark:active {
  transform: translateY(-50%) scale(0.92);
}

/* ── Date Picker (dd/mm/yyyy) Styling ─────────────────────────────── */
.ff-search-input.ff-date-input,
.ff-search-input.flatpickr-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 2.4rem !important;
  cursor: pointer !important;
}

.ff-sb-input.ff-date-input,
.ff-sb-input.flatpickr-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='rgba(255,255,255,0.65)' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  padding-right: 2.1rem !important;
  cursor: pointer !important;
}

/* Flatpickr Calendar Theme */
.flatpickr-calendar {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(10, 37, 64, 0.2);
  border: 1px solid var(--ff-border);
  font-family: var(--ff-font);
  overflow: hidden;
  z-index: 1050;
}
.flatpickr-months {
  background: var(--ff-navy);
  color: #ffffff;
  padding: 8px 0;
  border-radius: 13px 13px 0 0;
}
.flatpickr-months .flatpickr-month {
  color: #ffffff;
  fill: #ffffff;
  height: 34px;
}
.flatpickr-current-month {
  padding: 4px 0 0 0;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: rgba(255, 255, 255, 0.8);
  fill: rgba(255, 255, 255, 0.8);
  padding: 8px;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: #ffffff;
  fill: #ffffff;
}
span.flatpickr-weekday {
  color: var(--ff-gray-500);
  font-weight: 600;
  font-size: 0.8rem;
}
.flatpickr-day {
  border-radius: 8px;
  font-weight: 500;
  color: var(--ff-navy);
  transition: all 0.15s;
  height: 36px;
  line-height: 36px;
}
.flatpickr-day.today {
  border-color: var(--ff-blue);
  font-weight: 700;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--ff-blue) !important;
  border-color: var(--ff-blue) !important;
  color: #ffffff !important;
  font-weight: 700;
}
.flatpickr-day:hover:not(.flatpickr-disabled):not(.selected) {
  background: rgba(0, 115, 236, 0.1);
  color: var(--ff-blue);
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: var(--ff-gray-300);
}

.ff-input-label {
  font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.65);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: .35rem;
}
.ff-search-btn {
  background: linear-gradient(135deg, var(--ff-blue), var(--ff-teal));
  border: none; color: #fff; font-weight: 700; font-size: 1rem;
  border-radius: 12px; padding: .75rem 2rem;
  transition: all .3s; white-space: nowrap;
  display: flex; align-items: center; gap: .5rem;
}
.ff-search-btn:hover {
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 8px 24px rgba(0,115,236,.5);
}
.ff-swap-btn {
  background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 50%; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; font-size: .95rem;
}
.ff-swap-btn:hover { background: rgba(255,255,255,.25); transform: rotate(180deg); }

/* Trip type toggles */
.ff-trip-toggle { display: flex; gap: .5rem; }
.ff-trip-opt {
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7); font-size: .8rem; font-weight: 600;
  padding: .35rem .9rem; border-radius: 8px; cursor: pointer;
  transition: all .2s; user-select: none;
}
.ff-trip-opt.active { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.4); color: #fff; }

/* Autocomplete dropdown */
#fromWrap,
#toWrap,
#widgetFromWrap,
#widgetToWrap {
  position: relative;
}
#fromWrap:focus-within,
#toWrap:focus-within,
#widgetFromWrap:focus-within,
#widgetToWrap:focus-within,
.ff-sb-group:focus-within {
  z-index: 1060;
}
.ff-autocomplete {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 1060;
  background: #fff; border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.2), 0 2px 10px rgba(0,0,0,.08);
  border: 1px solid var(--ff-border); overflow: hidden;
  max-height: 320px; overflow-y: auto;
}
.ff-autocomplete-item {
  padding: .65rem .9rem; cursor: pointer; transition: all .15s ease;
  font-size: .875rem; display: flex; align-items: center; gap: .75rem;
  color: var(--ff-gray-800); border-bottom: 1px solid rgba(0,0,0,.04);
}
.ff-autocomplete-item:last-child {
  border-bottom: none;
}
.ff-autocomplete-item:hover,
.ff-autocomplete-item:focus {
  background: #f0f7ff;
  outline: none;
}
.ff-ac-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(0, 115, 236, 0.08); color: var(--ff-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0; transition: all .15s ease;
}
.ff-autocomplete-item:hover .ff-ac-icon,
.ff-autocomplete-item:focus .ff-ac-icon {
  background: var(--ff-blue); color: #fff;
}
.ff-ac-content {
  flex: 1; min-width: 0; text-align: left;
}
.ff-ac-main {
  font-size: .875rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ff-ac-code-text {
  font-weight: 800; color: #0f172a; margin-right: .35rem; font-size: .9rem;
}
.ff-ac-name-text {
  font-weight: 600; color: #334155;
}
.ff-ac-sub {
  font-size: .75rem; color: #64748b; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ff-ac-badge {
  font-size: .72rem; font-weight: 700; color: var(--ff-navy);
  background: #f1f5f9; padding: .2rem .45rem; border-radius: 6px;
  letter-spacing: .5px; flex-shrink: 0; border: 1px solid rgba(0,0,0,.06);
}
.ff-autocomplete-item:hover .ff-ac-badge,
.ff-autocomplete-item:focus .ff-ac-badge {
  background: rgba(0, 115, 236, 0.12); color: var(--ff-blue); border-color: rgba(0, 115, 236, 0.2);
}
.ff-ac-item-city {
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0 !important;
}
.ff-ac-item-city:hover,
.ff-ac-item-city:focus {
  background: #eff6ff !important;
}
.ff-ac-icon-city {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
}
.ff-autocomplete-item:hover .ff-ac-icon-city,
.ff-autocomplete-item:focus .ff-ac-icon-city {
  background: #059669 !important;
  color: #fff !important;
}

/* ── Feature Cards ────────────────────────────────────────────────── */
.ff-feature-card {
  background: #fff; border-radius: var(--ff-radius-lg);
  border: 1px solid var(--ff-border);
  padding: 1.5rem; box-shadow: var(--ff-shadow-sm);
  transition: all .3s;
}
.ff-feature-card:hover { transform: translateY(-4px); box-shadow: var(--ff-shadow-lg); }
.ff-feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.ff-feature-icon.blue   { background: #eff6ff; color: var(--ff-blue); }
.ff-feature-icon.teal   { background: var(--ff-teal-light); color: var(--ff-teal); }
.ff-feature-icon.orange { background: var(--ff-orange-light); color: var(--ff-orange); }

/* ── Route Cards ──────────────────────────────────────────────────── */
.ff-route-card {
  background: #fff; border-radius: var(--ff-radius-lg);
  border: 1px solid var(--ff-border); overflow: hidden;
  box-shadow: var(--ff-shadow-sm); transition: all .3s;
  display: block; color: inherit;
}
.ff-route-card:hover {
  transform: translateY(-6px); box-shadow: var(--ff-shadow-lg);
  color: inherit; border-color: var(--ff-blue);
}
.ff-route-img {
  width: 100%; height: 160px; object-fit: cover; display: block;
}
.ff-route-body { padding: 1rem; }
.ff-route-cities { font-weight: 700; font-size: .95rem; color: var(--ff-navy); }
.ff-route-arrow { color: var(--ff-blue); font-size: .85rem; }
.ff-route-price {
  color: var(--ff-teal); font-weight: 800; font-size: 1.1rem;
}
.ff-route-label { font-size: .7rem; color: var(--ff-gray-400); font-weight: 500; }

/* ── Flight Result Cards ──────────────────────────────────────────── */
.ff-flight-card {
  background: #fff; border-radius: var(--ff-radius-lg);
  border: 1px solid var(--ff-border); padding: 1.25rem 1.5rem;
  box-shadow: var(--ff-shadow-sm); transition: all .3s; margin-bottom: .75rem;
}
.ff-flight-card:hover { box-shadow: var(--ff-shadow); border-color: var(--ff-blue); }
.ff-airline-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.ff-airline-name { font-size: .78rem; color: var(--ff-gray-400); font-weight: 500; }
.ff-flight-time { font-size: 1.35rem; font-weight: 800; color: var(--ff-navy); }
.ff-flight-date { font-size: .72rem; color: var(--ff-gray-400); }
.ff-flight-duration {
  font-size: .8rem; color: var(--ff-gray-600); font-weight: 500;
  text-align: center;
}
.ff-stops-line {
  height: 2px; background: var(--ff-gray-200); position: relative; margin: .5rem 0;
  border-radius: 2px;
}
.ff-stops-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ff-blue); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--ff-blue);
  position: absolute; top: 50%; transform: translateY(-50%);
}
.ff-direct-badge {
  font-size: .7rem; font-weight: 700; color: var(--ff-teal);
  background: var(--ff-teal-light); padding: .2rem .6rem; border-radius: 6px;
}
.ff-stop-badge {
  font-size: .7rem; font-weight: 600; color: var(--ff-orange);
  background: var(--ff-orange-light); padding: .2rem .6rem; border-radius: 6px;
}
.ff-price { font-size: 1.6rem; font-weight: 900; color: var(--ff-navy); }
.ff-price-sub { font-size: .72rem; color: var(--ff-gray-400); }
.ff-book-btn {
  background: linear-gradient(135deg, var(--ff-blue), var(--ff-teal));
  border: none; color: #fff; font-weight: 700; font-size: .9rem;
  border-radius: 10px; padding: .65rem 1.5rem; transition: all .3s;
  white-space: nowrap;
}
.ff-book-btn:hover {
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 6px 20px rgba(0,115,236,.4);
}

/* ── Filter Sidebar ───────────────────────────────────────────────── */
.ff-filter-card {
  background: #fff; border-radius: var(--ff-radius-lg);
  border: 1px solid var(--ff-border); padding: 1.25rem;
  box-shadow: var(--ff-shadow-sm); position: sticky; top: 80px;
}
.ff-filter-title { font-size: .85rem; font-weight: 700; color: var(--ff-navy); text-transform: uppercase; letter-spacing: .5px; }
.ff-filter-section { border-top: 1px solid var(--ff-border); padding-top: 1rem; margin-top: 1rem; }

/* ── Section Headings ─────────────────────────────────────────────── */
.ff-section-title { font-size: 1.6rem; font-weight: 800; color: var(--ff-navy); letter-spacing: -.3px; }
.ff-section-subtitle { font-size: .875rem; color: var(--ff-gray-400); margin-top: .25rem; }

/* ── Blog Cards ───────────────────────────────────────────────────── */
.ff-blog-card {
  background: #fff; border-radius: var(--ff-radius-lg);
  border: 1px solid var(--ff-border); overflow: hidden;
  box-shadow: var(--ff-shadow-sm); transition: all .3s; display: block; color: inherit;
}
.ff-blog-card:hover {
  transform: translateY(-5px); box-shadow: var(--ff-shadow-lg);
  color: inherit; border-color: var(--ff-blue);
}
.ff-blog-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.ff-blog-img-placeholder {
  width: 100%; height: 200px; background: linear-gradient(135deg, var(--ff-navy), var(--ff-blue));
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-size: 3rem;
}
.ff-blog-body { padding: 1.25rem; }
.ff-blog-cat {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--ff-blue); background: #eff6ff; padding: .25rem .65rem;
  border-radius: 6px; display: inline-block; margin-bottom: .75rem;
}
.ff-blog-title { font-size: 1rem; font-weight: 700; color: var(--ff-navy); line-height: 1.4; margin-bottom: .5rem; }
.ff-blog-excerpt { font-size: .85rem; color: var(--ff-gray-600); line-height: 1.6; }
.ff-blog-meta { font-size: .75rem; color: var(--ff-gray-400); margin-top: .75rem; }

/* ── Newsletter Strip ─────────────────────────────────────────────── */
.ff-newsletter-strip {
  background: linear-gradient(135deg, var(--ff-navy), var(--ff-blue));
  padding: 3.5rem 0;
}
.ff-newsletter-input {
  background: rgba(255,255,255,.1) !important;
  border: 1.5px solid rgba(255,255,255,.2) !important;
  color: #fff !important; border-radius: 10px 0 0 10px !important;
  padding: .75rem 1.25rem !important;
}
.ff-newsletter-input::placeholder { color: rgba(255,255,255,.5) !important; }
.ff-newsletter-input:focus { background: rgba(255,255,255,.15) !important; box-shadow: none !important; }

/* ── Footer ───────────────────────────────────────────────────────── */
.ff-footer {
  background: var(--ff-navy); color: rgba(255,255,255,.8);
  padding: 1.75rem 0 1rem;
}
.ff-footer-brand { font-size: 1.15rem; font-weight: 800; color: #fff; }
.ff-logo-icon-sm {
  width: 28px; height: 28px; background: linear-gradient(135deg, var(--ff-blue), var(--ff-teal));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .82rem;
}
.ff-footer-heading { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.ff-footer-link { color: rgba(255,255,255,.7); font-size: .86rem; font-weight: 500; display: inline-block; margin-bottom: 0; transition: color .2s; }
.ff-footer-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ff-footer-divider { border-color: rgba(255,255,255,.1); }
.ff-footer .text-muted { color: rgba(255,255,255,.65) !important; }
.ff-footer-credits { color: rgba(255,255,255,.6); font-size: .84rem; }
.ff-newsletter-msg { font-size: .82rem; font-weight: 600; line-height: 1.4; }
.ff-newsletter-success,
.ff-footer .text-success {
  color: #34d399 !important;
}
.ff-newsletter-error,
.ff-footer .text-danger,
.ff-footer .text-warning {
  color: #f87171 !important;
}
.ff-social-link { color: rgba(255,255,255,.5); font-size: 1.1rem; transition: color .2s; }
.ff-social-link:hover { color: #fff; }

/* ── Loading States ───────────────────────────────────────────────── */
.ff-skeleton {
  background: linear-gradient(90deg, var(--ff-gray-100) 25%, var(--ff-gray-200) 50%, var(--ff-gray-100) 75%);
  background-size: 200% 100%; animation: ff-shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes ff-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.ff-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--ff-gray-200);
  border-top-color: var(--ff-blue);
  border-radius: 50%; animation: ff-spin .7s linear infinite;
}
@keyframes ff-spin { to { transform: rotate(360deg); } }

/* ── Pagination ───────────────────────────────────────────────────── */
.ff-pagination .page-link {
  border-radius: 10px !important; margin: 0 2px;
  color: var(--ff-navy); border-color: var(--ff-border); font-weight: 500;
  transition: all .2s;
}
.ff-pagination .page-item.active .page-link {
  background: var(--ff-blue); border-color: var(--ff-blue);
}
.ff-pagination .page-link:hover { background: var(--ff-gray-100); }

/* ── Alerts ───────────────────────────────────────────────────────── */
.ff-alert-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; border-radius: 12px; }
.ff-alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; border-radius: 12px; }

/* ── Legacy sort btn (kept for compat) ─────────────────────────── */
.ff-sort-btn {
  background: transparent; border: none; color: var(--ff-gray-600);
  font-weight: 600; font-size: .85rem; padding: .4rem 1rem; border-radius: 8px;
  transition: all .2s; cursor: pointer;
}
.ff-sort-btn.active { background: var(--ff-navy); color: #fff; }
.ff-sort-btn:hover:not(.active) { background: var(--ff-gray-100); }

/* ── Misc ─────────────────────────────────────────────────────────── */
.ff-card {
  background: #fff; border-radius: var(--ff-radius-lg);
  border: 1px solid var(--ff-border); box-shadow: var(--ff-shadow-sm);
}
.ff-badge-direct { background: #ecfdf5; color: #059669; font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; }
.ff-badge-stop   { background: #fff7ed; color: #d97706; font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; }
.ff-tag { background: var(--ff-gray-100); color: var(--ff-gray-600); font-size: .75rem; padding: .3rem .75rem; border-radius: 20px; font-weight: 500; }
.ff-divider { height: 1px; background: var(--ff-border); }

/* No results */
.ff-empty { text-align: center; padding: 4rem 1rem; }
.ff-empty-icon { font-size: 3.5rem; color: var(--ff-gray-200); margin-bottom: 1rem; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .ff-hero { padding: 2.5rem 0 2rem; }
  .ff-search-card { padding: 1.25rem; }
  .ff-flight-card { padding: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   SEARCH RESULTS PAGE — Premium Redesign
   ═══════════════════════════════════════════════════════════════════ */

/* ── Search Header Bar (Scrolls naturally with page) ─── */
.ff-search-header {
  background: var(--ff-navy); padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative; top: auto; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.page-flights-search #mainNav {
  position: relative !important;
  top: auto !important;
}
.ff-search-bar-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.ff-sb-group { display: flex; flex-direction: column; flex: 1; min-width: 120px; }
.ff-sb-label {
  font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px;
}
.ff-sb-input {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; border-radius: 8px; padding: .42rem .75rem;
  font-size: .88rem; font-family: var(--ff-font); transition: border-color .2s, background .2s;
  text-overflow: ellipsis;
}
.ff-sb-input:focus { outline: none; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.ff-sb-input::placeholder { color: rgba(255,255,255,.4); }
.ff-sb-input.ff-input-with-clear { padding-right: 2rem !important; }
.ff-sb-input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; cursor: pointer; }
.ff-sb-search-btn {
  background: var(--ff-blue); color: #fff; border: none;
  border-radius: 8px; padding: .46rem 1.4rem; font-weight: 600;
  font-size: .88rem; cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .15s; align-self: flex-end;
}
.ff-sb-search-btn:hover { background: #0060cc; transform: translateY(-1px); }

/* ── Sort Tabs ─────────────────────────────────────── */
.ff-sort-tabs {
  display: flex; background: #fff;
  border-radius: var(--ff-radius) var(--ff-radius) 0 0;
  border: 1px solid var(--ff-border); border-bottom: none; overflow: hidden;
}
.ff-sort-tab {
  flex: 0 0 auto; padding: .8rem 1.5rem; cursor: pointer;
  border-bottom: 3px solid transparent; transition: all .2s;
  border-right: 1px solid var(--ff-border); min-width: 140px;
}
.ff-sort-tab:hover { background: var(--ff-gray-50); }
.ff-sort-tab.active { border-bottom-color: var(--ff-blue); }
.ff-sort-tab-label { font-size: .8rem; color: var(--ff-gray-600); font-weight: 500; }
.ff-sort-tab.active .ff-sort-tab-label { color: var(--ff-navy); font-weight: 700; }
.ff-sort-tab-price { font-size: 1rem; font-weight: 700; color: var(--ff-teal); margin-top: 2px; }
.ff-sort-note { font-size: .75rem; color: var(--ff-gray-400); padding: 0 1rem; }

/* ── Results Bar ───────────────────────────────────── */
.ff-results-bar {
  background: #fff; border: 1px solid var(--ff-border); border-top: none;
  padding: .75rem 1.25rem; margin-bottom: 1px;
}

/* ── Loading / Empty States ────────────────────────── */
.ff-loading-state { text-align: center; padding: 5rem 1rem; }
.ff-spinner-ring {
  width: 48px; height: 48px; margin: 0 auto;
  border: 4px solid var(--ff-gray-200); border-top-color: var(--ff-blue);
  border-radius: 50%; animation: ff-spin .8s linear infinite;
}
.ff-empty-state { text-align: center; padding: 4rem 1rem; }
.ff-empty-state .ff-empty-icon { font-size: 3.5rem; color: var(--ff-gray-300); }

/* ── Flight Result Card ────────────────────────────── */
.ff-result-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px !important;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  overflow: hidden;
}

.ff-result-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Badges row at top */
.ff-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem 0.25rem;
}

.ff-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  line-height: 1.3;
}

.ff-badge-cheapest {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.ff-badge-best {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.ff-badge-fast {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.ff-flexible-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3px 10px;
  line-height: 1.3;
}

/* Card Main: Itinerary (Left) & Price/Action (Right) */
.ff-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem 0.6rem;
  gap: 1.25rem;
}

.ff-card-itinerary {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

/* Leg row */
.ff-card-leg {
  display: grid;
  grid-template-columns: 80px 115px 1fr 115px;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.ff-card-leg-return {
  /* Clean compact return leg */
}

.ff-leg-airline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 80px;
  flex-shrink: 0;
}

.ff-airline-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  padding: 2px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
}

.ff-airline-logo-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

.ff-airline-logos-group {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 38px;
}

.ff-airline-logos-group .ff-airline-logo-img,
.ff-airline-logos-group .ff-airline-logo-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-left: -7px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  border: 2px solid #ffffff;
  position: relative;
  transition: transform 0.15s ease, z-index 0.15s ease;
}

.ff-airline-logos-group .ff-airline-logo-img:first-child,
.ff-airline-logos-group .ff-airline-logo-placeholder:first-child {
  margin-left: 0;
  z-index: 1;
}

.ff-airline-logos-group .ff-airline-logo-img:nth-child(2),
.ff-airline-logos-group .ff-airline-logo-placeholder:nth-child(2) {
  z-index: 2;
}

.ff-airline-logos-group .ff-airline-logo-img:nth-child(3),
.ff-airline-logos-group .ff-airline-logo-placeholder:nth-child(3) {
  z-index: 3;
}

.ff-airline-logos-group:hover .ff-airline-logo-img {
  transform: translateY(-2px);
}

.ff-leg-airline-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 4px;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.ff-leg-dep,
.ff-leg-arr {
  min-width: 95px;
  text-align: left;
}

.ff-leg-time {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ff-leg-airport {
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
}

/* Route track middle section */
.ff-leg-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  max-width: 240px;
  margin: 0 auto;
  width: 100%;
}

.ff-route-line-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.ff-route-node {
  width: 7px;
  height: 7px;
  border: 2px solid #64748b;
  border-radius: 50%;
  background: #ffffff;
  flex-shrink: 0;
  z-index: 2;
}

.ff-route-bar {
  flex: 1;
  height: 2px;
  background: #cbd5e1;
}

.ff-stops-pill {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  margin: 0 4px;
  z-index: 2;
  line-height: 1.3;
}

.ff-stops-direct {
  background: #047857;
  color: #ffffff;
}

.ff-stops-connecting {
  background: #ea580c;
  color: #ffffff;
}

.ff-leg-duration {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 3px;
  text-align: center;
}

/* Card Price & Action Column (Right Side) */
.ff-card-price-col {
  width: 185px;
  flex-shrink: 0;
  border-left: 1px solid #f1f5f9;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ff-card-price {
  font-size: 1.65rem;
  font-weight: 800;
  color: #003580;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ff-card-price-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 3px;
  margin-bottom: 0.65rem;
}

.ff-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0071eb;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.45rem 1.6rem;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 135px;
  box-shadow: 0 2px 6px rgba(0, 113, 235, 0.25);
}

.ff-select-btn:hover {
  background: #005bb5;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 113, 235, 0.35);
}

.ff-view-details-btn {
  background: transparent;
  border: none;
  color: #0071eb;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.4rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.ff-view-details-btn:hover {
  color: #004ba0;
  text-decoration: underline;
}

/* Card Footer: Luggage & Amenities Row */
.ff-card-footer {
  padding: 0.65rem 1.25rem 0.85rem;
  border-top: 1px solid #f8fafc;
}

.ff-card-luggage {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: #64748b;
}

.ff-footer-dot {
  color: #cbd5e1;
  font-weight: bold;
}

.ff-luggage-checked {
  color: #059669;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.ff-cabin-badge {
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 768px) {
  .ff-card-main {
    flex-direction: column;
    align-items: stretch;
  }
  .ff-card-price-col {
    width: 100%;
    border-left: none;
    border-top: 1px solid #f1f5f9;
    padding-left: 0;
    padding-top: 0.85rem;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .ff-card-leg {
    grid-template-columns: 70px 90px 1fr 90px;
    gap: 0.5rem;
  }
  .ff-leg-time {
    font-size: 1.15rem;
  }
}

.ff-filter-panel {
  background: #fff; border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius); box-shadow: var(--ff-shadow-sm);
  padding: 1rem; position: sticky; top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ff-gray-300) transparent;
}
.ff-filter-panel::-webkit-scrollbar {
  width: 5px;
}
.ff-filter-panel::-webkit-scrollbar-track {
  background: transparent;
}
.ff-filter-panel::-webkit-scrollbar-thumb {
  background: var(--ff-gray-300);
  border-radius: 4px;
}
.ff-filter-panel::-webkit-scrollbar-thumb:hover {
  background: var(--ff-gray-400);
}
.ff-filter-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--ff-border);
}
.ff-filter-reset { background: none; border: none; color: var(--ff-blue); font-size: .8rem; font-weight: 600; cursor: pointer; padding: 0; }
.ff-filter-section { padding: .75rem 0; border-bottom: 1px solid var(--ff-border); }
.ff-filter-section:last-child { border-bottom: none; }
.ff-filter-section-title {
  font-size: .7rem; font-weight: 700; color: var(--ff-gray-600);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem;
}
.ff-filter-carriers { font-weight: 400; font-size: .68rem; color: var(--ff-gray-400); }
.ff-filter-check-item { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.ff-check-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; flex: 1; font-size: .82rem; color: var(--ff-gray-800); }
.ff-check { width: 16px; height: 16px; accent-color: var(--ff-blue); flex-shrink: 0; cursor: pointer; }
.ff-filter-count { font-size: .78rem; color: var(--ff-gray-500); font-weight: 500; flex-shrink: 0; }
.ff-filter-airline-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; flex-shrink: 0; background: #fff; }
.ff-filter-multi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}
.ff-filter-airlines-list::-webkit-scrollbar { width: 3px; }
.ff-filter-airlines-list::-webkit-scrollbar-thumb { background: var(--ff-gray-300); border-radius: 2px; }
.ff-price-range { width: 100%; accent-color: var(--ff-blue); cursor: pointer; margin-top: .5rem; }
.ff-price-label { font-size: .78rem; font-weight: 600; color: var(--ff-blue); }

/* ── Show More ─────────────────────────────────────── */
.ff-btn-outline {
  background: transparent; border: 2px solid var(--ff-blue); color: var(--ff-blue);
  border-radius: 10px; font-weight: 700; transition: all .2s;
}
.ff-btn-outline:hover { background: var(--ff-blue); color: #fff; }

/* ── Details Modal ─────────────────────────────────── */
.ff-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1040; backdrop-filter: blur(3px);
}
.ff-details-modal {
  position: fixed; top: 50%; right: 0; left: auto;
  transform: translateY(-50%);
  width: min(680px, 96vw); max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 20px 0 0 20px;
  box-shadow: -10px 0 50px rgba(0,0,0,.25); z-index: 1050;
  display: flex; flex-direction: column;
}
@media (max-width: 640px) {
  .ff-details-modal {
    top: auto; bottom: 0; left: 0; right: 0; width: 100%;
    border-radius: 20px 20px 0 0; transform: none; max-height: 88vh;
  }
}
.ff-details-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1.25rem 1.5rem 1rem; border-bottom: 1px solid var(--ff-border);
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.ff-details-title { font-size: 1.2rem; font-weight: 800; color: var(--ff-navy); margin: 0; }
.ff-details-share { font-size: .8rem; color: var(--ff-blue); margin-top: .3rem; display: block; }
.ff-details-close {
  background: var(--ff-gray-100); border: none; width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0; transition: background .2s;
}
.ff-details-close:hover { background: var(--ff-gray-200); }
.ff-details-body { padding: 1.25rem 1.5rem; flex: 1; overflow-y: auto; }
.ff-details-footer {
  padding: 1rem 1.5rem; border-top: 1px solid var(--ff-border);
  position: sticky; bottom: 0; background: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.ff-details-segment-sep { text-align: center; position: relative; margin: 1.5rem 0; }
.ff-details-segment-sep::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ff-border);
}
.ff-details-segment-sep span { position: relative; background: #fff; padding: 0 1rem; font-size: .82rem; font-weight: 700; color: var(--ff-blue); }

/* Timeline & Flight details */
.ff-leg-timeline-block {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.03); transition: border-color .2s;
}
.ff-timeline-header { font-size: .82rem; color: var(--ff-gray-600); font-weight: 600; }
.ff-timeline { position: relative; padding-left: 1.75rem; margin-top: .75rem; }
.ff-timeline::before {
  content: ''; position: absolute; left: 8px; top: 12px; bottom: 12px;
  width: 2px; background: #cbd5e1;
}
.ff-tl-item { position: relative; margin-bottom: 1rem; }
.ff-tl-dot {
  position: absolute; left: -1.75rem; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ff-blue);
  box-shadow: 0 0 0 2px rgba(0, 113, 235, 0.15);
}
.ff-tl-time { font-size: .82rem; font-weight: 700; margin-bottom: 2px; }
.ff-tl-airport { font-size: .95rem; color: var(--ff-navy); }
.ff-tl-flight-box {
  display: flex; align-items: center; gap: .85rem;
  background: #f8fafc; border-radius: 10px;
  padding: .75rem 1rem; margin: .5rem 0; border: 1px solid #e2e8f0;
}
.ff-tl-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }

/* Layover Box */
.ff-tl-layover {
  background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 12px;
  padding: .85rem 1.15rem; font-size: .85rem; color: #92400e;
  font-weight: 600; margin: .5rem 0 1rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}
.ff-layover-badge {
  background: #fef3c7; color: #92400e; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; border: 1px solid #fde68a;
  display: inline-flex; align-items: center; flex-shrink: 0;
}

/* Baggage Allowance Card */
.ff-details-baggage-card {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 1.15rem 1.25rem; box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
.ff-baggage-box {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: .85rem; box-shadow: 0 1px 3px rgba(0,0,0,.02);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ff-baggage-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
}

/* Responsive */
@media (max-width: 991px) {
  .ff-filter-panel { position: static; max-height: none; overflow-y: visible; }
  .ff-sort-tab { min-width: 100px; padding: .6rem .75rem; }
}
@media (max-width: 768px) {
  .ff-card-leg { grid-template-columns: 55px 1fr 75px 1fr; gap: .5rem; padding: .75rem; }
  .ff-card-bottom { flex-direction: column; align-items: flex-start; }
  .ff-card-price-col { text-align: left; width: 100%; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .ff-sort-tab-label { font-size: .7rem; }
  .ff-search-header { position: relative; top: 0; }
}
@media (max-width: 480px) {
  .ff-sb-group { min-width: 100%; }
  .ff-card-leg { grid-template-columns: 44px 1fr 65px 1fr; padding: .6rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   CURRENCY MODAL & MULTI-CURRENCY SELECTOR
   ═════════════════════════════════════════════ */

/* ── Navbar Currency Trigger ─────────────────────────── */
.ff-nav-flag-circle {
  width: 20px; height: 20px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ff-gray-100);
  border: 1px solid rgba(255,255,255,.2);
  flex-shrink: 0;
  vertical-align: middle;
}
.ff-nav-flag-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ── Select Your Currency Modal ──────────────────────── */
.ff-currency-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1060;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.ff-currency-modal-dialog {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  width: min(940px, 96vw);
  max-height: 88vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: ff-modal-zoom .2s ease-out;
}
@keyframes ff-modal-zoom {
  from { transform: scale(.95); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.ff-curr-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--ff-border);
  background: #fafbfc;
  flex-shrink: 0;
}
.ff-curr-modal-title {
  font-size: 1.15rem; font-weight: 700; color: var(--ff-navy);
}
.ff-curr-modal-close {
  background: var(--ff-gray-100); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ff-gray-600); cursor: pointer;
  transition: all .15s; font-size: .85rem;
}
.ff-curr-modal-close:hover {
  background: var(--ff-gray-200); color: var(--ff-navy);
}
.ff-curr-modal-search {
  padding: 1rem 1.5rem .75rem;
  border-bottom: 1px solid var(--ff-border);
  background: #fff;
  flex-shrink: 0;
}
.ff-curr-search-input {
  border-radius: 12px;
  background: #f8fafc;
  border: 1.5px solid var(--ff-border);
  padding: .65rem 2.5rem .65rem 1rem;
  font-size: .88rem;
  transition: all .2s;
}
.ff-curr-search-input:focus {
  background: #fff; border-color: var(--ff-blue);
  box-shadow: 0 0 0 3px rgba(0,115,236,.15);
}
.ff-curr-search-icon {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--ff-blue); pointer-events: none; font-size: .9rem;
}
.ff-curr-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto; flex: 1;
}
.ff-curr-section-title {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  color: var(--ff-gray-400); margin-bottom: .65rem;
}
.ff-curr-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem .85rem; border-radius: 12px;
  border: 1px solid var(--ff-border); background: #fff;
  cursor: pointer; transition: all .18s; user-select: none;
  height: 100%;
}
.ff-curr-card:hover {
  border-color: #cbd5e1; background: #f8fafc; transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.ff-curr-card.active {
  border-color: var(--ff-blue) !important;
  background: #f0f7ff !important;
  box-shadow: 0 0 0 1px var(--ff-blue);
}
.ff-curr-flag {
  width: 28px; height: 28px; border-radius: 50%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--ff-gray-100); border: 1px solid rgba(0,0,0,.08);
  flex-shrink: 0;
}
.ff-curr-flag-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ff-curr-flag-emoji { font-size: 1.15rem; line-height: 1; }
.ff-curr-info { min-width: 0; }
.ff-curr-head {
  display: flex; align-items: center; gap: 4px;
}
.ff-curr-code {
  font-weight: 700; font-size: .88rem; color: var(--ff-navy);
}
.ff-curr-symbol {
  font-weight: 800; font-size: .82rem; color: #059669;
}
.ff-curr-name {
  font-size: .75rem; color: var(--ff-gray-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 155px;
}
.ff-curr-check {
  color: var(--ff-blue); font-size: 1.1rem; font-weight: 800;
  margin-left: .5rem; flex-shrink: 0;
}

/* ── Price Calendar Option & View ─────────────────────────────────────────── */
.ff-btn-price-calendar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  color: #1d4ed8;
  font-weight: 600;
  font-size: .92rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ff-btn-price-calendar:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16);
  color: #1e40af;
}
.ff-btn-price-calendar.is-open {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}
.ff-btn-price-calendar.is-open .ff-calendar-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: none;
}
.ff-calendar-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.ff-price-calendar-card {
  background: #ffffff;
  border: 1px solid var(--ff-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.08), 0 4px 12px -2px rgba(0,0,0,0.04);
  padding: 20px;
  margin-bottom: 24px;
  animation: ffCalendarFade .25s ease-out;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

@keyframes ffCalendarFade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Week Grid - Exactly 7 Days */
.ff-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 991px) {
  .ff-week-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
}

.ff-week-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 4px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 118px;
  position: relative;
  min-width: 0;
  box-sizing: border-box;
  user-select: none;
  overflow: hidden;
}
@media (max-width: 991px) {
  .ff-week-card {
    min-width: 105px;
    padding: 12px 8px 10px;
    scroll-snap-align: start;
  }
}
.ff-week-card:hover {
  border-color: var(--ff-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 115, 236, 0.12);
}
.ff-week-card.is-selected {
  border: 2px solid var(--ff-blue);
  background: #f0f7ff;
  box-shadow: 0 0 0 2px rgba(0, 115, 236, 0.15);
}
.ff-week-card.is-cheapest {
  border: 2px solid #10b981;
  background: #f0fdf4;
}
.ff-week-card.is-cheapest.is-selected {
  border: 2px solid #059669;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.ff-week-card.is-past {
  opacity: 0.42;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #e2e8f0 !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

.ff-week-day {
  font-size: .8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ff-week-date {
  font-size: .86rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2px;
}
.ff-week-return {
  font-size: .7rem;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
}
.ff-week-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 6px;
  line-height: 1.2;
}
.ff-week-price.is-cheapest-price {
  color: #059669;
}
.ff-week-direct {
  font-size: .68rem;
  color: #0284c7;
  margin-top: 2px;
  font-weight: 600;
}
.ff-week-airline {
  font-size: .68rem;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ff-week-badge-cheapest {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}
.ff-week-badge-selected {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ff-blue);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}

/* Month View */
.ff-month-calendar {
  width: 100%;
}
.ff-month-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
  text-align: center;
}
.ff-month-weekday {
  font-size: .75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  padding: 4px 0;
  letter-spacing: .5px;
}
.ff-month-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.ff-cal-cell {
  min-height: 74px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}
.ff-cal-cell:hover {
  border-color: var(--ff-blue);
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.ff-cal-cell.is-empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}
.ff-cal-cell.is-past {
  opacity: 0.38;
  cursor: not-allowed;
  background: #f8fafc;
  pointer-events: none;
  border-color: #f1f5f9;
}
.ff-cal-cell.is-selected {
  border: 2px solid var(--ff-blue);
  background: #eff6ff;
  box-shadow: 0 0 0 1px var(--ff-blue);
}
.ff-cal-cell.is-cheapest {
  border: 2px solid #10b981;
  background: #f0fdf4;
}
.ff-cal-cell.is-cheapest.is-selected {
  border: 2px solid #059669;
  box-shadow: 0 0 0 1px #059669;
}

.ff-cal-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ff-cal-day-num {
  font-size: .82rem;
  font-weight: 700;
  color: #334155;
}
.ff-cal-pill-cheapest {
  font-size: .62rem;
  font-weight: 800;
  color: #047857;
  background: #d1fae5;
  padding: 1px 5px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.ff-cal-pill-selected {
  font-size: .62rem;
  font-weight: 800;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 1px 5px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.ff-cal-cell-bottom {
  margin-top: 4px;
}
.ff-cal-price {
  font-size: .88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.ff-cal-price.is-cheapest-price {
  color: #059669;
}
.ff-cal-price-empty {
  font-size: .75rem;
  color: #94a3b8;
}
.ff-cal-ret-date {
  font-size: .65rem;
  color: #64748b;
  white-space: nowrap;
  margin-top: 1px;
}

