/* Flights-specific CSS styles */

/* Flight Search Form Enhancements */
.flight-search-form {
    background: linear-gradient(135deg, #0077C0 0%, #4FA7C1 100%);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 119, 192, 0.2);
}

.flight-search-form .form-control,
.flight-search-form .form-select {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 12px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.flight-search-form .form-control:focus,
.flight-search-form .form-select:focus {
    border-color: #F0831E;
    box-shadow: 0 0 0 0.2rem rgba(240, 131, 30, 0.25);
    background: white;
}

/* Flight Results Styling */
.flight-result-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.flight-result-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.flight-route-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.flight-airport {
    text-align: center;
    flex: 1;
}

.flight-airport-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0077C0;
    margin-bottom: 0.25rem;
}

.flight-airport-name {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.flight-route-arrow {
    color: #F0831E;
    font-size: 1.25rem;
    margin: 0 0.5rem;
}

.flight-duration {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.flight-price {
    text-align: right;
    flex-shrink: 0;
}

.flight-price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F0831E;
    margin-bottom: 0.25rem;
}

.flight-price-per-person {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Flight Filters */
.flight-filters {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.flight-filter-group {
    margin-bottom: 1rem;
}

.flight-filter-group:last-child {
    margin-bottom: 0;
}

.flight-filter-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.flight-filter-checkbox {
    margin-right: 0.75rem;
}

.flight-filter-checkbox + label {
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Flight Route Links */
.flight-route-link {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.flight-route-link:hover {
    background: #f8f9fa;
    border-color: #F0831E;
    color: #F0831E;
    text-decoration: none;
}

.flight-route-text {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.flight-route-airlines {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Flight Search Results Grid */
.flight-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Responsive Flight Styles */
@media (max-width: 768px) {
    .flight-search-form {
        padding: 1rem;
    }
    
    .flight-route-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .flight-route-arrow {
        transform: rotate(90deg);
    }
    
    .flight-results-grid {
        grid-template-columns: 1fr;
    }
    
    .flight-result-card {
        padding: 1rem;
    }
}

/* Flight Booking Button */
.flight-book-button {
    background: linear-gradient(135deg, #F0831E 0%, #E0001A 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(240, 131, 30, 0.3);
}

.flight-book-button:hover {
    background: linear-gradient(135deg, #E0001A 0%, #F0831E 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 131, 30, 0.4);
}

/* Flight Status Indicators */
.flight-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.flight-status.available {
    background: #d1fae5;
    color: #065f46;
}

.flight-status.limited {
    background: #fef3c7;
    color: #92400e;
}

.flight-status.sold-out {
    background: #fee2e2;
    color: #991b1b;
}

/* Flight Comparison */
.flight-comparison {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.flight-comparison-header {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
}

.flight-comparison-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flight-comparison-item:last-child {
    border-bottom: none;
}

.flight-comparison-label {
    color: #6b7280;
    font-weight: 500;
}

.flight-comparison-value {
    color: #374151;
    font-weight: 600;
}

/* Flight Map Integration */
.flight-map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flight-map {
    width: 100%;
    height: 300px;
    border: none;
}

/* Flight Timeline */
.flight-timeline {
    position: relative;
    padding-left: 2rem;
}

.flight-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.flight-timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.flight-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #F0831E;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #F0831E;
}

.flight-timeline-time {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.flight-timeline-location {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Flight Search Suggestions */
.flight-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.flight-suggestion-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.flight-suggestion-item:hover {
    background: #f8f9fa;
}

.flight-suggestion-item:last-child {
    border-bottom: none;
}

.flight-suggestion-airport {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.flight-suggestion-location {
    color: #6b7280;
    font-size: 0.875rem;
}
