/* Frontend CSS for Maquinas com Hotspots */
@media (min-width: 769px) {
    .elementor-1022 .elementor-element.elementor-element-d86939a {
        --width: 100%;
    }
}
        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }
    
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    
        .item {
            display: none;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: visible;
            background-color: white;
            animation: fadeIn 0.5s ease-out;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .item > div[style*="position: relative"] {
            position: relative; 
            z-index: 1; /* Define um contexto de empilhamento */
        }
    
        .item.active {
            display: block;
        }
    
        @keyframes scaleOut {
            from {
                opacity: 1;
                transform: translateX(-50%) scale(1);
            }
            to {
                opacity: 0;
                transform: translateX(-50%) scale(0.8);
            }
        }
    
        @keyframes pulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.08);
            }
            100% {
                transform: scale(1);
            }
        }
    
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            background-color: #f5f5f5;
        }
    
        .form-group {
            /* The parent .filter-row is a grid, so width and margins are handled by the grid properties (grid-template-columns and gap). */
        }
    
        .main-container {
            max-width: 800px;
            margin: 20px auto;
            background-color: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
    
        .form-group {
            margin-bottom: 15px;
        }
    
        select {
            width: 100%;
            padding: 8px;
            border: 2px solid #fe8111;
            border-radius: 5px;
            margin-top: 5px;
            font-size: 16px;
        }
    
        .btn-open {
            background-color: #fe8111;
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
        }
    
        .btn-open:hover {
            background-color: #e5740f;
            color: white;
        }
    
        .filter-row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }
    
        .gallery {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-top: 30px;
        }
    
        .item {
            display: none;
            border: 1px solid #ddd;
            border-radius: 8px;
            background-color: white;
            overflow: visible;
        }
    
        .item.active {
            display: block;
        }
    
        .item img {
            position: relative;
            width: 100%;
            height: auto;
            object-fit: cover;
            display: block;
        }
    
        .item-info {
            position: relative; 
            z-index: 2; 
            margin-top: -20px;
            text-align: center; /* Center the title */
        }

        .hotspot-count-display {
            font-size: 14px;
            color: #555;
            margin-top: 8px;
        }
    
        @media (max-width: 768px) {
            .filter-row {
                grid-template-columns: 1fr;
                gap: 10px;
            }
    
            .form-group {
                width: 100%;
                margin-right: 0;
            }
    
            select {
                font-size: 14px;
            }
    
            .btn-open {
                width: 100%;
                padding: 10px;
            }
    
            .item img {
                width: 100%;
                height: auto;
            }
    
            @media (max-width: 768px) {
.hotspot {
    /* Tamanho reduzido para mobile */
    width: 18px;
    height: 18px;
    z-index: 2;
    /* Efeito de dispersão usando transform */
    transform: translate(
    calc(var(--offset-x) * 6px),
    calc(var(--offset-y) * 6px)
    );

}

/* Cria offsets alternados para os hotspots */
.hotspot:nth-child(odd) {
    --offset-x: 0.5;
    --offset-y: -0.5;
}

.hotspot:nth-child(even) {
    --offset-x: -0.5;
    --offset-y: 0.5;
}

/* Ajuste fino para grupos muito densos */
.hotspot:nth-child(3n+1) {
    --offset-x: 0.3;
    --offset-y: -0.7;
}

.hotspot:nth-child(5n+1) {
    --offset-x: -0.3;
    --offset-y: 0.7;
}

/* Melhora a visualização de números */
.hotspot-number {
    font-size: 10px;
    font-weight: 900;
    text-shadow: 0 0 2px rgba(0,0,0,0.3);
    margin-top: 2px;
    
}

/* Adiciona borda para melhor contraste */
.hotspot::before {
    border: 2px solid black;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
}
}
    
            .hotspot-number {
                font-size: 10px;
                margin-top: 2px;
            }

    
            .main-container {
                padding: 15px;
                width: 100vw;
                margin-left: -25px;
            } 
            .gallery {
                gap: 10px;
            }
    
            .item-info {
                padding: 10px;
            }
        }
    
        .hotspot {
            position: absolute;
            width: 20px;
            height: 20px;
            background: #fe8111; /* laranja */
            border-radius: 50%;
            cursor: pointer;
            z-index: 3;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: pulse 2.2s ease-in-out infinite; /* mais suave e lenta */
            border: solid rgba(0,0,0,0.6) 0.8px;
            padding: 10px;
        }

        .hotspot.hotspot-active {
            z-index: 4; /* Garante que o hotspot ativo e seu tooltip fiquem acima dos outros */
        }
    
        .hotspot-content {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background-color: white;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            z-index: 10001;
            width: 200px;
            display: none;
            opacity: 1 !important;
            visibility: visible !importan;
        }
    
        .hotspot::before {
            content: '';
            width: 6px;
            height: 6px;
            background: #fe8111; /* laranja */
            border-radius: 50%;
            animation: none;
        }
    
        .hotspot-content img {
            width: 100%;
            height: auto;
            border-radius: 5px;
            margin-bottom: 10px;
        }
    
        .hotspot-button {
            display: block;
            text-align: center;
            background-color: #fe8111;
            color: white !important;
            padding: 5px 10px;
            border-radius: 5px;
            text-decoration: none;
        }
    
        .hotspot-tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: white;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            min-width: 250px;
            max-width: 300px;
            display: none;
            z-index: 1000;
            pointer-events: auto;
        }
    
        .hotspot-tooltip.scale-in {
            animation: scaleIn 0.18s ease-out;
        }
    
        .hotspot-tooltip.scale-out {
            animation: scaleOut 0.18s ease-out;
        }
    
        .hotspot-tooltip::before {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border-width: 8px;
            border-style: solid;
            border-color: white transparent transparent transparent;
        }    
        .hotspot-tooltip img {
            width: 100%;
            max-height: 150px;
            object-fit: contain;
            margin-bottom: 10px;
        }
    
        .hotspot-tooltip .product-name {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 5px;
        }
    
        .hotspot-tooltip .product-price {
            font-size: 14px;
            color: #fe8111;
            margin-bottom: 10px;
        }
    
        .hotspot-tooltip .product-link {
            display: inline-block;
            background-color: #fe8111;
            color: white;
            padding: 8px 16px;
            border-radius: 5px;
            text-decoration: none;
            font-size: 14px;
            transition: background-color 0.3s;
        }
    
        .hotspot-tooltip .product-link:hover {
            background-color: #e5740f;
        }
        .hotspot.pinos-e-buchas::before {
            display: none;
        }
        .product-name {
            font-size: 16px;
            font-weight: bold;
            margin: 10px 0;
        }
    
        .product-price {
            font-size: 14px;
            color: #333;
            margin: 10px 0;
        }
    
        .product-link {
            display: inline-block;
            margin-top: 10px;
            padding: 5px 10px;
            background-color: #0073e6;
            color: white;
            text-decoration: none;
            border-radius: 3px;
        }
    
        .product-link:hover {
            background-color: #005bb5;
        }
    
        .hotspot-number {
            font-size: 12px;
            font-weight: bold;
            color: white;
            user-select: none;
            padding-top: 0px;   
        }
        @media only screen and (max-width: 768px) {
    .hotspot {
        /* Tamanho ainda menor para mobile */
        width: 16px;
        height: 16px;
        padding: 8px;
        
        /* Reduz o efeito de dispersão em mobile */
        transform: translate(
            calc(var(--offset-x) * 4px),
            calc(var(--offset-y) * 4px)
        );
    }

    .hotspot-number {
        font-size: 8px;
        margin-top: 0px;
    }

    .hotspot::before {
        width: 4px;
        height: 4px;
        border: 1px solid black;
    }

    .hotspot-content {
        width: 160px;
        padding: 8px;
        /* Posiciona acima em mobile para melhor visualização */
        top: auto;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
    }

    .hotspot-tooltip {
        min-width: 200px;
        max-width: 250px;
        padding: 10px;
    }

    .hotspot-tooltip img {
        max-height: 120px;
    }

    .hotspot-tooltip .product-name {
        font-size: 14px;
    }

    .hotspot-tooltip .product-price {
        font-size: 12px;
    }

    .hotspot-tooltip .product-link {
        padding: 6px 12px;
        font-size: 12px;
    }

    .main-container {
        padding: 10px;
        margin-left: 0;
        width: 100%;
    }

    .gallery {
        gap: 8px;
    }

    .item-info {
        padding: 8px;
    }

    /* Ajustes para evitar sobreposição em telas pequenas */
    .hotspot:nth-child(n) {
        --offset-x: 0.3;
        --offset-y: -0.3;
    }

    .hotspot:nth-child(2n) {
        --offset-x: -0.3;
        --offset-y: 0.3;
    }

    .hotspot:nth-child(3n+1) {
        --offset-x: 0.2;
        --offset-y: -0.4;
    }

    .hotspot:nth-child(5n+1) {
        --offset-x: -0.2;
        --offset-y: 0.4;
    }

    /* === Estilos para setas laterais do tooltip em mobile === */
    /* Seta apontando para a esquerda (quando o tooltip está à direita do hotspot) */
    .hotspot-tooltip.arrow-points-left::before {
        top: 50%;
        left: -8px; /* Metade da largura da borda para posicionar fora */
        transform: translateY(-50%);
        border-color: transparent white transparent transparent;
        border-width: 8px;
        bottom: auto; /* Reseta o posicionamento da seta padrão */
        border-style: solid;
    }

    /* Seta apontando para a direita (quando o tooltip está à esquerda do hotspot) */
    .hotspot-tooltip.arrow-points-right::before {
        top: 50%;
        right: -8px; /* Metade da largura da borda para posicionar fora */
        left: auto; /* Reseta o posicionamento da seta padrão */
        transform: translateY(-50%);
        border-color: transparent transparent transparent white;
        border-width: 8px;
        bottom: auto; /* Reseta o posicionamento da seta padrão */
        border-style: solid;
    }
}

