/* === FLIGHT DETAILS MODAL === */
.flight-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.flight-details-modal.show {
    display: flex;
}

.flight-details-content {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.flight-segment {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.segment-route {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.segment-point {
    flex: 1;
}

.segment-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.segment-location {
    font-size: 0.9rem;
    color: #666;
}

.segment-arrow {
    flex: 0 0 60px;
    text-align: center;
    color: #667eea;
    font-size: 1.2rem;
}

.segment-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e8e8e8;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.detail-value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.baggage-info, .amenities-info {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.info-item i {
    color: #667eea;
    width: 20px;
}

.btn-show-details {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-show-details:hover {
    background: #667eea;
    color: white;
}

/* Make Select button more prominent */
.btn-select-flight {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-select-flight:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.btn-select-flight i {
    margin-left: 6px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .search-inputs-row {
        flex-wrap: wrap;
    }
    
    .input-group {
        min-width: 45%;
    }
    
    .btn-update-search {
        width: 100%;
    }
    
    .segment-details {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* === AIRCRAFT INFORMATION === */
.aircraft-info {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
}

.aircraft-item {
    padding: 8px 0;
    font-size: 0.95rem;
    color: #333;
}

.aircraft-item i {
    color: #667eea;
    margin-right: 8px;
}

/* === ENHANCED AMENITIES === */
.amenities-grid {
    display: grid;
    gap: 15px;
}

.amenity-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.amenity-group-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e8e8;
}

.amenity-group-title i {
    margin-right: 8px;
    color: #667eea;
}

.amenity-item {
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.amenity-item.included {
    background: #e8f5e9;
    border-left: 3px solid #4caf50;
}

.amenity-item.included i {
    color: #4caf50;
}

.amenity-item.paid {
    background: #fff3e0;
    border-left: 3px solid #ff9800;
}

.amenity-item.paid i {
    color: #ff9800;
}

/* === PRICING DETAILS === */
.pricing-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.price-row.total {
    border-bottom: none;
    font-size: 1.15rem;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #667eea;
}

.price-row strong {
    color: #667eea;
    font-weight: 600;
}

/* === SEGMENT DATES === */
.segment-date {
    font-size: 0.82rem;
    color: #666;
    margin-top: 4px;
}

/* === FLIGHT LEG DETAILS === */
.flight-leg {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

.leg-header {
    font-weight: 700;
    color: #667eea;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.leg-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e8e8e8;
}

.leg-point {
    flex: 1;
}

.leg-point.departure {
    text-align: left;
}

.leg-point.arrival {
    text-align: right;
}

.point-city {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.point-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.point-date {
    font-size: 0.85rem;
    color: #666;
}

.leg-arrow {
    flex: 0 0 80px;
    text-align: center;
    color: #667eea;
    font-size: 1.5rem;
}

.leg-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.leg-info .info-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.leg-info .info-item i {
    color: #667eea;
    margin-right: 6px;
}

/* Layover Display */
.layover-info {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 12px 16px;
    margin: 1.5rem 0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
}

.layover-info i {
    color: #ff9800;
    margin-right: 8px;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-item {
    background: #f8f9ff;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.summary-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

@media (max-width: 768px) {
    .leg-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .leg-point.arrival {
        text-align: left;
    }
    
    .leg-arrow {
        transform: rotate(90deg);
    }
    
    .leg-info {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
}
