/* ===== offlinebooking — shared styles ===== */
:root {
  --brand: #0a66ff;
  --brand-dark: #0747b3;
  --accent: #ff6b35;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1a2233;
  --muted: #6b7689;
  --border: #e3e8f0;
  --success: #15a36a;
  --danger: #e23b54;
  --warning: #e9a200;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(18, 38, 70, 0.08);
  --shadow-lg: 0 12px 40px rgba(18, 38, 70, 0.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Header / nav ---- */
.topbar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(16,24,40,.04);
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.4px;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 6px; margin-left: 8px; }
.nav-links a {
  color: var(--muted); font-weight: 600; font-size: 14.5px;
  padding: 8px 12px; border-radius: 9px; transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--brand); background: rgba(37,99,235,.07); text-decoration: none; }
.nav-links a.active { color: var(--brand); background: rgba(37,99,235,.10); }
.nav-spacer { flex: 1; }

.user-menu { display: flex; align-items: center; gap: 12px; }

/* Login dropdown (logged-out header) */
.login-dd { position: relative; }
.login-dd-btn { display: inline-flex; align-items: center; gap: 6px; }
.login-dd-caret { font-size: 11px; transition: transform .18s; }
.login-dd.open .login-dd-caret { transform: rotate(180deg); }
.login-dd-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 268px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 16px 40px rgba(16,24,40,.16);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 60;
}
.login-dd.open .login-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.login-dd-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--text, #111827); }
.login-dd-item:hover { background: rgba(37,99,235,.08); text-decoration: none; }
.login-dd-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-size: 18px; background: rgba(37,99,235,.10); border-radius: 10px; }
.login-dd-item b { display: block; font-size: 14.5px; font-weight: 700; color: var(--brand); }
.login-dd-item small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }

