/* Evento Mapa - Estilos para página pública de compra de ingressos */

:root {
    --primary-color: #7f7cee;
    --success-color: #50cd89;
    --danger-color: #f1416c;
    --warning-color: #ffc107;
    --dark-color: #1e1e2d;
    --gray-100: #f5f8fa;
    --gray-200: #eff2f5;
    --gray-300: #e4e6ef;
    --gray-400: #b5b5c3;
    --gray-600: #7e8299;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-100);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Quando há imagem, usar como fundo desfocado */
.hero-section[data-imagem] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section[data-imagem]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    transform: scale(1.1);
    opacity: 0.6;
    z-index: 0;
}

/* Overlay escuro para legibilidade do texto */
.hero-section[data-imagem]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.event-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.event-meta {
    font-size: 18px;
    opacity: 0.95;
}

/* Imagem do evento ao lado direito */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-event-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

/* Seletor de Sessões */
.section-sessoes {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.sessoes-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

/* Versao usada na sidebar do evento.php */
.sessoes-scroll-sidebar {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 8px;
    -webkit-overflow-scrolling: touch;
}

.sessoes-scroll-sidebar > .d-flex {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
}

.sessoes-scroll::-webkit-scrollbar {
    height: 8px;
}

.sessoes-scroll::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 10px;
}

.sessoes-scroll::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 10px;
}

.sessao-card {
    display: inline-block;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    padding: 15px 20px;
    margin-right: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 150px;
    white-space: normal;
}

.sessoes-scroll-sidebar .sessao-card {
    flex: 0 0 auto;
    width: 150px;
    max-width: 150px;
    margin-right: 0;
}

.sessoes-scroll-sidebar .sessao-card .nome-sessao {
    word-break: break-word;
    line-height: 1.2;
}

.sessao-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(127, 124, 238, 0.2);
}

.sessao-card.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6366f1 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 20px rgba(127, 124, 238, 0.3);
}

.sessao-card .dia-semana {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 5px;
}

.sessao-card .dia-numero {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.sessao-card .mes {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sessao-card .horario {
    font-size: 14px;
    font-weight: 600;
    padding: 5px 10px;
    background: rgba(0,0,0,0.1);
    border-radius: 6px;
    margin-top: 8px;
}

.sessao-card.selected .horario {
    background: rgba(255,255,255,0.2);
}

/* Mapa de Setores */
.section-mapa-setores {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.mapa-setores-wrapper {
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    padding: 20px;
    min-height: 300px;
    max-height: 600px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Evita vazamento */
}

#mapa-setores-canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsivo */
@media (max-width: 768px) {
    .mapa-setores-wrapper {
        height: 400px;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .mapa-setores-wrapper {
        height: 300px;
        padding: 5px;
    }
}

.setor-lista-item {
    padding: 12px;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s;
}

.setor-lista-item:hover {
    background: var(--gray-100);
}

.setor-lista-item .setor-cor {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 10px;
}

/* Mapa de Lugares */
.mapa-lugares-container {
    background: var(--gray-100);
    padding: 20px;
    height: calc(100vh - 200px);
    overflow: auto;
    position: relative;
}

#mapa-lugares-canvas-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dentro do MODAL de seleção (PDV / gerenciar pedidos / ingressos vendidos), a escolha
   de SETORES injeta um grid Bootstrap de bloco (#container-mapa-setores > .row > .col)
   DENTRO de #mapa-lugares-canvas-container, que é flex+center (regra acima) para
   centralizar o <canvas> do mapa de LUGARES. Como filho de um flex container com
   justify-content:center, esse grid encolhe para max-content e o mapa de setores sai
   minúsculo. Forçá-lo a ocupar 100% corrige sem afetar a centralização do mapa de
   lugares. Escopado ao modal para NÃO mexer no #container-mapa-setores da página
   pública (evento.php), que vive fora desse container flex. */
#modal-selecao-lugares #container-mapa-setores {
    flex: 1 1 100%;
    width: 100%;
    height: 100%;
    align-self: stretch;
}

.legenda-mapa {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.legenda-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.legenda-item:last-child {
    margin-bottom: 0;
}

.legenda-cor {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-right: 10px;
    border: 1px solid rgba(0,0,0,0.1);
}

.legenda-cor.disponivel {
    background-color: #50cd89;
}

.legenda-cor.selecionado {
    background-color: #ffc107;
}

.legenda-cor.reservado {
    background-color: #f1416c;
}

.legenda-cor.vendido {
    background-color: #a1a5b7;
}

.legenda-cor.indisponivel {
    background-color: #cd07ff;
}

/* Timer de Reserva */
#timer-reserva {
    border-left: 4px solid var(--warning-color);
    animation: pulse-warning 2s infinite;
}

#timer-reserva.expirando {
    border-left-color: var(--danger-color);
    animation: pulse-danger 1s infinite;
}

@keyframes pulse-warning {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
}

@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 0 0 0 rgba(241, 65, 108, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(241, 65, 108, 0); }
}

.timer-display {
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

/* Cards de Ingresso */
.ingresso-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid var(--gray-300);
    transition: all 0.3s ease;
}

.ingresso-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(127, 124, 238, 0.15);
    transform: translateY(-2px);
}

.ingresso-nome {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.ingresso-preco {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.badge-sessao {
    background: #e8f4fd;
    color: #009ef7;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.btn-comprar {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-comprar:hover {
    background: #47be7d;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(80, 205, 137, 0.3);
    color: white;
}

.info-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.esgotado {
    opacity: 0.5;
    pointer-events: none;
}

.badge-esgotado {
    background: var(--danger-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* Carrinho de Lugares */
#carrinho-lugares .lugar-item {
    padding: 12px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: background 0.2s;
}

#carrinho-lugares .lugar-item:hover {
    background-color: var(--gray-100);
}

#carrinho-lugares .lugar-item:last-child {
    border-bottom: none;
}

#carrinho-lugares .lugar-info {
    flex-grow: 1;
}

#carrinho-lugares .lugar-numero {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
    margin-bottom: 2px;
}

