/* ==========================================================================
   WP Image Hotspots Pro - Estética e Interface Melhoradas (Herança de Tipografia)
   ========================================================================== */

.hotspot-contentor-geral {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 auto;
}

.hotspot-contentor-geral img {
    max-width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    -moz-window-dragging: none;
}

.hotspots-placeholder-upload {
    border: 2px dashed #cccccc;
    padding: 60px 40px;
    text-align: center;
    background: #fcfcfc;
    border-radius: 8px;
}

.hotspot-item-marcador,
.hotspot-ponto-frontend {
    position: absolute;
    width: 0;
    height: 0;
    z-index: 10;
    cursor: grab;
}

.hotspot-item-marcador:active {
    cursor: grabbing;
}

/* 3. Estilização dos Botões/Ícones/Números */
.hotspot-gatilho-botao {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: scale 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid #ffffff;
    box-sizing: border-box;
    font-family: inherit; /* Herda a fonte do tema */
}

.hotspot-item-marcador:not(.esta-ativo):hover .hotspot-gatilho-botao,
.hotspot-ponto-frontend:not(.aberto) .hotspot-gatilho-botao:hover {
    scale: 1.05; 
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hotspot-item-marcador.esta-ativo .hotspot-gatilho-botao {
    scale: 1;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7), 0 8px 20px rgba(0, 0, 0, 0.25);
}

.hotspot-ponto-frontend.aberto {
    z-index: 99;
}

.hotspot-ponto-frontend.aberto .hotspot-gatilho-botao {
    scale: 1 !important; 
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6);
}

.dashicons-hidden {
    display: none !important;
}

/* 4. Caixa de Informações (Tooltip Dinâmica Minimalista) */
.hotspot-caixa-tooltip {
    position: absolute;
    width: 320px;
    max-width: 85vw;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: default;
    z-index: 100;
    font-family: inherit; /* Herda a fonte do tema */
}

.hotspot-caixa-tooltip::after {
    content: "";
    position: absolute;
    border-width: 8px;
    border-style: solid;
}

.hotspot-ponto-frontend.aberto .hotspot-caixa-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Posicionamentos da Tooltip */
.posicao-top { bottom: calc(100% + 20px); left: 50%; transform: translateX(-50%) translateY(12px); }
.hotspot-ponto-frontend.aberto .posicao-top { transform: translateX(-50%) translateY(0); }
.posicao-top::after { top: 100%; left: 50%; transform: translateX(-50%); border-color: rgba(255, 255, 255, 0.97) transparent transparent transparent; }

.posicao-bottom { top: calc(100% + 20px); left: 50%; transform: translateX(-50%) translateY(-12px); }
.hotspot-ponto-frontend.aberto .posicao-bottom { transform: translateX(-50%) translateY(0); }
.posicao-bottom::after { bottom: 100%; left: 50%; transform: translateX(-50%); border-color: transparent transparent rgba(255, 255, 255, 0.97) transparent; }

.posicao-left { right: calc(100% + 20px); top: 50%; transform: translateY(-50%) translateX(12px); }
.hotspot-ponto-frontend.aberto .posicao-left { transform: translateY(-50%) translateX(0); }
.posicao-left::after { left: 100%; top: 50%; transform: translateY(-50%); border-color: transparent transparent transparent rgba(255, 255, 255, 0.97); }

.posicao-right { left: calc(100% + 20px); top: 50%; transform: translateY(-50%) translateX(-12px); }
.hotspot-ponto-frontend.aberto .posicao-right { transform: translateY(-50%) translateX(0); }
.posicao-right::after { right: 100%; top: 50%; transform: translateY(-50%); border-color: transparent rgba(255, 255, 255, 0.97) transparent transparent; }

/* Tipografia e Botões Internos */
.hotspot-tooltip-titulo {
    margin: 0 0 12px 0 !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #111111 !important;
    line-height: 1.3 !important;
    font-family: inherit !important; /* Herda a fonte do tema */
}

.hotspot-tooltip-descricao {
    margin: 0 0 20px 0 !important;
    font-size: 14px !important;
    color: #555555 !important;
    line-height: 1.6 !important;
    font-family: inherit !important;
}

.hotspot-tooltip-link-botao {
    display: inline-block !important;
    background-color: #111111 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: background-color 0.25s ease, transform 0.1s ease !important;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    letter-spacing: 0.5px;
    font-family: inherit !important; /* Herda a fonte do tema */
}

.hotspot-tooltip-link-botao:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* Responsividade */
@media (max-width: 480px) {
    .hotspot-caixa-tooltip {
        padding: 20px;
        width: 260px;
    }
    .hotspot-tooltip-titulo { font-size: 18px !important; }
    .hotspot-tooltip-descricao { font-size: 13px !important; }
}