/* ===================================
   FLIGHTS SEARCH PAGE - CSS
   Phase 3a — Dedicated Flight Search
   ================================== */

/* ── Search Hero ── */
.flights-hero {
    padding: 2rem 0 1rem;
    background: linear-gradient(180deg, rgba(15, 42, 42, 0.6) 0%, transparent 100%);
}

.flights-hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.flights-hero h1 i[data-lucide] {
    width: 28px;
    height: 28px;
    margin-right: 0.5rem;
    color: var(--primary-color);
    vertical-align: -4px;
}

.flights-hero p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ── Search Card ── */
.search-card {
    background: rgba(26, 58, 58, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(127, 255, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Trip type toggle */
.trip-type-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.trip-type-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    background: rgba(15, 42, 42, 0.6);
    border: 1px solid rgba(127, 255, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.trip-type-btn.active {
    background: var(--primary-color);
    color: #0A1A1A;
    border-color: var(--primary-color);
}

.trip-type-btn:hover:not(.active) {
    border-color: rgba(127, 255, 0, 0.3);
    color: var(--text-light);
}

/* Search form grid */
.search-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-form-grid.with-return {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.search-row-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

/* Input group */
.flight-input-group {
    position: relative;
}

.flight-input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.flight-input-group .input-wrapper {
    position: relative;
}

.flight-input-group .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    pointer-events: none;
}

.flight-input-group input,
.flight-input-group select {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 40px;
    background: rgba(10, 26, 26, 0.8);
    border: 1px solid rgba(127, 255, 0, 0.15);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.flight-input-group select {
    padding-left: 40px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C0C0C0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.flight-input-group input:focus,
.flight-input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(127, 255, 0, 0.1);
}

.flight-input-group input::placeholder {
    color: rgba(192, 192, 192, 0.5);
}

.flight-input-group input[type="date"] {
    color-scheme: dark;
    cursor: pointer;
}

.flight-input-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(80deg);
    cursor: pointer;
    opacity: 0.7;
    padding-left: 4px;
}

/* Swap button */
.swap-airports-btn {
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-lighter);
    border: 1px solid rgba(127, 255, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
}

.swap-airports-btn:hover {
    background: var(--primary-color);
    color: #0A1A1A;
}

.swap-airports-btn svg {
    width: 16px;
    height: 16px;
}

/* Search button */
.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: #0A1A1A;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 46px;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(127, 255, 0, 0.3);
}

.search-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.search-btn i[data-lucide] {
    width: 20px;
    height: 20px;
}

/* Passenger selector */
.passenger-selector {
    position: relative;
}

.passenger-display {
    cursor: pointer;
}

.passenger-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 260px;
    background: var(--bg-dark);
    border: 1px solid rgba(127, 255, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    z-index: 50;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.passenger-dropdown.open {
    display: block;
}

.pax-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
}

.pax-row + .pax-row {
    border-top: 1px solid rgba(127, 255, 0, 0.06);
}

.pax-label {
    display: flex;
    flex-direction: column;
}

.pax-label span:first-child {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.pax-label span:last-child {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.pax-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pax-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(127, 255, 0, 0.1);
    border: 1px solid rgba(127, 255, 0, 0.2);
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.pax-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #0A1A1A;
}

.pax-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pax-count {
    font-size: 1rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    color: var(--text-light);
}

/* ── Autocomplete Dropdown ── */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: var(--bg-dark);
    border: 1px solid rgba(127, 255, 0, 0.2);
    border-radius: 12px;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.autocomplete-dropdown.open {
    display: block;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
    background: rgba(127, 255, 0, 0.08);
}

.autocomplete-item + .autocomplete-item {
    border-top: 1px solid rgba(127, 255, 0, 0.05);
}

.ac-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(127, 255, 0, 0.08);
    color: var(--primary-color);
    flex-shrink: 0;
}

.ac-icon svg,
.ac-icon i[data-lucide] {
    width: 18px;
    height: 18px;
}

.ac-info {
    flex: 1;
    min-width: 0;
}

.ac-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-detail {
    font-size: 0.78rem;
    color: var(--text-gray);
}

.ac-iata {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.autocomplete-loading,
.autocomplete-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* ── Results Layout ── */
.results-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    padding-bottom: 6rem;
}

/* ── Filter Sidebar ── */
.filter-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.filter-section {
    background: rgba(26, 58, 58, 0.4);
    border: 1px solid rgba(127, 255, 0, 0.08);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.filter-section h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-section h3 i[data-lucide] {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

/* Stops filter */
.stops-filter {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stop-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.stop-option:hover {
    background: rgba(127, 255, 0, 0.05);
}

.stop-option input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.stop-option label {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
}

.stop-option .count {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* Airlines filter */
.airlines-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 200px;
    overflow-y: auto;
}

.airline-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.airline-option:hover {
    background: rgba(127, 255, 0, 0.05);
}

.airline-option input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.airline-option img {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    object-fit: contain;
    flex-shrink: 0;
}

.airline-option label {
    flex: 1;
    font-size: 0.83rem;
    color: var(--text-light);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.airline-option .count {
    font-size: 0.72rem;
    color: var(--text-gray);
    flex-shrink: 0;
}

/* Time filter */
.time-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.time-chip {
    padding: 0.35rem 0.7rem;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(10, 26, 26, 0.6);
    border: 1px solid rgba(127, 255, 0, 0.1);
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
}

.time-chip.active {
    background: rgba(127, 255, 0, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.time-chip:hover:not(.active) {
    border-color: rgba(127, 255, 0, 0.3);
    color: var(--text-light);
}

/* Price range */
.price-range-filter {
    padding: 0.25rem 0;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.price-range-labels span {
    font-weight: 600;
}

.price-range-filter input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(127, 255, 0, 0.15);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-range-filter input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #0A1A1A;
    box-shadow: 0 2px 8px rgba(127, 255, 0, 0.3);
}

.price-range-filter input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #0A1A1A;
}

.filter-clear-btn {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid rgba(127, 255, 0, 0.15);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-clear-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ── Sort Tabs ── */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.results-count strong {
    color: var(--primary-color);
    font-weight: 700;
}

.sort-tabs {
    display: flex;
    gap: 0.35rem;
    background: rgba(26, 58, 58, 0.4);
    border: 1px solid rgba(127, 255, 0, 0.08);
    border-radius: 10px;
    padding: 0.25rem;
}

.sort-tab {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.sort-tab .sort-label {
    font-size: 0.78rem;
}

.sort-tab .sort-value {
    font-size: 0.72rem;
    opacity: 0.7;
}

.sort-tab.active {
    background: var(--primary-color);
    color: #0A1A1A;
}

.sort-tab.active .sort-value {
    opacity: 0.8;
}

.sort-tab:hover:not(.active) {
    background: rgba(127, 255, 0, 0.08);
    color: var(--text-light);
}

/* ── Flight Result Cards ── */
.flight-card {
    background: rgba(26, 58, 58, 0.35);
    border: 1px solid rgba(127, 255, 0, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.flight-card:hover {
    border-color: rgba(127, 255, 0, 0.2);
    background: rgba(26, 58, 58, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Itinerary section */
.flight-itinerary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.itinerary-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
}

.itinerary-airline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 140px;
}

.airline-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
}

.airline-logo.fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(127, 255, 0, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.7rem;
}

.airline-name {
    font-size: 0.8rem;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.flight-number {
    font-size: 0.72rem;
    color: rgba(192, 192, 192, 0.6);
}

/* Route visualization */
.route-visual {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.5rem;
}

.route-time {
    text-align: center;
}

.route-time .time {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.route-time .airport {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 600;
}

.route-line {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    min-width: 100px;
}

.route-duration {
    font-size: 0.72rem;
    color: var(--text-gray);
}

.route-bar {
    width: 100%;
    height: 2px;
    background: rgba(127, 255, 0, 0.25);
    position: relative;
    border-radius: 1px;
}

.route-bar::before,
.route-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

.route-bar::before {
    left: 0;
}

.route-bar::after {
    right: 0;
}

.route-stops {
    display: flex;
    gap: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.route-stop-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFA500;
    border: 2px solid var(--bg-dark);
}

.route-stops-label {
    font-size: 0.7rem;
    color: #FFA500;
    font-weight: 600;
}

.itinerary-direction-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    opacity: 0.7;
    margin-bottom: -0.3rem;
}

/* Price column */
.flight-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 140px;
    padding-left: 1rem;
    border-left: 1px solid rgba(127, 255, 0, 0.06);
}

.flight-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.flight-price .currency {
    font-size: 0.85rem;
    font-weight: 600;
}

.flight-price-per {
    font-size: 0.72rem;
    color: var(--text-gray);
}

.flight-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: flex-end;
}

.flight-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-direct {
    background: rgba(127, 255, 0, 0.12);
    color: var(--primary-color);
}

.badge-fare {
    background: rgba(100, 180, 255, 0.12);
    color: #64B4FF;
}

.badge-refundable {
    background: rgba(0, 200, 150, 0.12);
    color: #00C896;
}

.badge-changeable {
    background: rgba(255, 200, 50, 0.12);
    color: #FFC832;
}

.badge-co2 {
    background: rgba(76, 175, 80, 0.12);
    color: #4CAF50;
}

.badge-seats {
    background: rgba(255, 100, 100, 0.12);
    color: #FF6464;
}

.baggage-info {
    display: flex;
    gap: 0.6rem;
    font-size: 0.72rem;
    color: var(--text-gray);
}

.baggage-info i[data-lucide] {
    width: 13px;
    height: 13px;
    vertical-align: -2px;
    margin-right: 2px;
}

.select-flight-btn {
    width: 100%;
    padding: 0.6rem;
    background: var(--primary-color);
    color: #0A1A1A;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.select-flight-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 2px 12px rgba(127, 255, 0, 0.3);
}

/* ── States: Loading / Empty / Error ── */
.results-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.results-state i[data-lucide] {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.results-state h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.results-state p {
    color: var(--text-gray);
    font-size: 0.9rem;
    max-width: 400px;
}

/* Loading spinner */
.spinner-ring {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(127, 255, 0, 0.15);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-progress {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-gray);
}

/* ── Mobile Filter Toggle ── */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(26, 58, 58, 0.5);
    border: 1px solid rgba(127, 255, 0, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
}

.mobile-filter-toggle i[data-lucide] {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .results-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
        max-height: none;
        display: none;
    }

    .filter-sidebar.mobile-open {
        display: block;
    }

    .mobile-filter-toggle {
        display: flex;
    }

    .search-form-grid.with-return {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .flights-hero h1 {
        font-size: 1.4rem;
    }

    .search-card {
        padding: 1rem;
    }

    .search-form-grid,
    .search-form-grid.with-return {
        grid-template-columns: 1fr;
    }

    .swap-airports-btn {
        position: static;
        transform: rotate(90deg);
        margin: -0.25rem auto;
    }

    .search-row-secondary {
        grid-template-columns: 1fr 1fr;
    }

    .search-btn {
        grid-column: 1 / -1;
    }

    .flight-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .flight-price-col {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-left: none;
        border-top: 1px solid rgba(127, 255, 0, 0.06);
        padding-left: 0;
        padding-top: 0.75rem;
        min-width: auto;
    }

    .itinerary-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .itinerary-airline {
        min-width: auto;
    }

    .route-visual {
        padding: 0;
    }

    .sort-tabs {
        width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .trip-type-toggle {
        flex-wrap: wrap;
    }

    .search-row-secondary {
        grid-template-columns: 1fr;
    }

    .flight-price {
        font-size: 1.3rem;
    }

    .flight-card {
        padding: 0.9rem;
    }

    .itinerary-airline {
        min-width: 0;
        width: 80px;
        flex-shrink: 0;
    }

    .airline-name {
        max-width: 60px;
        font-size: 0.72rem;
    }

    .route-time .time {
        font-size: 0.95rem;
    }

    .route-time .airport {
        font-size: 0.68rem;
    }

    .route-line {
        min-width: 60px;
    }

    .route-duration {
        font-size: 0.65rem;
    }

    .flight-badges {
        justify-content: flex-start;
    }

    .flight-price-col {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
}

/* ═══════════════════════════════════════════
   PHASE 3b — BOOKING MODAL
   ═══════════════════════════════════════════ */

/* Overlay */
.fb-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fbFadeIn 0.25s ease;
}

@keyframes fbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Panel */
.fb-panel {
    background: var(--bg-dark);
    border: 1px solid rgba(127, 255, 0, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: fbSlideUp 0.3s ease;
}

@keyframes fbSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.fb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(127, 255, 0, 0.08);
}

.fb-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fb-header h2 svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.fb-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.fb-close-btn:hover {
    background: rgba(255, 100, 100, 0.15);
    color: #FF6464;
    border-color: rgba(255, 100, 100, 0.3);
}

/* Step indicator */
.fb-steps {
    display: flex;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(127, 255, 0, 0.05);
}

.fb-step-dot {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.35;
    transition: var(--transition);
}

.fb-step-dot.active {
    opacity: 1;
}

.fb-step-dot.done {
    opacity: 0.7;
}

.fb-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(127, 255, 0, 0.1);
    border: 2px solid rgba(127, 255, 0, 0.2);
    color: var(--text-gray);
}

.fb-step-dot.active .fb-step-num {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #0A1A1A;
}

.fb-step-dot.done .fb-step-num {
    background: rgba(127, 255, 0, 0.25);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.fb-step-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-gray);
}

.fb-step-dot.active .fb-step-label {
    color: var(--primary-color);
}

/* Body */
.fb-body {
    padding: 1.5rem;
}

/* Step containers */
.fb-step-content {
    display: none;
}

.fb-step-content.visible {
    display: block;
    animation: fbFadeIn 0.2s ease;
}

/* ── Step 1: Price confirm ── */
.fb-price-card {
    background: rgba(26, 58, 58, 0.4);
    border: 1px solid rgba(127, 255, 0, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.fb-price-route {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fb-price-route img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
}

.fb-price-route .route-label {
    font-weight: 700;
    font-size: 1rem;
}

.fb-price-route .route-sub {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.fb-price-amount {
    text-align: center;
    margin: 1.25rem 0;
}

.fb-price-amount .amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.fb-price-amount .label {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

.fb-price-status {
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.fb-price-status.loading {
    background: rgba(127, 255, 0, 0.05);
    color: var(--text-gray);
}

.fb-price-status.success {
    background: rgba(0, 200, 150, 0.1);
    color: #00C896;
}

.fb-price-status.error {
    background: rgba(255, 100, 100, 0.1);
    color: #FF6464;
}

.fb-price-status.warning {
    background: rgba(255, 200, 50, 0.1);
    color: #FFC832;
}

/* ── Step 2: Passenger forms ── */
.fb-pax-form {
    background: rgba(26, 58, 58, 0.3);
    border: 1px solid rgba(127, 255, 0, 0.06);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.fb-pax-form h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
}

.fb-pax-form h4 .pax-type-badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    background: rgba(127, 255, 0, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
}

.fb-pax-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.fb-pax-grid .full-width {
    grid-column: 1 / -1;
}

.fb-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fb-field label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.fb-field input,
.fb-field select {
    padding: 0.55rem 0.75rem;
    background: rgba(10, 26, 26, 0.7);
    border: 1px solid rgba(127, 255, 0, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.fb-field input:focus,
.fb-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(127, 255, 0, 0.08);
}

.fb-field input.error,
.fb-field select.error {
    border-color: #FF6464;
}

.fb-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C0C0C0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* ── Step 3: Extras ── */
.fb-extras-group {
    margin-bottom: 1rem;
}

.fb-extras-group h4 {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
}

.fb-extras-group h4 svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.fb-extras-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: rgba(26, 58, 58, 0.3);
    border: 1px solid rgba(127, 255, 0, 0.06);
    border-radius: 8px;
    margin-bottom: 0.4rem;
}

.fb-extras-item .item-info {
    flex: 1;
    min-width: 0;
}

.fb-extras-item .item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.fb-extras-item .item-detail {
    font-size: 0.72rem;
    color: var(--text-gray);
}

.fb-extras-item .item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0.75rem;
    white-space: nowrap;
}

.fb-extras-item select,
.fb-extras-item input[type="checkbox"] {
    background: rgba(10, 26, 26, 0.7);
    border: 1px solid rgba(127, 255, 0, 0.15);
    border-radius: 6px;
    color: var(--text-light);
    padding: 0.3rem 0.5rem;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
}

.fb-extras-item input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.fb-seat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.fb-seat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    background: rgba(26, 58, 58, 0.3);
    border: 1px solid rgba(127, 255, 0, 0.06);
    border-radius: 8px;
    font-size: 0.8rem;
}

.fb-seat-item label {
    flex: 1;
    font-size: 0.78rem;
    color: var(--text-gray);
}

.fb-seat-item select {
    max-width: 120px;
    background: rgba(10, 26, 26, 0.7);
    border: 1px solid rgba(127, 255, 0, 0.12);
    border-radius: 6px;
    color: var(--text-light);
    padding: 0.3rem 0.4rem;
    font-size: 0.78rem;
    font-family: inherit;
}

.fb-extras-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(127, 255, 0, 0.06);
    border: 1px solid rgba(127, 255, 0, 0.12);
    border-radius: 10px;
    margin-top: 0.75rem;
}

.fb-extras-total .total-label {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.fb-extras-total .total-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
}

.fb-no-extras {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-gray);
    font-size: 0.88rem;
}

.fb-no-extras svg {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

/* ── Step 4: Confirmation ── */
.fb-confirm-section {
    margin-bottom: 1rem;
}

.fb-confirm-section h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.fb-confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.88rem;
}

.fb-confirm-row .label {
    color: var(--text-gray);
}

.fb-confirm-row .value {
    font-weight: 600;
    color: var(--text-light);
}

.fb-confirm-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(127, 255, 0, 0.08);
    border: 1px solid rgba(127, 255, 0, 0.15);
    border-radius: 10px;
    margin: 1rem 0;
}

.fb-confirm-total .total-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

.fb-confirm-total .total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* ── Result (success / failure) ── */
.fb-result {
    text-align: center;
    padding: 2rem 1rem;
}

.fb-result .result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.fb-result h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.fb-result .ref-code {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(127, 255, 0, 0.08);
    border: 1px solid rgba(127, 255, 0, 0.15);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin: 0.75rem 0;
    font-family: monospace;
}

.fb-result .hp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    color: #FFD700;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0.5rem 0.25rem;
}

.fb-result .error-msg {
    color: #FF6464;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* ── Shared modal buttons ── */
.fb-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: #0A1A1A;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.fb-btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(127, 255, 0, 0.3);
}

.fb-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fb-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem;
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(127, 255, 0, 0.15);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.fb-btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.fb-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(127, 255, 0, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto;
}

.fb-validation-msg {
    font-size: 0.78rem;
    color: #FF6464;
    margin-top: 0.5rem;
    text-align: center;
}

/* ── Responsive booking modal ── */
@media (max-width: 640px) {
    .fb-panel {
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
    }

    .fb-pax-grid {
        grid-template-columns: 1fr;
    }

    .fb-seat-grid {
        grid-template-columns: 1fr;
    }

    .fb-steps {
        padding: 0.75rem 1rem;
    }

    .fb-body {
        padding: 1rem;
    }
}

/* ═══════════════════════════════════════════
   PHASE 3c — PAGE TABS + MY BOOKINGS
   ═══════════════════════════════════════════ */

/* ── Page-level tabs ── */
.flights-page-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
    justify-content: center;
}

.flights-page-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(127, 255, 0, 0.15);
    border-radius: 24px;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
}

.flights-page-tab svg {
    width: 16px;
    height: 16px;
}

.flights-page-tab:hover {
    border-color: rgba(127, 255, 0, 0.3);
    color: var(--text-light);
}

.flights-page-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #0A1A1A;
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0 5px;
    background: rgba(127, 255, 0, 0.15);
    color: var(--primary-color);
}

.flights-page-tab.active .tab-badge {
    background: rgba(10, 26, 26, 0.25);
    color: #0A1A1A;
}

/* ── My Bookings section ── */
.mb-section {
    padding: 1.5rem 0 2rem;
}

/* Stats row */
.mb-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.mb-stat {
    background: rgba(26, 58, 58, 0.4);
    border: 1px solid rgba(127, 255, 0, 0.08);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.mb-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.mb-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-gray);
}

/* Filter tabs */
.mb-tabs {
    display: flex;
    gap: 0.25rem;
    background: rgba(10, 26, 26, 0.5);
    border-radius: 12px;
    padding: 0.25rem;
    margin-bottom: 1rem;
}

.mb-tab {
    flex: 1;
    padding: 0.6rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-gray);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.mb-tab:hover {
    color: var(--text-light);
    background: rgba(127, 255, 0, 0.04);
}

.mb-tab.active {
    background: rgba(127, 255, 0, 0.1);
    color: var(--primary-color);
}

/* ── Booking card ── */
.mb-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    background: rgba(26, 58, 58, 0.35);
    border: 1px solid rgba(127, 255, 0, 0.06);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
}

.mb-card:hover {
    border-color: rgba(127, 255, 0, 0.18);
    background: rgba(26, 58, 58, 0.5);
    transform: translateY(-1px);
}

/* Date column */
.mb-card-date {
    text-align: center;
    min-width: 52px;
}

.mb-card-date .day {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.mb-card-date .month {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-gray);
    letter-spacing: 0.5px;
}

.mb-card-date .year {
    font-size: 0.62rem;
    color: rgba(192, 192, 192, 0.5);
}

/* Route info */
.mb-card-route {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.mb-card-route .route-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

.mb-card-route .route-main .airline-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
}

.mb-card-route .route-arrow {
    color: var(--primary-color);
    font-weight: 400;
}

.mb-card-route .route-sub {
    font-size: 0.78rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mb-card-route .route-sub .pnr {
    font-family: monospace;
    font-weight: 600;
    color: rgba(127, 255, 0, 0.7);
}

/* Price + status column */
.mb-card-end {
    text-align: right;
    min-width: 90px;
}

.mb-card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-light);
}

.mb-card-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.2rem;
}

.mb-card-status.status-confirmed,
.mb-card-status.status-ticketed {
    background: rgba(0, 200, 150, 0.12);
    color: #00C896;
}

.mb-card-status.status-pending,
.mb-card-status.status-awaiting_payment,
.mb-card-status.status-confirming {
    background: rgba(255, 200, 50, 0.1);
    color: #FFC832;
}

.mb-card-status.status-cancelled,
.mb-card-status.status-failed {
    background: rgba(255, 100, 100, 0.1);
    color: #FF6464;
}

.mb-card-status.status-refunded {
    background: rgba(100, 180, 255, 0.1);
    color: #64B4FF;
}

/* ── Empty / No-match state ── */
.mb-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-gray);
}

