:root {
    --primary: #0b5fff;
    --primary-dark: #0947c4;
    --primary-light: #eef3ff;
    --accent: #ff8a00;
    --success: #1a9c5e;
    --error: #d64545;
    --bg: #f4f6fb;
    --card: #ffffff;
    --text: #1b2430;
    --muted: #647089;
    --border: #e2e6f0;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(20,30,60,0.06);
    --shadow-md: 0 6px 20px rgba(20,30,60,0.08);
    --shadow-lg: 0 12px 32px rgba(11,95,255,0.14);
    --ease: cubic-bezier(.2,.7,.3,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
@media (max-width: 480px) {
    html { font-size: 18px; }
}
body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary); text-decoration: none; transition: color .15s var(--ease); }
a:hover { text-decoration: underline; }

/* Custom scrollbar for a more polished feel */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c7cfdd; border-radius: 20px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #a9b4c8; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.site-header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); }
.brand:hover { text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a { color: var(--text); font-weight: 500; }
.btn-nav { background: var(--primary); color: #fff !important; padding: 8px 16px; border-radius: 8px; }
.btn-nav:hover { background: var(--primary-dark); text-decoration: none; }
.nav-user { color: var(--muted); font-size: 0.9rem; }

.main-content { padding: 30px 20px 60px; min-height: 60vh; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; }
.alert-error { background: #fdeaea; color: var(--error); border: 1px solid #f6c6c6; }
.alert-success { background: #e8f8f0; color: var(--success); border: 1px solid #b9e8cf; }

.hero {
    background: linear-gradient(165deg, #0b3fa0 0%, #1660d6 28%, #2f86e8 55%, #6fb3f0 80%, #bfe0f8 100%);
    border-radius: 18px;
    padding: 44px 34px;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 50%;
    filter: blur(16px);
    pointer-events: none;
}
.hero::before {
    width: 130px; height: 46px; bottom: -6px; left: 6%; opacity: 0.4;
    box-shadow: 100px 16px 0 -8px rgba(255,255,255,0.35), 190px -4px 0 -12px rgba(255,255,255,0.3), 40px -18px 0 -14px rgba(255,255,255,0.3);
}
.hero::after {
    width: 170px; height: 56px; bottom: -14px; right: 8%; opacity: 0.32;
    box-shadow: -110px 12px 0 -10px rgba(255,255,255,0.3), -50px -20px 0 -14px rgba(255,255,255,0.28);
}
.hero h1 { margin: 0 0 8px; font-size: 1.9rem; letter-spacing: -0.01em; position: relative; z-index: 1; text-shadow: 0 2px 10px rgba(11,63,160,0.35); }
.hero p { margin: 0; opacity: 0.95; position: relative; z-index: 1; text-shadow: 0 1px 6px rgba(11,63,160,0.3); }
.hero-green {
    background: linear-gradient(135deg, #0d8a52 0%, #0a6b3f 100%);
    background-image:
        radial-gradient(circle at 92% -10%, rgba(255,255,255,0.16) 0%, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(255,255,255,0.10) 0%, transparent 40%),
        linear-gradient(135deg, #14a866 0%, #0a6b3f 100%);
    box-shadow: 0 12px 32px rgba(10,107,63,0.28);
}

/* Search-summary bar shown at the top of results pages */
.search-summary-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: linear-gradient(120deg, #033C48 0%, #045566 52%, #057a91 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 18px 26px;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(10,25,60,0.3);
    overflow: hidden;
}
.search-summary-bar::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -8%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, transparent 70%);
    pointer-events: none;
}
.search-summary-bar::after {
    content: '';
    position: absolute;
    bottom: -70%;
    left: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,176,32,0.14) 0%, transparent 70%);
    pointer-events: none;
}
.search-summary-bar .ssb-item { position: relative; padding: 4px 22px; }
.search-summary-bar .ssb-item:first-child { padding-left: 0; }
.search-summary-bar .ssb-item:last-child { padding-right: 0; }
.search-summary-bar .ssb-route { display: flex; align-items: center; gap: 12px; }
.search-summary-bar .ssb-route .plane { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.search-summary-bar .ssb-route .plane svg { transform: rotate(-45deg); }
.search-summary-bar .ssb-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75; margin-bottom: 2px; }
.search-summary-bar .ssb-value { font-size: 0.98rem; font-weight: 800; white-space: nowrap; }
.search-summary-bar .ssb-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,0.3); }
@media (max-width: 900px) {
    .search-summary-bar { padding: 14px; }
    .search-summary-bar .ssb-item { padding: 6px 14px; }
    .search-summary-bar .ssb-divider { display: none; }
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
a.card:hover, .card.hoverable:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #d3ddf2;
    text-decoration: none;
}

.search-form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }
.search-form .field { display: flex; flex-direction: column; gap: 4px; }
.search-form label { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.field-radios { grid-column: 1 / -1; display: flex; gap: 20px; margin-bottom: 4px; flex-wrap: wrap; }
.field-radios label { text-transform: none; font-size: 0.9rem; color: var(--text); display: flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }

input, select, textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    background: #fff;
    color: var(--text);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: #c7cfdd; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,95,255,0.14); }

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background .15s var(--ease), transform .12s var(--ease), box-shadow .15s var(--ease);
    box-shadow: 0 1px 2px rgba(11,95,255,0.15);
}
.btn:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11,95,255,0.28); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(11,95,255,0.15); }
.btn-secondary { background: #fff; color: var(--primary); border: 1px solid var(--primary); box-shadow: none; }
.btn-secondary:hover { background: var(--primary-light); box-shadow: none; }
.btn-danger { background: var(--error); box-shadow: 0 1px 2px rgba(214,69,69,0.2); }
.btn-danger:hover { background: #b73434; box-shadow: 0 6px 16px rgba(214,69,69,0.3); }
.btn-dark { background: #0b1f3a; box-shadow: 0 1px 2px rgba(11,31,58,0.25); }
.btn-dark:hover { background: #142c50; box-shadow: 0 6px 16px rgba(11,31,58,0.3); }
.btn-success { background: var(--success); box-shadow: 0 1px 2px rgba(24,163,109,0.2); }
.btn-success:hover { background: #128a5b; box-shadow: 0 6px 16px rgba(24,163,109,0.3); }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; padding: 0; font: inherit; }
.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.section-title { font-size: 1.25rem; font-weight: 800; margin: 10px 0 18px; letter-spacing: -0.01em; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab { padding: 8px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--border); cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.date-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
@media (max-width: 720px) { .date-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .date-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .date-tabs > *:first-child { display: none; } }
.date-tab { display: block; text-align: center; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--border); background: #fff; text-decoration: none; color: var(--text); transition: all .18s var(--ease); box-shadow: 0 1px 3px rgba(20,30,60,0.05); }
.date-tab:hover { border-color: #b6cdf7; text-decoration: none; transform: translateY(-3px); box-shadow: 0 8px 18px rgba(20,30,60,0.1); }
.date-tab .dow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: 0.03em; }
.date-tab .dnum { font-size: 0.95rem; font-weight: 800; margin: 3px 0; }
.date-tab .dfare { font-size: 0.82rem; font-weight: 700; color: var(--primary-dark); }
.date-tab .dfare.none { color: var(--muted); font-weight: 500; }
.date-tab .dfare.dfare-loading { color: var(--muted); font-weight: 500; opacity: 0.6; animation: dfare-pulse 1.2s ease-in-out infinite; }
@keyframes dfare-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.8; } }
.date-tab.active { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-color: var(--primary-dark); box-shadow: 0 8px 20px rgba(11,95,255,0.32); transform: translateY(-1px); }
.date-tab.active:hover { transform: translateY(-3px); }
.date-tab.active .dow, .date-tab.active .dnum, .date-tab.active .dfare { color: #fff; }

/* Airline / results filter bar */
.filter-bar { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; align-items: stretch; }
.filter-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: 1 1 0; min-width: 108px; padding: 10px 14px; border-radius: var(--radius); border: 2px solid var(--border); background: #fff; cursor: pointer; text-align: center; transition: all .15s var(--ease); }
.filter-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.filter-card.active { border-color: var(--primary); background: var(--primary-light); }
.filter-card .filter-icon { width: 30px; height: 30px; border-radius: 50%; background: #eef3ff; color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; }
.filter-card .filter-label { font-size: 0.8rem; font-weight: 700; }
.filter-card .filter-price { font-size: 0.85rem; font-weight: 800; color: var(--success); }
.filter-card.all .filter-icon { background: var(--primary); color: #fff; }
.results-count { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }

/* Results page: flight list + right-hand filter panel */
.results-layout { display: flex; align-items: flex-start; gap: 20px; }
.results-list { flex: 1 1 0; min-width: 0; }
.filter-panel { flex: 0 0 280px; width: 280px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 26px rgba(20,30,60,0.1); position: sticky; top: 20px; order: -1; }
.fp-topbar { background: linear-gradient(120deg, #033C48 0%, #045566 100%); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.9rem; }
.fp-topbar .btn-modify { background: linear-gradient(135deg, #ffb020 0%, var(--accent) 100%); color: #fff; border: none; padding: 7px 13px; border-radius: 7px; font-size: 0.78rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(232,150,31,0.3); text-decoration: none; }
.fp-toggle { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 11px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; cursor: pointer; user-select: none; }
.fp-toggle .chev { transition: transform .15s; }
.fp-toggle.collapsed .chev { transform: rotate(-90deg); }
.fp-body { background: #fff; border: 1px solid var(--border); border-top: none; padding: 18px; }
.fp-reset-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.fp-reset-row strong { font-size: 0.85rem; }
.btn-reset { background: none; border: 1px solid var(--border); color: var(--primary-dark); padding: 5px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: all .15s var(--ease); }
.btn-reset:hover { background: #eef3ff; border-color: #b9c9f2; }
.fp-group { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.fp-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.fp-group-title { font-size: 0.78rem; font-weight: 800; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-dark); }
.fp-price-range { position: relative; height: 32px; margin-top: 4px; }
.fp-price-range input[type="range"] { position: absolute; width: 100%; top: 12px; margin: 0; pointer-events: none; -webkit-appearance: none; appearance: none; background: none; }
.fp-price-range input[type="range"]::-webkit-slider-thumb { pointer-events: all; -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--primary); cursor: pointer; }
.fp-price-range input[type="range"]::-moz-range-thumb { pointer-events: all; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--primary); cursor: pointer; }
.fp-price-range input[type="range"]::-webkit-slider-runnable-track { -webkit-appearance: none; height: 4px; background: transparent; }
.fp-price-track { position: absolute; top: 14px; left: 0; right: 0; height: 4px; background: var(--border); border-radius: 2px; }
.fp-price-track .fill { position: absolute; height: 4px; background: var(--primary); border-radius: 2px; }
.fp-price-values { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 700; color: var(--primary-dark); margin-top: 6px; }
.fp-time-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fp-time-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; font-size: 0.68rem; color: var(--muted); text-align: center; transition: all .15s var(--ease); }
.fp-time-opt:hover { border-color: #b9c9f2; background: #f7f9ff; }
.fp-time-opt .ic { display: flex; }
.fp-time-opt .ic svg { width: 17px; height: 17px; }
.fp-time-opt.active { border-color: var(--primary); background: linear-gradient(135deg, #eef3ff, #e4edff); color: var(--primary-dark); font-weight: 700; box-shadow: 0 2px 8px rgba(11,95,255,0.14); }
.fp-check-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; font-size: 0.85rem; cursor: pointer; transition: background .15s var(--ease); }
.fp-check-row:hover { background: #f7f9ff; }
.fp-check-row input { width: auto; margin-right: 8px; accent-color: var(--primary); }
.fp-check-row .fp-check-label { display: flex; align-items: center; }
.fp-check-row .fp-check-price { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.fp-radio-row { display: flex; align-items: center; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; font-size: 0.85rem; cursor: pointer; transition: background .15s var(--ease); }
.fp-radio-row:hover { background: #f7f9ff; }
.fp-radio-row input { width: auto; margin-right: 8px; accent-color: var(--primary); }
.fp-subgroup-title { font-size: 0.74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
.fp-text-input { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; }
.fp-text-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,95,255,0.12); }
.fp-no-match { font-size: 0.82rem; color: var(--muted); padding: 8px 0; }

/* Flight-result "View Full Details" expandable tabbed panel */
.flight-details-wrap { flex: 1 1 100%; }
.details-toggle { display: block; text-align: center; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 0.82rem; font-weight: 700; color: var(--primary); cursor: pointer; background: none; border-left: none; border-right: none; border-bottom: none; width: 100%; }
.details-toggle:hover { color: var(--primary-dark); }
.details-panel { width: 100%; margin-top: 14px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(20,30,60,0.06); }
.dtabs { display: flex; background: #033C48; }
.dtab { flex: 1; text-align: center; padding: 11px 8px; color: #9aa7bd; font-weight: 700; font-size: 0.8rem; cursor: pointer; white-space: nowrap; }
.dtab.active { background: var(--primary); color: #fff; }
.dtab-content { display: none; background: #fff; border: 1px solid var(--border); border-top: none; padding: 18px; }
.dtab-content.active { display: block; }
.dleg-card { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.dleg-card:last-child { border-bottom: none; padding-bottom: 0; }
.dleg-card:first-child { padding-top: 0; }
.dleg-col h5 { margin: 0 0 4px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 800; }
.dleg-col p { margin: 0; font-size: 0.85rem; line-height: 1.5; }
.dflight-shared-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); background: #f7f9ff; border: 1px solid #e4e9fb; border-radius: 9px; padding: 9px 14px; margin-bottom: 14px; }
.dflight-shared-info strong { color: var(--text); }
.dflight-shared-info .sep { color: var(--border); }
.dflight-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.dflight-card:last-child { margin-bottom: 0; }
.dflight-card-connecting { border-style: dashed; background: #fafbff; }
.dflight-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.dflight-route-label { font-size: 0.92rem; color: var(--text); }
.dflight-route-label strong { color: var(--primary-dark); }
.dflight-duration-label { margin-top: 2px; font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; }
.dflight-leg-badge { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 4px 11px; border-radius: 20px; white-space: nowrap; }
.dflight-leg-badge-connect { background: linear-gradient(135deg, #64748b, #334155); }
.dflight-leg-badge-fare { background: linear-gradient(135deg, #14a866, #0a6b3f); }
.dfare-rows { display: flex; flex-direction: column; }
.dfare-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; color: var(--text); }
.dfare-row span:last-child { font-weight: 700; }
.dfare-row-total { border-bottom: none; border-top: 2px solid var(--border); margin-top: 4px; padding-top: 14px; font-size: 1.05rem; }
.dfare-row-total span:last-child { font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); }
.dflight-airline-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.86rem; }
.dflight-aircraft { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 1px; }
.dflight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dflight-col h5 { margin: 0 0 3px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 800; }
.dflight-col p { margin: 0; font-size: 0.82rem; line-height: 1.4; }
.dwait-badge { display: flex; align-items: center; justify-content: center; margin: -4px 0 14px; }
.dwait-badge span { display: inline-flex; align-items: center; gap: 6px; background: #033C48; color: #fff; font-size: 0.76rem; font-weight: 700; padding: 6px 16px; border-radius: 20px; }
.dtab svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
@media (max-width: 700px) {
    .dflight-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .dleg-card { grid-template-columns: 1fr 1fr; }
    .dtabs { flex-wrap: wrap; }
    .dtab { flex: 1 1 50%; white-space: normal; font-size: 0.72rem; padding: 10px 4px; line-height: 1.3; }
}
@media (max-width: 900px) {
    .results-layout { flex-direction: column; }
    .filter-panel { width: 100%; flex-basis: auto; position: static; }
}

.flight-result { position: relative; display: block; padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgba(20,30,60,0.05); transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.flight-result::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--primary), var(--primary-dark)); opacity: 0; transition: opacity .2s var(--ease); }
.flight-result:hover { box-shadow: 0 10px 26px rgba(20,30,60,0.1); border-color: #d3ddf2; transform: translateY(-2px); }
.flight-result:hover::before { opacity: 1; }
.flight-result-unbookable { background: #fefbf3; }
.partner-fare-badge { position: absolute; top: 0; right: 0; background: linear-gradient(135deg, #ffb020, #e8961f); color: #fff; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; padding: 5px 12px; border-radius: 0 0 0 10px; }
.source-tag { position: absolute; top: 0; right: 0; background: #eef3ff; color: var(--primary-dark); font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; padding: 5px 12px; border-radius: 0 0 0 10px; }
.btn-disabled, .btn-disabled:hover { background: #e4e9f2 !important; color: var(--muted) !important; box-shadow: none !important; cursor: not-allowed; }
.flight-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-local { background: #fff2e0; color: #b5650a; }
.badge-intl { background: #e6f0ff; color: var(--primary-dark); }
.airline-avatar { width: 52px; height: 52px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.airline-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 2px; box-sizing: border-box; }
.airline-avatar-fallback { width: 100%; height: 100%; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-size: 0.92rem; font-weight: 800; letter-spacing: 0.02em; align-items: center; justify-content: center; }

/* Flight result card (One Way / Round Trip / Multi-City) — shared layout:
   airline+price header, one route-timeline section per leg, badges+Select
   footer. See render_flight_result_card() in includes/functions.php. */
.frc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.frc-airline { display: flex; align-items: center; gap: 10px; }
.frc-airline-name { font-weight: 700; font-size: 0.95rem; }
.frc-flightno { font-size: 0.8rem; color: var(--muted); }
.frc-price { text-align: right; }
.frc-amount { font-size: 1.35rem; font-weight: 800; color: var(--text); white-space: nowrap; }
.frc-pricesub { font-size: 0.75rem; color: var(--muted); }
.frc-source { font-size: 0.72rem; color: var(--muted); }
.frc-legs { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.frc-leg { flex: 1 1 260px; min-width: 220px; }
.frc-legs:has(.frc-leg:nth-child(2)):not(:has(.frc-leg:nth-child(3))) .frc-leg:not(:first-child) { border-left: 1px solid var(--border); padding-left: 20px; }
.frc-leg-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 8px; }
.frc-leg-route { display: flex; align-items: center; gap: 10px; }
.frc-leg-time-block { min-width: 0; }
.frc-leg-time-block-end { text-align: right; }
.frc-leg-time { font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.frc-plusday { font-size: 0.68rem; font-weight: 700; color: var(--muted); }
.frc-leg-code { font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.frc-leg-time-block-end .frc-leg-code { margin-left: auto; }
.frc-leg-mid { flex: 1 1 90px; min-width: 70px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.frc-leg-duration { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.frc-leg-line { display: flex; align-items: center; width: 100%; gap: 0; }
.frc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.frc-line { flex: 1; height: 1px; background: var(--border); }
.frc-arrow { color: var(--muted); font-size: 0.7rem; flex-shrink: 0; padding: 0 2px; }
.frc-leg-stops { font-size: 0.72rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.frc-leg-stops.frc-nonstop { color: var(--success); }
.frc-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.frc-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.frc-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 600; color: var(--text); background: #f3f5fa; border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; white-space: nowrap; }
.frc-badge-green { background: #e9f8f0; border-color: #cdeedd; color: #0a7a45; }
.frc-badge-blue { background: #eaf1ff; border-color: #cfe0ff; color: var(--primary-dark); }
.frc-badge-muted { background: #f3f5fa; border-color: var(--border); color: var(--muted); }
.frc-actions { display: flex; align-items: center; gap: 16px; }
@media (max-width: 600px) { .frc-actions { flex: 1 1 100%; justify-content: space-between; } }
.frc-details-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; padding: 0; margin: 0; width: auto; font-size: 0.84rem; font-weight: 700; color: var(--primary); cursor: pointer; }
.frc-details-btn:hover { color: var(--primary-dark); }
.frc-details-btn svg { transition: transform .15s var(--ease); }
.frc-details-btn.frc-details-open svg { transform: rotate(180deg); }
.frc-select-btn { display: inline-flex; align-items: center; gap: 8px; background: #033C48; color: #fff; border: none; border-radius: 10px; padding: 11px 20px; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background .15s var(--ease); white-space: nowrap; }
.frc-select-btn:hover { background: #022a33; }
.frc-select-btn-disabled, .frc-select-btn-disabled:hover { background: #e4e9f2; color: var(--muted); cursor: not-allowed; }

.summary-box { background: #f8faff; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: var(--radius); padding: 20px; position: sticky; top: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.92rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 1.15rem; color: var(--primary-dark); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cp-top-grid { align-items: stretch; grid-template-columns: minmax(240px, 300px) 1fr; gap: 20px; }
.booking-layout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.passenger-name-grid { display: grid; grid-template-columns: 130px minmax(0, 1.6fr) minmax(0, 1.6fr); gap: 16px; }

/* Booking flow: step progress indicator */
.stepper { display: flex; align-items: flex-start; margin: 4px 0 28px; }
.stepper-step { display: flex; flex-direction: column; align-items: center; flex: 1; text-align: center; position: relative; }
.stepper-step .dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem; margin-bottom: 8px; transition: all .15s; }
.stepper-step .label { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.stepper-step .line { position: absolute; top: 17px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.stepper-step:last-child .line { display: none; }
.stepper-step.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.stepper-step.done .line { background: var(--success); }
.stepper-step.done .label { color: var(--success); }
.stepper-step.active .dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px #e6f0ff; }
.stepper-step.active .label { color: var(--primary-dark); }
.stepper-step .dot, .stepper-step .label { position: relative; z-index: 1; }

/* Card section header with an accent icon */
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.card-header .icon-circle, .pg-row-head .icon-circle { width: 34px; height: 34px; border-radius: 50%; background: #eef3ff; color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }

.card-tint-green { background: #f2faf6; border-color: #d3ecdf; }
.card-tint-green .card-header { border-bottom-color: #d3ecdf; }
.card-tint-purple { background: #faf7ff; border-color: #e6dcf7; }
.card-tint-purple .card-header { border-bottom-color: #e6dcf7; }
.card-header h3 { margin: 0; font-size: 1.05rem; }
.card-header .hint { margin-left: auto; font-size: 0.78rem; color: var(--muted); font-weight: 500; }

/* Admin > Suppliers on/off switch */
.supplier-toggle-row { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--text); }
.supplier-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.supplier-switch input { opacity: 0; width: 0; height: 0; }
.supplier-switch-track { position: absolute; inset: 0; background: #d7dce6; border-radius: 999px; transition: background .15s var(--ease); }
.supplier-switch-track::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.supplier-switch input:checked + .supplier-switch-track { background: var(--success); }
.supplier-switch input:checked + .supplier-switch-track::before { transform: translateX(18px); }
.supplier-key-set { color: var(--success); font-weight: 600; font-size: 0.78rem; text-transform: none; letter-spacing: normal; margin-left: 6px; }
.supplier-key-missing { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: none; letter-spacing: normal; margin-left: 6px; }
.supplier-toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Payment Gateways: one full-width row per method, stacked line-by-line
   (replaces the old 2-column card grid so each method reads top-to-bottom
   as a single coherent unit: icon+title+toggle, then its own fields). */
.pg-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px; font-size: 0.82rem; margin-bottom: 20px; }
.pg-summary-sep { color: var(--border); }
.pg-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }
.pg-dot-blue { background: var(--primary); }
.pg-dot-green { background: var(--success); }
.pg-dot-grey { background: var(--muted); }
.pg-list { display: flex; flex-direction: column; gap: 16px; }
.pg-row { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.pg-row-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.pg-row-title { flex: 1; min-width: 0; }
.pg-row-title h3 { margin: 0; font-size: 1.05rem; }
.pg-row-title .hint { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.pg-row-toggle { flex-shrink: 0; }
.pg-row-body { display: block; }
.pg-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin-bottom: 16px; }
@media (max-width: 700px) {
    .pg-row-head { flex-wrap: wrap; }
    .pg-row-toggle { width: 100%; order: 3; }
    .pg-field-grid { grid-template-columns: 1fr; }
}

.lookup-result-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; font-size: 0.88rem; }
.lookup-result-grid .hint { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 600; }
@media (max-width: 700px) { .lookup-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Suppliers directory */
.badge-pill { display: inline-block; background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); }
.supplier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.supplier-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: relative; transition: box-shadow .15s var(--ease), opacity .15s var(--ease); cursor: grab; }
.supplier-card.dragging { opacity: 0.4; }
.supplier-card-drag { position: absolute; top: 10px; right: 10px; color: var(--border); font-size: 0.9rem; letter-spacing: -2px; }
.supplier-card-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.supplier-card-icon { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #033C48, #057a91); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.supplier-card-name { font-weight: 700; font-size: 0.95rem; }
.supplier-card-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.supplier-card-desc { color: var(--muted); font-size: 0.8rem; min-height: 48px; margin: 0 0 12px; }
.supplier-card-actions { display: flex; gap: 8px; }
@media (max-width: 480px) { .supplier-grid { grid-template-columns: 1fr; } }

/* Bookings list (Flights/Hotels) */
.bk-breadcrumb { color: var(--muted); font-size: 0.82rem; margin-bottom: 4px; }
.bk-breadcrumb strong { color: var(--text); }
.bk-toolbar-card { padding: 16px 18px; margin-bottom: 16px; }
.bk-toolbar-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bk-toolbar-title .hint { margin-left: 8px; }
.bk-icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; }
.bk-icon-btn:hover { background: var(--bg); text-decoration: none; }
.bk-toolbar-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bk-toolbar-filters select { width: auto; flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; background: #fff; }
.bk-toolbar-filters .btn { width: auto; flex: 0 0 auto; }
.bk-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; flex: 1 1 220px; min-width: 160px; }
.bk-search input { width: auto; border: none; outline: none; flex: 1; font-size: 0.85rem; }
@media (max-width: 700px) { .bk-toolbar-filters select, .bk-toolbar-filters .btn { flex: 1 1 auto; } }
.bk-ref { font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.bk-copy-btn { background: none; border: none; cursor: pointer; opacity: 0.6; font-size: 0.8rem; }
.bk-copy-btn:hover { opacity: 1; }
.bk-module { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.bk-module-icon { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #033C48, #057a91); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.bk-earned { color: var(--success); font-size: 0.78rem; font-weight: 600; }
.bk-customer { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.bk-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #ffb020, var(--accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; flex-shrink: 0; }
.bk-table td { vertical-align: middle; }
@media (max-width: 900px) { .bk-toolbar-top { flex-direction: column; align-items: flex-start; gap: 8px; } }

.bkd-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.bkd-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bkd-live-badge { display: inline-flex; align-items: center; gap: 5px; background: #e8f8f0; color: var(--success); border-radius: 20px; padding: 3px 10px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.03em; }
.bkd-live-local { background: #e6f0ff; color: var(--primary-dark); }
.bkd-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }
.bkd-status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.bkd-status-group { display: flex; align-items: center; gap: 8px; }
.bkd-status-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.bkd-status-sep { color: var(--border); }
.bkd-card-title { margin: 0 0 14px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.bkd-detail-list { display: flex; flex-direction: column; }
.bkd-detail-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.bkd-detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.bkd-detail-row span { color: var(--muted); }
.bkd-earn { color: var(--success) !important; }
.bkd-rate-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.bkd-rate-title { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 10px; }
.bkd-rate-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; font-size: 0.85rem; }
.bkd-rate-pill { background: #e6f0ff; color: var(--primary-dark); border-radius: 20px; padding: 3px 10px; font-size: 0.72rem; font-weight: 700; }
.bkd-rate-pill-warn { background: #fdeaea; color: var(--error); }
.bkd-itinerary { display: flex; flex-direction: column; }
.bkd-itin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.bkd-itin-row:last-child { border-bottom: none; padding-bottom: 0; }

.bkd-hold-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff8e6; border: 1px solid #f3d98b; border-left: 4px solid #d99b0a; border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; }
.bkd-hold-banner-expired { background: #fdeaea; border-color: #f3b8b8; border-left-color: var(--error); }
.bkd-hold-left { display: flex; align-items: center; gap: 14px; }
.bkd-hold-pill { display: inline-flex; align-items: center; gap: 4px; background: #d99b0a; color: #fff; border-radius: 20px; padding: 3px 10px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.03em; white-space: nowrap; }
.bkd-hold-banner-expired .bkd-hold-pill { background: var(--error); }
.bkd-hold-actions { display: flex; gap: 8px; flex-shrink: 0; }
.bkd-timeline { display: flex; flex-direction: column; }
.bkd-timeline-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.bkd-timeline-row:last-child { border-bottom: none; padding-bottom: 0; }
.bkd-timeline-dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-top: 5px; }
@media (max-width: 700px) { .bkd-header { flex-direction: column; } .bkd-detail-row, .bkd-rate-row { flex-direction: column; align-items: flex-start; gap: 2px; } .bkd-hold-banner { flex-direction: column; align-items: flex-start; } }

.mb-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.mb-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 16px; }
.mb-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mb-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--border); text-decoration: none; }
.mb-tab:hover { text-decoration: none; color: var(--text); }
.mb-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.mb-tab.active .badge-pill { background: rgba(255,255,255,0.25); color: #fff; border-color: transparent; }
.mb-list { display: flex; flex-direction: column; gap: 14px; }
.mb-card { padding: 0; overflow: hidden; }
.mb-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; }
.mb-card-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.mb-card-route { font-size: 1.15rem; font-weight: 800; margin-bottom: 2px; }
.mb-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg); }
.mb-hold-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff8e6; border-bottom: 1px solid #f3d98b; padding: 10px 20px; font-size: 0.85rem; }
.mb-hold-banner-expired { background: #fdeaea; border-bottom-color: #f3b8b8; }
@media (max-width: 700px) { .mb-topbar { flex-direction: column; } .mb-card-top, .mb-card-bottom { flex-direction: column; align-items: flex-start; } .mb-card-bottom .btn { width: 100%; } }

.profile-photo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.profile-photo-preview { width: 76px; height: 76px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; position: relative; }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-photo-preview .avatar-fallback { position: absolute; inset: 0; align-items: center; justify-content: center; }
.profile-photo-actions form { display: inline; }
.profile-photo-hint { margin: 6px 0 0; font-size: 0.78rem; color: var(--muted); }

.divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

.passenger-block { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px 22px; margin-bottom: 16px; background: #fff; }
.passenger-block-header { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.passenger-block-header .num { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #14a866 0%, #0a6b3f 100%); color: #fff; font-size: 0.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.passenger-block-header h4 { margin: 0; font-size: 0.98rem; }
.passenger-block .field { margin-bottom: 2px; }
.passenger-block .field label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 7px; }

/* Identity / Travel Document sub-sections inside a passenger block */
.pax-section { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--border); }
.pax-section:first-of-type { padding-top: 0; margin-top: 0; border-top: none; }
.pax-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pax-section-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.pax-section-icon.pax-icon-identity { background: #0f1b33; color: #fff; }
.pax-section-icon.pax-icon-document { background: #fbe6b8; color: #9a6a0a; }
.pax-section-head h5 { margin: 0; font-size: 0.92rem; }
.pax-section-head p { margin: 1px 0 0; font-size: 0.76rem; color: var(--muted); }

.passport-upload-wrap { margin-bottom: 16px; }
.passport-dropzone { display: flex; align-items: center; gap: 14px; border: 1.5px dashed #e7d3a0; border-radius: var(--radius); padding: 16px; background: #fdfaf3; cursor: pointer; transition: all .18s var(--ease); }
.passport-dropzone:hover, .passport-dropzone.drag-over { border-color: #cf9e2f; background: #fbf3e0; }
.passport-dropzone .pdz-icon { width: 42px; height: 42px; border-radius: 10px; background: #fbe6b8; color: #9a6a0a; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.passport-dropzone .pdz-text { flex: 1; min-width: 0; }
.passport-dropzone .pdz-text strong { display: block; font-size: 0.88rem; }
.passport-dropzone .pdz-text span { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.passport-dropzone .btn { flex-shrink: 0; white-space: nowrap; }
.pdz-status { font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.pdz-status.status-busy { color: var(--accent); }
.pdz-status.status-ok { color: var(--success); }
.pdz-status.status-err { color: var(--error); }

.passport-uploaded-row { display: flex; align-items: center; gap: 12px; border: 1.5px solid #cdeadb; border-radius: var(--radius); padding: 12px 16px; background: #f2fbf6; }
.passport-uploaded-row.is-busy { opacity: 0.75; pointer-events: none; }
.pdz-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); background: #fff; }
.pdz-uploaded-info { flex: 1; min-width: 0; }
.pdz-uploaded-title { display: block; color: var(--success); font-size: 0.88rem; }
.pdz-filename { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdz-uploaded-row .pdz-status { display: block; margin-top: 2px; }
.pdz-uploaded-actions { display: flex; gap: 12px; flex-shrink: 0; white-space: nowrap; }
.pdz-uploaded-actions button { background: none; border: none; padding: 0; font-size: 0.82rem; font-weight: 600; color: var(--primary); cursor: pointer; }
.pdz-uploaded-actions .pdz-remove-link { color: var(--error); }

/* Trip summary sidebar card */
.trip-summary-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.trip-summary-header .plane-icon { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.trip-leg { padding: 12px 0; }
.trip-leg:not(:last-child) { border-bottom: 1px dashed var(--border); }
.trip-leg .leg-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 4px; }
.trip-leg .leg-route { font-weight: 700; }
.trip-leg .leg-time { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

/* Rich Trip Summary sidebar card (booking / multi-city / payment pages) */
.summary-box-v2 { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; padding: 0; position: sticky; top: 20px; background: #fff; box-shadow: var(--shadow-md); }
.ts-header { background: linear-gradient(135deg, #16264a 0%, #0a1730 100%); color: #fff; padding: 22px 24px; display: flex; align-items: center; gap: 14px; }
.ts-header-icon { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, #14a866 0%, #0a6b3f 100%); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.ts-header h3 { margin: 0; font-size: 1.08rem; }
.ts-header p { margin: 3px 0 0; font-size: 0.78rem; color: rgba(255,255,255,0.62); }
.ts-ref { margin-left: auto; text-align: right; flex-shrink: 0; }
.ts-ref span { display: block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.5); }
.ts-ref strong { font-size: 0.86rem; letter-spacing: 0.03em; }
.ts-hold-alert { background: #fff6e6; color: #9a6a0a; font-size: 0.8rem; font-weight: 600; padding: 12px 24px; border-bottom: 1px solid #f2e0b3; }
.ts-hold-alert strong { font-weight: 800; }
.ts-body { padding: 24px 24px 26px; }

/* v2 header + route block for render_trip_summary_card (plain white header, teal info bar, stacked route points) */
.ts2-header { background: #fff; color: var(--text); padding: 20px 24px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ts2-header h3 { margin: 0; font-size: 1.08rem; width: 100%; }
.ts2-header p { margin: 0; font-size: 0.78rem; color: var(--muted); }
.ts2-header .ts-ref { margin-left: auto; }
.ts2-header .ts-ref span { color: var(--muted); }
.ts2-header .ts-ref strong { color: var(--text); }
.ts2-leg { padding: 18px 0; }
.ts2-leg:first-child { padding-top: 0; }
.ts2-leg:not(:last-child) { border-bottom: 1px dashed var(--border); margin-bottom: 4px; }
.ts2-info-bar { position: relative; display: flex; justify-content: space-between; align-items: center; background: #f2f9f8; border-radius: 8px; padding: 10px 14px 10px 18px; margin-bottom: 14px; overflow: hidden; }
.ts2-info-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #0d8a7e; }
.ts2-info-bar strong { font-size: 0.95rem; letter-spacing: 0.01em; color: var(--text); }
.ts2-info-label { display: block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #0d8a7e; margin-bottom: 2px; }
.ts2-info-label-muted { color: var(--muted); }
.ts2-info-right { text-align: right; }
.ts2-arrow { opacity: 0.7; }
.ts2-route-date-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.ts2-stop-pill { font-size: 0.66rem; font-weight: 700; padding: 3px 10px; border-radius: 10px; background: #f1f4fa; color: var(--muted); }
.ts2-stop-pill-direct { background: #e3f5ec; color: #0a6b3f; }
.ts2-stop-cities { font-size: 0.68rem; color: var(--muted); margin: -8px 0 12px; }
.ts2-route-point { display: flex; align-items: center; gap: 10px; }
.ts2-route-point div { display: flex; flex-direction: column; }
.ts2-airport-name { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.ts2-time { font-size: 1.1rem; }
.ts2-dot { width: 11px; height: 11px; border-radius: 50%; background: #0d8a7e; box-shadow: 0 0 0 3px rgba(13,138,126,0.18); flex-shrink: 0; }
.ts2-dot-end { background: #e8961f; box-shadow: 0 0 0 3px rgba(232,150,31,0.18); }
.ts2-travel-time { font-size: 0.72rem; color: var(--muted); font-weight: 600; margin: 8px 0 8px 20px; padding-left: 11px; border-left: 2px dashed var(--border); }
.ts2-airline-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.ts2-airline-row strong { display: block; font-size: 0.88rem; }
.ts2-airline-row .hint { font-size: 0.72rem; }
.ts2-pax-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.ts2-pax-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.ts2-pax-row { display: flex; align-items: flex-start; gap: 10px; }
.ts2-pax-avatar { width: 30px; height: 30px; border-radius: 50%; background: #e3f5ec; color: #0a6b3f; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.ts2-pax-info { flex: 1; }
.ts2-pax-info strong { display: block; font-size: 0.88rem; margin-bottom: 6px; }
.ts2-pax-type { font-size: 0.76rem; white-space: nowrap; }
.ts2-fare-details { margin-top: 18px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ts2-fare-toggle { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 700; font-size: 0.86rem; cursor: pointer; user-select: none; background: #f8faf9; }
.ts2-fare-chevron { font-size: 0.6rem; color: var(--muted); transition: transform .15s var(--ease); }
.ts2-fare-body { padding: 4px 14px 14px; }
.ts2-fare-details:not(.open) .ts2-fare-body { display: none; }
.ts2-fare-details:not(.open) .ts2-fare-chevron { transform: rotate(180deg); }
.ts2-fare-sublabel { display: block; font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 10px 0 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.ts2-total-label { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.ts2-total-note { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.ts-trip-total { display: flex; justify-content: space-between; align-items: center; background: #f6f8fc; border-radius: 8px; padding: 11px 14px; font-size: 0.8rem; font-weight: 600; color: var(--text); margin-top: 16px; }
.ts-trip-total span:first-child { color: var(--muted); font-weight: 600; }
.ts-passengers { margin-top: 18px; }
.ts-passengers-label { display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 9px; }
.ts-passenger-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-contact { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; font-size: 0.84rem; color: var(--muted); }
.ts-leg { padding: 18px 0; }
.ts-leg:first-child { padding-top: 0; }
.ts-leg:not(:last-child) { border-bottom: 1px dashed var(--border); }
.ts-leg-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 6px; }
.ts-leg-tag { font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; background: linear-gradient(135deg, #14a866, #0a6b3f); padding: 4px 10px; border-radius: 20px; }
.ts-leg-airline-row { display: flex; align-items: center; gap: 8px; }
.ts-leg-airline { font-weight: 700; font-size: 0.88rem; }
.airline-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.airline-badge img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.airline-badge-fallback { color: #fff; font-weight: 800; letter-spacing: 0.02em; border: none; }
.ts-route { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.ts-route-point { display: flex; align-items: flex-start; gap: 9px; }
.ts-route-point-end { flex-direction: row-reverse; text-align: right; }
.ts-route-point div { display: flex; flex-direction: column; line-height: 1.45; }
.ts-route-point strong { font-size: 1.05rem; }
.ts-route-point .ts-code { font-size: 0.75rem; font-weight: 700; color: var(--muted); letter-spacing: 0.03em; }
.ts-route-point .ts-city { font-size: 0.76rem; font-weight: 600; color: var(--text); margin-top: 1px; }
.ts-route-point .ts-date { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.ts-dot { width: 11px; height: 11px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.ts-dot-origin { background: #0d8a52; box-shadow: 0 0 0 3px rgba(13,138,82,0.18); }
.ts-dot-dest { background: #e8961f; box-shadow: 0 0 0 3px rgba(232,150,31,0.18); }
.ts-route-mid { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 68px; padding-top: 6px; }
.ts-route-line { width: 100%; height: 2px; background-image: linear-gradient(90deg, var(--border) 50%, transparent 0); background-size: 8px 2px; background-repeat: repeat-x; }
.ts-duration { font-size: 0.68rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.ts-stops { font-size: 0.6rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #f1f4fa; color: var(--muted); white-space: nowrap; }
.ts-stops-direct { background: #e3f5ec; color: #0a6b3f; }
.ts-stop-cities { font-size: 0.62rem; color: var(--muted); text-align: center; white-space: nowrap; }

/* Admin-managed dismissible announcement bar (Admin > Promo Banner) shown atop every customer page. */
.promo-banner { display: flex; align-items: center; gap: 10px; background: linear-gradient(120deg, #e8961f 0%, #d97706 100%); color: #fff; padding: 10px 20px; font-size: 0.85rem; font-weight: 600; flex-wrap: wrap; }
.promo-banner-icon { flex-shrink: 0; }
.promo-banner-text { flex: 1; min-width: 160px; }
.promo-banner-btn { background: rgba(255,255,255,0.22); color: #fff; padding: 5px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; text-decoration: none; transition: background .15s var(--ease); }
.promo-banner-btn:hover { background: rgba(255,255,255,0.34); text-decoration: none; }
.promo-banner-close { cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 0 4px; opacity: 0.85; flex-shrink: 0; }
.promo-banner-close:hover { opacity: 1; }
.ts-leg-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ts-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.74rem; font-weight: 600; background: #f1f4fa; color: var(--muted); padding: 5px 11px; border-radius: 8px; line-height: 1.3; white-space: nowrap; text-decoration: none; }
.ts-tag-icon { font-size: 0.8rem; line-height: 1; flex-shrink: 0; }
.ts-fare { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 20px; }
.ts-fare-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; color: var(--text); }
.ts-fare-row span:first-child { color: var(--muted); }
.ts-fare-row span:last-child { font-weight: 700; }
.ts-fare-note { margin: 12px 0 0; font-size: 0.72rem; color: var(--muted); line-height: 1.6; }
.ts-total-footer { background: #f2faf6; border-top: 2px solid #d3ecdf; padding: 18px 24px; }
.ts-total-footer strong { display: block; font-weight: 800; font-size: 1.5rem; color: #0a6b3f; white-space: nowrap; margin: 2px 0; }
.ts2-total-top-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ts-total-footer .ts2-total-label { font-weight: 600; font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.ts-total-footer .ts2-total-note { font-weight: 500; font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.ts-rules { margin-top: 18px; padding: 14px 16px; background: #f8faff; border-radius: 10px; }
.ts-rules-label { display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 9px; }
.ts-rules-row { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--text); padding: 4px 0; }
.ts-rules-icon { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 800; flex-shrink: 0; }
.ts-rules-ok .ts-rules-icon { background: #e3f5ec; color: #0a6b3f; }
.ts-rules-bad .ts-rules-icon { background: #fdeaea; color: var(--error); }
.ts-rules-icon.ts-rules-neutral { background: #f1f4fa; color: var(--muted); }
.ts-trust { display: flex; justify-content: space-between; gap: 8px; padding: 20px 24px 24px; }
.ts-trust-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 0.68rem; font-weight: 700; color: var(--muted); }
.ts-trust-icon { width: 34px; height: 34px; border-radius: 50%; background: #e3f5ec; color: #0a6b3f; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
@media (max-width: 480px) {
    .ts-route { grid-template-columns: 1fr; justify-items: start; }
    .ts-route-point-end { flex-direction: row; text-align: left; }
    .ts-route-mid { flex-direction: row; width: 100%; }
    .ts-route-line { display: none; }
}

.pay-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.pay-quick-card { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px; }
.pay-quick-card.disabled { opacity: 0.55; }
.pay-quick-card.pay-quick-card-green { border-color: #cdeadb; background: #f6fdf9; }
.pay-quick-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--bg); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: 8px; }
.pay-quick-icon-green { background: #e0f5e9; color: var(--success); }
.pay-quick-card strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.pay-quick-card .hint { display: block; margin-bottom: 12px; font-size: 0.78rem; }
@media (max-width: 700px) { .pay-quick-grid { grid-template-columns: 1fr; } }
.pay-quick-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 16px; color: var(--muted); font-size: 0.78rem; }
.pay-quick-divider::before, .pay-quick-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.pay-network-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .pay-network-list { grid-template-columns: 1fr; } }
.pay-network-card { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; transition: all .15s var(--ease); }
.pay-network-card:hover { border-color: #b9c8f0; }
.pay-network-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,95,255,0.1); }
.pay-network-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; position: relative; }
.pay-network-card.selected .pay-network-radio { border-color: var(--primary); }
.pay-network-card.selected .pay-network-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary); }
.pay-network-logo { flex-shrink: 0; width: 52px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; color: #fff; }
.pay-network-logo-waafi { background: #00a19a; }
.pay-network-logo-edahab { background: #4caf50; }
.pay-network-info { display: flex; flex-direction: column; }
.pay-network-info strong { font-size: 0.9rem; }
.pay-network-info .hint { font-size: 0.76rem; }

.rb-page-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rb-page-title { margin: 0; font-size: 1.3rem; }
.rb-flight { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; background: #fff; }
.rb-flight-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.rb-airline-logo { width: 52px; height: 52px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; overflow: hidden; }
.rb-airline-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }
.rb-flight-head-info { flex: 1; min-width: 0; }
.rb-flight-head-info strong { display: block; font-size: 0.92rem; }
.rb-flight-head-info .hint { display: block; margin-top: 2px; }
.rb-chevron { color: var(--muted); transition: transform .15s var(--ease); flex-shrink: 0; transform: rotate(180deg); }
.rb-flight-head.open .rb-chevron { transform: rotate(0deg); }
.rb-flight-body { display: none; padding: 0 16px 16px; border-top: 1px solid var(--border); }
.rb-flight-body.open { display: block; padding-top: 14px; }
.rb-leg-row { display: flex; align-items: flex-start; gap: 10px; }
.rb-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; border: 2px solid var(--muted); background: transparent; }
.rb-dot-depart { border-color: var(--success); }
.rb-dot-arrive { background: var(--text); border-color: var(--text); }
.rb-leg-meta { margin: 6px 0 6px 19px; padding-left: 10px; border-left: 2px dashed var(--border); font-size: 0.78rem; color: var(--muted); }
.rb-leg-split { display: flex; align-items: flex-start; gap: 10px; }
.rb-leg-side { display: flex; align-items: flex-start; gap: 8px; flex: 1 1 0; min-width: 0; }
.rb-leg-side-end { flex-direction: row-reverse; text-align: right; }
.rb-leg-side-end > div { text-align: right; }
.rb-leg-middle { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 4px; min-width: 130px; text-align: center; }
.rb-leg-line { width: 100%; min-width: 60px; height: 0; border-top: 2px dashed var(--border); margin-bottom: 4px; }
@media (max-width: 700px) { .rb-leg-split { flex-direction: column; } .rb-leg-side-end { flex-direction: row; text-align: left; } .rb-leg-side-end > div { text-align: left; } .rb-leg-middle { align-self: stretch; } }
.rb-section-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.rb-pax-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.rb-pax-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; flex-shrink: 0; }
.rb-fare-rules { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-top: 14px; }
.rb-fare-rules-head { display: flex; justify-content: space-between; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rb-fare-rule-line { font-size: 0.82rem; padding: 3px 0; }
@media (max-width: 700px) { .rb-flight-head { flex-wrap: wrap; } }
.pay-methods { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.pay-method { flex: 1; min-width: 140px; border: 2px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; cursor: pointer; font-weight: 600; transition: all .15s var(--ease); }
.pay-method:hover:not(.disabled) { border-color: #b9c8f0; transform: translateY(-2px); }
.pay-method.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(11,95,255,0.1); }
.pay-method.disabled { opacity: 0.5; cursor: not-allowed; }
.pay-method input { display: none; }

table.data-table { width: 100%; border-collapse: collapse; background: #fff; }
table.data-table th, table.data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
table.data-table th { background: #f8faff; font-size: 0.78rem; text-transform: uppercase; color: var(--muted); }

.status-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.status-confirmed { background: #e8f8f0; color: var(--success); }
.status-pending_payment { background: #fff6e0; color: #a5760a; }
.status-cancelled { background: #fdeaea; color: var(--error); }
.status-changed { background: #e6f0ff; color: var(--primary-dark); }
.status-refunded { background: #f1e6ff; color: #7c3aed; }
.status-expired { background: #eee; color: var(--muted); }

.site-footer { text-align: center; padding: 24px; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); }

.site-footer-rich { background: linear-gradient(135deg, #033C48 0%, #022a33 100%); border-top: 1px solid #022730; border-radius: 0; padding: 16px 24px 20px; margin: 20px -30px -26px; }
.sfr-top { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 12px; text-align: center; }
.sfr-brand img { max-height: 22px; }
.sfr-brand { font-weight: 800; font-size: 0.86rem; color: #fff; }
.sfr-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; }
.sfr-links a { color: #9aa7bd; font-size: 0.76rem; transition: color .15s var(--ease); }
.sfr-links a:hover { color: #fff; text-decoration: none; }
.sfr-pay-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sfr-pay-badge { display: inline-flex; align-items: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 3px 7px; font-size: 0.66rem; font-weight: 700; color: #cdd5e3; }
.sfr-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 8px 0; text-align: center; color: #8291a8; font-size: 0.7rem; }
.sfr-bottom p { margin: 0; }

.mock-notice { background: #fff6e0; border: 1px solid #f3d98b; color: #8a5b00; padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 16px; }

.pwa-install-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 500; align-items: center; gap: 10px; background: var(--text); color: #fff; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 16px rgba(0,0,0,0.15); }
.pwa-install-banner:not([hidden]) { display: flex; }
.pwa-install-icon { font-size: 1.3rem; flex-shrink: 0; }
.pwa-install-text { flex: 1; font-size: 0.85rem; line-height: 1.35; }
.pwa-install-banner .btn { flex-shrink: 0; }
.pwa-install-close { background: none; border: none; color: #fff; opacity: 0.7; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px 6px; flex-shrink: 0; }
.pwa-install-close:hover { opacity: 1; }
@media (max-width: 600px) { .pwa-install-text { font-size: 0.8rem; } }

@media (max-width: 900px) {
    .search-form { grid-template-columns: 1fr 1fr; }
    .grid-2, .grid-3, .grid-4, .passenger-name-grid, .booking-layout-grid, .cp-top-grid { grid-template-columns: 1fr; }
    .frc-header { flex-direction: column; }
    .frc-price { text-align: left; }
    .frc-legs:has(.frc-leg:nth-child(2)) .frc-leg:not(:first-child) { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 14px; }
}

/* Mobile top bar + off-canvas sidebar drawer (customer-facing pages) */
.mobile-topbar { display: none; }
.sidebar-overlay { display: none; }
@media (max-width: 900px) {
    .mobile-topbar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #033C48; position: sticky; top: 0; z-index: 120; }
    .mobile-menu-btn { background: none; border: none; color: #fff; padding: 4px; display: flex; cursor: pointer; flex-shrink: 0; }
    .mobile-menu-btn svg { width: 24px; height: 24px; }
    .mobile-topbar-brand { display: flex; align-items: center; min-width: 0; color: #fff; font-weight: 800; font-size: 0.95rem; text-decoration: none; }
    .mobile-topbar-brand:hover { text-decoration: none; color: #fff; }
    .mobile-topbar-brand img { max-height: 28px; }
    .layout-body, .admin-body { display: block; }
    .layout-sidebar, .admin-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 260px; max-width: 82vw; z-index: 200; transform: translateX(-100%); transition: transform .25s var(--ease); overflow-y: auto; padding: 16px 0 20px; display: block; }
    .layout-sidebar.open, .admin-sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,0.3); }
    .layout-sidebar .brand, .admin-sidebar .brand { display: block; }
    .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(10,15,25,0.5); z-index: 190; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
    .sidebar-overlay.open { opacity: 1; pointer-events: auto; }
    body.sidebar-open { overflow: hidden; }
}
.nav-link-split { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-link-value { color: #8fd6a8; font-weight: 700; white-space: nowrap; }

/* Sidebar layout - shared by admin, public and agency portals */
.admin-body, .layout-body { display: flex; min-height: 100vh; }
.admin-sidebar, .layout-sidebar { width: 230px; background: linear-gradient(180deg, #033C48 0%, #022a33 100%); color: #fff; padding: 20px 0; flex-shrink: 0; }
.admin-sidebar .brand, .layout-sidebar .brand { display: block; padding: 0 20px 18px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.08); color: #fff; font-weight: 800; font-size: 0.98rem; line-height: 1.3; letter-spacing: -0.01em; }
.admin-sidebar a, .layout-sidebar a { display: block; padding: 10px 20px; color: #b9c2d4; font-weight: 500; font-size: 0.9rem; border-left: 3px solid transparent; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.admin-sidebar a:hover, .layout-sidebar a:hover { background: rgba(255,255,255,0.06); color: #fff; text-decoration: none; }
.admin-sidebar a.active, .layout-sidebar a.active { background: rgba(11,95,255,0.16); color: #fff; text-decoration: none; border-left-color: var(--primary); font-weight: 700; }
.layout-sidebar .sidebar-divider { margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; }
.admin-nav-group { display: block; }
.admin-nav-group summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; color: #b9c2d4; font-weight: 600; font-size: 0.9rem; cursor: pointer; list-style: none; user-select: none; }
.admin-nav-group summary::-webkit-details-marker { display: none; }
.admin-nav-group summary:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav-group[open] > summary { color: #fff; }
.admin-nav-group .chev { font-size: 0.65rem; transition: transform .15s var(--ease); opacity: 0.7; }
.admin-nav-group[open] .chev { transform: rotate(180deg); }
.admin-nav-group-items a { padding-left: 36px; font-size: 0.85rem; }

/* Photo hotel/destination cards — used on the Book Hotels landing page's
   "Popular Destinations" grid and on the hotel search results page. */
.hc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .hc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hc-grid { grid-template-columns: 1fr; } }
.hc-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(16,24,40,0.06); }
.hc-card > summary { list-style: none; cursor: pointer; }
.hc-card > summary::-webkit-details-marker { display: none; }
a.hc-card { display: block; text-decoration: none; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
a.hc-card:hover { box-shadow: 0 10px 26px rgba(20,30,60,0.1); transform: translateY(-2px); text-decoration: none; }
.hc-photo-wrap { position: relative; height: 160px; }
.hc-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-badge-loc { position: absolute; bottom: 8px; left: 8px; background: rgba(15,23,42,0.72); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 20px; display: flex; align-items: center; gap: 3px; }
.hc-badge-rating { position: absolute; top: 8px; right: 8px; background: #fff; color: #1b2430; font-size: 0.75rem; font-weight: 800; padding: 3px 8px; border-radius: 20px; display: flex; align-items: center; gap: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.hc-body { padding: 12px 14px 14px; }
.hc-stars { color: #f5a623; font-size: 0.75rem; letter-spacing: 1px; }
.hc-name { margin: 4px 0 6px; font-size: 0.98rem; color: var(--text); }
.hc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.hc-tag { background: var(--bg); color: var(--muted); font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.hc-price-row { display: flex; align-items: center; justify-content: space-between; }
.hc-price-label { font-size: 0.7rem; color: var(--muted); }
.hc-price { font-size: 1.05rem; font-weight: 800; color: var(--primary-dark); }
.hc-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text); flex-shrink: 0; transition: background 0.15s; }
.hc-card[open] .hc-arrow { background: var(--primary); border-color: var(--primary); color: #fff; }
.hc-rooms { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); margin-top: 2px; padding-top: 12px; }
.notif-menu { position: relative; width: 100%; margin-bottom: 4px; }
.notif-menu-trigger { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none; cursor: pointer; padding: 10px 20px; font: inherit; text-align: left; color: rgba(255,255,255,0.8); font-size: 0.88rem; font-weight: 600; }
.notif-menu-trigger:hover { color: #fff; }
.notif-bell { position: relative; font-size: 1.1rem; line-height: 1; }
.notif-badge { position: absolute; top: -6px; right: -8px; background: var(--error); color: #fff; font-size: 0.6rem; font-weight: 800; border-radius: 10px; padding: 1px 4px; min-width: 15px; text-align: center; line-height: 1.4; }
.notif-menu-dropdown { position: absolute; top: 100%; left: 20px; right: 20px; margin-top: 6px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-md); padding: 6px; display: none; z-index: 250; max-height: 360px; overflow-y: auto; }
.notif-menu.open .notif-menu-dropdown { display: block; }
.notif-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 7px; color: var(--text); }
.notif-item:hover { background: #f3f4f6; text-decoration: none; }
.notif-item strong { font-size: 0.85rem; }
.notif-item span { font-size: 0.78rem; color: var(--muted); }
.notif-item time { font-size: 0.68rem; color: var(--muted); }
.notif-item.notif-unread { background: #eef4ff; }
.notif-item.notif-unread:hover { background: #e4ecff; }
.notif-empty { padding: 16px 12px; text-align: center; color: var(--muted); font-size: 0.84rem; }
.notif-mark-read { width: 100%; background: none; border: none; border-top: 1px solid #eee; margin-top: 4px; padding: 10px 12px 4px; font-size: 0.8rem; font-weight: 600; color: var(--primary); cursor: pointer; text-align: center; }
.user-menu { position: relative; width: 100%; }
.user-menu-trigger { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none; cursor: pointer; padding: 10px 20px; font: inherit; text-align: left; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; position: relative; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-avatar .avatar-fallback { position: absolute; inset: 0; align-items: center; justify-content: center; }
.user-menu-name { font-weight: 700; font-size: 0.9rem; color: #fff; white-space: nowrap; }
.user-menu-chevron { margin-left: auto; color: #8291a8; transition: transform .15s var(--ease); flex-shrink: 0; }
.user-menu.open .user-menu-chevron { transform: rotate(180deg); }
.user-menu-dropdown { position: absolute; top: 100%; left: 20px; right: 20px; margin-top: 6px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-md); padding: 6px; display: none; z-index: 250; }
.user-menu.open .user-menu-dropdown { display: block; }
.user-menu-dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 7px; color: var(--text); font-size: 0.88rem; font-weight: 500; }
.user-menu-dropdown a:hover { background: #f3f4f6; text-decoration: none; }
.user-menu-dropdown a svg { flex-shrink: 0; color: #6b7280; }
.user-menu-dropdown a.user-menu-logout { color: #dc2626; border-top: 1px solid #eee; margin-top: 4px; padding-top: 10px; }
.user-menu-dropdown a.user-menu-logout svg { color: #dc2626; }
.admin-main, .layout-main { flex: 1; min-width: 0; padding: 26px 30px; }

/* Customer-facing pages get a soft lavender/blue gradient backdrop instead of the
   flat admin background, purely decorative. An uploaded Page Background photo
   (Admin > Branding, see .layout-main::before below) paints on top of this when set. */
.layout-main { background: linear-gradient(160deg, #eef1fc 0%, #e4e9fb 45%, #eaf3fc 100%); }

/* Optional decorative page-background photo (Admin > Branding > Page Background):
   a soft, blurred, low-opacity ambient wash behind the whole page, never a sharp
   competing image. Inert (paints nothing) unless --page-bg-image is set inline. */
.layout-main { position: relative; z-index: 0; }
.layout-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--page-bg-image, none);
    background-size: cover;
    background-position: center;
    filter: blur(16px);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}
.layout-main .container { max-width: 1100px; margin: 0 auto; padding: 0; }
@media (min-width: 901px) {
    /* Customer portal: horizontal top bar instead of a left sidebar. Admin
       keeps its sidebar — only .layout-sidebar (not .admin-sidebar) changes. */
    .layout-body { flex-direction: column; }
    .layout-sidebar { width: 100%; padding: 0; height: 64px; flex-shrink: 0; }
    .layout-sidebar .topbar-inner {
        width: 100%; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: row;
        align-items: center; padding: 0 20px; height: 64px; flex-shrink: 0;
    }
    .layout-sidebar .brand {
        display: flex; align-items: center; padding: 0; margin: 0 8px 0 0;
        border-bottom: none; flex-shrink: 0;
    }
    .layout-sidebar a {
        padding: 0 16px; height: 64px; display: flex; align-items: center;
        border-left: none; border-bottom: 3px solid transparent; white-space: nowrap;
    }
    .layout-sidebar a.active { border-left-color: transparent; border-bottom-color: var(--primary); background: transparent; }
    .layout-sidebar a:hover { background: transparent; color: #fff; }
    .layout-sidebar .sidebar-divider {
        margin-top: 0; margin-left: auto; border-top: none; padding-top: 0;
        display: flex; align-items: center; gap: 18px; flex-shrink: 0; width: auto;
    }
    .layout-sidebar .user-menu { width: auto; }
    .layout-sidebar .user-menu-trigger { padding: 8px 10px; border-radius: 8px; }
    .layout-sidebar .user-menu-trigger:hover { background: rgba(255,255,255,0.06); }
    .layout-sidebar .user-menu-dropdown { left: auto; right: 0; width: 200px; }
}
@media (max-width: 900px) {
    /* This has to come after the unconditional rule above, or the
       unconditional 26px/30px wins the cascade regardless of screen size —
       that's exactly why mobile kept getting desktop-width side padding. */
    .layout-main, .admin-main { padding: 18px 16px; }
    .site-footer-rich { margin: 20px -16px -18px; }
}
@media (max-width: 480px) {
    /* Edge-to-edge on phones: hero/search card/etc. already carry their own
       internal padding, so dropping the outer gutter here doesn't crowd text. */
    .layout-main { padding-left: 0; padding-right: 0; }
    .hero, .search-card-wrap .card, .search-summary-bar, .airline-summary-strip { border-radius: 0; }
    .site-footer-rich { margin-left: 0; margin-right: 0; }
}
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-cards-5 { grid-template-columns: repeat(5, 1fr); }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), transform .2s var(--ease); border-top: 3px solid var(--primary); }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card .num { font-size: 1.6rem; font-weight: 800; }
.stat-card .label { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 900px) {
    .stat-cards-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .stat-cards, .stat-cards-5 { grid-template-columns: repeat(2, 1fr); }
    .card:has(table.data-table) { overflow-x: auto; }
    table.data-table { min-width: 560px; }
}

/* Split-panel auth pages (login/register) */
.auth-page { display: flex; min-height: 100vh; }
.auth-brand-panel {
    flex: 1 1 44%;
    background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 60%, #3b7dff 100%);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(255,255,255,0.10) 0%, transparent 45%),
        linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 60%, #3b7dff 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}
/* Floating decorative shapes */
.auth-brand-panel::before, .auth-brand-panel::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    pointer-events: none;
}
.auth-brand-panel::before { width: 280px; height: 280px; top: -80px; right: -80px; animation: authFloat1 9s ease-in-out infinite; }
.auth-brand-panel::after { width: 180px; height: 180px; bottom: -60px; left: -40px; background: rgba(255,255,255,0.05); animation: authFloat2 11s ease-in-out infinite; }
@keyframes authFloat1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-16px, 20px); } }
@keyframes authFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(14px, -18px); } }
.auth-brand-panel .auth-deco-ring { position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; top: 50%; left: 78%; transform: translate(-50%, -50%); pointer-events: none; }
.auth-brand-panel .auth-deco-ring::before { content: ''; position: absolute; inset: 40px; border: 1px solid rgba(255,255,255,0.08); border-radius: 50%; }
.auth-brand-panel > * { position: relative; z-index: 1; animation: authFadeUp .6s var(--ease) backwards; }
.auth-brand-panel .auth-logo { animation-delay: 0s; }
.auth-brand-panel h1 { animation-delay: .08s; }
.auth-brand-panel p { animation-delay: .16s; }
.auth-brand-panel .auth-feature-list { animation-delay: .24s; }
@keyframes authFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.auth-brand-panel .auth-logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 40px; display: flex; align-items: center; gap: 10px; }
.auth-brand-panel .auth-logo img { max-height: 44px; display: block; }
.auth-brand-panel h1 { font-size: 2.1rem; line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.01em; max-width: 420px; }
.auth-brand-panel p { opacity: 0.9; max-width: 380px; line-height: 1.6; margin: 0 0 28px; }
.auth-brand-panel .auth-feature-list { display: flex; flex-direction: column; gap: 14px; }
.auth-brand-panel .auth-feature { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; transition: transform .2s var(--ease); }
.auth-brand-panel .auth-feature:hover { transform: translateX(4px); }
.auth-brand-panel .auth-feature .ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.auth-trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.16); }
.auth-trust-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); border-radius: 20px; padding: 6px 12px; font-size: 0.76rem; font-weight: 600; }
.auth-trust-badge .ic { font-size: 0.85rem; }
.auth-form-panel { flex: 1 1 56%; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.auth-form-box { width: 100%; max-width: 400px; animation: authFadeUp .5s var(--ease) .1s backwards; }
.auth-form-box .mobile-logo { display: none; }
.auth-form-box h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.auth-form-box .auth-sub { color: var(--muted); margin: 0 0 26px; }
.auth-form-box .field { margin-bottom: 16px; }
.auth-form-box .field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px; }
.auth-input-icon { position: relative; }
.auth-input-icon .aii { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.95rem; pointer-events: none; }
.auth-input-icon input { padding-left: 38px; }
.auth-input-icon .aii-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.85rem; padding: 4px 6px; }
.auth-input-icon .aii-toggle:hover { color: var(--primary); }
.auth-footer-link { margin-top: 20px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.auth-forgot-link { font-size: 0.8rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.auth-forgot-link:hover { text-decoration: underline; }
.auth-support-line { margin-top: 14px; text-align: center; color: var(--muted); font-size: 0.8rem; }
.auth-support-line a { color: var(--muted); font-weight: 600; }
.rw-req-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 0.82rem; }
.rw-req-list li { padding: 3px 0; color: var(--muted); }
.rw-req-list li::before { content: '○ '; }
.rw-req-list li.ok { color: var(--success); }
.rw-req-list li.ok::before { content: '✓ '; }
@media (max-width: 900px) {
    .auth-page { flex-direction: column; }
    .auth-brand-panel { display: none; }
    .auth-form-box .mobile-logo { display: block; text-align: center; margin-bottom: 24px; font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); }
    .auth-form-box .mobile-logo img { max-height: 40px; margin: 0 auto; }
}

/* Empty state (no bookings, no results, etc.) */
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state .empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 1.8rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.empty-state h3 { margin: 0 0 6px; font-size: 1.05rem; }
.empty-state p { color: var(--muted); margin: 0 0 18px; }

/* Multi-city leg builder on the search form — reuses .sb-field/.sb-icon/
   .sb-input so each leg's From/To/Date boxes look identical to the One Way
   and Round Trip search bar; only the leg number badge and remove button
   are specific to multi-city. */
.mc-legs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.mc-leg-row { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.mc-leg-num { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mc-leg-row .mc-leg-num { align-self: center; }
.mc-leg-row .sb-field { flex: 1 1 160px; }
.mc-leg-remove { background: #fdeaea; color: var(--error); border: none; border-radius: 8px; width: 36px; height: 36px; cursor: pointer; font-weight: 800; font-size: 1rem; transition: background .15s var(--ease); flex-shrink: 0; align-self: center; }
.mc-leg-remove:hover { background: #f6c6c6; }
.mc-leg-remove:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-add-leg { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light); border: none; color: var(--primary-dark); font-weight: 700; padding: 11px 16px; border-radius: 8px; cursor: pointer; font-size: 0.88rem; transition: all .15s var(--ease); }
.btn-add-leg:hover { background: #d8e4ff; }
.btn-add-leg:disabled { opacity: 0.4; cursor: not-allowed; }
@media (max-width: 900px) {
    .mc-leg-row { flex-direction: column; align-items: stretch; }
    .mc-leg-row .mc-leg-num { align-self: flex-start; }
}

/* Travellers picker (Adults / Children / Infants popover) */
.travellers-field { position: relative; }
.mc-bottom-row { display: flex; align-items: stretch; margin: 14px 0; gap: 12px; flex-wrap: wrap; }
.mc-travellers-field { flex: 0 0 220px; }
.mc-search-btn { flex: 1 1 200px; margin: 0; }
.hotel-search-btn { flex: 0 1 170px; margin: 0; }
@media (max-width: 900px) { .hotel-search-btn { flex: 1 1 auto; } }
@media (max-width: 700px) {
    .mc-bottom-row { flex-direction: column; align-items: stretch; }
    .mc-travellers-field { flex: 1 1 auto; width: 100%; }
    .mc-search-btn { flex: 1 1 auto; width: 100%; }
}
.travellers-toggle { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; font-size: 0.95rem; color: var(--text); transition: border-color .15s var(--ease); }
.travellers-toggle:hover { border-color: #c7cfdd; }
.travellers-toggle .tf-icon { color: var(--muted); }
.travellers-toggle .tf-chevron { margin-left: auto; color: var(--muted); font-size: 0.75rem; transition: transform .15s var(--ease); }
.travellers-toggle.open .tf-chevron { transform: rotate(180deg); }
.travellers-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: 280px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px; }
.travellers-panel h4 { margin: 0 0 14px; font-size: 0.95rem; }
.tp-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tp-row:last-of-type { border-bottom: none; }
.tp-row-label { font-weight: 700; font-size: 0.9rem; }
.tp-row-sub { font-size: 0.75rem; color: var(--muted); font-weight: 400; margin-top: 1px; }
.tp-counter { display: flex; align-items: center; gap: 12px; }
.tp-counter button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--primary); font-weight: 800; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s var(--ease); line-height: 1; }
.tp-counter button:hover:not(:disabled) { background: var(--primary); color: #fff; border-color: var(--primary); }
.tp-counter button:disabled { opacity: 0.35; cursor: not-allowed; }
.tp-counter .tp-count { width: 20px; text-align: center; font-weight: 800; }
.tp-done-btn { width: 100%; margin-top: 14px; }
@media (max-width: 900px) {
    .travellers-panel { left: auto; right: 0; width: 260px; }
}

/* Homepage: colored feature cards + decorative section header.
   Each card has a solid, opaque, accent-colored title bar across its top
   (icon + title in white, with a light left accent stripe) so the title
   stays legible whether the card body below shows the plain gradient or an
   admin-uploaded photo (Admin > Branding). */
.feature-card { cursor: default; box-shadow: 0 4px 16px var(--accent-glow, rgba(11,95,255,0.14)); transition: all .2s var(--ease); padding: 0; overflow: hidden; }
.feature-card:hover { box-shadow: 0 10px 28px var(--accent-glow, rgba(11,95,255,0.28)); transform: translateY(-4px); }
.feature-card .card-header { margin: 0; padding: 16px 20px; border-bottom: none; border-radius: 11px 11px 0 0; background: var(--accent-color, var(--primary)); border-left: 4px solid rgba(255,255,255,0.55); }
.feature-card .card-header h3 { font-size: 1.05rem; color: #fff; }
.feature-card .card-header .icon-circle { background: rgba(255,255,255,0.28) !important; color: #fff !important; }
.feature-card-body { padding: 18px 20px 22px; }

/* Feature card with an admin-uploaded background photo (Admin > Branding): the
   title bar stays on top as usual; the photo fills the remaining card height. */
.feature-card-photo { min-height: 260px; }

.recent-search-panel { margin-top: 20px; }
.recent-search-panel h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 0.98rem; font-weight: 800; color: var(--text); }
.rsp-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #fff3e0; font-size: 0.9rem; }
.recent-search-list { display: flex; flex-wrap: wrap; gap: 12px; }
.recent-search-chip { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 12px; padding: 12px 16px; text-decoration: none; box-shadow: 0 1px 3px rgba(16,24,40,0.05); transition: box-shadow .15s var(--ease), transform .15s var(--ease); height: 60px; box-sizing: border-box; flex: 1 1 240px; min-width: 240px; }
.recent-search-chip:hover { box-shadow: 0 8px 20px rgba(20,30,60,0.12); transform: translateY(-2px); text-decoration: none; }
.rsc-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #eef3ff, #e0eaff); font-size: 0.95rem; }
.rsc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; overflow: hidden; }
.rsc-route { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 0.92rem; color: var(--primary-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rsc-dots { flex-shrink: 0; width: 18px; height: 1px; background-image: linear-gradient(90deg, var(--muted) 50%, transparent 0); background-size: 5px 1px; background-repeat: repeat-x; }
.rsc-cities { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rsc-go { flex-shrink: 0; margin-left: 4px; color: var(--primary); font-weight: 800; opacity: 0.5; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.recent-search-chip:hover .rsc-go { opacity: 1; transform: translateX(3px); }

.popular-routes-panel { margin: 36px 0 0; }
.popular-routes-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.pr-heading-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #e3f5ec, #d3ecdf); font-size: 1.3rem; }
.popular-routes-panel h2 { margin: 0; font-size: 1.32rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.popular-routes-sub { margin: 4px 0 0; color: var(--muted); font-size: 0.87rem; }
.pr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pr-grid { grid-template-columns: 1fr; } }
.pr-card { position: relative; display: block; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 14px; padding: 20px 18px 18px; text-decoration: none; box-shadow: 0 1px 3px rgba(16,24,40,0.06); transition: box-shadow .2s var(--ease), transform .2s var(--ease); overflow: hidden; }
.pr-card:hover { box-shadow: 0 12px 28px rgba(20,30,60,0.12); transform: translateY(-3px); text-decoration: none; }
.pr-card::after { content: ''; position: absolute; top: -30px; right: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(11,95,255,0.08) 0%, transparent 70%); pointer-events: none; }
.pr-badge { display: inline-block; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #0a6b3f; background: #e3f5ec; padding: 3px 9px; border-radius: 20px; margin-bottom: 12px; }
.pr-route-line { display: flex; align-items: center; gap: 8px; }
.pr-code { font-weight: 800; font-size: 1.15rem; color: var(--text); }
.pr-track { flex: 1; display: flex; align-items: center; gap: 2px; min-width: 40px; }
.pr-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.pr-dot-end { background: #e8961f; }
.pr-dash { flex: 1; height: 1px; background-image: linear-gradient(90deg, var(--border) 50%, transparent 0); background-size: 6px 1px; background-repeat: repeat-x; }
.pr-plane { font-size: 0.8rem; flex-shrink: 0; transform: rotate(90deg); }
.pr-cities { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.pr-price { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 0.82rem; color: var(--muted); }
.pr-price strong { color: #0a6b3f; font-size: 1.1rem; margin-left: 4px; }

.why-panel { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: linear-gradient(120deg, #e8f6f8 0%, #d7edf1 100%); border: 1px solid #b9dde3; border-left: 4px solid #033C48; box-shadow: 0 8px 24px rgba(3,60,72,0.12); border-radius: var(--radius); padding: 26px; margin: 44px 0 24px; }
.why-intro { display: flex; align-items: flex-start; gap: 16px; flex: 1 1 280px; }
.why-intro h2 { margin: 0; font-size: 1.32rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.why-intro p { margin: 4px 0 0; color: var(--muted); font-size: 0.87rem; max-width: 340px; }
.why-stats { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 18px 26px; flex: 1 1 460px; }
.why-stat { display: flex; align-items: center; gap: 10px; }
.why-stat-icon { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 2px 8px rgba(3,60,72,0.14); flex-shrink: 0; }
.why-stat div:last-child { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.why-stat strong { font-size: 0.92rem; color: var(--text); font-weight: 800; white-space: nowrap; }
.why-stat span { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 480px) {
    .why-stat { gap: 8px; }
    .why-stat-icon { width: 30px; height: 30px; }
    .why-stat-icon svg, .why-stat-icon { font-size: 0.85rem; }
    .why-stat strong { font-size: 0.76rem; }
    .why-stat span { font-size: 0.62rem; }
}
@media (max-width: 900px) { .why-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 780px) { .why-panel { flex-direction: column; align-items: flex-start; gap: 20px; } .why-stats { width: 100%; flex: 1 1 auto; } }
@media (max-width: 480px) { .why-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; } }

/* Decorative page background for the flights homepage: soft color blobs
   behind the hero/search/feature-card stack, purely visual. */
.flights-page-bg { position: relative; overflow-x: hidden; }
.flights-page-bg::before, .flights-page-bg::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: 0.5; pointer-events: none; }
.flights-page-bg::before { width: 420px; height: 420px; top: -120px; right: -140px; background: radial-gradient(circle, rgba(11,95,255,0.16) 0%, transparent 70%); }
.flights-page-bg::after { width: 380px; height: 380px; top: 420px; left: -160px; background: radial-gradient(circle, rgba(232,150,31,0.14) 0%, transparent 70%); }

.search-card-wrap { position: relative; z-index: 5; }
.search-card-wrap .card {
    padding: 20px 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 40%),
        radial-gradient(circle at 0% 100%, rgba(255,176,32,0.14) 0%, rgba(255,176,32,0) 45%),
        linear-gradient(135deg, #033C48 0%, #045566 52%, #057a91 100%);
    border: 1px solid #022730; box-shadow: 0 16px 36px rgba(10,25,60,0.32); position: relative;
}
.search-card-wrap .search-bar-unified { background: #fff; }
.search-card-wrap .search-top-row { border-bottom-color: rgba(255,255,255,0.16); }

/* Premium unified search bar (top row: trip-type + cabin class; below: one
   continuous field bar with a swap button, matching a modern OTA layout). */
.search-top-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }

.cabin-class-tabs { display: inline-flex; gap: 4px; background: #f1f4fa; border-radius: 10px; padding: 4px; box-shadow: inset 0 1px 3px rgba(20,30,60,0.06); }
.cabin-class-tabs label { position: relative; font-size: 0.82rem; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; padding: 8px 14px; border-radius: 8px; transition: all .18s var(--ease); }
.cabin-class-tabs label:has(input:checked) { background: linear-gradient(135deg, #ffb020 0%, var(--accent) 100%); color: #fff; box-shadow: 0 2px 8px rgba(232,150,31,0.35); }
.cabin-class-tabs label:hover:not(:has(input:checked)) { background: #fff; color: var(--text); }
.cabin-class-tabs input { position: absolute; opacity: 0; width: 0; height: 0; }

.search-bar-unified { display: flex; align-items: stretch; background: transparent; border: none; border-radius: 0; gap: 10px; flex-wrap: wrap; }
.sb-field { display: flex; align-items: center; gap: 10px; padding: 10px 16px; flex: 1; min-width: 0; position: relative; background: #fff; border: 1px solid var(--border); border-radius: 12px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.sb-field:hover { border-color: #b9c8f0; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(20,30,60,0.08); }
.sb-field:focus-within { border-color: #057a91; box-shadow: 0 0 0 3px rgba(3,60,72,0.1); transform: translateY(-1px); z-index: 10; }
.sb-field[hidden] { display: none; }
.sb-icon { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #033C48 0%, #057a91 100%); border-radius: 50%; box-shadow: 0 2px 6px rgba(3,60,72,0.25); }
.sb-icon svg { width: 15px; height: 15px; }
.sb-field-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sb-field-text label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 2px; }
.sb-input { border: none !important; padding: 0 !important; font-size: 0.92rem; font-weight: 700; color: var(--text); background: transparent !important; width: 100%; }
.sb-input:focus { outline: none; box-shadow: none !important; }
.sb-swap {
    width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #057a91;
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; align-self: center; margin: 0 -2px; z-index: 2;
    box-shadow: 0 2px 6px rgba(20,30,60,0.08); font-size: 0.95rem; transition: all .15s var(--ease);
}
.sb-swap svg { width: 16px; height: 16px; }
.sb-swap:hover { background: linear-gradient(135deg, #033C48 0%, #057a91 100%); border-color: #033C48; color: #fff; transform: rotate(180deg); box-shadow: 0 4px 10px rgba(3,60,72,0.3); }
.sb-search-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; margin: 0; flex-shrink: 0; white-space: nowrap; background: linear-gradient(135deg, #ffb020 0%, var(--accent) 100%); box-shadow: 0 3px 10px rgba(232,150,31,0.3); }
.sb-search-btn svg { width: 17px; height: 17px; }
.sb-search-btn:hover { background: linear-gradient(135deg, var(--accent) 0%, #d9860f 100%); box-shadow: 0 5px 14px rgba(232,150,31,0.4); }
.search-bar-unified .travellers-field, .mc-travellers-field .travellers-field { max-width: none !important; flex: 1; }
.search-bar-unified .travellers-field > label, .mc-travellers-field .travellers-field > label { display: none; }
.search-bar-unified .travellers-toggle, .mc-travellers-field .travellers-toggle { border: none; padding: 0; background: transparent; }
.search-bar-unified .travellers-toggle .tf-icon, .mc-travellers-field .travellers-toggle .tf-icon { display: none; }

@media (max-width: 900px) {
    .search-bar-unified { flex-direction: column; }
    .sb-swap { align-self: center; margin: -2px 0; }
    .search-top-row { flex-direction: column; align-items: stretch; }
    .trip-type-tabs, .trip-type-tabs-flat, .cabin-class-tabs {
        width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .trip-type-tabs::-webkit-scrollbar, .cabin-class-tabs::-webkit-scrollbar { display: none; }
    .trip-type-tabs label, .cabin-class-tabs label { flex-shrink: 0; }
}
@media (max-width: 480px) {
    /* Bigger touch targets and icons on phones — the rem-based font bump
       above covers text; these px-sized icons/buttons need their own bump. */
    .sb-field { padding: 14px 16px; }
    .sb-icon { width: 38px; height: 38px; }
    .sb-icon svg { width: 18px; height: 18px; }
    .sb-swap { width: 40px; height: 40px; }
    .sb-swap svg { width: 19px; height: 19px; }
    .sb-search-btn { padding: 16px; }
    .sb-search-btn svg { width: 20px; height: 20px; }
    .trip-type-tabs label, .trip-type-tabs-flat label, .cabin-class-tabs label { padding: 11px 18px; }
    .btn, .btn-sm { padding: 13px 18px; }
    .date-tab { padding: 14px 8px; }
}

/* Trip-type segmented control (replaces plain radios) */
.trip-type-tabs { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 4px; gap: 2px; margin-bottom: 6px; }
.trip-type-tabs label { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all .18s var(--ease); }
.trip-type-tabs label:has(input:checked) { background: linear-gradient(135deg, #14a866 0%, #0a6b3f 100%); color: #fff; box-shadow: 0 2px 8px rgba(10,107,63,0.35); }
.trip-type-tabs label:hover:not(:has(input:checked)) { background: #fff; color: var(--text); }
.trip-type-tabs input { position: absolute; opacity: 0; width: 0; height: 0; }

.trip-type-tabs-flat { background: #f1f4fa; border: none; box-shadow: inset 0 1px 3px rgba(20,30,60,0.06); }
.trip-type-tabs-flat label { color: var(--muted); }
.trip-type-tabs-flat label:has(input:checked) { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(20,30,60,0.14); }
.trip-type-tabs-flat label:hover:not(:has(input:checked)) { background: transparent; color: var(--text); }

/* Searchable airport picker (type-ahead by code, city, or country) */
.airport-picker { position: relative; }
.airport-picker-input.is-invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(214,69,69,0.12); }
.airport-picker-list { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: max-content; min-width: 100%; max-width: 300px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md); max-height: 280px; overflow-y: auto; z-index: 60; padding: 6px; }
.airport-picker-item { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 8px; cursor: pointer; }
.airport-picker-item:hover, .airport-picker-item.active { background: #f1f4fa; }
.airport-picker-item .apc-code { flex-shrink: 0; width: 42px; text-align: center; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.03em; background: #e3f5ec; color: #0a6b3f; border-radius: 6px; padding: 4px 0; }
.airport-picker-item .apc-info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.airport-picker-item .apc-city { font-weight: 700; font-size: 0.88rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.airport-picker-item .apc-country { font-size: 0.74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.airport-picker-empty { padding: 16px 10px; text-align: center; color: var(--muted); font-size: 0.85rem; }
.mc-leg-row .airport-picker-list { z-index: 70; }
.search-form label { display: flex; align-items: center; gap: 5px; }
.search-form label .fl-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