/* Website enquiry band */
.enquiry-band { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; padding: 32px 20px; }
.enquiry-inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.enquiry-copy { flex: 1; min-width: 240px; }
.enquiry-copy h2 { margin: 0 0 6px; font-size: 24px; }
.enquiry-copy p { margin: 0; color: #c7d6f5; font-size: 14.5px; }
.enquiry-form { flex: 2; min-width: 300px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea { padding: 11px 12px; border-radius: 9px; border: none; font-size: 14px; }
.enquiry-form textarea { grid-column: 1 / -1; resize: vertical; }
.enquiry-form .btn { grid-column: 1 / -1; }
.enquiry-out { grid-column: 1 / -1; font-size: 13px; min-height: 16px; }
.enquiry-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.enquiry-fields label { display: block; font-size: 11px; color: #c7d6f5; margin-bottom: 2px; }
.enquiry-fields .enq-field { width: 100%; padding: 9px 10px; border-radius: 8px; border: none; font-size: 13px; }
@media (max-width: 640px) { .enquiry-form { grid-template-columns: 1fr; } }

/* Header notification bell (logged-in) */
.notif-wrap { position: relative; }
.notif-bell { position: relative; background: transparent; border: none; cursor: pointer; font-size: 19px; line-height: 1; padding: 7px 8px; border-radius: 9px; }
.notif-bell:hover { background: rgba(37,99,235,.08); }
.notif-dot { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; display: grid; place-items: center; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 320px; max-height: 420px; overflow: auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px rgba(16,24,40,.18); z-index: 60; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.notif-head button { background: none; border: none; color: var(--brand); font-size: 12px; font-weight: 600; cursor: pointer; }
.notif-item { display: block; padding: 11px 14px; border-bottom: 1px solid #f1f3f7; color: var(--text, #111827); }
.notif-item:hover { background: rgba(37,99,235,.06); text-decoration: none; cursor: pointer; }
.notif-item.unread { background: #eff6ff; }
.notif-title { font-size: 13.5px; font-weight: 700; }
.notif-body { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.notif-time { font-size: 10.5px; color: #9aa3b2; margin-top: 3px; }
.notif-empty { padding: 28px 14px; text-align: center; color: var(--muted); font-size: 13px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.user-name { font-weight: 600; font-size: 14px; }
.user-role {
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px; padding: 11px 18px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.95); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--border); }
.btn-ghost:hover { background: #eef3ff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---- Layout helpers ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 28px 20px; }
.grid { display: grid; gap: 18px; }
.muted { color: var(--muted); }
.right { text-align: right; }
.row { display: flex; gap: 12px; align-items: center; }
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 20px; }

/* ---- Hero / search ---- */
.hero {
  background: linear-gradient(135deg, #0a66ff 0%, #0747b3 60%, #5b2bd4 100%);
  color: #fff;
  padding: 56px 20px 90px;
}
.hero h1 { font-size: 38px; margin: 0 0 8px; font-weight: 800; }
.hero p { font-size: 18px; opacity: .92; margin: 0; }
.hero-inner { max-width: 1180px; margin: 0 auto; }

/* ---- Whitelabel B2C homepage design themes ---- */
/* Modern: dark gradient hero, rounded glassy search card */
body.wl-design-modern .hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%); padding: 64px 20px 100px; }
body.wl-design-modern .search-card { border-radius: 22px; box-shadow: 0 20px 50px rgba(2, 6, 23, .18); }
body.wl-design-modern .best-card, body.wl-design-modern .card { border-radius: 16px; }
/* Minimal: light, flat, airy */
body.wl-design-minimal .hero { background: #eef2f7; color: #0f172a; padding: 48px 20px 90px; }
body.wl-design-minimal .hero p { opacity: .7; }
body.wl-design-minimal .search-card { box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(15, 23, 42, .06); border: 1px solid var(--border); }
body.wl-design-minimal .trust-strip, body.wl-design-minimal .best-card { box-shadow: none; border: 1px solid var(--border); }
/* Bold: vibrant gradient, oversized headline */
body.wl-design-bold .hero { background: linear-gradient(120deg, var(--brand), var(--accent)); padding: 70px 20px 110px; }
body.wl-design-bold .hero h1 { font-size: 52px; letter-spacing: -1px; }
body.wl-design-bold .hero p { font-size: 20px; }
body.wl-design-bold .btn-accent { border-radius: 999px; }
body.wl-design-bold .sec-title { font-size: 28px; }

.search-card {
  max-width: 1100px;
  margin: -60px auto 0;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
  z-index: 10;
}
.trip-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.trip-tab {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-weight: 600; color: var(--muted);
}
.trip-tab.active { background: #eef3ff; color: var(--brand); border-color: var(--brand); }

.search-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}
.search-fields .field { flex: 1 1 140px; min-width: 130px; }
.search-fields .field-ap { flex: 1.6 1 190px; min-width: 180px; }   /* From / To — wider so the full "City (CODE)" fits */
.search-fields .field-date { flex: 0.7 1 124px; min-width: 116px; } /* Departure / Return — a bit narrower */
.search-fields > button[type="submit"] { flex: 0 0 auto; min-width: 120px; }
.field label {
  display: block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%; padding: 12px 12px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 15px; background: #fff; color: var(--text); height: 46px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
/* Swap From/To button + travellers popup trigger */
.swap-btn {
  flex: 0 0 auto; align-self: flex-end; width: 42px; height: 46px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  cursor: pointer; font-size: 18px; color: var(--muted); transition: .12s;
}
.swap-btn:hover { border-color: var(--brand); color: var(--brand); background: #eef3ff; }
.pax-trigger {
  width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; color: var(--text); font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.pax-trigger:hover { border-color: var(--brand); }
/* Group booking CTA banner (shown when SITE_FOCUS=group) */
.group-cta { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(100deg, #eef3ff, #fff7ed); border: 1px solid var(--border); border-radius: 16px; padding: 16px 22px; box-shadow: var(--shadow); }
.group-cta .gc-title { font-size: 18px; font-weight: 800; color: var(--text); }
.group-cta .gc-sub { font-size: 13px; color: var(--muted); margin-top: 2px; max-width: 640px; }
.group-cta .gc-btn { white-space: nowrap; font-weight: 800; padding: 12px 22px; }

/* ---- Flight results ---- */
.results-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.filters .card-pad h3 { margin-top: 0; }
.filter-group { margin-bottom: 18px; }
.filter-group h4 { margin: 0 0 8px; font-size: 14px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 6px 0; cursor: pointer; }
.fg-ctrl { font-weight: 400; font-size: 11px; white-space: nowrap; }
.fg-ctrl a { color: var(--accent); text-decoration: none; cursor: pointer; }
.fg-ctrl a:hover { text-decoration: underline; }

.flight-card {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.airline { display: flex; align-items: center; gap: 12px; }
.airline-badge {
  width: 44px; height: 44px; border-radius: 10px; background: #eef3ff;
  color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: 14px;
}
.airline .name { font-weight: 700; }
.airline .fno { font-size: 12px; color: var(--muted); }

.timeline { display: flex; align-items: center; gap: 14px; }
.timeline .time { font-size: 20px; font-weight: 800; }
.timeline .code { font-size: 13px; color: var(--muted); font-weight: 600; }
.timeline .leg { text-align: center; flex: 1; }
.timeline .bar {
  flex: 1; height: 2px; background: var(--border); position: relative;
}
.timeline .bar::after {
  content: '✈'; position: absolute; right: -4px; top: -10px; color: var(--brand);
}
.stops { font-size: 12px; color: var(--muted); text-align: center; }
.stops.nonstop { color: var(--success); font-weight: 700; }

.price-col { text-align: right; }
.price { font-size: 24px; font-weight: 800; color: var(--text); }
.price small { font-size: 13px; color: var(--muted); font-weight: 500; }

.badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .3px;
}
.badge-green { background: #e3f7ee; color: var(--success); }
.badge-red { background: #fde7eb; color: var(--danger); }
.badge-amber { background: #fcf3da; color: #9a6c00; }
.badge-blue { background: #e8f0ff; color: var(--brand); }
.badge-grey { background: #eef1f6; color: var(--muted); }

/* ---- Country / language control ---- */
.geo-ctl { display: flex; gap: 6px; align-items: center; margin-right: 10px; }
.geo-ctl select { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 13px; background: #fff; color: var(--text); cursor: pointer; }
html[dir="rtl"] .topbar-inner, html[dir="rtl"] .hero-inner { direction: rtl; }

/* ---- Recent searches ---- */
.recent-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.recent-title { font-weight: 700; color: var(--muted); font-size: 13px; }
.recent-chip {
  border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text);
}
.recent-chip:hover { border-color: var(--brand); color: var(--brand); }
.recent-clear { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }

/* ---- Multi-leg results (round trip = 2 cols, multi-city = N cols) ---- */
#legColumns.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
#mcColumns { display: grid; gap: 16px; align-items: start; }
.leg-head {
  font-weight: 800; color: var(--brand); margin: 2px 0 10px;
  background: #eef3ff; border: 1px solid #d9e4ff; border-radius: 10px; padding: 10px 14px;
}
.leg-head .lh-sub { font-weight: 500; color: var(--muted); font-size: 13px; }
.mc-leg { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.mc-leg .rm { background: #fde7eb; color: var(--danger); border: none; border-radius: 8px; width: 40px; height: 40px; cursor: pointer; font-size: 18px; }

/* ---- Frozen bottom selection bar (round trip / multi-city) ---- */
#selBar:empty { display: none; }
#selBar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #0f172a; color: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.25);
}
.selbar-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 18px;
  padding: 12px 20px; flex-wrap: wrap;
}
.selbar-legs { display: flex; gap: 22px; flex: 1; flex-wrap: wrap; min-width: 0; }
.selbar-leg { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.selbar-leg .sl-logo { width: 30px; height: 30px; border-radius: 6px; background: #1e293b; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.selbar-leg .sl-r { color: #93a4bf; font-size: 12px; }
.selbar-leg.empty { color: #93a4bf; font-style: italic; }
.selbar-total { font-size: 22px; font-weight: 800; }
#selBar .btn-accent { height: 46px; padding: 0 28px; }
body.has-selbar { padding-bottom: 86px; }

/* ---- Tables ---- */
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px;
}
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
table.data tr:hover td { background: #f9fbff; }

/* ---- Stats ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { padding: 20px; }
.stat .num { font-size: 30px; font-weight: 800; color: var(--brand); }
.stat .lbl { color: var(--muted); font-weight: 600; font-size: 14px; }

/* ---- Forms / auth ---- */
.auth-wrap { max-width: 420px; margin: 60px auto; }
.auth-wrap .card-pad { padding: 32px; }
.auth-wrap h2 { margin: 0 0 4px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.form-field input, .form-field select {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px;
}
.tabswitch { display: flex; margin-bottom: 22px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.tabswitch button {
  flex: 1; padding: 11px; border: none; background: #fff; font-weight: 700; cursor: pointer; color: var(--muted);
}
.tabswitch button.active { background: var(--brand); color: #fff; }

/* ---- Sidebar layout for dashboards ---- */
.dash { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 22px 14px; }
.sidebar a {
  display: block; padding: 11px 14px; border-radius: 10px; color: var(--muted);
  font-weight: 600; margin-bottom: 4px; cursor: pointer;
}
.sidebar a:hover { background: #f1f5ff; text-decoration: none; }
.sidebar a.active { background: #eef3ff; color: var(--brand); }
.dash-main { padding: 28px; overflow: auto; }

/* ---- Toast / alert ---- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.alert-error { background: #fde7eb; color: var(--danger); }
.alert-success { background: #e3f7ee; color: var(--success); }
.alert-info { background: #e8f0ff; color: var(--brand); }

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 25, 45, .55);
  display: grid; place-items: center; z-index: 100; padding: 20px;
}
.modal { background: #fff; border-radius: 16px; max-width: 560px; width: 100%; box-shadow: var(--shadow-lg); }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 24px; max-height: 70vh; overflow: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.close-x { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); }

/* ---- Footer ---- */
.footer { text-align: center; padding: 30px; color: var(--muted); font-size: 14px; }

.spinner {
  width: 22px; height: 22px; border: 3px solid #cdd7ea; border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center-load { display: grid; place-items: center; padding: 50px; gap: 12px; color: var(--muted); }

/* ===== Autosuggest ===== */
.ac-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-lg); margin-top: 4px; min-width: 240px; overflow: visible;
}
.ac-item { display: grid; grid-template-columns: 48px 1fr; gap: 4px 10px; padding: 9px 12px; cursor: pointer; align-items: baseline; }
.ac-item:hover, .ac-item.active { background: #eef3ff; }
.ac-code { grid-row: span 2; font-weight: 800; color: var(--brand); align-self: center; }
.ac-city { font-weight: 600; font-size: 14px; }
.ac-name { grid-column: 2; font-size: 12px; color: var(--muted); }

/* ===== Modify-search bar ===== */
.modbar { background: #1c2433; color: #fff; }
.modbar-inner { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.modbar .route { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.modbar .meta { font-size: 12px; }
.modbar .meta b { display: block; font-size: 14px; }
.modbar .meta .lbl { color: #9fb0c9; text-transform: uppercase; letter-spacing: .4px; font-size: 10px; }

/* ===== Date strip ===== */
.datestrip { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 16px; }
.datestrip .d { flex: 1; text-align: center; padding: 10px 6px; cursor: pointer; border-right: 1px solid var(--border); }
.datestrip .d:last-child { border-right: none; }
.datestrip .d:hover { background: #f1f5ff; }
.datestrip .d.active { background: #fff4ec; border-bottom: 3px solid var(--accent); }
.datestrip .d .dow { font-size: 12px; color: var(--muted); }
.datestrip .d .pr { font-weight: 700; font-size: 14px; }

/* ===== Result rows ===== */
.fl-row { padding: 0; margin-bottom: 12px; overflow: hidden; }
/* Flex row that wraps instead of overlapping when space is tight */
.fl-main { display: flex; align-items: center; gap: 18px; padding: 16px 18px; flex-wrap: wrap; }
.fl-check { flex: none; align-self: flex-start; margin-top: 4px; }
.fl-check { display: none; }
.sharing .fl-check { display: block; }
.fl-air { display: flex; align-items: center; gap: 10px; flex: 1 1 180px; min-width: 0; }
.fl-air > div { min-width: 0; }
.fl-air .logo { width: 40px; height: 40px; border-radius: 9px; background: #eef3ff; color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: 13px; flex: none; }
.fl-air .nm { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-air .fn { font-size: 12px; color: var(--muted); white-space: nowrap; }
.fl-time { display: flex; align-items: center; gap: 12px; flex: 2 1 220px; min-width: 0; }
.fl-time .t { font-size: 19px; font-weight: 800; }
.fl-time .c { font-size: 12px; color: var(--muted); }
.fl-time .mid { flex: 1; text-align: center; }
.fl-time .bar { height: 2px; background: var(--border); position: relative; margin: 6px 0; }
.fl-time .bar::after { content: '✈'; position: absolute; right: -2px; top: -9px; font-size: 12px; color: var(--brand); }
.fl-price { text-align: right; }
.fl-price .p { font-size: 22px; font-weight: 800; }
.fl-price .sup { font-size: 12px; color: var(--muted); }
.fl-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.fl-foot { display: flex; gap: 16px; padding: 8px 18px; border-top: 1px dashed var(--border); background: #fafbfe; font-size: 13px; }

/* Airline logo image (falls back to a lettered .logo badge) */
.logo-img { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid #eef1f6; padding: 3px; flex: none; }
.fl-air .seats { font-size: 11px; color: var(--success); font-weight: 700; margin-top: 1px; }

/* Stacked fare options (top 3 + view more) */
.fl-fares { display: flex; flex-direction: column; gap: 8px; flex: 1 1 330px; min-width: 280px; }
/* Fixed two-column grid so the price column and BOOK button line up across every fare row */
.fare-line { display: grid; grid-template-columns: 1fr 92px; align-items: center; column-gap: 12px; border: 1px solid #e8edf3; border-radius: 10px; padding: 9px 12px; cursor: pointer; transition: border-color .12s, background .12s; }
.fare-line:hover { border-color: #c7d6ea; background: #fafcff; }
.fare-line.active { border-color: var(--brand); background: #f4f8ff; box-shadow: inset 0 0 0 1px var(--brand); }
.fare-line-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fare-amt { font-size: 16px; font-weight: 800; color: var(--text); }
.fare-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; }
.fare-meta .muted { font-size: 11px; }
.fare-line .btn { width: 92px; justify-self: end; }
.offer-note { font-size: 11px; color: #8a6100; background: #fff8e6; border: 1px solid #f3e2b3; border-radius: 8px; padding: 7px 9px; line-height: 1.55; }
/* Offer note shown left-aligned under the flight info (not in the fare column) */
.fl-offer { padding: 0 18px 12px 18px; }
.fl-offer .offer-note { max-width: 560px; }
/* View Details — selected-fare summary bar + price breakup */
.detail-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 14px; background: #f8fafc; border-bottom: 1px solid var(--border); font-size: 13px; }
.detail-price { margin-left: auto; font-size: 18px; font-weight: 800; color: var(--text); }
.fare-breakup td { padding: 8px 12px; }
.fare-breakup tr:nth-child(odd) { background: #fafbfe; }
.more-fares { display: flex; flex-direction: column; gap: 6px; }
.viewmore { align-self: flex-start; font-size: 12px; }
/* Supplier tag — only shown to admins for identification */
.sup-tag { font-size: 10px; font-weight: 700; color: #7c3aed; background: #f3e8ff; padding: 1px 6px; border-radius: 6px; }
/* Non-blocking "still fetching more fares" banner above results */
.searching-banner { background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sb-plane { display: inline-block; animation: sbFly 1.1s ease-in-out infinite; }
@keyframes sbFly { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.link-btn { background: none; border: none; color: var(--accent); font-weight: 700; cursor: pointer; padding: 4px 0; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }

/* fare options + details panel */
.fl-expand { border-top: 1px solid var(--border); background: #fff; }
.tabs { display: flex; gap: 4px; padding: 10px 18px 0; border-bottom: 1px solid var(--border); }
.tab { padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--muted); border-bottom: 3px solid transparent; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tabpane { padding: 16px 18px; }
.fare-opt { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.fare-opt:hover { border-color: var(--brand); }
.fare-opt .ft { font-weight: 700; }
.seg { display: grid; grid-template-columns: 60px 1fr; gap: 10px; padding: 10px 0; }
.seg + .seg { border-top: 1px dashed var(--border); }
.layover { text-align: center; font-size: 12px; color: #9a6c00; background: #fcf3da; border-radius: 8px; padding: 4px; margin: 6px 0; }

/* ===== Share bar + modal ===== */
.sharebar { position: sticky; top: 64px; z-index: 40; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.sharebar .btn { background: #fff; color: var(--brand); }
.share-text { white-space: pre-wrap; font-family: 'Consolas', monospace; font-size: 13px; background: #f7f9fc; border: 1px solid var(--border); border-radius: 10px; padding: 16px; line-height: 1.6; }

/* ===== Hotels & Holidays ===== */
.hotel-card { display: grid; grid-template-columns: 200px 1fr auto; gap: 18px; padding: 16px; margin-bottom: 14px; align-items: stretch; }
.hotel-thumb { border-radius: 10px; min-height: 150px; display: grid; place-items: center; color: #fff; font-size: 34px; font-weight: 800; }
.stars { color: #f5a623; font-size: 14px; letter-spacing: 1px; }
.amenity { display: inline-block; font-size: 12px; background: #eef3ff; color: var(--brand); border-radius: 6px; padding: 2px 8px; margin: 2px 4px 2px 0; }
.rating-pill { background: var(--success); color: #fff; font-weight: 700; border-radius: 8px; padding: 3px 8px; font-size: 13px; display: inline-block; }
.hotel-price { text-align: right; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; }
.room-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 10px; margin-top: 10px; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pkg-card { overflow: hidden; cursor: pointer; transition: transform .1s ease, box-shadow .15s ease; }
.pkg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pkg-banner { height: 150px; display: grid; place-items: center; color: #fff; font-size: 40px; }
.pill { display:inline-block; font-size:12px; font-weight:700; background:#fff4ec; color:var(--accent); border-radius:999px; padding:3px 10px; }
.seg-tabs { display:flex; gap:6px; }
.seg-tabs a { padding:8px 16px; border-radius:999px; font-weight:700; color:var(--muted); }
.seg-tabs a.active { background:var(--brand); color:#fff; }

/* ===== B2C homepage marketing sections ===== */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 8px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.trust-item .ti-ic { font-size: 24px; }
.trust-item b { display: block; color: var(--brand); }
.trust-item span { font-size: 13px; color: var(--muted); }

.sec-title { text-align: center; color: var(--brand); font-weight: 800; font-size: 22px; margin: 36px 0 6px; }
.sec-title::after { content: ''; display: block; width: 54px; height: 3px; background: var(--accent); margin: 8px auto 0; border-radius: 2px; }

.best-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.best-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform .1s, box-shadow .15s; }
.best-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.best-thumb { height: 110px; display: grid; place-items: center; color: #fff; font-size: 34px; }
.best-card .bc-body { padding: 12px; }
.best-card .bc-route { font-weight: 700; font-size: 15px; }
.best-card .bc-price { color: var(--accent, #0a66ff); font-weight: 800; font-size: 14px; margin: 3px 0 2px; }
.best-card .bc-btn { display: block; text-align: center; margin-top: 8px; background: #eef3ff; color: var(--brand); font-weight: 700; padding: 7px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.best-card .bc-btn:hover { background: var(--brand); color: #fff; }

.routes-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.routes-2col h3 { color: var(--accent); font-weight: 800; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.route-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-top: 10px; }
.route-row .rr-path { flex: 1; }
.route-row .rr-path b { color: var(--text); }
.rr-thumb { width: 40px; height: 40px; border-radius: 8px; flex: 0 0 auto; background: #e5edf7 center/cover no-repeat; }
.route-row .rr-btn { background: var(--accent); color: #fff; font-weight: 700; border: none; border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.route-row .rr-btn:hover { filter: brightness(.95); }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 18px; }
.why-item { text-align: center; padding: 18px; }
.why-item .wi-ic { font-size: 32px; }
.why-item h4 { color: var(--brand); margin: 8px 0 4px; }
.why-item p { color: var(--muted); font-size: 13px; margin: 0; }

.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, #bfe3ff, #e8f3ff); border-radius: 14px; padding: 22px 26px; margin: 36px 0; }
.newsletter h3 { margin: 0; color: #0747b3; }
.newsletter .nl-form { display: flex; gap: 8px; flex: 1; min-width: 280px; max-width: 460px; }
.newsletter input { flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }

.site-footer { background: #142033; color: #cdd7ea; margin-top: 40px; }
.site-footer .sf-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; padding: 22px 20px; border-bottom: 1px solid #243049; }
.site-footer .sf-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; max-width: 1180px; margin: 0 auto; padding: 28px 20px; }
.site-footer h5 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.site-footer a { display: block; color: #aebbd2; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .sf-bottom { text-align: center; padding: 14px; border-top: 1px solid #243049; color: #8090ab; font-size: 13px; }
.sf-trust { display: flex; align-items: center; gap: 10px; font-size: 13px; }

@media (max-width: 900px) {
  .trust-strip, .best-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .routes-2col, .site-footer .sf-cols, .site-footer .sf-top { grid-template-columns: 1fr; }
}

/* ===== Responsive ===== */
/* ---- Responsive ---- */
@media (max-width: 900px) {
  .results-layout { grid-template-columns: 1fr; }
  .results-layout .filters { display: none; }   /* replaced by the landscape #mFilterBar on mobile */
  .flight-card { grid-template-columns: 1fr; text-align: left; }
  .price-col { text-align: left; }
  .dash { grid-template-columns: 1fr; }
  .sidebar { display: flex; gap: 6px; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); }
  /* Header wraps; the menu becomes a horizontal swipeable strip so every item stays reachable */
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 8px 14px; gap: 8px 12px; }
  .nav-spacer { display: none; }
  .nav-links { order: 5; width: 100%; margin-left: 0; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .nav-links a { white-space: nowrap; padding: 6px 10px; }
}

/* ---- Phones: stack the flight search so From / To / dates align full-width ---- */
@media (max-width: 720px) {
  .hero { padding: 30px 18px 64px; }
  .hero h1 { font-size: 26px; line-height: 1.18; }
  .hero p { font-size: 15px; }
  .search-card { margin: -44px 12px 0; padding: 16px; border-radius: 14px; }
  .trip-tabs { flex-wrap: wrap; }
  .search-fields { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-fields .field,
  .search-fields .field-ap,
  .search-fields .field-date { flex: 1 1 auto; min-width: 0; width: 100%; }
  .search-fields > button[type="submit"] { width: 100%; min-width: 0; }
  /* Swap becomes a small circular control centered between From and To (arrows turn vertical) */
  .swap-btn { align-self: center; width: 40px; height: 40px; border-radius: 999px; transform: rotate(90deg); margin: -2px 0; box-shadow: 0 2px 8px rgba(16,24,40,.12); }
}

/* ---- Mobile airport picker overlay (tap From/To -> list, no forced keyboard) ---- */
.ac-mobile { position: fixed; inset: 0; z-index: 9999; background: #fff; display: flex; flex-direction: column; }
.ac-mbar { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--border); align-items: center; }
.ac-msearch { flex: 1; height: 44px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; font-size: 16px; }
.ac-mclose { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 18px; cursor: pointer; }
.ac-mlist { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ac-mlist .ac-item { display: grid; grid-template-columns: 54px 1fr; gap: 0 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.ac-mlist .ac-code { grid-row: 1 / 3; font-weight: 700; font-size: 13px; background: #eef2ff; color: #3730a3; border-radius: 6px; text-align: center; padding: 8px 0; }
.ac-mlist .ac-city { font-size: 15px; font-weight: 600; color: #0f172a; }
.ac-mlist .ac-name { font-size: 12px; color: #94a3b8; }
.ac-mlist .ac-empty { padding: 16px; color: #94a3b8; }

/* ---- Mobile landscape filter bar for search results (Stops / Airlines / Fare type / Departure) ---- */
#mFilterBar { display: none; }
@media (max-width: 900px) {
  #mFilterBar { display: block; margin: 0 0 10px; }
  .mf-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .mf-lbl { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
  .mf-chip, .mf-pill { flex: 0 0 auto; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; color: var(--text); }
  .mf-chip.on, .mf-pill.on { background: #eef3ff; color: var(--brand); border-color: var(--brand); }
  .mf-panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; margin-top: 8px; max-height: 280px; overflow-y: auto; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
  .mf-opt { display: block; padding: 9px 4px; font-size: 14px; border-bottom: 1px solid #f1f5f9; }
  .mf-opt:last-child { border-bottom: none; }
}