.mb-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    opacity: 0.35;
}

.mb-empty h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.mb-empty p {
    font-size: 0.88rem;
    max-width: 380px;
    margin: 0 auto;
}

/* ── Detail overlay ── */
.mb-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fbFadeIn 0.25s ease;
}

.mb-detail-panel {
    background: var(--bg-dark);
    border: 1px solid rgba(127, 255, 0, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: fbSlideUp 0.3s ease;
}

.mb-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(127, 255, 0, 0.08);
}

.mb-detail-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mb-detail-body {
    padding: 1.5rem;
}

.mb-detail-group {
    margin-bottom: 1.25rem;
}

.mb-detail-group h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mb-detail-group h4 svg {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

.mb-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.88rem;
}

.mb-detail-row .label {
    color: var(--text-gray);
}

.mb-detail-row .value {
    font-weight: 600;
    color: var(--text-light);
}

.mb-detail-row .value.pnr {
    font-family: monospace;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Passenger list in detail */
.mb-pax-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: rgba(26, 58, 58, 0.3);
    border-radius: 8px;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.mb-pax-item .pax-name {
    font-weight: 600;
    color: var(--text-light);
}

.mb-pax-item .pax-meta {
    color: var(--text-gray);
    font-size: 0.78rem;
}

/* Status timeline */
.mb-timeline {
    position: relative;
    padding-left: 1.5rem;
}

.mb-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(127, 255, 0, 0.1);
}

