/* ── General layout ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.img-cover {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.section {
    padding: 15px;
}

.badge {
    display: flex;
    align-items: center;
    background: #e5e7eb;
    padding: 8px 12px;
    border-radius: 12px;
    margin-right: 12px;
}

    .badge svg {
        margin-right: 6px;
    }

.price {
    color: #2563eb;
    font-weight: bold;
    font-size: 1.2em;
    text-align: right;
}

.flight-details h2 {
    font-size: 1.25em;
    font-weight: bold;
    margin: 0 0 10px;
}

.flight-info {
    text-align: center;
}

    .flight-info .code {
        font-size: 1.5em;
        font-weight: bold;
    }

.small {
    font-size: 0.9em;
    color: #6b7280;
}

.button {
    background: #2563eb;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 12px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
}

.info-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    font-size: 0.9em;
    color: #4b5563;
}

    .info-box .label {
        display: flex;
        justify-content: space-between;
        font-weight: bold;
        margin-bottom: 4px;
    }

.accordion {
    border-top: 1px solid #e5e7eb;
    padding: 16px;
    cursor: pointer;
}

    .accordion:hover {
        background: #f3f4f6;
    }

/* ── Seat map / cabin layout ── */
:root {
    --available: rgba(22, 163, 74, .25);
    --available-border: rgba(22, 163, 74, .75);
    --selected: rgba(37, 99, 235, .30);
    --selected-border: rgba(37, 99, 235, .95);
    --reserved: rgba(239, 68, 68, .28);
    --reserved-border: rgba(239, 68, 68, .85);
    --text: #0f172a;
    --muted: #64748b;
    --card: #ffffff;
    --bg: #f6f8fb;
}

.topbar {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.panel {
    background: var(--card);
    border-bottom: 1px solid rgba(2,6,23,.08);
    padding: 12px 14px 12px 0px;
}

    .panel h3 {
        margin: 0 0 12px;
        font-size: 14px;
        letter-spacing: .2px;
    }

.legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 6px;
    border: 1px solid rgba(2,6,23,.2);
}

    .dot.available,
    .dot.Available {
        background: var(--available);
        border-color: var(--available-border);
    }

    .dot.selected {
        background: var(--selected);
        border-color: var(--selected-border);
    }

    .dot.reserved {
        background: var(--reserved);
        border-color: var(--reserved-border);
    }

.selectedList {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.seat-map {
    position: relative;
    background: #fff;
    border-right: 1px solid rgba(2,6,23,.08);
    overflow: hidden;
}

    .seat-map img {
        display: block;
        width: 200px;
        height: auto;
        user-select: none;
        -webkit-user-drag: none;
        pointer-events: none;
        margin-left: auto;
        margin-right: auto;
        float: none;
    }

.seat {
    position: absolute;
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: .2px;
    font-size: 12px;
    border: 2px solid rgba(2,6,23,.25);
    color: rgba(2,6,23,.85);
    background: rgba(255,255,255,.02);
    backdrop-filter: blur(2px);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

    .seat:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(2,6,23,.18);
    }

    .seat.available,
    .seat.Available {
        background: var(--available);
        border-color: var(--available-border);
    }

    .seat.selected {
        background: var(--selected);
        border-color: var(--selected-border);
        box-shadow: 0 10px 22px rgba(37, 99, 235, .25);
    }

    .seat.reserved {
        background: var(--reserved);
        border-color: var(--reserved-border);
        cursor: not-allowed;
        opacity: .9;
    }

        .seat.reserved:hover {
            transform: none;
            box-shadow: none;
        }

textarea {
    min-height: 100px;
}

@media (max-width: 520px) {
    .seat {
        font-size: 12px;
        border-radius: 10px;
    }
}
