/* Multi-City Trip Selector Styles */

.multi-city-trip-selector {
    margin-top: 2rem;
}

.trip-selection-header {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.trip-selection-header h3 {
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Trip Tabs Styling */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 1rem 1.5rem;
    color: #6c757d;
    background: none;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-color: #007bff;
    color: #007bff;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    border-color: #007bff;
    color: #007bff;
    background-color: #f8f9fa;
    font-weight: 600;
}

.trip-tab-content {
    text-align: center;
    min-width: 120px;
}

.trip-route {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.trip-route .arrow {
    margin: 0 8px;
    color: #6c757d;
    font-size: 0.8rem;
}

.trip-date {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.selection-status {
    margin-top: 4px;
}

.selection-status .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Flight Option Cards */
.flight-option-card {
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.flight-option-card:hover {
    border-color: #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.flight-option-card.selected {
    border-color: #007bff;
    background-color: #f8f9fa;
    box-shadow: 0 0 0 1px #007bff;
}

.flight-option-card .form-check-input:checked + .form-check-label {
    color: #007bff;
    font-weight: 600;
}

/* Airline Logo */
.airline-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

/* Flight Path */
.flight-path {
    position: relative;
}

.path-line {
    position: relative;
    margin: 0.5rem 0;
}

.path-line hr {
    border-color: #dee2e6;
    border-width: 2px;
}

.nonstop-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #28a745;
    font-weight: 600;
}

/* Trip Selection Summary */
.trip-selection-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.selected-trip {
    padding: 12px;
    background-color: white;
    border-radius: 6px;
    border-left: 3px solid #007bff;
    margin-bottom: 8px;
}

.selected-trip:last-child {
    margin-bottom: 0;
}

.price-summary {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.total-price {
    text-align: center;
    padding: 1rem 0;
}

.total-price .h3 {
    color: #007bff;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .trip-tab-content {
        min-width: 100px;
    }
    
    .trip-route {
        font-size: 0.8rem;
    }
    
    .flight-option-card .row {
        flex-direction: column;
    }
    
    .flight-option-card .col-md-3,
    .flight-option-card .col-md-2,
    .flight-option-card .col-md-1 {
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .departure-info,
    .arrival-info {
        text-align: center !important;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Animation for selection */
.flight-option-card.selected {
    animation: selectPulse 0.3s ease-in-out;
}

@keyframes selectPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Status indicators */
.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* Form validation styles */
.form-check-input:valid {
    border-color: #28a745;
}

.form-check-input:invalid {
    border-color: #dc3545;
}

/* Accessibility improvements */
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Print styles */
@media print {
    .nav-tabs,
    .btn,
    .form-check {
        display: none !important;
    }
    
    .flight-option-card.selected {
        border: 2px solid #000 !important;
        background-color: #f8f9fa !important;
    }
} 