.mb-timeline-item {
    position: relative;
    padding: 0.3rem 0;
    font-size: 0.82rem;
}

.mb-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--bg-dark);
}

.mb-timeline-item .tl-time {
    font-size: 0.7rem;
    color: rgba(192, 192, 192, 0.5);
}

.mb-timeline-item .tl-event {
    color: var(--text-gray);
}

/* Cancel button in detail */
.mb-cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem;
    background: transparent;
    color: #FF6464;
    border: 1px solid rgba(255, 100, 100, 0.2);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    margin-top: 0.5rem;
}

.mb-cancel-btn:hover {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.4);
}

.mb-cancel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Detail footer */
.mb-detail-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(127, 255, 0, 0.05);
    display: flex;
    gap: 0.5rem;
}

.mb-detail-footer .fb-btn-secondary {
    margin-top: 0;
}

/* ── Responsive My Bookings ── */
@media (max-width: 640px) {
    .flights-page-tabs {
        gap: 0.35rem;
    }

    .flights-page-tab {
        padding: 0.5rem 1rem;
        font-size: 0.82rem;
    }

    .mb-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .mb-card {
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
    }

    .mb-card-end {
        grid-column: 1 / -1;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(127, 255, 0, 0.05);
    }

    .mb-detail-panel {
        border-radius: 12px 12px 0 0;
        margin-top: auto;
        max-height: 95vh;
    }

    .mb-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .mb-tab {
        white-space: nowrap;
        flex: unset;
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 420px) {
    .mb-stat {
        padding: 0.75rem 0.5rem;
    }

    .mb-stat-num {
        font-size: 1.3rem;
    }
}

/* ═══════════════════════════════════════════════════
   PHASE 3d — FLEXIBLE DATES TOGGLE
   ═══════════════════════════════════════════════════ */
.flex-dates-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.5rem;
    padding: 0 0.25rem;
}

.flex-dates-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    flex-shrink: 0;
}

.flex-dates-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.flex-dates-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    transition: 0.25s;
}

.flex-dates-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background: var(--text-gray);
    border-radius: 50%;
    transition: 0.25s;
}

.flex-dates-switch input:checked + .flex-dates-slider {
    background: var(--primary-color);
}

.flex-dates-switch input:checked + .flex-dates-slider::before {
    transform: translateX(18px);
    background: var(--bg-dark);
}

.flex-dates-text {
    font-size: 0.82rem;
    color: var(--text-gray);
}

.flex-dates-text #flex-dates-label {
    color: var(--primary-color);
    font-weight: 500;
    margin-left: 0.25rem;
}

/* ═══════════════════════════════════════════════════
   PHASE 3d — RECENT SEARCHES
   ═══════════════════════════════════════════════════ */
.recent-searches-container {
    margin-top: 1rem;
}

.recent-searches-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.recent-searches-label i,
.recent-searches-label svg {
    width: 14px;
    height: 14px;
}

.recent-searches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.recent-search-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    color: var(--text-light);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.recent-search-chip:hover {
    background: rgba(127, 255, 0, 0.06);
    border-color: rgba(127, 255, 0, 0.2);
}

.recent-search-chip .rs-route {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.recent-search-chip .rs-date {
    color: var(--text-gray);
    font-size: 0.72rem;
}

.recent-search-chip.rs-clear {
    padding: 0.35rem 0.55rem;
    color: var(--text-gray);
    border-color: transparent;
    background: transparent;
}

.recent-search-chip.rs-clear:hover {
    color: #FF6464;
    background: rgba(255, 100, 100, 0.06);
}

.recent-search-chip.rs-clear i,
.recent-search-chip.rs-clear svg {
    width: 13px;
    height: 13px;
}

/* ═══════════════════════════════════════════════════
   PHASE 3d — FLIGHT CARD ACTION BUTTONS
   ═══════════════════════════════════════════════════ */
.flight-card-actions {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.fc-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.fc-action-btn i,
.fc-action-btn svg {
    width: 15px;
    height: 15px;
}

.fc-action-btn:hover {
    background: rgba(127, 255, 0, 0.08);
    border-color: rgba(127, 255, 0, 0.2);
    color: var(--primary-color);
}

.fc-action-btn.active {
    background: rgba(127, 255, 0, 0.12);
    border-color: rgba(127, 255, 0, 0.3);
    color: var(--primary-color);
}

/* ═══════════════════════════════════════════════════
   PHASE 3d — COMPARE BAR (sticky bottom)
   ═══════════════════════════════════════════════════ */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.5rem;
    background: rgba(15, 42, 42, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(127, 255, 0, 0.15);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    gap: 0.75rem;
}

.compare-bar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.compare-count {
    font-size: 0.78rem;
    color: var(--text-gray);
    white-space: nowrap;
}

.compare-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: rgba(127, 255, 0, 0.08);
    border: 1px solid rgba(127, 255, 0, 0.2);
    border-radius: 14px;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.compare-chip:hover {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.3);
}

.compare-chip-x {
    font-size: 0.68rem;
    color: var(--text-gray);
    margin-left: 0.15rem;
}

.compare-bar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.compare-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: 0.2s;
}

.compare-open-btn:hover:not(:disabled) {
    background: #9FFF33;
}

.compare-open-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.compare-open-btn i,
.compare-open-btn svg {
    width: 15px;
    height: 15px;
}

.compare-clear-btn {
    padding: 0.45rem 0.75rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 0.78rem;
    cursor: pointer;
    transition: 0.2s;
}

.compare-clear-btn:hover {
    color: #FF6464;
    border-color: rgba(255, 100, 100, 0.3);
}

/* ═══════════════════════════════════════════════════
   PHASE 3d — COMPARE MODAL
   ═══════════════════════════════════════════════════ */
.cmp-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s;
}

