/* نظام حجز التذاكر */
.travel-booking-system {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.travel-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.travel-title {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.travel-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0;
}

/* صندوق البحث */
.search-container {
    margin-bottom: 40px;
}

.search-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
}

.search-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #667eea;
    outline: none;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s;
}

.search-btn:hover {
    transform: translateY(-2px);
}

/* قائمة الرحلات */
.flights-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.flights-header {
    padding: 24px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.flights-header h2 {
    margin: 0;
    color: #2d3748;
}

.results-count {
    color: #667eea;
    font-weight: 600;
}

.flights-list {
    padding: 20px;
}

.flight-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s;
    background: white;
}

.flight-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.flight-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
}

.flight-info {
    flex: 1;
}

.flight-route {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 16px;
}

.route-section {
    text-align: center;
    flex: 1;
}

.city {
    font-size: 1.3em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
}

.time {
    font-size: 1.1em;
    color: #667eea;
    font-weight: 600;
}

.route-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.duration {
    color: #718096;
    font-size: 0.9em;
}

.route-line {
    position: relative;
    width: 120px;
    height: 2px;
    background: #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-line .line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #cbd5e0;
}

.route-line .plane {
    background: white;
    padding: 0 8px;
    font-size: 1.2em;
}

.flight-type {
    background: #e6fffa;
    color: #234e52;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.flight-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    gap: 8px;
    font-size: 0.9em;
}

.detail-item .label {
    color: #718096;
}

.detail-item .value {
    color: #2d3748;
    font-weight: 600;
}

.detail-item .value.low-seats {
    color: #e53e3e;
}

.flight-price {
    text-align: center;
    padding: 0 20px;
    border-left: 1px solid #e2e8f0;
}

.price {
    font-size: 2em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
}

.price span {
    font-size: 0.6em;
    color: #718096;
}

.price-note {
    color: #718096;
    font-size: 0.8em;
    margin-bottom: 16px;
}

.book-btn {
    background: #48bb78;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.book-btn:hover {
    background: #38a169;
}

.flight-alert {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 24px;
    border-top: 1px solid #feb2b2;
    font-size: 0.9em;
    font-weight: 600;
}

.no-flights {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.no-flights-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.no-flights h3 {
    color: #2d3748;
    margin-bottom: 8px;
}

/* المودال */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: #2d3748;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #718096;
}

.modal-body {
    padding: 24px;
}

.form-section {
    margin-bottom: 24px;
}

.form-section h4 {
    margin: 0 0 16px 0;
    color: #2d3748;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.booking-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 1.2em;
    font-weight: 600;
    color: #2d3748;
}

.submit-booking {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s;
}

.submit-booking:hover {
    transform: translateY(-2px);
}

/* التجاوب */
@media (max-width: 768px) {
    .travel-booking-system {
        padding: 10px;
    }
    
    .flight-main {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .flight-price {
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding: 20px 0 0 0;
        width: 100%;
    }
    
    .flight-route {
        flex-direction: column;
        gap: 20px;
    }
    
    .route-middle {
        order: -1;
    }
    
    .search-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}