/* Ajustes adicionais para telas muito pequenas */
@media only screen and (max-width: 480px) {
    .hotspot {
        width: 14px;
        height: 14px;
        padding: 6px;
    }

    .hotspot-number {
        font-size: 7px;
    }

    .hotspot-content {
        width: 140px;
    }

    .hotspot-tooltip {
        min-width: 180px;
        max-width: 200px;
    }

    .whatsapp-button {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* === NOVOS ESTILOS ADICIONADOS === */

/* Estilo para hotspots que são apenas um ponto (sem número) */
.hotspot.hotspot-dot {
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #007cba;
    /* Remove o padding para que o tamanho seja definido por width/height */
    padding: 0;
    /* Garante que o conteúdo interno (vazio) não afete o tamanho */
    font-size: 0;
}

/* Remove o número e o fundo laranja dos pontos simples */
.hotspot.hotspot-dot .hotspot-number {
    display: none;
}
.hotspot.hotspot-dot {
    background: none;
}

/* O ponto em si será o pseudo-elemento ::before que já existe, mas vamos garantir o estilo */
.hotspot.hotspot-dot::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #007cba;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    animation: none; /* Remove a animação de pulso para estes */
}

.hotspot.hotspot-dot:hover::before {
    transform: scale(1.3);
}

/* Estilo para a caixa de informação estática (sem produto) */
.hotspot-tooltip .static-info {
    padding: 10px 15px;
    text-align: center;
}

.hotspot-tooltip .static-info p {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.close-btn, .tooltip-close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background-color: transparent !important;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    z-index: 1001;
}

.tooltip-close-btn:hover {
    color: #333;
}
/* Estilo para hotspots de WhatsApp */
.hotspot-whatsapp {
    background: #25D366 !important; /* Cor do WhatsApp */
    border: 2px solid white !important;
    animation: pulse-whatsapp 2s ease-in-out infinite !important;
}

.hotspot-whatsapp .hotspot-number {
    color: white !important;
    font-size: 14px !important;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Botão do WhatsApp no tooltip */
.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #25D366;
    color: white !important;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    color: white !important;
}

.whatsapp-button .whatsapp-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Tooltip para hotspots sem produto */
.hotspot-tooltip.whatsapp-tooltip {
    text-align: center;
}

.hotspot-tooltip.whatsapp-tooltip .static-info {
    padding: 15px;
}

.hotspot-tooltip.whatsapp-tooltip .static-info p {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Estilos para os novos elementos do tooltip */
.hotspot-tooltip-title {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin-bottom: 10px !important;
}

.hotspot-tooltip-image {
    width: 100% !important;
    max-height: 150px !important;
    object-fit: contain !important;
    border-radius: 5px !important;
    margin-bottom: 10px !important;
}

.hotspot-tooltip-content-text {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hotspot-tooltip-link {
    display: inline-block !important;
    background-color: #007cba !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: bold !important;
    transition: background-color 0.3s !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hotspot-tooltip-link:hover {
    background-color: #005a87 !important;
    color: white !important;
}

/* Força a exibição do conteúdo do tooltip */
.hotspot-tooltip-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.whatsapp-svg-icon {
    height: 16px !important;
    width: auto !important;
    margin-right: 6px !important;
    margin-bottom: 0px !important;

}

.whatsapp-button-text {
    color: white !important;
    font-size: 14px !important;
    display: inline !important;
}

/* === Estilos para Botões Pinos e Buchas === */

.pinos-buchas-buttons {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 15px;
}

.pinos-buchas-buttons .hotspot-tooltip-link {
    background-color: #FE6C00 !important;
    color: #ffffff !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    text-align: center;
    flex-grow: 1;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: background-color 0.3s !important;
}

.pinos-buchas-buttons .hotspot-tooltip-link:hover {
    background-color: #e05e00 !important;
}