.cmp-panel {
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.cmp-panel.cmp-cols-3 {
    max-width: 960px;
}

.cmp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cmp-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.cmp-header h2 i,
.cmp-header h2 svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.cmp-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    background: transparent;
    color: var(--text-gray);
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.cmp-close:hover {
    background: rgba(255, 100, 100, 0.08);
    color: #FF6464;
}

.cmp-grid {
    padding: 0.75rem 1.25rem 1.25rem;
}

.cmp-row {
    display: grid;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    align-items: center;
}

.cmp-cols-2 .cmp-row { grid-template-columns: 100px 1fr 1fr; }
.cmp-cols-3 .cmp-row { grid-template-columns: 100px 1fr 1fr 1fr; }

.cmp-label {
    font-size: 0.78rem;
    color: var(--text-gray);
    font-weight: 500;
}

.cmp-cell {
    font-size: 0.88rem;
    color: var(--text-light);
    text-align: center;
}

.cmp-row-header .cmp-cell {
    font-weight: 600;
}

.cmp-airline-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.cmp-airline-cell img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.cmp-row-price .cmp-cell {
    font-size: 1.05rem;
    font-weight: 700;
}

.cmp-best-price {
    color: var(--primary-color);
}

.cmp-best-score {
    color: #FFC832;
}

.cmp-badge-best {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-left: 0.3rem;
}

.cmp-best-price .cmp-badge-best {
    background: rgba(127, 255, 0, 0.1);
    border: 1px solid rgba(127, 255, 0, 0.2);
    color: var(--primary-color);
}

.cmp-best-score .cmp-badge-best {
    background: rgba(255, 200, 50, 0.1);
    border: 1px solid rgba(255, 200, 50, 0.2);
    color: #FFC832;
}

.cmp-row-actions {
    border-bottom: none;
    padding-top: 1rem;
}

.cmp-select-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
}

.cmp-select-btn:hover {
    background: #9FFF33;
}

/* ═══════════════════════════════════════════════════
   PHASE 3d — TOAST NOTIFICATION
   ═══════════════════════════════════════════════════ */
.flight-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    padding: 0.6rem 1.25rem;
    background: rgba(15, 42, 42, 0.95);
    border: 1px solid rgba(127, 255, 0, 0.25);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 11000;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.flight-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.flight-toast.error {
    border-color: rgba(255, 100, 100, 0.3);
    color: #FF8888;
}

/* ═══════════════════════════════════════════════════
   PHASE 3d — RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .compare-bar {
        flex-direction: column;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        bottom: 64px; /* above mobile bottom nav */
    }

    .compare-bar-left {
        justify-content: center;
    }

    .compare-bar-right {
        width: 100%;
        justify-content: center;
    }

    .cmp-panel {
        max-height: 85vh;
    }

    .cmp-cols-2 .cmp-row { grid-template-columns: 80px 1fr 1fr; }
    .cmp-cols-3 .cmp-row { grid-template-columns: 80px 1fr 1fr 1fr; }

    .cmp-label {
        font-size: 0.72rem;
    }

    .cmp-cell {
        font-size: 0.78rem;
    }

    .recent-searches-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .recent-searches-list::-webkit-scrollbar {
        display: none;
    }

    .flight-card-actions {
        gap: 0.2rem;
    }

    .fc-action-btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .cmp-cols-2 .cmp-row,
    .cmp-cols-3 .cmp-row {
        grid-template-columns: 60px repeat(auto-fill, 1fr);
    }

    .cmp-airline-cell {
        flex-direction: column;
        gap: 0.2rem;
    }

    .cmp-airline-cell span {
        font-size: 0.7rem;
    }

    .flex-dates-row {
        margin-top: 0.35rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   PHASE 3e — RICH CARDS, PREFERENCES, ALLIANCE BADGES
   ═══════════════════════════════════════════════════════════ */

/* ── Score bar ── */
.flight-score-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.35rem 0 0.25rem;
    cursor: help;
}

.score-bar {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #FF6464 0%, #FFA500 40%, #7FFF00 75%, #00E676 100%);
    transition: width 0.4s ease;
}

.score-val {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 22px;
    text-align: right;
}

/* ── Amenities row ── */
.amenities-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.amenity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: rgba(127, 255, 0, 0.08);
    color: var(--primary-color);
}

.amenity-icon svg,
.amenity-icon i {
    width: 13px;
    height: 13px;
}

.amenity-icon.muted {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-gray);
    opacity: 0.6;
}

.amenity-text {
    font-size: 0.7rem;
    color: var(--text-gray);
    font-weight: 500;
    padding: 0.15rem 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

/* ── Alliance badges ── */
.alliance-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 0.3rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.alliance-star_alliance {
    background: rgba(255, 215, 0, 0.12);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.alliance-oneworld {
    background: rgba(100, 180, 255, 0.12);
    color: #64B4FF;
    border: 1px solid rgba(100, 180, 255, 0.2);
}

.alliance-skyteam {
    background: rgba(200, 140, 255, 0.12);
    color: #C88CFF;
    border: 1px solid rgba(200, 140, 255, 0.2);
}

/* ── CO₂ badges ── */
.badge-co2 {
    font-size: 0.68rem;
}

.badge-co2.co2-low {
    background: rgba(0, 230, 118, 0.1);
    color: #00E676;
    border-color: rgba(0, 230, 118, 0.2);
}

.badge-co2.co2-med {
    background: rgba(255, 165, 0, 0.1);
    color: #FFA500;
    border-color: rgba(255, 165, 0, 0.2);
}

.badge-co2.co2-high {
    background: rgba(255, 100, 100, 0.1);
    color: #FF6464;
    border-color: rgba(255, 100, 100, 0.2);
}

/* ── Urgency / seats remaining ── */
.badge-seats {
    animation: pulse-badge 2s ease-in-out infinite;
}

.badge-seats.seats-critical {
    background: rgba(255, 60, 60, 0.15);
    color: #FF3C3C;
    border-color: rgba(255, 60, 60, 0.3);
    font-weight: 700;
}

.badge-seats.seats-low {
    background: rgba(255, 165, 0, 0.12);
    color: #FFA500;
    border-color: rgba(255, 165, 0, 0.2);
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ── Fare brand badge ── */
.badge-fare {
    background: rgba(127, 255, 0, 0.06);
    color: var(--primary-color);
    border-color: rgba(127, 255, 0, 0.15);
    font-style: italic;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   TRAVEL PREFERENCES PANEL
   ═══════════════════════════════════════════════ */

/* Prefs button (inside search card) */
.tp-prefs-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(127, 255, 0, 0.15);
    background: rgba(127, 255, 0, 0.06);
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 5;
}

.tp-prefs-btn:hover {
    background: rgba(127, 255, 0, 0.12);
    color: var(--primary-color);
    border-color: rgba(127, 255, 0, 0.3);
}

.tp-prefs-btn.has-prefs {
    color: var(--primary-color);
    border-color: rgba(127, 255, 0, 0.3);
}

.tp-prefs-btn.has-prefs::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

.tp-prefs-btn svg,
.tp-prefs-btn i {
    width: 16px;
    height: 16px;
}

/* Overlay */
.tp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Panel */
.tp-panel {
    background: var(--bg-dark, #0F2A2A);
    border: 1px solid rgba(127, 255, 0, 0.12);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.tp-header h2 svg,
.tp-header h2 i {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.tp-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tp-close:hover {
    background: rgba(255, 100, 100, 0.1);
    color: #FF6464;
    border-color: rgba(255, 100, 100, 0.2);
}

.tp-body {
    padding: 1.5rem;
}

.tp-subtitle {
    font-size: 0.82rem;
    color: var(--text-gray);
    margin: 0 0 1.3rem;
    line-height: 1.45;
}

.tp-group {
    margin-bottom: 1.1rem;
}

.tp-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light, #fff);
    margin-bottom: 0.4rem;
}

.tp-label svg,
.tp-label i {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

.tp-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.85rem;
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
}

.tp-input:focus {
    border-color: rgba(127, 255, 0, 0.4);
}

.tp-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.tp-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='%23C0C0C0'%3E%3Cpath d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.tp-select:focus {
    border-color: rgba(127, 255, 0, 0.4);
}

.tp-select option {
    background: #1A3A3A;
    color: #fff;
}

.tp-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-top: 0.3rem;
    opacity: 0.7;
}

.tp-row {
    display: flex;
    gap: 1rem;
}

.tp-budget-row {
    display: flex;
    gap: 0.5rem;
}

.tp-budget-row .tp-currency {
    width: 110px;
    flex-shrink: 0;
}

.tp-budget-row .tp-input {
    flex: 1;
}

.tp-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-btn-primary {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: none;
    background: var(--primary-color, #7FFF00);
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: opacity 0.2s;
}

.tp-btn-primary:hover {
    opacity: 0.9;
}

.tp-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tp-btn-primary svg,
.tp-btn-primary i {
    width: 15px;
    height: 15px;
}

.tp-btn-secondary {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-gray);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tp-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ── Booking Timeline Enhancement ── */
.mb-timeline {
    position: relative;
    padding-left: 1.2rem;
}

.mb-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(127, 255, 0, 0.15);
    border-radius: 1px;
}

.mb-timeline-item {
    position: relative;
    padding: 0.5rem 0;
    padding-left: 0.5rem;
}

.mb-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.2rem;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--bg-dark, #0F2A2A);
    left: -0.45rem;
}

.mb-timeline-item:first-child::before {
    width: 10px;
    height: 10px;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(127, 255, 0, 0.2);
}

.tl-time {
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-bottom: 0.15rem;
}

.tl-event {
    font-size: 0.82rem;
    color: var(--text-light, #fff);
    font-weight: 500;
    text-transform: capitalize;
}

.tl-details {
    font-size: 0.72rem;
    color: var(--text-gray);
    margin-top: 0.15rem;
    opacity: 0.8;
}

/* ── Responsive for Phase 3e ── */
@media (max-width: 768px) {
    .tp-row {
        flex-direction: column;
        gap: 0;
    }

    .tp-panel {
        max-width: 100%;
        border-radius: 12px;
    }

    .tp-body {
        padding: 1rem;
    }

    .tp-footer {
        padding: 1rem;
    }

    .tp-budget-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tp-budget-row .tp-currency {
        width: 100%;
    }

    .alliance-badge {
        font-size: 0.58rem;
        padding: 0.05rem 0.25rem;
    }

    .amenities-row {
        gap: 0.3rem;
    }

    .amenity-icon {
        width: 20px;
        height: 20px;
    }

    .amenity-icon svg,
    .amenity-icon i {
        width: 11px;
        height: 11px;
    }
}

/* ═══════════════════════════════════════════════════════════
   RICH FLIGHT DETAIL — Expandable Panel
   Full segment breakdown, price details, connection info
   ═══════════════════════════════════════════════════════════ */

/* Toggle button on card */
.flight-detail-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(127, 255, 0, 0.06);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 0.4rem;
}
.flight-detail-toggle:hover {
    background: rgba(127, 255, 0, 0.04);
    color: var(--primary-color);
    border-color: rgba(127, 255, 0, 0.15);
}
.flight-detail-toggle .toggle-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}
.flight-card.expanded .flight-detail-toggle .toggle-chevron {
    transform: rotate(180deg);
}
.flight-card.expanded .flight-detail-toggle {
    color: var(--primary-color);
    border-color: rgba(127, 255, 0, 0.15);
}

.flight-card.expanded {
    border-color: rgba(127, 255, 0, 0.18);
    align-items: start;
}

/* Detail panel */
.flight-detail-panel {
    display: none;
    grid-column: 1 / -1;
    background: rgba(15, 42, 42, 0.5);
    border: 1px solid rgba(127, 255, 0, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 0.75rem;
    animation: slideDetailIn 0.3s ease;
}
.flight-card.expanded .flight-detail-panel {
    display: block;
}
@keyframes slideDetailIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section headings inside detail panel */
.fd-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(127, 255, 0, 0.06);
}
.fd-section-title i[data-lucide] {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

/* Two-column layout: itinerary + info sidebar */
.fd-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.25rem;
}
@media (max-width: 768px) {
    .fd-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Segment timeline ── */
.fd-itinerary-block {
    margin-bottom: 1rem;
}
.fd-itinerary-block:last-child {
    margin-bottom: 0;
}
.fd-direction-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.fd-direction-label i[data-lucide] {
    width: 13px;
    height: 13px;
}

.fd-segment {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1rem;
    position: relative;
    padding-left: 0.25rem;
}

/* Timeline rail */
.fd-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    position: relative;
}
.fd-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--bg-dark, #0A1A1A);
    z-index: 1;
    flex-shrink: 0;
}
.fd-dot.filled {
    background: var(--primary-color);
}
.fd-rail {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(127,255,0,0.15) 100%);
    min-height: 2rem;
}