#carrinho-lugares .lugar-sessao {
    font-size: 10px;
    color: #0d6efd;
    margin-bottom: 3px;
    font-weight: 500;
}

#carrinho-lugares .lugar-tipo-ingresso {
    font-size: 11px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

#carrinho-lugares .lugar-especial-badge {
    font-size: 10px;
    color: var(--warning-color);
    font-weight: 600;
    margin-bottom: 4px;
}

#carrinho-lugares .lugar-preco {
    color: var(--success-color);
    font-weight: 600;
    font-size: 13px;
}

#carrinho-lugares .btn-remover-lugar {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    font-size: 12px;
    margin-top: 4px;
}

/* Lista de Lugares Selecionados no Modal */
#lugares-selecionados-lista .lugar-selecionado-item {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

#lugares-selecionados-lista .lugar-selecionado-item:hover {
    background: var(--gray-200);
}

#lugares-selecionados-lista .lugar-selecionado-item .lugar-id {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
    font-size: 14px;
}

#lugares-selecionados-lista .lugar-selecionado-item .lugar-sessao-modal {
    font-size: 11px;
    color: #0d6efd;
    font-weight: 500;
}

#lugares-selecionados-lista .lugar-selecionado-item .lugar-tipo {
    font-size: 11px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

#lugares-selecionados-lista .lugar-selecionado-item .lugar-especial-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--warning-color);
}

#lugares-selecionados-lista .lugar-selecionado-item .lugar-valor {
    font-size: 13px;
    font-weight: 600;
    color: var(--success-color);
}

#lugares-selecionados-lista .btn-remover-selecionado {
    font-size: 12px;
    padding: 4px 10px;
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Responsivo */
@media (max-width: 768px) {
    .event-title {
        font-size: 32px;
    }
    
    .hero-section {
        padding: 40px 0 30px;
    }
    
    .hero-image-wrapper {
        margin-top: 20px;
    }
    
    .hero-event-image {
        max-height: 300px;
        object-fit: cover;
    }
    
    .sessao-card {
        min-width: 160px;
        padding: 12px 15px;
    }
    
    .sessao-card .dia-numero {
        font-size: 28px;
    }
    
    .modal-fullscreen .col-lg-9,
    .modal-fullscreen .col-lg-3 {
        width: 100% !important;
    }
    
    .legenda-mapa {
        position: static;
        margin-top: 15px;
    }
}

@media (max-width: 992px) {
    .mapa-lugares-container {
        height: 60vh;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Tooltips personalizados */
.custom-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0,0,0,0.9);
}

/* ========================================
   FAB LEGENDA MOBILE (MATERIAL DESIGN)
   ======================================== */

/* FAB - Floating Action Button */
.legenda-fab {
    position: fixed;
    top: 100px;
    left: 15px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.legenda-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.legenda-fab:active {
    transform: scale(0.95);
}

.legenda-fab.active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: rotate(180deg);
}

.legenda-fab i {
    transition: transform 0.3s;
}

.legenda-fab.active i {
    transform: rotate(180deg);
}

/* Animação de pulso para destacar */
@keyframes pulse-fab {
    0% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6), 0 0 0 8px rgba(102, 126, 234, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
}

.legenda-fab.pulse {
    animation: pulse-fab 2s infinite;
}

/* Popover da Legenda */
.legenda-popover {
    position: fixed;
    top: 150px;
    left: 20px;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow: hidden;
}

.legenda-popover.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Seta do popover apontando para o FAB (para cima) */
.legenda-popover::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 18px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: rotate(45deg);
    z-index: 1;
}

