.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}

    .loading-overlay .spinner-border {
        width: 3rem;
        height: 3rem;
    }

/* Chrome, Safari, Edge, Opera */
.no-spinners::-webkit-inner-spin-button,
.no-spinners::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.no-spinners[type=number] {
    -moz-appearance: textfield;
}

.flight-offer {
    border-radius: 1rem;
    overflow: hidden;
}

.flight-section {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
}

    .flight-section:last-child {
        border-bottom: none;
    }

.flight-header {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.flight-route {
    font-size: 1rem;
    font-weight: 600;
}

.flight-time {
    font-size: 1.3rem;
    font-weight: 700;
}

.flight-duration {
    font-size: 0.9rem;
    color: #6c757d;
}

.sidebar {
    border-left: 1px solid #eee;
    padding: 1.5rem;
}

.btn-buy {
    border: none;
    width: 100%;
    font-weight: 600;
}

.taxes-modal {
    border-radius: 14px;
}

.tax-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f5;
}

.tax-row:last-child {
    border-bottom: none;
}

.tax-label {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.3;
}

.tax-amount {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.flight-connection-line {
    position: relative;
    height: 20px;
    width: 100%;
}

    .flight-connection-line::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background: repeating-linear-gradient( to right, #9bb3c9 0 6px, transparent 6px 12px );
        transform: translateY(-50%);
    }

.flight-connection-dot {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #041E42;
    transform: translate(-50%, -50%);
    z-index: 3;
    opacity: .9;
}

.flight-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

    .flight-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,.15);
    }

.extended-flight-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.extended-leg-card {
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    padding: 16px;
}

.extended-leg-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
}

.extended-segment {
    padding: 16px 0;
    border-bottom: 1px solid #e5eaf0;
}

    .extended-segment:last-child {
        border-bottom: none;
    }

/* Top airline row */
.segment-header {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.airline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.operated {
    font-size: 12px;
    opacity: .6;
}

/* Timeline layout (vertical) */
.segment-body {
    display: flex;
    gap: 20px;
    margin-top: 16px;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .timeline .dot {
        width: 12px;
        height: 12px;
        background: #041E42;
        border-radius: 50%;
    }

    .timeline .line {
        flex: 1;
        width: 2px;
        background: #cdd5df;
        margin: 4px 0;
    }


.timeline-info .t-station {
    white-space: normal;
    word-break: break-word;
    min-width: 140px;
}


.t-time {
    font-weight: 600;
}

.t-station {
    margin-bottom: 1em;
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 12px;
    }

    .tax-label {
        font-size: 13px;
    }

    .tax-amount {
        font-size: 13px;
    }
}


@media (max-width: 768px) {
    .sidebar {
        border-left: none;
        border-top: 1px solid #eee;
    }
}