/* Segment content row */
.fd-seg-content {
    padding-bottom: 0.3rem;
}
.fd-seg-airport {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}
.fd-seg-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    min-width: 42px;
}
.fd-seg-iata {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
}
.fd-seg-name {
    font-size: 0.78rem;
    color: var(--text-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}
.fd-seg-terminal {
    font-size: 0.72rem;
    color: rgba(192,192,192,0.5);
    margin-left: 0.25rem;
}
.fd-seg-date {
    font-size: 0.72rem;
    color: var(--text-gray);
    margin-bottom: 0.2rem;
}

/* Flight info row (between departure and arrival) */
.fd-flight-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.6rem 0;
    margin: 0.2rem 0;
    border-left: 2px dashed rgba(127,255,0,0.1);
    padding-left: 0.75rem;
}
.fd-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: var(--text-gray);
    background: rgba(255,255,255,0.03);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.04);
}
.fd-info-chip i[data-lucide] {
    width: 12px;
    height: 12px;
    color: var(--primary-color);
    opacity: 0.8;
}
.fd-info-chip .chip-label {
    color: rgba(192,192,192,0.5);
}
.fd-info-chip .chip-value {
    color: var(--text-light);
    font-weight: 600;
}

/* Codeshare badge */
.fd-codeshare {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #FFA500;
    background: rgba(255,165,0,0.08);
    border: 1px solid rgba(255,165,0,0.15);
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
}
.fd-codeshare i[data-lucide] {
    width: 11px;
    height: 11px;
}

/* ── Layover connector ── */
.fd-layover {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin: 0.3rem 0 0.3rem 1.5rem;
    background: rgba(255,165,0,0.05);
    border: 1px dashed rgba(255,165,0,0.2);
    border-radius: 8px;
    font-size: 0.75rem;
    color: #FFA500;
}
.fd-layover i[data-lucide] {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.fd-layover-duration {
    font-weight: 700;
}
.fd-layover-long {
    color: #FF6464;
    border-color: rgba(255,100,100,0.2);
    background: rgba(255,100,100,0.05);
}

/* ── Info sidebar ── */
.fd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fd-info-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(127,255,0,0.06);
    border-radius: 10px;
    padding: 0.75rem;
}
.fd-info-card-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.fd-info-card-title i[data-lucide] {
    width: 13px;
    height: 13px;
    color: var(--primary-color);
}

/* Price breakdown */
.fd-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 0.25rem 0;
    color: var(--text-gray);
}
.fd-price-row.total {
    border-top: 1px solid rgba(127,255,0,0.1);
    margin-top: 0.3rem;
    padding-top: 0.5rem;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.9rem;
}
.fd-price-row .fd-price-val {
    font-weight: 600;
    color: var(--text-light);
}
.fd-price-row.total .fd-price-val {
    color: var(--primary-color);
}
.fd-price-row .fd-price-fee-label {
    font-size: 0.72rem;
}

/* Baggage detail card */
.fd-bag-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.8rem;
    color: var(--text-gray);
}
.fd-bag-row:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.fd-bag-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(127,255,0,0.06);
    border-radius: 6px;
    flex-shrink: 0;
}
.fd-bag-icon i[data-lucide] {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}
.fd-bag-detail {
    flex: 1;
}
.fd-bag-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.78rem;
}
.fd-bag-sub {
    font-size: 0.7rem;
    color: rgba(192,192,192,0.5);
}
.fd-bag-none {
    color: #FF6464;
}

/* Offer expiry timer */
.fd-expiry {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-gray);
    padding: 0.4rem 0.6rem;
    background: rgba(255,165,0,0.05);
    border: 1px solid rgba(255,165,0,0.12);
    border-radius: 6px;
}
.fd-expiry i[data-lucide] {
    width: 12px;
    height: 12px;
    color: #FFA500;
}
.fd-expiry-urgent {
    color: #FF6464;
    border-color: rgba(255,100,100,0.15);
    background: rgba(255,100,100,0.05);
}
.fd-expiry-urgent i[data-lucide] {
    color: #FF6464;
}

/* Score detail breakdown */
.fd-score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}
.fd-score-item {
    text-align: center;
    padding: 0.4rem;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.03);
}
.fd-score-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}
.fd-score-label {
    font-size: 0.65rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.1rem;
}
.fd-score-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    margin-top: 0.25rem;
    overflow: hidden;
}
.fd-score-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* CO₂ comparison */
.fd-co2-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
}
.fd-co2-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}
.fd-co2-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}
.fd-co2-fill.low { background: #4ADE80; }
.fd-co2-fill.med { background: #FFA500; }
.fd-co2-fill.high { background: #FF6464; }
.fd-co2-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
    min-width: 50px;
    text-align: right;
}

/* Fare class badge in card */
.fd-cabin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}
.fd-cabin-economy { background: rgba(127,255,0,0.08); color: var(--primary-color); }
.fd-cabin-premium_economy { background: rgba(56,189,248,0.1); color: #38BDF8; }
.fd-cabin-business { background: rgba(255,165,0,0.1); color: #FFA500; }
.fd-cabin-first { background: rgba(200,150,255,0.1); color: #C896FF; }

/* Card enhancement — show airport names on hover */
.route-time .airport-name {
    display: none;
    font-size: 0.62rem;
    color: rgba(192,192,192,0.5);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.flight-card:hover .route-time .airport-name {
    display: block;
}

/* Enhanced card — cabin class pill near airline */
.card-cabin-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-weight: 600;
    margin-left: 0.3rem;
    vertical-align: middle;
}
.card-cabin-economy { background: rgba(127,255,0,0.06); color: var(--primary-color); }
.card-cabin-premium_economy { background: rgba(56,189,248,0.08); color: #38BDF8; }
.card-cabin-business { background: rgba(255,165,0,0.08); color: #FFA500; }
.card-cabin-first { background: rgba(200,150,255,0.08); color: #C896FF; }

/* Aircraft type display */
.card-aircraft {
    font-size: 0.68rem;
    color: rgba(192,192,192,0.45);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.1rem;
}
.card-aircraft i[data-lucide] {
    width: 10px;
    height: 10px;
}

/* Connection dots enhanced */
.route-connection-airports {
    display: none;
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: rgba(255,165,0,0.7);
    white-space: nowrap;
}
.flight-card:hover .route-connection-airports {
    display: block;
}

/* Airport city name under IATA code */
.airport-city {
    font-size: 0.62rem;
    color: var(--text-gray, rgba(255,255,255,0.45));
    line-height: 1.2;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 1px;
}

/* Flight score row in card */
.flight-score-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

/* fd-direction-label */
.fd-direction-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color, #38BDF8);
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fd-direction-label i[data-lucide] {
    width: 14px;
    height: 14px;
}
.fd-itinerary-block + .fd-itinerary-block {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255,255,255,0.08);
}

/* fd-seg-date */
.fd-seg-date {
    font-size: 0.65rem;
    color: var(--text-gray, rgba(255,255,255,0.4));
    margin-bottom: 0.15rem;
    font-weight: 500;
}

/* fd-seg-terminal */
.fd-seg-terminal {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.35);
    margin-left: 0.35rem;
    padding-left: 0.35rem;
    border-left: 1px solid rgba(255,255,255,0.08);
}

/* fd-price-fee-label */
.fd-price-fee-label {
    font-size: 0.7rem;
    color: #FFA500;
}

/* fd-bag-none */
.fd-bag-none {
    color: #FF6464 !important;
}

/* fd-bag-sub */
.fd-bag-sub {
    font-size: 0.68rem;
    color: var(--text-gray, rgba(255,255,255,0.4));
    margin-top: 0.1rem;
}

/* Responsive detail panel */
@media (max-width: 640px) {
    .fd-layout {
        grid-template-columns: 1fr;
    }
    .fd-flight-info {
        gap: 0.35rem;
    }
    .fd-info-chip {
        font-size: 0.68rem;
        padding: 0.2rem 0.35rem;
    }
    .fd-score-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.35rem;
    }
    .fd-seg-name {
        max-width: 160px;
    }
}

/* ═══════════════════════════════════════════
   MAIN ROUTE MAP (persistent, above results)
   ═══════════════════════════════════════════ */

/* Card toggle buttons row */
.flight-card-toggles {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.flight-map-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid rgba(127, 255, 0, 0.06);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.flight-map-toggle:hover {
    background: rgba(56, 189, 248, 0.04);
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.15);
}

/* Active card highlight when route is shown on main map */
.flight-card.map-active {
    border-color: rgba(56, 189, 248, 0.25) !important;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.1), 0 0 24px rgba(56, 189, 248, 0.06) !important;
}
.flight-card.map-active .flight-map-toggle {
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.06);
}

/* ── Main map section ── */
.main-map-section {
    padding: 0 0 0.5rem;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.main-map-section.mm-visible {
    opacity: 1;
    transform: translateY(0);
}

.main-map-card {
    background: rgba(15, 42, 42, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 14px;
    overflow: hidden;
}

/* ── Map header bar ── */
.mm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: rgba(56, 189, 248, 0.03);
    border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}
.mm-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #38BDF8;
    font-size: 0.82rem;
    font-weight: 600;
}
.mm-title {
    color: var(--text-light, #E8E8E8);
}
.mm-route-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 5px;
    padding: 0.15rem 0.5rem;
    letter-spacing: 0.5px;
}
.mm-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.mm-flight-info {
    font-size: 0.75rem;
    color: var(--text-gray, #8B9DA0);
}
.mm-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}
.mm-close-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* ── Leaflet map container (larger for main map) ── */
.mm-map-container {
    width: 100%;
    height: 400px;
    background: #0A1A1A;
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .mm-map-container { height: 280px; }
}
@media (max-width: 480px) {
    .mm-map-container { height: 220px; }
}

/* ── Airport info strip (horizontal cards) ── */
.mm-airport-strip {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.75rem 0.75rem;
    background: rgba(15, 42, 42, 0.6);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.2) transparent;
}
.mm-airport-strip::-webkit-scrollbar {
    height: 4px;
}
.mm-airport-strip::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.2);
    border-radius: 2px;
}

