/* ============================
   AIR ANCILLARY PAGE STYLES
   Copied from TestAirAncillary.razor
   ============================ */

/* Flight Direction Tabs */
.flight-direction-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

/* Kompakt sekme: rota + alt satır + sayaç */
.flight-direction-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--flight-white, #fff);
    border: 2px solid var(--flight-gray-200, #e2e8f0);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    box-sizing: border-box;
}

    .flight-direction-tab:hover {
        border-color: var(--flight-gray-300, #cbd5e1);
    }

    .flight-direction-tab.active {
        border-color: var(--bs-primary, #ffc107);
        background: #fffdf5;
    }

    .flight-direction-tab.disabled {
        border-style: dashed;
        opacity: 0.55;
        cursor: not-allowed;
        background: var(--flight-gray-50, #f8fafc);
    }

    .flight-direction-tab .tab-icon {
        width: 44px;
        height: 44px;
        background: var(--flight-gray-100, #f1f5f9);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: var(--flight-gray-500, #64748b);
    }

    .flight-direction-tab.active .tab-icon {
        background: var(--flight-primary, #3290ff);
        color: var(--bs-primary-contrast, #fff);
    }

    .flight-direction-tab .tab-content {
        flex: 1;
    }

    .flight-direction-tab .tab-label {
        font-size: 12px;
        color: var(--flight-gray-500, #64748b);
        font-weight: 600;
        text-transform: uppercase;
    }

    .flight-direction-tab .tab-route {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.3;
        white-space: nowrap;
        color: var(--flight-dark, #1e293b);
    }

        .flight-direction-tab .tab-route i {
            font-size: 13px;
            margin-right: 2px;
        }

    .flight-direction-tab .tab-date {
        font-size: 12px;
        white-space: nowrap;
        color: var(--flight-gray-500, #64748b);
    }

    .flight-direction-tab .tab-status {
        font-size: 18px;
        color: var(--flight-success, #10b981);
    }

        .flight-direction-tab .tab-status.pending {
            color: var(--flight-gray-300, #cbd5e1);
        }

        .flight-direction-tab .tab-status.checked {
            color: #10b981;
        }

    /* Sekmedeki yolcu sayacı: tamam yeşil, eksik sarı, hiç seçim yoksa gri */
    .flight-direction-tab .tab-progress {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        margin-left: auto;
        padding: 3px 9px;
        border-radius: 999px;
        background: var(--flight-gray-100, #f1f5f9);
        color: var(--flight-gray-500, #64748b);
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }

        .flight-direction-tab .tab-progress.partial {
            background: #fef3c7;
            color: #b45309;
        }

        .flight-direction-tab .tab-progress.complete {
            background: #dcfce7;
            color: #15803d;
        }

/* Passenger Selector */
.passenger-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--flight-gray-50, #f8fafc);
    border-radius: 12px;
    margin-bottom: 16px;
}

.passenger-selector-label {
    font-weight: 600;
    color: var(--flight-gray-500, #64748b);
    white-space: nowrap;
}

.passenger-selector-list {
    display: flex;
    gap: 12px;
    flex: 1;
    overflow-x: auto;
    /* kartın köşesindeki × kırpılmasın */
    padding: 8px 8px 0 0;
}

.passenger-selector-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--flight-white, #fff);
    border: 2px solid var(--flight-gray-200, #e2e8f0);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

    .passenger-selector-btn:hover {
        border-color: var(--flight-gray-300, #cbd5e1);
    }

    /* Aktif yolcu: tema sarısı çerçeve, açık sarı zemin ve hare */
    .passenger-selector-btn.active {
        border-color: var(--bs-primary, #ffc107);
        background: #fff8e1;
        box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb, 255, 193, 7), 0.2);
    }

.pax-avatar {
    width: 36px;
    height: 36px;
    background: rgba(50,144,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--flight-primary, #3290ff);
    font-weight: 600;
    font-size: 12px;
}

.pax-info {
    text-align: left;
}

.pax-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--flight-dark, #1e293b);
}

.pax-type {
    font-size: 11px;
    color: var(--flight-gray-500, #64748b);
}

.pax-selection-status {
    font-size: 12px;
    color: var(--flight-success, #10b981);
    font-weight: 600;
}

    .pax-selection-status.pending {
        color: var(--flight-warning, #f59e0b);
    }

/* Yolcu kartı: avatar yolcu renginde (koltuk haritasıyla aynı --pc), koltuk no + fiyat, hover'da × */
.passenger-selector-btn .pax-avatar {
    flex: 0 0 36px;
    background: var(--pc, #3290ff);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pax-seat {
    margin-left: auto;
    padding-left: 8px;
    text-align: right;
    white-space: nowrap;
}

.pax-seat-label {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pc, #1e293b);
}

.pax-seat-price {
    font-size: 12px;
    color: var(--flight-gray-500, #64748b);
}

.pax-seat-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--flight-gray-300, #cbd5e1);
    background: #fff;
    display: none;
    place-items: center;
    font-size: 13px;
    line-height: 1;
    color: var(--flight-gray-500, #64748b);
    z-index: 1;
}

.passenger-selector-btn.has-seat:hover .pax-seat-remove {
    display: grid;
}

.pax-seat-remove:hover {
    color: var(--flight-danger, #ef4444);
    border-color: var(--flight-danger, #ef4444);
}

/* Ancillary Tabs */
.ancillary-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.ancillary-tab {
    text-align:center !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--flight-white, #fff);
    border: 2px solid var(--flight-gray-200, #e2e8f0);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--flight-gray-500, #64748b);
    transition: all 0.2s;
}

    .ancillary-tab:hover {
        border-color: var(--flight-gray-300, #cbd5e1);
    }

    .ancillary-tab.active {
        border-color: var(--flight-primary, #3290ff);
        color: var(--flight-primary, #3290ff);
        background: rgba(50,144,255,0.04);
    }

    .ancillary-tab i {
        font-size: 18px;
    }

/* Baggage */
.baggage-info-banner, .meal-info-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(50,144,255,0.08);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--flight-primary, #3290ff);
}

/* Bölüm başlığı: "Biletinize dahil", "Ek bagaj ekle" */
.bag-sec-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 10px;
}

    .bag-sec-title h3 {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
    }

    .bag-sec-meta > span:not(.bag-fare-badge) {
        font-size: 12px;
        color: var(--flight-gray-500, #64748b);
    }

/* Aktarmalı bacak notu */
.bag-via-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 14px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(var(--bs-primary-rgb, 255, 193, 7), 0.12);
    font-size: 12px;
    color: var(--flight-gray-900, #0f172a);
}

/* Paket hakları kartları */
.bag-allowance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.bag-allow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.bag-allow-icon {
    flex: 0 0 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #bbf7d0;
    font-size: 20px;
    color: #10b981;
}

.bag-allow-title {
    font-weight: 700;
    font-size: 13px;
}

.bag-allow-desc {
    font-size: 12px;
    color: #047857;
}

.bag-allow.infant {
    background: #fffbeb;
    border-color: #fde68a;
}

    .bag-allow.infant .bag-allow-icon {
        border-color: #fde68a;
        color: #f59e0b;
    }

    .bag-allow.infant .bag-allow-desc {
        color: #b45309;
    }

.bag-allow.no {
    background: var(--flight-gray-50, #f8fafc);
    border-color: var(--flight-gray-200, #e2e8f0);
}

    .bag-allow.no .bag-allow-icon {
        border-color: var(--flight-gray-200, #e2e8f0);
        color: var(--flight-gray-400, #94a3b8);
    }

    .bag-allow.no .bag-allow-title {
        color: var(--flight-gray-500, #64748b);
    }

    .bag-allow.no .bag-allow-desc {
        color: var(--flight-gray-400, #94a3b8);
    }

/* Paket adı rozeti */
.bag-sec-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bag-fare-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff8e1;
    border: 1px solid rgba(var(--bs-primary-rgb, 255, 193, 7), 0.45);
    color: #664d03;
    font-size: 12px;
    font-weight: 600;
}

    .bag-fare-badge i {
        font-size: 11px;
        color: #e0a800;
    }

/* Alt çubuk düğmeleri */
.seat-map-footer-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
}

.seat-map-footer .btn.bag-footer-btn {
    border: 1px solid var(--flight-gray-200, #e2e8f0);
    background: #fff;
    color: var(--flight-dark, #1e293b);
}

    /* Hover: tema sarısı açık zemin + sarı çerçeve (beyazda belli olmuyordu) */
    .seat-map-footer .btn.bag-footer-btn:hover:not(:disabled) {
        border-color: var(--bs-primary, #ffc107);
        background: #fff8e1;
        color: #997404;
    }

        .seat-map-footer .btn.bag-footer-btn:hover:not(:disabled) .bag-footer-btn-text small {
            color: #997404;
        }

    .seat-map-footer .btn.bag-footer-btn:disabled {
        opacity: 0.5;
        background: #fff;
    }

/* Koltuk/yemek sekmeleri: bacağa göre grup, segmentler arasında aktarma */
.segment-tab-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 18px;
    margin-bottom: 16px;
}

.leg-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.leg-lbl {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--flight-gray-500, #64748b);
}

    .leg-lbl span {
        margin-left: 4px;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none;
        color: var(--flight-gray-400, #94a3b8);
    }

.leg-segs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}


.leg-conn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--flight-gray-500, #64748b);
}

    .leg-conn::before {
        content: "";
        width: 28px;
        margin-bottom: 4px;
        border-top: 2px dashed var(--flight-gray-300, #cbd5e1);
    }

    .leg-conn small {
        font-size: 10px;
        font-weight: 500;
        color: var(--flight-gray-400, #94a3b8);
    }

/* Ek bagaj seçenekleri */
.baggage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding-top: 10px;
}

.baggage-card {
    --pc: var(--bs-primary, #ffc107);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px 14px;
    border: 2px solid var(--flight-gray-200, #e2e8f0);
    border-radius: 14px;
    background: var(--flight-white, #fff);
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}

    .baggage-card:hover {
        border-color: var(--flight-gray-300, #cbd5e1);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

    .baggage-card.selected {
        border-color: var(--pc);
        background: color-mix(in srgb, var(--pc) 6%, #fff);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 15%, transparent);
    }

    .baggage-card.included {
        cursor: default;
        border-color: #bbf7d0;
        background: #f0fdf4;
    }

        .baggage-card.included:hover {
            transform: none;
            box-shadow: none;
        }

.baggage-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid var(--flight-gray-300, #cbd5e1);
    background: #fff;
    color: #fff;
    font-size: 12px;
}

.baggage-card.selected .baggage-check {
    background: var(--pc);
    border-color: var(--pc);
}

.baggage-card.included .baggage-check {
    display: none;
}

.baggage-ribbon {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--flight-warning, #f59e0b);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Bavul çizimi: ağırlıkla büyür, seçilince yolcu renginde */
.baggage-visual {
    height: 84px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}

    .baggage-visual .bag .shell {
        fill: rgba(var(--bs-primary-rgb, 255, 193, 7), 0.12);
        stroke: #e0a800;
        stroke-width: 2;
    }

    .baggage-visual .bag .handle {
        fill: none;
        stroke: #e0a800;
        stroke-width: 3;
        stroke-linecap: round;
    }

    .baggage-visual .bag .rib {
        stroke: #e0a800;
        stroke-width: 1.5;
        opacity: 0.6;
    }

    .baggage-visual .bag .wheel {
        fill: #e0a800;
    }

.baggage-cabin-icon {
    font-size: 54px;
    line-height: 1;
    color: #e0a800;
}

.baggage-card.selected .baggage-cabin-icon {
    color: var(--pc);
}

.baggage-card.included .baggage-cabin-icon {
    color: #10b981;
}

.baggage-card.selected .bag .shell {
    fill: color-mix(in srgb, var(--pc) 18%, #fff);
}

.baggage-card.selected .bag .shell,
.baggage-card.selected .bag .handle,
.baggage-card.selected .bag .rib {
    stroke: var(--pc);
}

.baggage-card.selected .bag .wheel {
    fill: var(--pc);
}

.baggage-card.included .bag .shell {
    fill: #dcfce7;
}

.baggage-card.included .bag .shell,
.baggage-card.included .bag .handle,
.baggage-card.included .bag .rib {
    stroke: #10b981;
}

.baggage-card.included .bag .wheel {
    fill: #10b981;
}

.baggage-weight {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: var(--flight-dark, #1e293b);
}

.baggage-type {
    margin-top: 2px;
    font-size: 12px;
    color: var(--flight-gray-500, #64748b);
}

.baggage-price {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--flight-dark, #1e293b);
}

    .baggage-price.free {
        color: var(--flight-success, #10b981);
    }

/* Multi-meal service item */
.service-item .free-text {
    color: var(--flight-success, #10b981);
}

/* Meals */

/* Filtre çipleri + kural notu */
.meal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--flight-gray-50, #f8fafc);
    border: 1px solid var(--flight-gray-200, #e2e8f0);
}

/* Yemek grubu çipleri (sağlayıcının grupları) */
.meal-group-bar {
    flex: 0 0 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.meal-group-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1.5px solid #ffc107;
    border-radius: 12px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
}

    .meal-group-chip > i {
        font-size: 15px;
        color: #e0a800;
    }

    .meal-group-chip em {
        font-style: normal;
        font-size: 11px;
        font-weight: 700;
        color: #997404;
        background: #fff8e1;
        padding: 1px 7px;
        border-radius: 10px;
    }

    .meal-group-chip:hover {
        background: #fff8e1;
    }

    .meal-group-chip.on {
        background: #ffc107;
    }

        .meal-group-chip.on > i {
            color: #3d2e00;
        }

        .meal-group-chip.on em {
            color: #3d2e00;
            background: rgba(255, 255, 255, 0.55);
        }

.meal-group-chip-sel {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: var(--flight-success, #10b981);
    padding: 1px 6px;
    border-radius: 10px;
}

.meal-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.meal-chip {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--flight-gray-200, #e2e8f0);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--flight-gray-500, #64748b);
    cursor: pointer;
    transition: all 0.15s;
}

    .meal-chip:hover {
        border-color: var(--flight-gray-300, #cbd5e1);
    }

    .meal-chip.on {
        background: #1e293b;
        border-color: #1e293b;
        color: #fff;
    }

.meal-hint {
    font-size: 12px;
    color: var(--flight-gray-500, #64748b);
}

/* Grup başlığı */
.meal-group {
    margin-bottom: 22px;
}

.meal-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: #fff8e1;
    border-left: 4px solid var(--bs-primary, #ffc107);
    text-align: left;
    cursor: pointer;
}

    .meal-group-title:hover {
        background: #ffefc2;
    }

.meal-group.collapsed {
    margin-bottom: 10px;
}

    .meal-group.collapsed .meal-group-title {
        margin-bottom: 0;
    }

.meal-group-chevron {
    font-size: 12px !important;
    color: #997404 !important;
    transition: transform .2s;
}

.meal-group.collapsed .meal-group-chevron {
    transform: rotate(-90deg);
}

    .meal-group-title i {
        font-size: 16px;
        color: #e0a800;
    }

.meal-group-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.meal-group-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: #664d03;
}

.meal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

/* Kart: sütun düzeni, fiyat satırı dipte sabit */
.meal-card {
    --pc: var(--bs-primary, #ffc107);
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--flight-white, #fff);
    border: 2px solid var(--flight-gray-200, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.15s;
}

    .meal-card:hover {
        border-color: var(--flight-gray-300, #cbd5e1);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

    .meal-card.selected {
        border-color: var(--pc);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 15%, transparent);
    }


.meal-image {
    position: relative;
    height: 120px;
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow: hidden;
}

    .meal-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.meal-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.meal-badge.free {
    background: var(--flight-success, #10b981);
    color: #fff;
}

/* Seçili yemek: sol üstte yolcu renginde tik (çoklu adette ×2) */
.meal-selected-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--pc);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.meal-icon-wrap {
    font-size: 36px;
    color: var(--flight-gray-500, #64748b);
}

    .meal-icon-wrap.warning {
        color: var(--flight-warning, #f59e0b);
    }

    .meal-icon-wrap.success {
        color: var(--flight-success, #10b981);
    }

    .meal-icon-wrap.info {
        color: var(--flight-info, #06b6d4);
    }

    .meal-icon-wrap.primary {
        color: var(--flight-primary, #3290ff);
    }

    .meal-icon-wrap.danger {
        color: var(--flight-danger, #ef4444);
    }

.bg-warning-light {
    background: rgba(245,158,11,0.1) !important;
}

.bg-success-light {
    background: rgba(16,185,129,0.1) !important;
}

.bg-info-light {
    background: rgba(6,182,212,0.1) !important;
}

.bg-primary-light {
    background: rgba(50,144,255,0.1) !important;
}

.bg-danger-light {
    background: rgba(239,68,68,0.1) !important;
}

.meal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.meal-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--flight-dark, #1e293b);
}

/* Açıklama en fazla 2 satır; tamamı title'da */
.meal-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    color: var(--flight-gray-500, #64748b);
}

.meal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.meal-tag {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--flight-gray-100, #f1f5f9);
    color: var(--flight-gray-500, #64748b);
    font-size: 10px;
    font-weight: 700;
}

    .meal-tag.premium {
        background: #ede9fe;
        color: #6d28d9;
    }

    .meal-tag.veg {
        background: #dcfce7;
        color: #15803d;
    }

    .meal-tag.halal {
        background: #cffafe;
        color: #0e7490;
    }

    .meal-tag.kids {
        background: #fce7f3;
        color: #be185d;
    }

    .meal-tag.max {
        font-weight: 600;
        color: var(--flight-gray-400, #94a3b8);
    }

.meal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--flight-gray-200, #e2e8f0);
}

.meal-price {
    font-size: 15px;
    font-weight: 700;
    color: #b8860b;
    white-space: nowrap;
}

    .meal-price.free {
        color: var(--flight-success, #10b981);
    }

/* Ücretsiz yemek: Seç / Seçili */
.meal-toggle-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--flight-gray-200, #e2e8f0);
    border-radius: 10px;
    background: var(--flight-white, #fff);
    font-size: 12px;
    font-weight: 600;
    color: #997404;
    cursor: pointer;
    transition: all 0.15s;
}

    .meal-toggle-btn:hover {
        border-color: var(--flight-gray-300, #cbd5e1);
    }

    .meal-toggle-btn.selected {
        background: var(--pc);
        border-color: var(--pc);
        color: #fff;
    }

/* Ücretli yemek: adet */
.meal-footer .quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--flight-gray-200, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
}

.meal-footer .qty-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #fff;
    color: #997404;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s;
}

    .meal-footer .qty-btn:hover:not(:disabled) {
        background: #fff8e1;
    }

    .meal-footer .qty-btn:disabled {
        color: var(--flight-gray-300, #cbd5e1);
        cursor: not-allowed;
    }

    /* Son adet: eksi yerine çöp kutusu */
    .meal-footer .qty-btn.trash {
        color: var(--flight-danger, #ef4444);
        font-size: 14px;
    }

        .meal-footer .qty-btn.trash:hover:not(:disabled) {
            background: #fef2f2;
        }

/* Seçili rozetteki × : yemeğin tüm adetlerini kaldırır */
.meal-clear-btn {
    width: 18px;
    height: 18px;
    margin: -1px -4px -1px 4px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 9px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

    .meal-clear-btn:hover {
        background: #fff;
        color: var(--flight-danger, #ef4444);
    }

.meal-footer .qty-value {
    min-width: 26px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--flight-dark, #1e293b);
}

/* Order Summary */
.order-flight-section {
    margin-bottom: 16px;
}

.order-flight-item {
    padding: 12px;
    background: var(--flight-gray-50, #f8fafc);
    border-radius: 10px;
    margin-bottom: 8px;
}

.flight-direction-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--flight-gray-500, #64748b);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.flight-route-info {
    font-size: 16px;
    font-weight: 700;
    color: var(--flight-dark, #1e293b);
}

    .flight-route-info .code {
        color: var(--flight-primary, #3290ff);
    }

    .flight-route-info i {
        font-size: 12px;
        color: var(--flight-gray-400, #94a3b8);
        margin: 0 4px;
    }

.flight-date-info {
    font-size: 12px;
    color: var(--flight-gray-500, #64748b);
}

.services-summary {
    margin-bottom: 16px;
}

.services-summary-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--flight-gray-500, #64748b);
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Rezervasyon özeti — yolcu başına açılır kart */
.osp-pax {
    border: 1px solid var(--flight-gray-200, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 8px;
    background: #fff;
}

    .osp-pax.open {
        border-color: #ffc107;
    }

.osp-pax-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
}

    .osp-pax-head.static {
        cursor: default;
    }

.osp-pax-av {
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    background: #fff8e1;
    color: #997404;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.osp-pax-info {
    min-width: 0;
}

.osp-pax-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--flight-dark, #1e293b);
}

/* Bilet fiyatı ipucu — koyu kutu */
.osp-pax .pax-price-breakdown-popup {
    min-width: 210px;
    padding: 9px 11px;
    background: #1e293b;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
}

.osp-pax .pbt-title {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.osp-pax .pax-price-breakdown-popup .price-breakdown-table td {
    padding: 2px 0;
    font-size: 11.5px;
}

.osp-pax .pax-price-breakdown-popup .price-breakdown-table .pbt-type {
    color: #cbd5e1;
    font-weight: 400;
}

.osp-pax .pax-price-breakdown-popup .price-breakdown-table .pbt-total {
    color: #fff;
    font-weight: 500;
}

.osp-pax .pax-price-breakdown-popup .pbt-grand-total td {
    padding-top: 5px;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

    .osp-pax .pax-price-breakdown-popup .pbt-grand-total td:last-child {
        text-align: right;
    }

.osp-pax-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    margin-top: 2px;
    font-size: 11px;
    color: var(--flight-gray-500, #64748b);
}

.osp-pax-type {
    font-size: 10px;
    font-weight: 600;
    background: #fff8e1;
    color: #997404;
    padding: 1px 6px;
    border-radius: 6px;
}

.osp-pax-counts {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    font-size: 11px;
    color: var(--flight-gray-500, #64748b);
}

    .osp-pax-counts span {
        display: inline-flex;
        align-items: center;
        gap: 3px;
    }

.osp-pax-empty {
    color: var(--flight-gray-400, #94a3b8);
}

.osp-pax-total {
    margin-left: auto;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: #e0a800;
    white-space: nowrap;
}

.osp-pax-none {
    color: var(--flight-gray-400, #94a3b8);
    font-weight: 500;
}

.osp-pax-chevron {
    display: block;
    width: max-content;
    margin: 2px 0 0 auto;
    font-size: 11px;
    color: var(--flight-gray-400, #94a3b8);
    transition: transform .2s;
}

.osp-pax.open .osp-pax-chevron {
    transform: rotate(180deg);
}

.osp-leg {
    padding: 6px 12px 8px;
    border-top: 1px solid var(--flight-gray-100, #f1f5f9);
}

.osp-leg-h {
    font-size: 12px;
    font-weight: 700;
    color: var(--flight-dark, #1e293b);
    margin-bottom: 4px;
}

.osp-sub {
    margin: 5px 0 0 6px;
    padding-left: 9px;
    border-left: 2px solid #ffc107;
}

.osp-sub-h {
    font-size: 11px;
    font-weight: 700;
    color: #997404;
    margin-bottom: 1px;
}

.osp-line {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0;
    font-size: 12px;
    color: var(--flight-gray-700, #334155);
}

    .osp-line > span:first-child {
        display: inline-flex;
        align-items: flex-start;
        gap: 6px;
        line-height: 1.35;
    }

        .osp-line > span:first-child > i,
        .osp-line > span:first-child > svg {
            flex: none;
            margin-top: 2px;
            color: var(--flight-gray-400, #94a3b8);
        }

    .osp-line > span:last-child {
        white-space: nowrap;
    }

    .osp-line .free-text {
        color: var(--flight-success, #10b981);
        font-weight: 600;
    }

.pax-services-group {
    background: var(--flight-gray-50, #f8fafc);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}

.pax-services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

    .pax-services-header .pax-name {
        font-weight: 600;
        color: var(--flight-dark, #1e293b);
        font-size: 13px;
    }

    .pax-services-header .pax-total {
        font-weight: 600;
        color: var(--flight-primary, #3290ff);
        font-size: 13px;
    }

.pax-name-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pax-price-info-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.pax-price-info-wrapper .price-info-icon {
    font-size: 13px;
    color: var(--gray-400, #94a3b8);
    transition: color 0.15s;
    line-height: 1;
}

.pax-price-info-wrapper:hover .price-info-icon {
    color: var(--primary, #3290ff);
}

.pax-price-breakdown-popup {
    display: none;
    position: absolute;
    left: 0;
    right: auto;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 10px 14px;
    z-index: 200;
    min-width: 200px;
    white-space: nowrap;
}

.pax-price-info-wrapper:hover .pax-price-breakdown-popup {
    display: block;
}

.pax-price-breakdown-popup .price-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.pax-price-breakdown-popup .price-breakdown-table td {
    padding: 3px 6px;
    color: var(--gray-700, #374151);
}

.pax-price-breakdown-popup .price-breakdown-table .pbt-type {
    color: var(--gray-600, #4b5563);
    font-weight: 500;
}

.pax-price-breakdown-popup .price-breakdown-table .pbt-total {
    text-align: right;
    font-weight: 600;
    color: var(--gray-800, #1f2937);
}

.pax-price-breakdown-popup .pbt-grand-total td {
    padding-top: 6px;
    font-weight: 700;
    color: var(--gray-900, #111827);
    border-top: 1px solid var(--gray-200, #e2e8f0);
}

.pax-services-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--flight-gray-500, #64748b);
}

    .service-item i {
        margin-right: 4px;
    }

/* Order Price Breakdown + Order Price Item + Order Total — bkz. main.css */

.order-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--flight-primary, #3290ff);
    color: var(--bs-primary-contrast, #fff);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

    .order-submit-btn:hover {
        background: var(--flight-primary-hover, #1a7ae8);
    }


/* Seat Map - compact */
.seat-selection-container {
    padding: 0;
}

.seat-selection-header {
    margin-bottom: 16px;
}

/* Kabin sabit yükseklikte kayar; sağda dikey mini harita */
.seat-map-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 12px;
}

.seat-map-scroll {
    position: relative;
    height: 660px;
    overflow: auto;
    border-radius: 12px;
    scrollbar-width: thin;
}

.seat-minimap-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 660px;
    font-size: 10px;
    color: var(--flight-gray-400, #94a3b8);
}

.seat-minimap-label {
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--flight-gray-400, #94a3b8);
}

/* Tüm sıralar her zaman sığar: çubuklar alanı eşit paylaşır (uzun uçakta incelir) */
.seat-minimap {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 3px;
    background: var(--flight-gray-50, #f8fafc);
    border: 1px solid var(--flight-gray-200, #e2e8f0);
    border-radius: 8px;
}

/* button varsayılanları (tema yükseklik/satır yüksekliği) sıfırlanır; yoksa çubuk payından uzun kalıp taşar */
.seat-minimap-row {
    position: relative;
    flex: 1 1 0;
    display: flex;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0;
    line-height: 0;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
    overflow: hidden;
    background: var(--flight-gray-200, #e2e8f0);
    cursor: pointer;
}

    .seat-minimap-row i {
        display: block;
        height: 100%;
        background: var(--edge);
    }

    .seat-minimap-row.seat-tier-premium { --edge: #f59e0b; }
    .seat-minimap-row.seat-tier-exit { --edge: #f87171; }
    .seat-minimap-row.seat-tier-standard { --edge: #8ec2ff; }
    .seat-minimap-row.seat-tier-free { --edge: #6ee7b7; }

    /* Sırada seçilmiş koltuk var */
    .seat-minimap-row.has::after {
        content: "";
        position: absolute;
        right: 3px;
        top: 50%;
        width: 5px;
        height: 5px;
        margin-top: -2.5px;
        border-radius: 50%;
        background: #1e293b;
    }

/* Mini harita overflow: hidden olduğundan taşan kenar kırpılırdı; çerçeve kutunun içinde kalır.
   Tasarımdaki koyu sarı (#e0a800) çizgi açık sarı çubuklar üzerinde net seçilir. */
.seat-minimap-view {
    position: absolute;
    left: 0;
    right: 0;
    border: 2px solid #e0a800;
    border-radius: 6px;
    background: rgba(var(--bs-primary-rgb, 255, 193, 7), 0.12);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
    z-index: 1;
    pointer-events: none;
    transition: top 0.08s;
}

@media (max-width: 640px) {
    .seat-map-area {
        grid-template-columns: 1fr;
    }

    .seat-map-scroll {
        height: 560px;
    }

    .seat-minimap-col {
        display: none;
    }
}

.seat-map {
    min-width: 400px;
    max-width: none; /* air-v2 max-width: 400px gövdeyi daraltıyordu */
}

/* Satır genişliğinde gövde; yanlarda ÇIKIŞ etiketleri için pay */
.seat-map-plane {
    width: max-content;
    margin: 0 auto;
    padding: 16px 34px;
}

.seat-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

    /* Çıkış sırası: iki yanda dikey kırmızı ÇIKIŞ / EXIT etiketi */
    .seat-row.exit-row::before,
    .seat-row.exit-row::after {
        content: attr(data-exit-sign);
        position: absolute;
        top: 50%;
        padding: 4px 2px;
        border-radius: 4px;
        background: var(--flight-danger, #ef4444);
        color: #fff;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.05em;
        /* Ç/Ş çengelleri dikey yazıda yana taşar; satır yüksekliği onlara yer açar */
        line-height: 1.3;
        writing-mode: vertical-rl;
        /* İki yanda aynı yön (aşağıdan yukarı okunur) */
        transform: translateY(-50%) rotate(180deg);
    }

    .seat-row.exit-row::before {
        left: -28px;
    }

    .seat-row.exit-row::after {
        right: -28px;
    }

.seat-row-number {
    width: 24px;
    font-size: 11px;
    color: var(--flight-gray-400, #94a3b8);
    text-align: center;
}

.seat-aisle {
    width: 34px;
}

.seat-empty {
    width: 40px;
    height: 36px;
    margin-top: 6px;
}

/* Koltuk: fiyat katmanı rengi (--fill/--edge/--ink), üstte koltuk sırtı (::before), seçimde yolcu rengi (--pc) */
.seat {
    --fill: #eef6ff;
    --edge: #8ec2ff;
    --ink: #1d7af0;
    width: 40px;
    height: 36px;
    margin-top: 6px;
    border-radius: 8px 8px 10px 10px;
    background: var(--fill);
    border: 1.5px solid var(--edge);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
    position: relative;
}

    /* Sırt: görünen şerit 5px içeride ve 7px yüksek; şeffaf kenarlık tıklanabilir alanı koltuk genişliğine
       ve 2px yukarı açar (dar şeridin kenarında imleç el/ok arasında gidip gelmesin) */
    .seat::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: -9px;
        height: 10px;
        box-sizing: border-box;
        border: solid transparent;
        border-width: 2px 5px 0;
        border-radius: 11px 11px 2px 2px;
        background-color: var(--edge);
        background-clip: padding-box;
        opacity: 0.9;
        transition: transform 0.12s, height 0.12s;
    }

    .seat.seat-tier-standard { --fill: #eef6ff; --edge: #8ec2ff; --ink: #1d7af0; }
    .seat.seat-tier-free { --fill: #ecfdf5; --edge: #6ee7b7; --ink: #047857; }
    .seat.seat-tier-exit { --fill: #fee2e2; --edge: #f87171; --ink: #b91c1c; }
    .seat.seat-tier-premium { --fill: #fef3c7; --edge: #f59e0b; --ink: #b45309; }

    /* Koltuğun yerini kaplayan görünmez alan: hover'da gövde kalksa da tıklanan alan yerinde kalır (kenarda titreme yok) */
    .seat:not(.selected)::after {
        content: '';
        position: absolute;
        inset: 0;
        transition: transform 0.12s;
    }

    /* Hover (tasarımdaki gibi): gövde 2px kalkar, sırt (oval) ve tıklama alanı yerinde kalır; gövde sırtın altına biner.
       Seçili koltukta kalkış yok (köşedeki × için ::after kullanılıyor). */
    .seat:hover:not(.selected):not(.occupied):not(.other-passenger):not(.unavailable):not(.restricted) {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
    }

        /* Sırt yerinde kalır, alttan 2px kısalır: kalkan gövde ovalin altını örter */
        .seat:hover:not(.selected):not(.occupied):not(.other-passenger):not(.unavailable):not(.restricted)::before {
            transform: translateY(2px);
            height: 8px;
        }

        .seat:hover:not(.selected):not(.occupied):not(.other-passenger):not(.unavailable):not(.restricted)::after {
            transform: translateY(2px);
        }

    /* Seçili koltuk: kalkmaz, yalnız gölge (air-v2 scale(1.1) devre dışı) */
    .seat.selected:hover {
        transform: none;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
    }

    /* air-v2 hover çerçeveyi maviye çeviriyor; seçili olmayan koltukta katman rengi kalsın */
    .seat:hover:not(.selected):not(.occupied):not(.other-passenger):not(.unavailable):not(.restricted) {
        border-color: var(--edge);
    }

    /* Aktif yolcunun koltuğu: yolcu renginde dolu */
    .seat.selected {
        background: var(--pc, var(--flight-primary, #3290ff));
        border-color: var(--pc, var(--flight-primary, #3290ff));
        color: #fff;
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pc, var(--flight-primary, #3290ff));
    }

        .seat.selected::before {
            background-color: var(--pc, var(--flight-primary, #3290ff));
        }

    .seat.selected::after {
        content: '×';
        position: absolute;
        top: -10px;
        right: -8px;
        width: 16px;
        height: 16px;
        background: var(--flight-danger, #ef4444);
        border: 2px solid #fff;
        border-radius: 50%;
        font-size: 11px;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        opacity: 0;
        transition: opacity 0.12s;
    }

    .seat.selected:hover::after {
        opacity: 1;
    }

    /* Başka yolcunun koltuğu: aynı renk, soluk */
    .seat.other-passenger {
        background: color-mix(in srgb, var(--pc, #64748b) 14%, #fff);
        border: 2px solid var(--pc, #64748b);
        color: var(--pc, #64748b);
        cursor: not-allowed;
    }

        .seat.other-passenger::before {
            background-color: var(--pc, #64748b);
            opacity: 0.5;
        }

    .seat.occupied,
    .seat.unavailable {
        background: var(--flight-gray-100, #f1f5f9) !important;
        border-color: var(--flight-gray-200, #e2e8f0) !important;
        color: var(--flight-gray-300, #cbd5e1) !important;
        cursor: not-allowed !important;
    }

        .seat.occupied::before,
        .seat.unavailable::before {
            background-color: var(--flight-gray-200, #e2e8f0);
        }

    /* Dolu/satışa kapalı koltuk: numara yerine gri çarpı (tasarım ve lejanttaki "Dolu" ile aynı) */
    .seat.occupied,
    .seat.unavailable {
        font-size: 0;
    }

        .seat.occupied::after,
        .seat.unavailable::after {
            background: linear-gradient(45deg, transparent 42%, #cbd5e1 42% 58%, transparent 58%) center / 12px 12px no-repeat,
                        linear-gradient(-45deg, transparent 42%, #cbd5e1 42% 58%, transparent 58%) center / 12px 12px no-repeat;
        }

    /* Bu yolcu için uygun değil (bebekli yolcu / çocuk): çizgili gri, seçilemez */
    .seat.restricted {
        background: repeating-linear-gradient(135deg, #f8fafc 0 4px, #e2e8f0 4px 6px) !important;
        border-color: var(--flight-gray-300, #cbd5e1) !important;
        color: var(--flight-gray-400, #94a3b8) !important;
        cursor: not-allowed !important;
    }

        .seat.restricted::before {
            background-color: var(--flight-gray-300, #cbd5e1);
        }

/* "Fiyatları göster": seçilebilir ücretli koltuğun altındaki etiket */
.seat-price-tag {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translate(-50%, 50%);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding: 0 3px;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--edge);
    line-height: 13px;
    white-space: nowrap;
}

.seat-map.show-prices .seat-row {
    margin-bottom: 12px;
}

/* Lejant: yatay, sağda fiyat anahtarı */
.seat-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--flight-gray-200, #e2e8f0);
}

.seat-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--flight-dark, #1e293b);
}

.seat-legend-box {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 6px 6px 8px 8px;
    border: 1.5px solid var(--edge, #cbd5e1);
    background: var(--fill, #fff);
}

    .seat-legend-box.seat-tier-standard { --fill: #eef6ff; --edge: #8ec2ff; }
    .seat-legend-box.seat-tier-free { --fill: #ecfdf5; --edge: #6ee7b7; }
    .seat-legend-box.seat-tier-exit { --fill: #fee2e2; --edge: #f87171; }
    .seat-legend-box.seat-tier-premium { --fill: #fef3c7; --edge: #f59e0b; }

    .seat-legend-box.occupied {
        background: linear-gradient(45deg, transparent 42%, #cbd5e1 42% 58%, transparent 58%) center / 12px 12px no-repeat,
                    linear-gradient(-45deg, transparent 42%, #cbd5e1 42% 58%, transparent 58%) center / 12px 12px no-repeat,
                    #f1f5f9;
        border-color: #e2e8f0;
    }

    .seat-legend-box.restricted {
        background: repeating-linear-gradient(135deg, #f8fafc 0 4px, #e2e8f0 4px 6px);
        border-color: #cbd5e1;
    }

/* Tema form-switch'i; lejant satırında sağa yaslı */
.seat-price-toggle {
    width: auto;
    margin: 0 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
    color: var(--flight-gray-500, #64748b);
    user-select: none;
    cursor: pointer;
}

.passenger-avatar {
    width: 36px;
    height: 36px;
    background: var(--flight-primary-light, rgba(var(--bs-primary-rgb, 50, 144, 255), 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--flight-primary, #3290ff);
    font-weight: 600;
    font-size: 12px;
}

/* Seat Emergency Exit: satır genişliğinde yatay kırmızı şerit */
.seat-emergency-exit {
    text-align: center;
    margin: 8px 0;
    padding: 4px 0;
    background: #fef2f2;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--flight-danger, #ef4444);
}

.seat-map.show-prices .seat-emergency-exit {
    margin-top: 14px;
}

/* Cabin Header */
.cabin-header {
    text-align: center;
    padding: 8px 16px;
    background: var(--flight-gray-100, #f1f5f9);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--flight-gray-500, #64748b);
    text-transform: uppercase;
}

/* Ancillary Section */
.ancillary-section {
    background: var(--flight-gray-50, #f8fafc);
    min-height: calc(100vh - 120px);
    padding: 24px 0;
}

/* Meal Quantity */
.meal-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--flight-gray-200, #e2e8f0);
    border-radius: 6px;
    background: var(--flight-white, #fff);
    color: var(--flight-gray-500, #64748b);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .qty-btn:hover:not(:disabled) {
        border-color: var(--flight-primary, #3290ff);
        color: var(--flight-primary, #3290ff);
    }

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

.qty-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--flight-dark, #1e293b);
    min-width: 20px;
    text-align: center;
}

/* ========================================
   Mini Selection Loader (for seat/meal/baggage)
   ======================================== */

/* Processing state for clickable items */
.is-processing {
    pointer-events: none;
    position: relative;
}

.is-processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: inherit;
    z-index: 5;
}

.is-processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--flight-gray-200, #e2e8f0);
    border-top-color: var(--flight-primary, #3b82f6);
    border-radius: 50%;
    z-index: 6;
    animation: processingSpinner 0.6s linear infinite;
}

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

/* Success flash overlay */
.selection-success {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 185, 129, 0.15);
    border-radius: inherit;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successFlash 0.4s ease-out forwards;
}

.selection-success::after {
    content: '';
    width: 24px;
    height: 24px;
    background: var(--flight-success, #10b981);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
    animation: successPop 0.25s ease-out;
}

@keyframes successFlash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes successPop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .flight-direction-tabs {
        flex-direction: column;
    }

    .ancillary-tabs {
        flex-wrap: wrap;
    }

    .passenger-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .passenger-selector-list {
        flex-direction: column;
    }

    .seat {
        width: 32px;
        height: 32px;
        font-size: 9px;
    }

    .seat-row-number {
        width: 20px;
        font-size: 10px;
    }

    .baggage-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .meal-grid {
        grid-template-columns: 1fr;
    }
}

/* Koltuk tooltip'i (HTML): başlıkta koltuk + fiyat, tip rozeti, uyarı, seçen yolcu */
.seat-tooltip {
    --bs-tooltip-bg: #1e293b;
    --bs-tooltip-max-width: 260px;
    --bs-tooltip-opacity: 1;
}

    /* Ok yok; balon koltuktan 12px yukarıda durur, hover'da sırtın kapanması görünür */
    .seat-tooltip .tooltip-arrow {
        display: none;
    }

    .seat-tooltip .tooltip-inner {
        min-width: 180px;
        padding: 10px 12px;
        border-radius: 12px;
        text-align: left;
        white-space: normal;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
    }

/* Yolcu kartı yemek ipucu: adet × ad ve tutar satırları, altta toplam */
.pax-tip-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
    font-size: 12px;
}

    .pax-tip-line.total {
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        font-weight: 700;
    }

    .pax-tip-line span:last-child {
        white-space: nowrap;
    }

.seat-tip-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

    .seat-tip-head b {
        font-size: 16px;
    }

    .seat-tip-head span {
        font-weight: 700;
        color: var(--bs-primary, #ffc107);
    }

.seat-tip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

    .seat-tip-tags span {
        font-size: 11px;
        padding: 1px 6px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
    }

.seat-tip-warn {
    margin-top: 6px;
    font-size: 12px;
    color: #fcd34d;
}

.seat-tip-owner {
    margin-top: 6px;
    font-size: 11px;
    color: #94a3b8;
}

.seat-tip-action {
    margin-top: 6px;
    font-size: 11px;
    color: #94a3b8;
}

/* Koltuk alt çubuğu: tema sarısı ilerleme + sonraki uçuş */
.seat-map-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    padding: 12px 14px;
    border-top: 1px solid var(--flight-gray-200, #e2e8f0);
    background: var(--flight-gray-50, #f8fafc);
    border-radius: 0 0 12px 12px;
}

.seat-progress {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    white-space: nowrap;
    font-size: 13px;
    color: var(--flight-gray-500, #64748b);
}

    .seat-progress b {
        color: var(--flight-gray-900, #0f172a);
    }

.seat-progress-bar {
    width: 120px;
    height: 8px;
    border-radius: 99px;
    background: var(--flight-gray-200, #e2e8f0);
    overflow: hidden;
}

    .seat-progress-bar i {
        display: block;
        height: 100%;
        background: var(--bs-primary, #ffc107);
        transition: width 0.25s;
    }

/* Üç ek hizmette de düğmeler aynı yükseklikte; fiyatlı kopyala düğmesi iki satır olsa da boy değişmez */
.seat-map-footer .btn.seat-next-btn,
.seat-map-footer .btn.bag-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 10px;
}

    .seat-map-footer .btn i {
        margin: 0 !important;
        font-size: 13px;
    }

/* Kopyala düğmesi: üstte eylem, altta hedef uçuşun fiyatı */
.bag-footer-btn-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

    .bag-footer-btn-text small {
        font-size: 11px;
        font-weight: 500;
        color: var(--flight-gray-500, #64748b);
    }

.seat-map-footer .btn.seat-next-btn {
    color: #1a1e26;
}

/* Dar ekranda: ilerleme üstte tam satır, düğmeler altta ekran genişliğine yayılır.
   Alt çubuk kurallarından SONRA durmalı; önce dururse nowrap onu ezer. */
@media (max-width: 767.98px) {
    .seat-map-footer {
        flex-wrap: wrap;
    }

    .seat-map-footer-actions {
        flex: 1 1 100%;
        flex-wrap: wrap;
    }

        .seat-map-footer-actions .btn {
            flex: 1 1 auto;
            justify-content: center;
        }

    .seat-map-footer .btn.seat-next-btn {
        flex-basis: 100%;
    }
}

    .seat-next-btn.ready {
        box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb, 255, 193, 7), 0.35);
    }

/* Seçim bildirimi: altta ortada koyu hap */
.seat-toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translate(-50%, 20px);
    padding: 10px 16px;
    border-radius: 12px;
    background: #1e293b;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 1050;
}

    .seat-toast.show {
        opacity: 1;
        transform: translate(-50%, 0);
    }

/* ============================
   Ortak ek hizmet kartı: üstte yolcular, ortada kategori içeriği, dipte altbilgi
   (koltuk/bagaj/yemek aynı kabuk, yalnız içerik değişir)
   ============================ */
.ancillary-panel {
    background: #fff;
    border: 1px solid var(--flight-gray-200, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

    .ancillary-panel .passenger-selector {
        margin: 0;
        padding: 14px;
        background: #fff;
        border-radius: 0;
        border-bottom: 1px solid var(--flight-gray-200, #e2e8f0);
    }

    .ancillary-panel .seat-selection-header,
    .ancillary-panel .seat-legend {
        margin-bottom: 0;
    }

    .ancillary-panel .seat-map-area {
        padding: 12px 14px 14px;
    }

    .ancillary-panel .meal-toolbar {
        margin: 0;
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid var(--flight-gray-200, #e2e8f0);
    }

    .ancillary-panel .seat-map-footer {
        border-radius: 0;
    }

.ancillary-panel-body {
    padding: 16px;
}

/* Koltuk haritası: dış alan gri, uçak gövdesi beyaz (burun yuvarlak) */
.seat-map-scroll {
    background: var(--flight-gray-50, #f8fafc);
}

.seat-map-plane {
    margin: 24px auto;
    padding: 60px 34px 30px;
    background: #fff;
    border: 2px solid #b5d4f4;
    border-radius: 150px 150px 40px 40px;
    overflow: hidden;
}

/* Kartın içindeki eski kap stilleri (air-v2: beyaz kutu + gölge) ikinci bir kutu çizmesin */
.ancillary-panel .seat-selection-container,
.ancillary-panel .baggage-selection-container,
.ancillary-panel .meal-selection-container {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* Sekmelerde uçak simgesi tema renginde (aktif/pasif aynı; beyaz zeminde okunsun diye koyu ton) */
.flight-direction-tab .tab-route i {
    color: #e0a800;
}

/* Uçağın burnu: pencere, simge, uçak tipi, "Uçağın önü" */
.seat-map-nose {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: -60px -34px 18px;
    text-align: center;
}

/* Kokpit: burnun tepesi açık mavi, yan yana iki cam (gövde kenarına kadar uzanır) */
.seat-map-cockpit {
    align-self: stretch;
    height: 72px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    padding-bottom: 12px;
    background: #e6f1fb;
    border-bottom: 1px solid #b5d4f4;
}

.cockpit-glass {
    width: 44px;
    height: 20px;
    background: #b5d4f4;
    border: 1px solid #85b7eb;
}

    .cockpit-glass.left {
        border-radius: 16px 5px 4px 4px;
    }

    .cockpit-glass.right {
        border-radius: 5px 16px 4px 4px;
    }


.seat-map-aircraft {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--flight-dark, #1e293b);
}

.seat-map-front {
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--flight-gray-400, #94a3b8);
}

/* Sütun harfleri: koltuk hücreleriyle aynı genişlik */
.seat-col-head {
    margin-bottom: 8px;
}

.seat-col-letter {
    width: 40px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--flight-gray-400, #94a3b8);
}

/* Kabin başlığı: iki yanda kesik çizgi */
.seat-map-plane .cabin-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 10px;
    padding: 0;
    background: none;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--flight-gray-500, #64748b);
}

    .seat-map-plane .cabin-header::before,
    .seat-map-plane .cabin-header::after {
        content: "";
        flex: 1;
        border-top: 1px dashed var(--flight-gray-300, #cbd5e1);
    }

/* Masaüstü: koltukta ortak kart sağdaki rezervasyon özetinin boyuna uzar; altbilgi dibe oturur.
   Koltukta harita tasarımdaki gibi en fazla 660px (ekran kısaysa sabit başlık ile alttaki ödeme çubuğu arasına sığar)
   ve özet gibi yapışkandır: sayfa kaydıkça harita ve mini harita ekranda kalır. Mini harita kutuları küçük, üstten dizilir. */
@media (min-width: 992px) {
    .ancillary-main {
        display: flex;
        flex-direction: column;
    }

        .ancillary-main > .ancillary-panel {
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
        }

            /* Yalnız koltuk özete kadar uzar (harita çok yer ister); bagaj ve yemek içerik boyunda kalır */
            .ancillary-main > .ancillary-panel:not(:has(.seat-selection-container)) {
                flex: 0 0 auto;
            }

    .ancillary-panel .seat-selection-container,
    .ancillary-panel .baggage-selection-container,
    .ancillary-panel .meal-selection-container {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .ancillary-panel .ancillary-panel-body {
        flex: 1 1 auto;
    }

    /* overflow: hidden yapışkanlığı bozar; clip köşeleri yine kırpar */
    .ancillary-panel {
        overflow: clip;
    }

    .ancillary-panel .seat-map-area {
        flex: 1 1 auto;
        align-items: start;
    }

    /* top: sabit başlık (60px) + boşluk; yükseklikten düşülen: başlık + alttaki ödeme çubuğu (83px) + boşluklar */
    .ancillary-panel .seat-map-scroll {
        position: sticky;
        top: 76px;
        height: min(660px, calc(100vh - 175px));
        min-height: 420px;
    }

    /* Mini harita içerik boyunda; çok sıralı uçakta harita yüksekliğine sığacak kadar küçülür */
    .ancillary-panel .seat-minimap-col {
        position: sticky;
        top: 76px;
        height: auto;
        max-height: min(660px, calc(100vh - 175px));
    }

        .ancillary-panel .seat-minimap-col .seat-minimap {
            flex: 0 1 auto;
        }

        .ancillary-panel .seat-minimap-col .seat-minimap-row {
            flex: 0 1 18px;
            min-height: 2px;
        }
}

/* ==========================================================
   Sekme hiyerarşisi: kategori → bacak → uçuş → yolcu
   Kategori beyaz zeminde segment kontrol (aktif sarı dolu), bacak hafif sekme (aktif koyu sarı alt çizgi),
   uçuş hap buton (aktif sarı), yolcu kartı sarı. Eksik rozet gri, tamamlanan yeşil.
   ========================================================== */
.ancillary-main .ancillary-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid var(--flight-gray-200, #e2e8f0);
    border-radius: 12px;
    box-shadow: none;
}

    .ancillary-main .ancillary-tabs .ancillary-tab {
        flex: 1;
        justify-content: center;
        gap: 8px;
        height: 44px;
        padding: 0 12px;
        background: transparent;
        border: 1.5px solid transparent;
        border-radius: 9px;
        color: var(--flight-gray-500, #64748b);
        font-size: 14px;
        font-weight: 600;
    }

        .ancillary-main .ancillary-tabs .ancillary-tab:hover:not(.disabled):not(.active) {
            background: var(--flight-gray-50, #f8fafc);
        }

        .ancillary-main .ancillary-tabs .ancillary-tab.active {
            background: #fff8e1;
            border-color: var(--bs-primary, #ffc107);
            color: #e0a800;
        }

        .ancillary-main .ancillary-tabs .ancillary-tab.disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

/* Bacak sekmeleri */
.leg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 26px;
    padding: 0 4px;
    border-bottom: 1px solid var(--flight-gray-200, #e2e8f0);
}

.leg-tab {
    padding: 6px 0 10px;
    margin-bottom: -1px;
    background: none;
    border: 0;
    border-bottom: 4px solid transparent;
    text-align: left;
    cursor: pointer;
}

    .leg-tab.active {
        border-bottom-color: #e0a800;
    }

.leg-tab-route {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--flight-gray-500, #64748b);
}

    .leg-tab.active .leg-tab-route,
    .leg-tab:hover .leg-tab-route {
        color: var(--flight-dark, #1e293b);
    }

    .leg-tab-route i {
        color: #e0a800;
    }

.leg-tab-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 11px;
    color: var(--flight-gray-500, #64748b);
}

.leg-tab-chip {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--flight-gray-100, #f1f5f9);
    color: var(--flight-gray-700, #334155);
    font-size: 10.5px;
    font-weight: 600;
}

/* Uçuş şeridi (koltuk/yemek) */
.seg-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 4px 0;
}

/* Uçuş butonu: üstte rota, altta uçuş kodu + kalkış; çerçeve tema sarısı */
.seg-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: #fff;
    border: 1.5px solid var(--bs-primary, #ffc107);
    border-radius: 12px;
    color: var(--flight-dark, #1e293b);
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

    .seg-pill:hover:not(.disabled):not(.active) {
        background: #fff8e1;
    }

.seg-pill-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

    .seg-pill-text b {
        font-size: 13px;
        font-weight: 700;
    }

    .seg-pill-text small {
        font-size: 11px;
        font-weight: 500;
        color: var(--flight-gray-500, #64748b);
    }

    .seg-pill.active .seg-pill-text small {
        color: #5c4500;
    }

    .seg-pill.active {
        background: var(--bs-primary, #ffc107);
        border-color: var(--bs-primary, #ffc107);
        color: #3d2e00;
    }

    .seg-pill.disabled {
        border-color: var(--flight-gray-200, #e2e8f0);
        border-style: dashed;
        opacity: 0.55;
        cursor: not-allowed;
    }

/* Aktarma: buton gibi görünmesin diye çerçevesiz, saat simgeli düz bilgi metni */
.seg-lay {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    font-size: 11px;
    color: var(--flight-gray-400, #94a3b8);
    white-space: nowrap;
}

    /* İki yandaki çizgi uçuşları birbirine bağlar; aktarma olduğu belli olur */
    .seg-lay::before,
    .seg-lay::after {
        content: "";
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: #ffc107;
    }

    .seg-lay::before {
        margin-right: 4px;
    }

    .seg-lay::after {
        margin-left: 4px;
    }

    .seg-lay i {
        font-size: 12px;
    }

.seg-direct {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 2px;
    font-size: 12px;
    color: var(--flight-gray-500, #64748b);
}

/* Rozet (bacak sekmesi ve uçuş hapı): eksik nötr gri, tamamlanan yeşil */
.leg-tab .tab-progress,
.seg-pill .tab-progress {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 7px;
    border-radius: 99px;
    background: var(--flight-gray-100, #f1f5f9);
    color: var(--flight-gray-500, #64748b);
    font-size: 11px;
    font-weight: 600;
}

    .leg-tab .tab-progress.complete,
    .seg-pill .tab-progress.complete {
        background: #dcfce7;
        color: #15803d;
    }

    .seg-pill.active .tab-progress {
        background: rgba(255, 255, 255, 0.55);
        color: #5c4500;
    }

    .seg-pill.active .tab-progress.complete {
        background: #fff;
        color: #15803d;
    }

/* Uçuş şeridi ile ortak kart arası */
.leg-tabs + .ancillary-panel,
.seg-strip + .ancillary-panel {
    margin-top: 14px;
}

/* Yolcu kartında henüz seçim yok: uyarı rengi değil, sakin gri */
.pax-selection-status.pending {
    color: var(--flight-gray-400, #94a3b8);
    font-weight: 500;
}

/* Bagaj kuralları ve ölçüler: açılır-kapanır bölüm */
/* Yemek grup başlığıyla aynı dil: açık sarı zemin, solda sarı şerit, dönen ok */
.bag-rules {
    margin-top: 16px;
    border: 1px solid #ffe08a;
    border-left: 4px solid #ffc107;
    border-radius: 10px;
    background: #fff;
}

    .bag-rules summary {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 6px;
        background: #fff8e1;
        font-size: 14px;
        font-weight: 700;
        color: var(--flight-dark, #1e293b);
        list-style: none;
        cursor: pointer;
    }

        .bag-rules summary:hover {
            background: #ffefc2;
        }

        .bag-rules summary::-webkit-details-marker {
            display: none;
        }

        .bag-rules summary > .bi-rulers {
            font-size: 16px;
            color: #e0a800;
        }

.bag-rules-count {
    margin-left: auto;
    padding: 1px 7px;
    border-radius: 10px;
    background: rgba(255, 193, 7, 0.25);
    font-size: 11px;
    font-weight: 700;
    color: #997404;
}

.bag-rules-chevron {
    font-size: 12px;
    color: #997404;
    transition: transform .2s;
}

.bag-rules[open] .bag-rules-chevron {
    transform: rotate(180deg);
}

.bag-rules[open] summary {
    margin-bottom: 12px;
    border-radius: 6px 6px 0 0;
}

.bag-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    padding: 0 14px 14px;
}

.bag-rule {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--flight-gray-200, #e2e8f0);
    border-radius: 10px;
    font-size: 12px;
    color: var(--flight-gray-500, #64748b);
}

    .bag-rule b {
        display: block;
        margin-bottom: 2px;
        font-size: 13px;
        color: var(--flight-dark, #1e293b);
    }

    /* Satılık kalemin metni: kesik çerçeve; etiket katalogdaki badge bg-light-info */
    .bag-rule.sold {
        border-style: dashed;
    }

/* Telefonda koltuk haritası (3-3 dar gövde) yana kaymadan sığar: koltuk, sütun harfi, koridor ve gövde
   boşluğu küçülür. Taban kurallardan SONRA durmalı. Geniş gövdede (3-3-3) harita yine yana kayar. */
@media (max-width: 640px) {
    .seat-map {
        min-width: 0;
    }

    .seat-map-plane {
        margin: 16px auto;
        padding: 48px 18px 24px;
        border-radius: 110px 110px 30px 30px;
    }

    .seat-row {
        gap: 4px;
    }

    .seat {
        width: 28px;
        height: 28px;
        font-size: 8.5px;
        border-radius: 6px 6px 8px 8px;
    }

        .seat::before {
            border-width: 2px 4px 0;
        }

    .seat-col-letter,
    .seat-empty {
        width: 28px;
    }

    .seat-col-letter {
        font-size: 10px;
    }

    .seat-aisle {
        width: 14px;
    }

    .seat-row-number {
        width: 14px;
        font-size: 9px;
    }

    .seat-row.exit-row::before,
    .seat-row.exit-row::after {
        padding: 3px 1px;
        font-size: 7px;
    }

    .seat-row.exit-row::before {
        left: -17px;
    }

    .seat-row.exit-row::after {
        right: -17px;
    }

    /* Lejant: küçük kutucuk ve yazı; fiyat anahtarı son satırda sağa yaslı */
    .seat-legend {
        gap: 6px 10px;
        padding: 10px 12px;
    }

    .seat-legend-item {
        gap: 5px;
        font-size: 11px;
        font-weight: 500;
    }

    .seat-legend-box {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
        border-width: 1px;
        border-radius: 3px 3px 4px 4px;
    }

        .seat-legend-box.occupied {
            background-size: 7px 7px, 7px 7px, auto;
        }

        .seat-legend-box.restricted {
            background: repeating-linear-gradient(135deg, #f8fafc 0 2px, #e2e8f0 2px 3px);
        }

    .seat-price-toggle {
        font-size: 11px;
    }
}