/* Shadow da seta */
.legenda-popover::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: transparent;
    box-shadow: -3px -3px 8px rgba(0,0,0,0.1);
    transform: rotate(45deg);
    z-index: 0;
}

/* Header do popover */
.legenda-popover-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legenda-popover-header .fw-bold {
    font-size: 16px;
    font-weight: 600;
}

.btn-close-popover {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.btn-close-popover:hover {
    background: rgba(255,255,255,0.2);
}

/* Body do popover */
.legenda-popover-body {
    padding: 16px 20px 20px;
}

/* Items da legenda mobile */
.legenda-item-mobile {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s;
}

.legenda-item-mobile:hover {
    transform: translateX(4px);
}

.legenda-cor-mobile {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    margin-right: 12px;
    border: 2px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.legenda-cor-mobile.disponivel {
    background-color: #50cd89;
}

.legenda-cor-mobile.selecionado {
    background-color: #ffc107;
}

.legenda-cor-mobile.reservado {
    background-color: #f1416c;
}

.legenda-cor-mobile.vendido {
    background-color: #a1a5b7;
}

.legenda-cor-mobile.indisponivel {
    background-color: #cd07ff;
}

/* Divisor */
.legenda-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray-300), transparent);
    margin: 12px 0;
}

/* Dicas de uso */
.legenda-dica {
    display: flex;
    align-items: flex-start;
    background: var(--gray-100);
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
}

.legenda-dica i {
    font-size: 20px;
    flex-shrink: 0;
}

.legenda-dica span {
    line-height: 1.4;
    color: var(--gray-600);
    font-weight: 500;
}

/* Animação de entrada (de cima para baixo) */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legenda-popover.show .legenda-item-mobile {
    animation: slideInDown 0.3s ease-out backwards;
}

.legenda-popover.show .legenda-item-mobile:nth-child(1) { animation-delay: 0.05s; }
.legenda-popover.show .legenda-item-mobile:nth-child(2) { animation-delay: 0.1s; }
.legenda-popover.show .legenda-item-mobile:nth-child(3) { animation-delay: 0.15s; }
.legenda-popover.show .legenda-item-mobile:nth-child(4) { animation-delay: 0.2s; }
.legenda-popover.show .legenda-item-mobile:nth-child(5) { animation-delay: 0.25s; }
.legenda-popover.show .legenda-item-mobile:nth-child(6) { animation-delay: 0.3s; }
.legenda-popover.show .legenda-item-mobile:nth-child(7) { animation-delay: 0.35s; }
.legenda-popover.show .legenda-item-mobile:nth-child(8) { animation-delay: 0.4s; }

/* Responsivo - só mostrar em mobile */
@media (min-width: 992px) {
    .legenda-fab,
    .legenda-popover {
        display: none !important;
    }
}

/* Ajuste de posição em telas pequenas */
@media (max-width: 380px) {
    .legenda-popover {
        width: calc(100vw - 40px);
        left: 10px;
    }
    
    .legenda-fab {
        left: 10px;
        top: 70px;
    }
}

/* Dark mode support (futuro) */
@media (prefers-color-scheme: dark) {
    .legenda-popover {
        background: #1e1e2d;
        color: white;
    }
    
    .legenda-dica {
        background: rgba(255,255,255,0.05);
    }
}


/* Adaptação para lista horizontal de setores no card do mapa */
#lista-setores {
    gap: 12px;
    padding: 15px !important;
    background: #f8fafc !important;
}

#lista-setores .setor-lista-item {
    border-bottom: none !important;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    flex: 1 1 180px;
    max-width: 280px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

#lista-setores .setor-lista-item:hover,
#lista-setores .setor-lista-item.hover-active {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(127, 124, 238, 0.18);
}

#lista-setores .setor-lista-item .setor-cor {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ===== Efeito de atenção no mapa de setores ===== */
@keyframes mapaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(127, 124, 238, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(127, 124, 238, 0); }
}

@keyframes mapaBorderGlow {
    0%, 100% { border-color: var(--primary-color); }
    50% { border-color: #a5a3f5; }
}

#container-mapa-setores.chamar-atencao .card {
    animation: mapaPulse 1.5s ease-in-out 3;
    border: 2px solid var(--primary-color);
    animation: mapaBorderGlow 1s ease-in-out infinite;
}

#container-mapa-setores.chamar-atencao .mapa-setores-wrapper {
    position: relative;
}

#container-mapa-setores.chamar-atencao .mapa-setores-wrapper::before {
    content: '👆 Selecione um setor';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(127, 124, 238, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    z-index: 100;
    animation: bounceIn 0.5s ease-out;
    box-shadow: 0 4px 20px rgba(127, 124, 238, 0.4);
    pointer-events: none;
}