/* Arrow connector between airport cards */
.fm-card-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(56, 189, 248, 0.35);
    padding: 0 0.25rem;
    flex-shrink: 0;
}

/* ── Stats bar ── */
.mm-stats-bar {
    border-top: 1px solid rgba(56, 189, 248, 0.06);
    background: rgba(56, 189, 248, 0.02);
    padding: 0;
}
.mm-stats-items {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 0.55rem 1rem;
}
.mm-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: rgba(56, 189, 248, 0.8);
}
.mm-stat strong {
    color: var(--text-light, #E8E8E8);
}
.mm-stat i, .mm-stat svg {
    opacity: 0.6;
}

/* Airport info cards */
.fm-airport-card {
    flex: 1;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    scroll-snap-align: start;
    transition: border-color 0.2s ease;
}
.fm-airport-card:hover {
    border-color: rgba(56, 189, 248, 0.15);
}

/* Card role colors */
.fm-origin {
    border-left: 3px solid #7FFF00;
}
.fm-destination {
    border-left: 3px solid #38BDF8;
}
.fm-transfer {
    border-left: 3px solid #FFA500;
}

.fm-ac-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}
.fm-ac-role {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
}
.fm-origin .fm-ac-role { color: #7FFF00; }
.fm-destination .fm-ac-role { color: #38BDF8; }
.fm-transfer .fm-ac-role { color: #FFA500; }

.fm-ac-iata {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 1px;
}
.fm-ac-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.15rem;
    line-height: 1.3;
}
.fm-ac-city {
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-bottom: 0.35rem;
}
.fm-ac-coords {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.2rem;
}
.fm-ac-distance {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    color: rgba(56, 189, 248, 0.7);
    margin-bottom: 0.25rem;
}
.fm-ac-flight-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
}
.fm-ac-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-gray);
}

/* Total distance */
.fm-total-distance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: rgba(56, 189, 248, 0.8);
    border-top: 1px solid rgba(56, 189, 248, 0.06);
    background: rgba(56, 189, 248, 0.02);
    border-radius: 0 0 10px 10px;
    margin: 0.25rem -0.75rem -0.75rem;
}

/* Loading state */
.fm-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.78rem;
    color: var(--text-gray);
}
.fm-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38BDF8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Leaflet marker customization ── */
.fm-marker {
    background: none !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.fm-marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.fm-marker-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    margin-top: 2px;
}

/* Plane icon on route */
.fm-plane-icon {
    background: none !important;
    border: none !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Distance label on route */
.fm-distance-label {
    background: none !important;
    border: none !important;
}
.fm-distance-label span {
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(10, 26, 26, 0.75);
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

/* Leaflet popup customization */
.fm-leaflet-popup .leaflet-popup-content-wrapper {
    background: rgba(15, 42, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 10px;
    color: var(--text-light, #E8E8E8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.fm-leaflet-popup .leaflet-popup-tip {
    background: rgba(15, 42, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.15);
}
.fm-leaflet-popup .leaflet-popup-close-button {
    color: var(--text-gray);
}
.fm-popup {
    padding: 0.15rem 0;
}
.fm-popup-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.fm-popup-flag {
    font-size: 1.1rem;
}
.fm-popup-name {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.3;
    margin-bottom: 0.1rem;
}
.fm-popup-city {
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-bottom: 0.15rem;
}
.fm-popup-coords {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
}

/* Provider badge */
.badge-provider {
    background: rgba(129, 140, 248, 0.08) !important;
    color: #818CF8 !important;
    border: 1px solid rgba(129, 140, 248, 0.12);
    font-size: 0.62rem;
}

/* ETAP 4: Multi-source badge */
.badge-multi-source {
    background: rgba(251, 191, 36, 0.1) !important;
    color: #FBBF24 !important;
    border: 1px solid rgba(251, 191, 36, 0.18);
    font-size: 0.62rem;
}

/* Override Leaflet default styles for dark theme */
.main-map-card .leaflet-control-zoom a {
    background: rgba(15, 42, 42, 0.9);
    color: var(--text-light);
    border-color: rgba(56, 189, 248, 0.15);
}
.main-map-card .leaflet-control-zoom a:hover {
    background: rgba(56, 189, 248, 0.1);
}

/* Segment info label on route */
.fm-seg-info-label {
    background: none !important;
    border: none !important;
}
.fm-seg-info-label span {
    font-size: 0.58rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

/* Larger marker dots for main map */
.mv-map-container .fm-marker-dot {
    width: 14px;
    height: 14px;
}
.mv-map-container .fm-marker-label {
    font-size: 0.78rem;
}

/* ══════════════════════════════════════════════
   MAP VIEW — full-screen interactive map mode
   ══════════════════════════════════════════════ */

/* ── Layout ── */
.mv-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 500px;
    border-radius: 14px;
    overflow: hidden;
    background: #0A1A1A;
    border: 1px solid rgba(56, 189, 248, 0.1);
}
.mv-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: 1fr auto;
    height: 100%;
    width: 100%;
}

/* ── Left panel: flight list ── */
.mv-flight-list {
    grid-row: 1 / 3;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 35, 0.95);
    border-right: 1px solid rgba(56, 189, 248, 0.08);
    z-index: 3;
    overflow: hidden;
}
.mv-list-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    background: rgba(56, 189, 248, 0.03);
    border-bottom: 1px solid rgba(56, 189, 248, 0.08);
    flex-shrink: 0;
}
.mv-list-title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #38BDF8;
}
.mv-list-count {
    font-size: 0.65rem;
    background: rgba(56, 189, 248, 0.12);
    color: #38BDF8;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    font-weight: 700;
}
.mv-close-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-gray, #8B9DA0);
    cursor: pointer;
    transition: all 0.2s ease;
}
.mv-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #EF4444;
}
.mv-list-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.15) transparent;
}
.mv-list-scroll::-webkit-scrollbar { width: 4px; }
.mv-list-scroll::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.15); border-radius: 2px; }

/* ── Flight mini-cards ── */
.mv-flight-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-bottom: 0.25rem;
}
.mv-flight-item:hover {
    background: rgba(56, 189, 248, 0.04);
    border-color: rgba(56, 189, 248, 0.1);
}
.mv-flight-item.active {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: inset 3px 0 0 #38BDF8;
}
.mv-fi-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.mv-fi-logo {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    flex-shrink: 0;
}
.mv-fi-route {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-light, #E8E8E8);
    flex: 1;
    letter-spacing: 0.3px;
}
.mv-fi-arrow {
    color: rgba(56, 189, 248, 0.5);
    margin: 0 0.15rem;
    font-weight: 400;
}
.mv-fi-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: #38BDF8;
}
.mv-fi-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 2.2rem;
}
.mv-fi-time {
    font-size: 0.68rem;
    color: var(--text-gray, #8B9DA0);
}
.mv-fi-meta {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.35);
}
.mv-fi-multi {
    color: #FBBF24;
    font-weight: 600;
}

/* ── Center: map area ── */
.mv-map-area {
    grid-row: 1;
    grid-column: 2;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.mv-map-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #0A1A1A;
}
.mv-map-container .leaflet-control-zoom a {
    background: rgba(15, 23, 35, 0.85) !important;
    color: var(--text-light, #E8E8E8) !important;
    border-color: rgba(56, 189, 248, 0.12) !important;
    transition: all 0.15s ease;
}
.mv-map-container .leaflet-control-zoom a:hover {
    background: rgba(56, 189, 248, 0.1) !important;
}

/* ── Bottom: info drawer ── */
.mv-info-drawer {
    grid-row: 2;
    grid-column: 2;
    background: rgba(15, 23, 35, 0.97);
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    max-height: 80px;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 2;
}
.mv-info-drawer.expanded {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.15) transparent;
}
.mv-info-drawer.expanded::-webkit-scrollbar { width: 4px; }
.mv-info-drawer.expanded::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.15); border-radius: 2px; }

.mv-drawer-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0 0.3rem;
    cursor: pointer;
    user-select: none;
}
.mv-handle-bar {
    width: 40px;
    height: 4px;
    border-radius: 3px;
    background: rgba(56, 189, 248, 0.25);
    transition: background 0.2s ease;
}
.mv-drawer-handle:hover .mv-handle-bar {
    background: rgba(56, 189, 248, 0.5);
}

