/* Seat Map Public Styles */

.seat-map-wrapper {
    position: relative;
    background: var(--seat-map-bg-color, #ffffff);
    border-radius: var(--seat-map-border-radius, 16px);
    /* More rounded */
    box-shadow: var(--seat-map-shadow, 0 20px 40px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.03));
    /* Layered shadows */
    padding: 40px;
    max-width: 900px;
    margin: 40px auto;
    font-family: var(--seat-map-font-family, 'Inter', -apple-system, system-ui, sans-serif);
    color: var(--seat-map-text-color, #333);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Header / Legend Area */
.seat-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.seat-map-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--seat-map-text-color, #1a1a1a);
    letter-spacing: -0.5px;
}

.seat-map-legend {
    display: flex;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f7;
    padding: 6px 12px;
    border-radius: 20px;
    /* Pill shape */
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    /* Circle */
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Canvas Container */
.seat-map-canvas-container {
    background: #f9fafb;
    /* Subtle contrast */
    border: 1px solid #edf2f7;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    cursor: default;
    position: relative;
    /* For zoom controls */
    min-height: 400px;
}

canvas.seat-map-canvas {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
    /* Shadow on the map itself */
}

/* Zoom Controls */
.seat-map-zoom-controls {
    position: absolute;
    bottom: 20px;
    /* Moved to bottom right for better UX */
    right: 20px;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.zoom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    color: var(--seat-map-btn-color, #2196F3);
    border-color: rgba(0, 0, 0, 0.05);
}

.zoom-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}


/* Booking Form Area */
.seat-map-booking-form {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: all 0.2s ease;
    color: #2d3748;
}

.form-group input:focus {
    border-color: var(--seat-map-btn-color, #2196F3);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    /* Fallback color for shadow opacity */
    outline: none;
}

.form-group input::placeholder {
    color: #a0aec0;
}

/* Summary Panel */
.booking-summary {
    background: #f8f9fa;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-seats {
    color: #4a5568;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seat-list {
    font-weight: 600;
    color: var(--seat-map-text-color, #2d3748);
}

.summary-total {
    font-weight: 800;
    color: var(--seat-map-btn-color, #2196F3);
    font-size: 24px;
    letter-spacing: -0.5px;
}

/* Action Button */
.seat-map-wrapper .seat-map-submit {
    width: 100%;
    padding: 16px;
    background: var(--seat-map-btn-color, #2196F3) !important;
    color: white !important;
    border: none;
    border-radius: var(--seat-map-border-radius, 8px);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 10px 20px -10px var(--seat-map-btn-color, #2196F3);
    /* Colored shadow */
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s;
}

.seat-map-wrapper .seat-map-submit:hover {
    background: var(--seat-map-btn-hover-color, #1976D2) !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px var(--seat-map-btn-color, #2196F3);
}

.seat-map-wrapper .seat-map-submit:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px -5px var(--seat-map-btn-color, #2196F3);
}

.seat-map-wrapper .seat-map-submit:disabled {
    background: #cbd5e0 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    color: #718096 !important;
}

/* Responsive */
@media (max-width: 600px) {
    .seat-map-wrapper {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .booking-summary {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .summary-total {
        font-size: 20px;
        align-self: flex-end;
    }
}