/* ========== Booking Modal ========== */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;                     /* overridden by JS (display:flex) */
    align-items: center;
    justify-content: center;
}
.booking-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 0;
}
.booking-modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
}
.booking-modal-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.booking-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}
.booking-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
}
.booking-modal-close:hover {
    background: rgba(255,255,255,0.2);
}
.booking-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    max-height: 60vh;
}
.booking-modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.booking-total {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}
.booking-total strong {
    font-size: 1.2rem;
    color: #667eea;
}
.booking-actions {
    display: flex;
    gap: 10px;
}

/* Steps */
.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}
.booking-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}
.step {
    position: relative;
    z-index: 2;
    background: white;
    text-align: center;
    flex: 1;
}
.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    color: #666;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s;
}
.step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.step.completed .step-number {
    background: #4caf50;
    color: white;
}
.step-label {
    font-size: 0.85rem;
    color: #666;
}
.step.active .step-label {
    color: #667eea;
    font-weight: bold;
}

/* Forms */
.form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}
.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.form-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}
.form-section h4 {
    margin-bottom: 10px;
    color: #667eea;
    font-size: 1rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* Payment */
.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.payment-method {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}
.payment-method:hover {
    border-color: #667eea;
}
.payment-method.selected {
    border-color: #4caf50;
    background: #e8f5e9;
}

/* Guest/Room form */
.passenger-form, .guest-form, .room-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Summary */
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    border-top: 2px solid #667eea;
    margin-top: 10px;
}

/* Badges */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 10px;
}
.selected-info {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.selected-info h4 {
    color: #667eea;
    margin-bottom: 10px;
}

/* Buttons */
.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}
.btn-success {
    background: #4caf50;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
}

small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-modal-container { width: 95%; }
    .form-row { grid-template-columns: 1fr; }
    .booking-modal-header h2 { font-size: 1.2rem; }
    .booking-modal-body { padding: 20px; }
    .booking-modal-footer { padding: 15px 20px; flex-direction: column; gap: 15px; }
    .booking-actions { width: 100%; display: flex; gap: 10px; }
    .booking-actions button { flex: 1; }
}
/* ======= Seat Map ======= */
.seat-legend {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.seat-legend span[class^="seat-"] {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 4px;
    vertical-align: middle;
}
.seat-available { background: #e2e8f0; border: 1px solid #cbd5e1; }
.seat-selected { background: #667eea; border: 2px solid #3d5afe; box-shadow: 0 0 4px #667eea; }
.seat-occupied { background: #f56565; border: 1px solid #e53e3e; cursor: not-allowed; }
.seat-premium { border: 2px solid #f6ad55; }
.seat-women { border: 2px solid #ed64a6; }

.seat-map {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
}
.seat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.row-label {
    width: 30px;
    text-align: center;
    font-weight: 700;
    color: #4a5568;
}
.seat {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    transition: all 0.2s;
}
.seat.occupied {
    background: #f56565;
    color: white;
    cursor: not-allowed;
}
.seat.selected {
    background: #667eea;
    color: white;
    border-color: #3d5afe;
    box-shadow: 0 0 6px #667eea;
}
.seat.premium:not(.occupied):not(.selected) {
    border-color: #f6ad55;
}
.seat.women:not(.occupied):not(.selected) {
    border-color: #ed64a6;
}
.seat:hover:not(.occupied):not(.selected) {
    background: #c3dafe;
}
.selected-seats-info {
    margin-top: 10px;
    font-size: 0.9rem;
}