@keyframes bounceIn {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ===== Indicador de Pan/Scroll no mapa ===== */
.mapa-pan-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 50;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.mapa-pan-indicator:hover {
    opacity: 1;
}

.mapa-pan-indicator i {
    animation: swipeHint 2s ease-in-out infinite;
}

@keyframes swipeHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* ===== Card melhorado ===== */
#container-mapa-setores .card {
    border-radius: 16px !important;
    overflow: hidden;
    border: none !important;
}

#container-mapa-setores .card-header {
    border-bottom: none !important;
    padding: 20px 24px !important;
}

#container-mapa-setores .card-body {
    border: none !important;
}

#container-mapa-setores .mapa-setores-wrapper {
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

#container-mapa-setores .card-footer {
    border-top: 1px solid #f0f0f0 !important;
    padding: 16px 24px !important;
    background: #fafbfc !important;
}

/* Borda superior da lista de setores mais suave */
#lista-setores {
    border-top: 1px solid #eef2f6 !important;
}

/* ================================================
   Modo 2: Foco no nome da sessão (cards horizontais empilhados)
   ================================================ */
.sessoes-scroll-sidebar > .sessoes-modo-nome {
    /* No modo 2, os cards são empilhados verticalmente: queremos largura total
       da sidebar, não scroll horizontal. */
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}

.sessao-card.sessao-card-nome {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px 16px;
    text-align: left;
    margin: 0;
}

.sessao-card.sessao-card-nome .sessao-data-bloco {
    flex: 0 0 auto;
    text-align: center;
    padding-right: 14px;
    border-right: 1px dashed var(--gray-300);
    min-width: 92px;
}

.sessao-card.sessao-card-nome .dia-semana {
    font-size: 11px;
    margin-bottom: 2px;
}

.sessao-card.sessao-card-nome .dia-numero {
    font-size: 26px;
    line-height: 1;
    margin-bottom: 2px;
}

.sessao-card.sessao-card-nome .mes {
    font-size: 12px;
    text-transform: lowercase;
    margin-bottom: 6px;
}

.sessao-card.sessao-card-nome .horario-inline {
    font-size: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 2px 6px;
    display: inline-block;
}

.sessao-card.sessao-card-nome.selected .horario-inline {
    background: rgba(255, 255, 255, 0.18);
}

.sessao-card.sessao-card-nome.selected .sessao-data-bloco {
    border-right-color: rgba(255, 255, 255, 0.45);
}

.sessao-card.sessao-card-nome .sessao-nome-destaque {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
}

.sessao-card.sessao-card-nome .sessao-nome-destaque .nome-sessao {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
    white-space: normal;
}

@media (max-width: 575.98px) {
    .sessao-card.sessao-card-nome {
        gap: 10px;
        padding: 10px 12px;
    }
    .sessao-card.sessao-card-nome .sessao-data-bloco {
        min-width: 76px;
        padding-right: 10px;
    }
    .sessao-card.sessao-card-nome .dia-numero {
        font-size: 22px;
    }
    .sessao-card.sessao-card-nome .sessao-nome-destaque .nome-sessao {
        font-size: 15px;
    }
}

/* ================================================
   Filtro de ingressos por sessão + carrinho tradicional
   ================================================ */
.ingresso-card {
    transition: background-color .15s ease, border-color .15s ease;
}

.ingresso-card[data-disponiveis="0"] .ingresso-acoes {
    pointer-events: none;
}

.ingresso-sessoes-badges .badge {
    font-size: 11px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

#ingressos-sessao-filtro {
    font-weight: 600;
    font-size: 11px;
}

#aviso-selecione-sessao {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}

#ingressos-vazio-sessao {
    background: #fafbfc;
}

/* Spinner de quantidade — estilo mais "premium" */
.spinner-quantidade .btn {
    border-color: #e2e6ec;
    color: #555;
    font-weight: 700;
    line-height: 1;
}

.spinner-quantidade .btn:hover {
    background: #f4f6fa;
    color: #222;
}

.spinner-quantidade .input-quantidade {
    border-color: #e2e6ec;
    background: #fff;
    font-weight: 700;
    color: #222;
}

/* Carrinho tradicional acumulado */
#carrinho-tradicional .card-header {
    border-radius: 0.375rem 0.375rem 0 0;
}

.carrinho-trad-item:last-child {
    border-bottom: 0 !important;
}

.carrinho-trad-item:hover {
    background: #fafbfc;
}

.carrinho-trad-item .btn-link {
    text-decoration: none;
}

.carrinho-trad-item .btn-link:hover {
    color: #b02a37 !important;
}

/* Mobile: reduzir paddings da sidebar */
@media (max-width: 575.98px) {
    .ingresso-card .ingresso-acoes .spinner-quantidade {
        width: 100px !important;
    }
}