.mv-drawer-content {
    padding: 0 1rem 0.75rem;
}
.mv-drawer-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ── Drawer header ── */
.mv-d-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.06);
    margin-bottom: 0.5rem;
}
.mv-d-route-summary {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}
.mv-d-airport {
    font-size: 0.82rem;
    color: var(--text-light, #E8E8E8);
}
.mv-d-airport strong {
    color: #38BDF8;
    letter-spacing: 0.5px;
}
.mv-d-arrow {
    color: rgba(56, 189, 248, 0.4);
    font-size: 0.75rem;
}
.mv-d-quick-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.mv-d-qs {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: rgba(56, 189, 248, 0.8);
}
.mv-d-qs strong {
    color: var(--text-light, #E8E8E8);
}
.mv-d-qs i, .mv-d-qs svg {
    opacity: 0.6;
}

/* ── Tabs ── */
.mv-d-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.06);
}
.mv-d-tab {
    padding: 0.4rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-gray, #8B9DA0);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mv-d-tab:hover {
    color: var(--text-light, #E8E8E8);
}
.mv-d-tab.active {
    color: #38BDF8;
    border-bottom-color: #38BDF8;
}

/* ── Tab panels ── */
.mv-d-panel {
    display: none;
}
.mv-d-panel.active {
    display: block;
}

/* ── Route tab: segment timeline ── */
.mv-d-direction {
    font-size: 0.72rem;
    font-weight: 700;
    color: #38BDF8;
    margin: 0.5rem 0 0.35rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.06);
}
.mv-d-seg {
    display: flex;
    gap: 0.6rem;
    padding: 0.35rem 0;
}
.mv-d-seg-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 14px;
    flex-shrink: 0;
    padding-top: 0.15rem;
}
.mv-d-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid;
    flex-shrink: 0;
}
.mv-d-dot.dep {
    border-color: #7FFF00;
    background: rgba(127, 255, 0, 0.15);
}
.mv-d-dot.arr {
    border-color: #38BDF8;
    background: rgba(56, 189, 248, 0.15);
}
.mv-d-rail {
    flex: 1;
    width: 2px;
    min-height: 30px;
    background: linear-gradient(to bottom, rgba(127, 255, 0, 0.3), rgba(56, 189, 248, 0.3));
    margin: 2px 0;
}
.mv-d-seg-content {
    flex: 1;
    min-width: 0;
}
.mv-d-seg-point {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.mv-d-seg-time {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-light, #E8E8E8);
    min-width: 40px;
}
.mv-d-seg-code {
    font-size: 0.78rem;
    font-weight: 700;
    color: #38BDF8;
    letter-spacing: 0.5px;
}
.mv-d-seg-name {
    font-size: 0.68rem;
    color: var(--text-gray, #8B9DA0);
}

/* Flight info row between dep/arr */
.mv-d-seg-flight {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    padding: 0.3rem 0 0.3rem 0.15rem;
}
.mv-d-seg-logo {
    width: 22px;
    height: 22px;
    border-radius: 3px;
}
.mv-d-seg-airline {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-light, #E8E8E8);
}

/* ── Chips ── */
.mv-d-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-gray, #8B9DA0);
    border: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}
.mv-d-chip.cabin {
    color: #A78BFA;
    background: rgba(167, 139, 250, 0.08);
    border-color: rgba(167, 139, 250, 0.15);
}
.mv-d-chip.dur {
    color: rgba(56, 189, 248, 0.8);
    background: rgba(56, 189, 248, 0.06);
    border-color: rgba(56, 189, 248, 0.1);
}
.mv-d-chip.codeshare {
    color: #FBBF24;
    background: rgba(251, 191, 36, 0.06);
    border-color: rgba(251, 191, 36, 0.12);
}
.mv-d-chip.alliance {
    color: #34D399;
    background: rgba(52, 211, 153, 0.06);
    border-color: rgba(52, 211, 153, 0.12);
}

/* ── Layover ── */
.mv-d-layover {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    color: #FBBF24;
    padding: 0.2rem 0 0.2rem 2rem;
}
.mv-d-terminal-change {
    color: #EF4444;
    font-weight: 600;
}

/* ── Grid layouts ── */
.mv-d-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.mv-d-info-block {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.65rem;
}
.mv-d-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #38BDF8;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Key-value rows ── */
.mv-d-kv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.mv-d-kv > span:first-child {
    color: var(--text-gray, #8B9DA0);
}
.mv-d-kv > span:last-child {
    color: var(--text-light, #E8E8E8);
    font-weight: 600;
}
.mv-d-yes { color: #34D399 !important; }
.mv-d-no { color: #EF4444 !important; }
.mv-d-warn { color: #FBBF24 !important; font-weight: 700 !important; }

/* ── Price rows ── */
.mv-d-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    padding: 0.22rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.mv-d-price-row > span:first-child {
    color: var(--text-gray, #8B9DA0);
}
.mv-d-price-row > span:last-child {
    color: var(--text-light, #E8E8E8);
    font-weight: 600;
}
.mv-d-price-row.total {
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    border-bottom: none;
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    font-size: 0.82rem;
}
.mv-d-price-row.total > span:last-child {
    color: #38BDF8;
    font-weight: 800;
}
.mv-d-price-row.fee > span:last-child {
    color: #FBBF24;
}

/* ── Book button ── */
.mv-d-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0F172A;
    background: linear-gradient(135deg, #38BDF8, #818CF8);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.mv-d-book-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ── Empty / no data ── */
.mv-d-empty {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.25);
    padding: 0.3rem 0;
    font-style: italic;
}
.mv-d-empty.warn {
    color: rgba(239, 68, 68, 0.5);
}

/* ── Airports grid ── */
.mv-d-airports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}
.mv-d-airport-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.55rem;
    transition: border-color 0.2s ease;
}
.mv-d-airport-card:hover {
    border-color: rgba(56, 189, 248, 0.15);
}
.mv-d-airport-card.origin { border-left: 3px solid #7FFF00; }
.mv-d-airport-card.destination { border-left: 3px solid #38BDF8; }
.mv-d-airport-card.transfer { border-left: 3px solid #FFA500; }

.mv-d-ac-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}
.mv-d-ac-role {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray, #8B9DA0);
}
.mv-d-ac-iata {
    font-size: 0.85rem;
    font-weight: 800;
    color: #38BDF8;
    letter-spacing: 1px;
}
.mv-d-ac-name {
    font-size: 0.7rem;
    color: var(--text-light, #E8E8E8);
    margin-bottom: 0.1rem;
}
.mv-d-ac-city {
    font-size: 0.62rem;
    color: var(--text-gray, #8B9DA0);
}
.mv-d-ac-coords {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 0.15rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.mv-d-ac-dist {
    font-size: 0.6rem;
    color: rgba(56, 189, 248, 0.6);
    margin-top: 0.15rem;
}
.mv-d-ac-chips {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}
.mv-d-total-dist {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0;
    font-size: 0.72rem;
    color: rgba(56, 189, 248, 0.7);
}

/* ── Score ── */
.mv-d-score-main {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    margin-bottom: 0.35rem;
}
.mv-d-score-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #38BDF8;
    line-height: 1;
}
.mv-d-score-main span {
    font-size: 0.7rem;
    color: var(--text-gray, #8B9DA0);
}
.mv-d-score-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.mv-d-score-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #38BDF8, #34D399);
    transition: width 0.5s ease;
}
.mv-d-score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mv-d-score-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
}
.mv-d-score-item > span:first-child {
    width: 50px;
    color: var(--text-gray, #8B9DA0);
}
.mv-d-score-item > span:last-child {
    width: 24px;
    text-align: right;
    font-weight: 700;
    color: var(--text-light, #E8E8E8);
}
.mv-d-score-mini {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}
.mv-d-score-mini > div {
    height: 100%;
    background: #38BDF8;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ── CO₂ ── */
.mv-d-co2 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-light, #E8E8E8);
    margin-bottom: 0.25rem;
}
.mv-d-co2 i { color: #34D399; }
.mv-d-co2-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-bottom: 0.2rem;
}
.mv-d-co2-bar > div { height: 100%; border-radius: 3px; }
.mv-d-co2-bar.low > div { background: #34D399; }
.mv-d-co2-bar.med > div { background: #FBBF24; }
.mv-d-co2-bar.high > div { background: #EF4444; }
.mv-d-co2-label {
    font-size: 0.6rem;
    color: var(--text-gray, #8B9DA0);
}

/* ── Airline pill ── */
.mv-d-airline-pill {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-light, #E8E8E8);
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 4px;
    padding: 0.12rem 0.45rem;
    margin: 0.1rem 0.15rem 0 0;
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
    .mv-section {
        height: calc(100vh - 120px);
        border-radius: 10px;
    }
    .mv-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    .mv-flight-list {
        grid-row: 1;
        grid-column: 1;
        max-height: 120px;
        border-right: none;
        border-bottom: 1px solid rgba(56, 189, 248, 0.08);
    }
    .mv-list-scroll {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        flex-direction: row;
        padding: 0.35rem;
        gap: 0.35rem;
    }
    .mv-flight-item {
        flex-shrink: 0;
        min-width: 160px;
        margin-bottom: 0;
    }
    .mv-map-area {
        grid-row: 2;
        grid-column: 1;
        min-height: 250px;
    }
    .mv-info-drawer {
        grid-row: 3;
        grid-column: 1;
    }
    .mv-d-grid-2 {
        grid-template-columns: 1fr;
    }
    .mv-d-airports-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .mv-d-airports-grid {
        grid-template-columns: 1fr;
    }
    .mv-fi-bottom {
        padding-left: 0;
    }
}


/* ═══════════════════════════════════════════════════════
   PURCHASE OPTIONS PANEL — "Where to buy" system
   ═══════════════════════════════════════════════════════ */

.po-buy-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

/* ── Panel (slide-down under card) ── */
.po-panel {
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    margin: -4px 0 12px 0;
    padding: 0;
    overflow: hidden;
    animation: poSlideDown 0.25s ease-out;
}

@keyframes poSlideDown {
    from { opacity: 0; max-height: 0; transform: translateY(-8px); }
    to   { opacity: 1; max-height: 800px; transform: translateY(0); }
}

/* ── Header ── */
.po-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    position: relative;
}

.po-flight-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.po-route-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.po-flight-detail {
    color: #94a3b8;
    font-size: 0.82rem;
    white-space: nowrap;
}

.po-price-note {
    color: #cbd5e1;
    font-size: 0.82rem;
}
.po-price-note strong {
    color: #38BDF8;
}
.po-checked-time {
    color: #64748b;
    font-size: 0.75rem;
    margin-left: 4px;
}

.po-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}
.po-close-btn:hover { color: #f87171; }

/* ── Options list ── */
.po-options-list {
    padding: 8px 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.po-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.po-option:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.25);
    transform: translateX(3px);
}
.po-option.po-priority {
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.06);
}

.po-option-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
}

.po-option-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.po-option-info {
    flex: 1;
    min-width: 0;
}
.po-option-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.88rem;
}
.po-option-desc {
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 1px;
}

.po-option-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.po-option-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.po-option-price {
    color: #38BDF8;
    font-weight: 600;
    font-size: 0.85rem;
}

.po-option-cta {
    color: #94a3b8;
    font-size: 0.78rem;
    white-space: nowrap;
}
.po-option:hover .po-option-cta {
    color: #38BDF8;
}

/* ── Deep Link Hunter Agent ── */
.po-deep-hunt {
    margin: 0 12px 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(56, 189, 248, 0.06) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}
.po-deep-hunt-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #c4b5fd;
}
.po-deep-hunt-icon {
    font-size: 1.1rem;
    animation: po-agent-pulse 1.5s ease-in-out infinite;
}
@keyframes po-agent-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}
.po-deep-hunt-label {
    flex: 1;
    font-weight: 500;
}
.po-deep-hunt-progress {
    font-size: 0.72rem;
    color: #8b5cf6;
    font-variant-numeric: tabular-nums;
}
.po-deep-hunt-bar {
    height: 3px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}
.po-deep-hunt-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8b5cf6, #38bdf8, #8b5cf6);
    background-size: 200% 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
    animation: po-bar-shimmer 2s linear infinite;
}
@keyframes po-bar-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.po-deep-hunt-bar-done {
    animation: none;
    background: #8b5cf6;
}
.po-deep-hunt-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.po-deep-hunt-results:empty {
    display: none;
}

/* Deep link found — option card variant */
.po-option.po-deep-link-found {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    animation: po-deep-found-in 0.4s ease-out;
}
.po-option.po-deep-link-found:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(16, 185, 129, 0.14) 100%);
    border-color: rgba(139, 92, 246, 0.5);
}
@keyframes po-deep-found-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.po-deep-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.po-deep-result-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #10b981;
}

/* Success state */
.po-deep-hunt.po-deep-hunt-success {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(139, 92, 246, 0.04) 100%);
}
.po-deep-hunt.po-deep-hunt-success .po-deep-hunt-icon {
    animation: none;
}
.po-deep-hunt.po-deep-hunt-success .po-deep-hunt-label {
    color: #10b981;
}

/* No results / error state */
.po-deep-hunt.po-deep-hunt-none {
    border-color: rgba(100, 116, 139, 0.15);
    background: rgba(100, 116, 139, 0.05);
    padding: 8px 14px;
}
.po-deep-hunt.po-deep-hunt-none .po-deep-hunt-icon {
    animation: none;
}
.po-deep-hunt.po-deep-hunt-none .po-deep-hunt-label {
    color: #64748b;
    font-size: 0.78rem;
}
.po-deep-hunt.po-deep-hunt-none .po-deep-hunt-bar {
    display: none;
}

/* ── Disclaimer ── */
.po-disclaimer {
    padding: 10px 16px 12px;
    color: #475569;
    font-size: 0.72rem;
    line-height: 1.5;
    border-top: 1px solid rgba(56, 189, 248, 0.06);
    margin-top: 4px;
}

/* ── Overlay (for map view / compare context) ── */
.po-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: poFadeIn 0.2s ease-out;
}
@keyframes poFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.po-overlay-inner {
    max-width: 520px;
    width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
}
.po-overlay-inner .po-panel {
    margin: 0;
}
.po-overlay-close {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: color 0.15s, background 0.15s;
}
.po-overlay-close:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.2);
}

