/**
 * TicketMax - Frontend Seating Modal Styles
 * Styles for the fullscreen seating selection modal on product pages
 *
 * @package TicketMax
 * @since 1.0.0
 */

/* Seat Selection Button - Modern & Professional */
.ticketmax-seat-selection-wrapper {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', system-ui, sans-serif;
}

#ticketmax-select-seats {
    width: 100%;
    margin: -20px 0 10px 0;
    padding: 18px 32px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: linear-gradient(135deg, #E67E22 0%, #ff9933 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.4);
    position: relative;
    overflow: hidden;
}

#ticketmax-select-seats::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

#ticketmax-select-seats:hover {
    background: linear-gradient(135deg, #D35400 0%, #E67E22 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.6);
}

#ticketmax-select-seats:hover::before {
    left: 100%;
}

#ticketmax-select-seats:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.4);
}

/* Z-index variables para jerarquía clara */
                :root {
                    --tm-z-modal: 2147483647; /* Max z-index value for guaranteed top position */
                    --tm-z-tooltip: 2147483646;
                    --tm-z-controls: 100;
                }

                /* Cursor classes for reliable cursor control */
                .cursor-pointer {
                    cursor: pointer !important;
                }

                .cursor-default {
                    cursor: default !important;
                }

                .cursor-not-allowed {
                    cursor: not-allowed !important;
                }
                
                /* Fullscreen wrapper with original glassmorphism styling */
                .minimal-seating-wrapper {
                    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', system-ui, sans-serif;
                    background: rgba(255, 255, 255, 0.4);
                    backdrop-filter: blur(20px) saturate(180%);
                    -webkit-backdrop-filter: blur(20px) saturate(180%);
                    border-radius: 0;
                    border: none;
                    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.02);
                    overflow: hidden;
                    margin: 0;
                    width: 100% !important;
                    flex: 1 1 auto !important;
                    min-height: 0 !important;
                    display: flex !important;
                    flex-direction: column !important;
                    position: relative;
                }
                
                .canvas-container-minimal {
                    position: relative;
                    background: rgba(255, 255, 255, 0.8);
                    backdrop-filter: blur(20px) saturate(180%);
                    -webkit-backdrop-filter: blur(20px) saturate(180%);
                    border: none;
                    margin: 0;
                    border-radius: 0;
                    overflow: hidden;
                    box-shadow: inset 0 2px 16px rgba(0,0,0,0.02);
                    flex: 1 1 auto !important;
                    min-height: 0 !important;
                    width: 100% !important;
                }
                
                #seating-chart-canvas {
                    display: block;
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    cursor: default;
                    touch-action: none; /* Disable browser touch gestures */
                    user-select: none; /* Prevent text selection */
                    -webkit-user-select: none;
                    -moz-user-select: none;
                    -ms-user-select: none;
                }
                
                .zoom-controls-minimal {
                    position: absolute;
                    top: 12px;
                    right: 12px;
                    display: flex;
                    flex-direction: column;
                    gap: 4px;
                    z-index: var(--tm-z-controls);
                }
                
                .zoom-btn-minimal {
                    width: 32px;
                    height: 32px;
                    background: rgba(26, 26, 26, 0.95);
                    backdrop-filter: blur(20px);
                    -webkit-backdrop-filter: blur(20px);
                    border: 1px solid rgba(255, 255, 255, 0.08);
                    border-radius: 8px;
                    color: white;
                    font-size: 14px;
                    font-weight: 500;
                    cursor: pointer;
                    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
                
                .zoom-btn-minimal:hover,
                .zoom-btn-minimal:active,
                .zoom-btn-minimal:focus {
                    background: rgba(26, 26, 26, 0.95);
                    border-color: rgba(255, 255, 255, 0.08);
                    color: white;
                    outline: none;
                }

                /* Close button in zoom controls - destacado */
                .zoom-controls-minimal .ticketmax-close {
                    font-size: 16px;
                    margin-bottom: 8px;
                    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                    padding-bottom: 8px;
                }

                .zoom-controls-minimal .ticketmax-close:hover {
                    background: rgba(239, 68, 68, 0.95);
                    border-color: rgba(255, 255, 255, 0.2);
                    transform: scale(1.1);
                }

                /* Leyenda moderna y minimalista */
                .legend-container-top {
                    position: absolute;
                    top: 0;
                    left: 0;
                    z-index: 1000;
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;
                    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
                    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
                    border-radius: 0;
                    overflow: hidden;
                }
                
                .legend-toggle {
                    background: rgba(255, 255, 255, 0.92);
                    border: 0;
                    border-radius: 0;
                    padding: 16px;
                    cursor: pointer;
                    color: rgba(31, 41, 55, 0.4);
                    font-size: 11px;
                    font-weight: 300;
                    backdrop-filter: blur(16px) saturate(180%);
                    -webkit-backdrop-filter: blur(16px) saturate(180%);
                    box-shadow: none;
                    outline: none;
                    width: 100%;
                    box-sizing: border-box;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    gap: 8px;
                    border-bottom: 2px solid #f3f4f6 !important;
                    position: relative;
                    z-index: 1001;
                }
                
                .legend-toggle-text {
                    font-size: 15px;
                    font-weight: 600;
                    color: rgba(31, 41, 55, 0.95);
                    letter-spacing: 0.3px;
                }
                
                .legend-toggle-icon {
                    font-size: 14px;
                    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                }
                
                .legend-toggle:hover,
                .legend-toggle:focus,
                .legend-toggle:active {
                    background: rgba(255, 255, 255, 0.92);
                    color: rgba(31, 41, 55, 0.4);
                    outline: none;
                    transform: none;
                }
                
                .collapsible-legend {
                    background: rgba(255, 255, 255, 0.92);
                    border: 0;
                    border-radius: 0;
                    backdrop-filter: blur(16px) saturate(180%);
                    -webkit-backdrop-filter: blur(16px) saturate(180%);
                    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                    overflow: hidden;
                    box-shadow: none;
                    width: 100%;
                    box-sizing: border-box;
                }
                
                .collapsible-legend.collapsed {
                    height: 0;
                    padding: 0;
                    box-shadow: none;
                }
                
                .legend-list {
                    padding: 16px;
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                    min-width: 240px;
                }
                
                .legend-item-vertical {
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    padding: 6px 0;
                    transition: all 0.15s ease;
                }
                
                .legend-item-vertical:hover {
                    transform: translateX(2px);
                }
                
                .legend-circle {
                    width: 16px;
                    height: 16px;
                    border-radius: 50%;
                    flex-shrink: 0;
                    border: 0;
                    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
                    position: relative;
                }
                
                .legend-circle::after {
                    content: '';
                    position: absolute;
                    top: 2px;
                    left: 2px;
                    right: 2px;
                    bottom: 2px;
                    border-radius: 50%;
                    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
                    pointer-events: none;
                }
                
                .legend-text {
                    display: flex;
                    flex-direction: column;
                    line-height: 1.3;
                    flex: 1;
                }
                
                .legend-name {
                    font-size: 13px;
                    font-weight: 600;
                    color: rgba(31, 41, 55, 0.95);
                    letter-spacing: 0.3px;
                    margin-bottom: 2px;
                }
                
                .legend-price {
                    font-size: 12px;
                    font-weight: 500;
                    color: rgba(75, 85, 99, 0.8);
                    font-variant-numeric: tabular-nums;
                }
                
                /* Mobile styles - tamaños optimizados por dispositivo */
                
                /* Móviles pequeños (320px - 480px) */
                @media (max-width: 480px) {
                    .legend-toggle {
                        min-height: 32px !important;
                        padding: 8px 10px !important;
                    }

                    .legend-toggle-text {
                        font-size: 12px !important;
                        font-weight: 600 !important;
                    }

                    .legend-toggle-icon {
                        font-size: 11px !important;
                    }

                    .legend-list {
                        padding: 8px !important;
                        gap: 4px !important;
                        min-width: 140px !important;
                    }

                    .legend-item-vertical {
                        padding: 2px 0 !important;
                        gap: 6px !important;
                    }

                    .legend-circle {
                        width: 10px !important;
                        height: 10px !important;
                    }

                    .legend-name {
                        font-size: 10px !important;
                        font-weight: 600 !important;
                        margin-bottom: 0px !important;
                    }

                    .legend-price {
                        font-size: 9px !important;
                        font-weight: 500 !important;
                        margin-top: 0px !important;
                    }
                }

                /* Móviles medianos (481px - 768px) */
                @media (min-width: 481px) and (max-width: 768px) {
                    .legend-toggle {
                        min-height: 36px !important;
                        padding: 10px 12px !important;
                    }

                    .legend-toggle-text {
                        font-size: 13px !important;
                        font-weight: 600 !important;
                    }

                    .legend-toggle-icon {
                        font-size: 12px !important;
                    }

                    .legend-list {
                        padding: 10px !important;
                        gap: 5px !important;
                        min-width: 160px !important;
                    }

                    .legend-item-vertical {
                        padding: 3px 0 !important;
                        gap: 8px !important;
                    }

                    .legend-circle {
                        width: 12px !important;
                        height: 12px !important;
                    }

                    .legend-name {
                        font-size: 11px !important;
                        font-weight: 600 !important;
                        margin-bottom: 0px !important;
                    }

                    .legend-price {
                        font-size: 10px !important;
                        font-weight: 500 !important;
                        margin-top: 0px !important;
                    }
                }
                
                /* Tablets (769px - 1024px) */
                @media (min-width: 769px) and (max-width: 1024px) {
                    
                    .legend-toggle-text {
                        font-size: 14px !important;
                    }
                    
                    .legend-toggle-icon {
                        font-size: 12px !important;
                    }
                    
                    .legend-name {
                        font-size: 14px !important;
                    }
                    
                    .legend-price {
                        font-size: 12px !important;
                    }
                }
                
                
                .minimal-btn {
                    background: rgba(26, 26, 26, 0.9);
                    color: white;
                    border: none;
                    padding: 14px 24px;
                    border-radius: 0;
                    font-size: 16px;
                    font-weight: 600;
                    letter-spacing: 0.01em;
                    cursor: pointer;
                    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                    backdrop-filter: blur(20px);
                    min-height: 44px;
                }
                
                .minimal-btn:hover:not(:disabled) {
                    background: rgba(26, 26, 26, 1);
                    transform: translateY(-1px);
                    box-shadow: 0 4px 16px rgba(26, 26, 26, 0.2);
                }
                
                .minimal-btn:disabled {
                    background: rgba(142, 142, 147, 0.6);
                    cursor: not-allowed;
                }
                
                /* Botón de checkout mejorado */
                .checkout-btn {
                    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
                    color: white;
                    border: none;
                    padding: 16px 32px;
                    border-radius: 0;
                    font-size: 16px;
                    font-weight: 700;
                    letter-spacing: 0.5px;
                    text-transform: uppercase;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
                    min-height: 52px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    position: relative;
                    overflow: hidden;
                }
                
                .checkout-btn:hover:not(:disabled) {
                    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
                    transform: translateY(-2px);
                    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
                }
                
                .checkout-btn:active:not(:disabled) {
                    transform: translateY(0);
                    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
                }
                
                .checkout-btn:disabled {
                    background: rgba(142, 142, 147, 0.4);
                    cursor: not-allowed;
                    transform: none;
                    box-shadow: none;
                }
                
                /* Solo lo necesario para el modal fullscreen */
                body.modal-open {
                    overflow: hidden;
                }
                
                /* MODAL FULLSCREEN OPTIMIZADO */
                #ticketmax-seat-modal {
                    position: fixed !important;
                    inset: 0 !important;
                    z-index: 2147483647 !important;
                    display: none;
                    background: rgba(255, 255, 255, 0.95);
                    backdrop-filter: blur(20px) saturate(180%);
                    -webkit-backdrop-filter: blur(20px) saturate(180%);
                    flex-direction: column;
                }
                
                #ticketmax-seat-modal.show {
                    display: flex;
                }
                
                
                .ticketmax-modal-header {
                    display: none !important;
                    background: rgba(26, 26, 26, 0.95);
                    backdrop-filter: blur(20px);
                    -webkit-backdrop-filter: blur(20px);
                    color: white;
                    padding: 12px 16px;
                    justify-content: space-between;
                    align-items: center;
                    border-radius: 0;
                    min-height: 50px;
                }
                
                .ticketmax-modal-header h3 {
                    margin: 0;
                    font-size: 16px;
                    font-weight: 500;
                    letter-spacing: -0.01em;
                    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
                }
                
                .ticketmax-close {
                    background: none;
                    border: none;
                    color: white;
                    font-size: 24px;
                    cursor: pointer;
                    padding: 0;
                    width: 30px;
                    height: 30px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border-radius: 6px;
                    transition: background-color 0.2s;
                }
                
                .ticketmax-close:hover {
                    background: rgba(255, 255, 255, 0.1);
                }
                
                .ticketmax-modal-body {
                    padding: 0 !important;
                    flex: 1 1 auto !important;
                    overflow: hidden !important;
                    min-height: 0 !important;
                    display: flex !important;
                    flex-direction: column !important;
                }
                
                #ticketmax-seat-chart-container {
                    width: 100% !important;
                    flex: 1 1 auto !important;
                    min-height: 0 !important;
                    display: flex !important;
                    flex-direction: column !important;
                    border-radius: 0 !important;
                    border: none !important;
                    outline: none !important;
                    box-shadow: none !important;
                    background: transparent !important;
                    position: relative !important;
                }

                /* Cuando el container está cargando, centramos el loader */
                #ticketmax-seat-chart-container.is-loading {
                    justify-content: center !important;
                    align-items: center !important;
                }

                #ticketmax-seat-chart-container > * {
                    border: none !important;
                }
                
                .ticketmax-modal-footer {
                    background: rgba(248, 249, 250, 0.6);
                    backdrop-filter: blur(20px);
                    -webkit-backdrop-filter: blur(20px);
                    padding: 12px 16px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    border-top: 1px solid rgba(26, 26, 26, 0.06);
                    border-radius: 0;
                    min-height: 60px;
                }
                
                .selected-seats-info {
                    font-size: 16px;
                    font-weight: 600;
                    color: rgba(26, 26, 26, 0.9);
                    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
                }

                /* Botón desktop en footer - igual que versión de referencia */
                #add-selected-seats-desktop {
                    padding: 12px 24px;
                    font-size: 16px;
                    font-weight: 600;
                    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                    border: none;
                    border-radius: 6px;
                    color: white !important;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    min-height: auto;
                }

                #add-selected-seats-desktop:hover:not(:disabled) {
                    transform: translateY(-1px);
                    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
                }

                #add-selected-seats-desktop:disabled {
                    background: #ccc;
                    cursor: not-allowed;
                    transform: none;
                    box-shadow: none;
                }

                /* Botón de checkout móvil - oculto por defecto, controlado por JavaScript */
                #add-selected-seats-mobile {
                    display: none;
                    color: white !important;
                }

                /* Optimizaciones para móvil */
                @media (max-width: 768px) {
                    /* Ocultar footer en móviles - usar botón flotante mobile en su lugar */
                    .ticketmax-modal-footer {
                        display: none !important;
                    }

                    .ticketmax-modal-header {
                        padding: 8px 12px;
                        min-height: 45px;
                    }

                    .ticketmax-modal-header h3 {
                        font-size: 14px;
                    }

                    /* Botón checkout flotante móvil - cuadrado desde leyenda hasta borde derecho */
                    #add-selected-seats-mobile {
                        position: fixed !important;
                        bottom: 0 !important;
                        left: 180px !important; /* Empieza donde termina la leyenda */
                        right: 0 !important;
                        z-index: 1001 !important;
                        padding: 0 !important;
                        font-size: 13px !important;
                        font-weight: 700 !important;
                        height: 50px !important;
                        min-height: 50px !important;
                        max-height: 50px !important;
                        border-radius: 0 !important;
                        letter-spacing: 0.2px !important;
                        margin: 0 !important;
                        align-items: center !important;
                        justify-content: center !important;
                        text-transform: uppercase !important;
                        opacity: 0 !important;
                        visibility: hidden !important;
                        transition: opacity 0.6s ease, visibility 0.6s !important;
                        display: flex !important; /* Siempre flex, controlamos con opacity/visibility */
                    }

                    /* Estado visible */
                    #add-selected-seats-mobile.visible {
                        opacity: 1 !important;
                        visibility: visible !important;
                    }

                    /* Cuando jQuery añade style="display: block" o inline-block */
                    #add-selected-seats-mobile[style*="display: block"],
                    #add-selected-seats-mobile[style*="display: inline"] {
                        display: flex !important;
                    }

                    /* Aumentar altura de la pestaña PRECIOS */
                    .legend-toggle {
                        min-height: 50px !important;
                        padding: 12px 10px !important;
                    }

                    /* Ocultar texto de asientos seleccionados en móviles */
                    .selected-seats-info {
                        display: none !important;
                    }

                    /* Leyenda en la parte inferior izquierda - INVERTIDA */
                    .legend-container-top {
                        position: fixed !important;
                        top: auto !important;
                        bottom: 0 !important;
                        left: 0 !important;
                        right: auto !important;
                        z-index: 1000 !important;
                        flex-direction: column-reverse !important;
                    }

                    /* Flechas controladas por JavaScript - sin rotación CSS */
                    .legend-toggle .legend-toggle-icon {
                        transform: none !important;
                    }

                    .legend-toggle.collapsed .legend-toggle-icon {
                        transform: none !important;
                    }

                    /* Leyenda abierta por defecto - sin clase collapsed */
                    .collapsible-legend {
                        max-height: 300px !important;
                    }

                    /* Aumentar solo el cuadro de la leyenda (padding) */
                    .legend-list {
                        min-width: 180px !important;
                        padding: 12px !important;
                        gap: 8px !important;
                    }

                    .legend-item-vertical {
                        gap: 10px !important;
                        padding: 4px 0 !important;
                    }

                    /* Ocultar botones de zoom + y - en móviles */
                    .zoom-btn-minimal[data-action="zoom-in"],
                    .zoom-btn-minimal[data-action="zoom-out"] {
                        display: none !important;
                    }
                }

                /* ESTILOS PARA MODAL DE ZONA */
                #zone-quantity-modal-overlay {
                    position: fixed !important;
                    top: 0 !important;
                    left: 0 !important;
                    width: 100% !important;
                    height: 100% !important;
                    background: rgba(0, 0, 0, 0.7) !important;
                    backdrop-filter: blur(8px);
                    -webkit-backdrop-filter: blur(8px);
                    z-index: 2147483646 !important;
                    display: flex !important;
                    align-items: center !important;
                    justify-content: center !important;
                    opacity: 1 !important;
                    visibility: visible !important;
                }

                #zone-quantity-modal {
                    background: white !important;
                    border-radius: 12px;
                    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
                    max-width: 500px;
                    width: 90%;
                    max-height: 80vh;
                    overflow: hidden;
                    opacity: 1 !important;
                    transform: translateY(0) scale(1) !important;
                }

                .ticketmax-modal-content {
                    padding: 24px;
                }

                .ticketmax-modal-title {
                    margin: 0 0 16px 0;
                    font-size: 24px;
                    font-weight: 700;
                    color: #1f2937;
                    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
                }

                .ticketmax-modal-description {
                    margin: 0 0 24px 0;
                    font-size: 16px;
                    color: #6b7280;
                    line-height: 1.5;
                }

                .ticketmax-modal-field-group {
                    margin-bottom: 24px;
                }

                .ticketmax-modal-label {
                    display: block;
                    margin-bottom: 8px;
                    font-size: 14px;
                    font-weight: 600;
                    color: #374151;
                }

                #zone-quantity-input {
                    width: 100%;
                    padding: 12px 16px;
                    border: 2px solid #e5e7eb;
                    border-radius: 8px;
                    font-size: 16px;
                    box-sizing: border-box;
                    transition: border-color 0.2s ease;
                }

                #zone-quantity-input:focus {
                    outline: none;
                    border-color: #7c3aed;
                    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
                }

                .ticketmax-modal-buttons {
                    display: flex;
                    gap: 12px;
                    justify-content: flex-end;
                }

                #zone-confirm-btn, #zone-cancel-btn {
                    padding: 12px 24px;
                    border: none;
                    border-radius: 8px;
                    font-size: 16px;
                    font-weight: 600;
                    cursor: pointer;
                    transition: all 0.2s ease;
                }

                #zone-confirm-btn {
                    background: #7c3aed;
                    color: white;
                }

                #zone-confirm-btn:hover {
                    background: #6d28d9;
                    transform: translateY(-1px);
                }

                #zone-cancel-btn {
                    background: #f3f4f6;
                    color: #6b7280;
                }

                #zone-cancel-btn:hover {
                    background: #e5e7eb;
                    color: #374151;
                }

                /* Responsive para móviles */
                @media (max-width: 768px) {
                    #zone-quantity-modal {
                        max-width: 95%;
                        margin: 20px;
                    }

                    .ticketmax-modal-content {
                        padding: 20px;
                    }

                    .ticketmax-modal-title {
                        font-size: 20px;
                    }

                    .ticketmax-modal-buttons {
                        flex-direction: column;
                    }

                    #zone-confirm-btn, #zone-cancel-btn {
                        width: 100%;
                    }
                }
                    
                    .legend-name {
                        font-size: 12px !important;
                        font-weight: 600;
                        letter-spacing: 0.2px;
                    }
                    
                    .legend-price {
                        font-size: 11px !important;
                        font-weight: 500;
                    }
                    
                    .legend-circle {
                        width: 12px;
                        height: 12px;
                    }
                    
                    .legend-toggle {
                        padding: 14px 10px;
                        font-size: 10px;
                        border-radius: 0;
                        color: rgba(31, 41, 55, 0.3);
                        min-height: 40px;
                    }
                    
                    .collapsible-legend {
                        border-radius: 0;
                        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
                    }
                    
                    .canvas-container-minimal {
                        height: 100%;
                    }
                    
                }
                
                /* TOOLTIP - IGUAL AL EDITOR */
                .seat-tooltip {
                    position: absolute;
                    background: rgba(26, 26, 26, 0.95);
                    backdrop-filter: blur(20px);
                    -webkit-backdrop-filter: blur(20px);
                    color: white;
                    padding: 8px 12px;
                    border-radius: 0;
                    font-size: 11px;
                    font-weight: 500;
                    line-height: 1.3;
                    z-index: var(--tm-z-tooltip);
                    pointer-events: none;
                    opacity: 0;
                    transform: translateY(10px);
                    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
                    border: 1px solid rgba(255, 255, 255, 0.08);
                    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
                }
                
                .seat-tooltip.show {
                    opacity: 1;
                    transform: translateY(0);
                }
                
                .seat-info {
                    font-weight: 600;
                    margin-bottom: 2px;
                }
                
                .click-hint {
                    font-size: 10px;
                    opacity: 0.8;
                    color: rgba(255, 255, 255, 0.7);
                }
                
                .chart-info {
                    display: flex;
                    justify-content: center;
                    gap: 40px;
                    background: white;
                    padding: 15px;
                    border-radius: 8px;
                    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                }
                
                .info-item {
                    text-align: center;
                    font-size: 14px;
                    color: #374151;
                }
                
                .info-item strong {
                    color: #1e293b;
                }

                /* Loading State - Loader centrado */
                .loading-seats {
                    display: flex !important;
                    flex-direction: column !important;
                    justify-content: center !important;
                    align-items: center !important;
                    gap: 20px !important;
                    width: 100% !important;
                    height: 100% !important;
                    margin: 0 !important;
                    padding: 0 !important;
                    background: transparent !important;
                }

                .loading-seats p {
                    margin: 0 !important;
                    padding: 0 !important;
                    color: #666 !important;
                    font-size: 15px !important;
                    font-weight: 500 !important;
                    text-align: center !important;
                }

                .loading-spinner {
                    width: 50px !important;
                    height: 50px !important;
                    border: 5px solid #ffe4cc !important;
                    border-top: 5px solid #ff9933 !important;
                    border-radius: 50% !important;
                    animation: spin 0.8s linear infinite !important;
                    margin: 0 !important;
                }

                @keyframes spin {
                    0% { transform: rotate(0deg); }
                    100% { transform: rotate(360deg); }
                }

/* Floor tabs styles for frontend */
.frontend-floor-tabs-container {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 100;
    min-height: 50px;
}

.frontend-floor-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    user-select: none;
}

.frontend-floor-tab:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.frontend-floor-tab.active {
    background: #3B82F6;
    color: white;
    border-color: #2563EB;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.frontend-floor-tab-name {
    line-height: 1;
    font-size: 15px;
}

.frontend-floor-tab-count {
    opacity: 0.75;
    font-size: 13px;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .frontend-floor-tabs-container {
        padding: 10px 12px;
        gap: 6px;
    }

    .frontend-floor-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .frontend-floor-tab-name {
        font-size: 14px;
    }

    .frontend-floor-tab-count {
        font-size: 12px;
    }
}

