/* Quick Booking Panel - Seat Selection for Manual Pricing */

/* Quick Booking Button */
#quickBookingTrigger {
    position: relative;
}

#quickBookingTrigger .fa-bolt {
    color: currentColor;
}

.widget-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--bg-primary);
    pointer-events: none;
}

.quick-booking-panel {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.quick-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.quick-booking-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text-primary);
}

.quick-booking-header h2 i {
    color: #40E0D0;
}

.tour-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-selector select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 14px;
}

.refresh-btn {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    background: #40E0D0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #00CED1;
    transform: scale(1.05);
}

.tour-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
}

.tour-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.tour-info-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-info-value {
    font-size: 18px;
    font-weight: 600;
}

.seats-container {
    margin-bottom: 25px;
}

.seats-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.seat {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.seat i {
    font-size: 20px;
}

.seat.available {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.seat.available:hover {
    background: #c8e6c9;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.seat.booked {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
    cursor: not-allowed;
}

.seat.selected {
    background: linear-gradient(135deg, #40E0D0, #00CED1);
    border-color: #00CED1;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.4);
}

.seat-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 15px;
    background: var(--input-bg);
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid;
}

.legend-color.available {
    background: #e8f5e9;
    border-color: #4caf50;
}

.legend-color.booked {
    background: #ffebee;
    border-color: #f44336;
}

.legend-color.selected {
    background: linear-gradient(135deg, #40E0D0, #00CED1);
    border-color: #00CED1;
}

.booking-form-section {
    padding: 20px;
    background: var(--input-bg);
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.booking-form-section.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
}

.price-input-group {
    position: relative;
}

.price-input-group input {
    padding-left: 30px;
}

.price-input-group::before {
    content: '$';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-weight: 600;
}

.quick-booking-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-quick-book {
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-quick-book.primary {
    background: linear-gradient(135deg, #40E0D0, #00CED1);
    color: white;
}

.btn-quick-book.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.4);
}

.btn-quick-book.secondary {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-quick-book.secondary:hover {
    background: var(--text-secondary);
    color: white;
}

.selected-seats-info {
    padding: 15px;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1), rgba(0, 206, 209, 0.1));
    border-left: 4px solid #40E0D0;
    border-radius: 6px;
    margin-bottom: 20px;
}

.selected-seats-info h3 {
    margin: 0 0 10px 0;
    color: #00CED1;
    font-size: 16px;
}

.selected-seats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: white;
    border: 1px solid #40E0D0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #00CED1;
}

.seat-badge i {
    cursor: pointer;
    color: #f44336;
}

.seat-badge i:hover {
    transform: scale(1.2);
}

/* Dark mode adjustments */
body.dark-mode .seat.available {
    background: #1b5e20;
    border-color: #4caf50;
    color: #a5d6a7;
}

body.dark-mode .seat.booked {
    background: #b71c1c;
    border-color: #f44336;
    color: #ffcdd2;
}

body.dark-mode .legend-color.available {
    background: #1b5e20;
}

body.dark-mode .legend-color.booked {
    background: #b71c1c;
}


/* Responsive */
@media (max-width: 1024px) {
    .quick-booking-panel {
        padding: 20px;
    }
    
    .quick-booking-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .tour-selector {
        width: 100%;
        flex-direction: column;
    }
    
    .tour-selector select {
        width: 100%;
    }
    
    .refresh-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .quick-booking-panel {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .quick-booking-header h2 {
        font-size: 18px;
    }
    
    .seats-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    
    .seat {
        font-size: 11px;
    }
    
    .seat i {
        font-size: 16px;
    }
    
    .tour-info-bar {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    
    .tour-info-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .tour-info-label {
        font-size: 11px;
    }
    
    .tour-info-value {
        font-size: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .booking-form-section {
        padding: 15px;
    }
    
    .quick-booking-actions {
        flex-direction: column;
    }
    
    .btn-quick-book {
        width: 100%;
        justify-content: center;
    }
    
    .seat-legend {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .selected-seats-list {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .seats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    
    .seat {
        font-size: 10px;
        border-width: 1px;
    }
    
    .seat i {
        font-size: 14px;
    }
    
    .quick-booking-header h2 {
        font-size: 16px;
    }
    
    .tour-info-value {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group select {
        padding: 8px;
        font-size: 13px;
    }
}