/* ── Loading State ── */
.po-loading .po-options-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.po-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(56, 189, 248, 0.15);
    border-top: 3px solid #38bdf8;
    border-radius: 50%;
    animation: po-spin 0.8s linear infinite;
}
@keyframes po-spin {
    to { transform: rotate(360deg); }
}

/* ── Map View Buy Tab ── */
.mv-d-buy-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0;
}
.mv-d-buy-options .po-option {
    border-radius: 8px;
}
.mv-d-buy-options .po-option-logo {
    width: 28px;
    height: 28px;
}
.mv-d-buy-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.15);
}
.mv-d-buy-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #38bdf8;
}
.mv-d-buy-note {
    font-size: 0.72rem;
    color: #64748b;
}
.mv-d-buy-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.82rem;
}

/* ── ETAP 4: Multi-source Price Comparison Section ── */
.po-sources-section {
    padding: 10px 14px 8px;
    margin: 0 0 2px;
    background: rgba(251, 191, 36, 0.04);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}
.po-sources-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #FBBF24;
    margin-bottom: 8px;
}
.po-sources-icon {
    font-size: 1rem;
}
.po-source-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    margin-bottom: 3px;
    font-size: 0.82rem;
    transition: background 0.15s;
}
.po-source-row:hover {
    background: rgba(255, 255, 255, 0.03);
}
.po-source-row.po-source-best {
    background: rgba(127, 255, 0, 0.06);
    border: 1px solid rgba(127, 255, 0, 0.12);
}
.po-source-name {
    color: #e2e8f0;
    font-weight: 500;
    min-width: 70px;
}
.po-source-price {
    color: #38BDF8;
    font-weight: 600;
    font-size: 0.88rem;
    margin-left: auto;
}
.po-source-best .po-source-price {
    color: #7FFF00;
}
.po-source-badge {
    font-size: 0.62rem;
    font-weight: 700;
    color: #7FFF00;
    background: rgba(127, 255, 0, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.po-source-tag {
    font-size: 0.62rem;
    font-weight: 600;
    color: #818CF8;
    background: rgba(129, 140, 248, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}
.po-source-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: #38BDF8;
    text-decoration: none;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.15s;
}
.po-source-link:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.4);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .po-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .po-option {
        padding: 8px 10px;
        gap: 8px;
    }
    .po-option-logo, .po-option-icon {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
    .po-option-name { font-size: 0.82rem; }
    .po-option-desc { font-size: 0.72rem; }
    .po-option-badge { font-size: 0.62rem; }
}

/* ═══════════════════════════════════════════════════
   ETAP 5 — WATCHLIST / SAVED FLIGHTS
   ═══════════════════════════════════════════════════ */

/* ── Save button on flight cards ── */
.fc-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.fc-save-btn:hover {
    background: rgba(255, 200, 50, 0.1);
    border-color: rgba(255, 200, 50, 0.3);
    color: #FFC832;
    transform: scale(1.08);
}

.fc-save-btn.saved {
    background: rgba(255, 200, 50, 0.12);
    border-color: rgba(255, 200, 50, 0.3);
    color: #FFC832;
}

.fc-save-btn.saved:hover {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.25);
    color: #FF6464;
}

/* ── Watchlist page tab badge ── */
#watchlist-badge {
    display: none;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(255, 200, 50, 0.18);
    color: #FFC832;
    font-size: 0.65rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
}

/* ── Watchlist sections ── */
.wl-section {
    margin-top: 1rem;
}

.wl-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wl-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
}

.wl-summary {
    display: flex;
    gap: 1.2rem;
    font-size: 0.78rem;
    color: var(--text-gray);
}

.wl-summary strong {
    color: var(--text-light);
    font-weight: 700;
}

/* ── Watchlist filter tabs ── */
.wl-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.wl-tab {
    padding: 0.45rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: transparent;
    color: var(--text-gray);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.wl-tab:hover {
    background: rgba(255, 200, 50, 0.06);
    border-color: rgba(255, 200, 50, 0.15);
}

.wl-tab.active {
    background: rgba(255, 200, 50, 0.1);
    color: #FFC832;
    border-color: rgba(255, 200, 50, 0.25);
}

/* ── Watchlist list ── */
.wl-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ── Watchlist card (reuses mb-card structure) ── */
.wl-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    background: rgba(26, 58, 58, 0.35);
    border: 1px solid rgba(255, 200, 50, 0.06);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    transition: var(--transition);
}

.wl-card:hover {
    border-color: rgba(255, 200, 50, 0.18);
    background: rgba(26, 58, 58, 0.5);
    transform: translateY(-1px);
}

.wl-card.wl-expired {
    opacity: 0.55;
}

.wl-card.wl-expired:hover {
    opacity: 0.75;
}

/* Notes inside a watchlist card */
.wl-notes {
    font-size: 0.72rem;
    color: rgba(255, 200, 50, 0.7);
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Price in watchlist card */
.wl-card-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

/* Action buttons in watchlist card */
.wl-card-actions {
    display: flex;
    gap: 0.3rem;
    justify-content: flex-end;
}

.wl-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.wl-action-btn i,
.wl-action-btn svg {
    width: 14px;
    height: 14px;
}

.wl-action-btn:hover {
    background: rgba(127, 255, 0, 0.08);
    border-color: rgba(127, 255, 0, 0.2);
    color: var(--primary-color);
}

.wl-search-btn:hover {
    background: rgba(100, 180, 255, 0.1);
    border-color: rgba(100, 180, 255, 0.2);
    color: #64B4FF;
}

.wl-remove-btn:hover {
    background: rgba(255, 100, 100, 0.08);
    border-color: rgba(255, 100, 100, 0.2);
    color: #FF6464;
}

.wl-note-btn:hover {
    background: rgba(255, 200, 50, 0.08);
    border-color: rgba(255, 200, 50, 0.2);
    color: #FFC832;
}

/* ── Watchlist loading / empty / login-required ── */
.wl-loading {
    text-align: center;
    padding: 3rem 1rem;
}

.wl-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.wl-empty-state i,
.wl-empty-state svg {
    width: 48px;
    height: 48px;
    color: rgba(255, 200, 50, 0.3);
    margin-bottom: 1rem;
}

.wl-empty-state h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.wl-empty-state p {
    color: var(--text-gray);
    font-size: 0.88rem;
}

/* ── Mobile responsive ── */
@media (max-width: 600px) {
    .wl-card {
        grid-template-columns: auto 1fr;
        gap: 0.6rem;
        padding: 0.8rem 1rem;
    }

    .wl-card .mb-card-end {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .wl-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .wl-summary {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .wl-card-actions {
        gap: 0.2rem;
    }

    .fc-save-btn {
        width: 28px;
        height: 28px;
    }
}
