/* public/css/manual.css */

.webgis-tour-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: transparent; /* Invisível, mas impede cliques indesejados no mapa durante o tour */
    z-index: 1000000;
    pointer-events: none; /* Deixa os cliques passarem, mas atua como âncora */
}

.webgis-tour-popup {
    position: absolute;
    width: 280px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 16px;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 1000001;
    pointer-events: auto;
    transition: top 0.1s ease, left 0.4s ease, opacity 0.3s;
    opacity: 0;
}

.webgis-tour-popup.visible {
    opacity: 1;
}

.webgis-tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.webgis-tour-title {
    font-size: 13px;
    font-weight: 800;
    color: #1F5568; /* Seu azul secundário */
}

.webgis-tour-counter {
    font-size: 11px;
    font-weight: bold;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 10px;
}

.webgis-tour-text {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 15px;
}

.webgis-tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.webgis-tour-hide-box {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #64748b;
    cursor: pointer;
}

.webgis-tour-buttons {
    display: flex;
    gap: 8px;
}

.webgis-tour-btn {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-tour-prev {
    background-color: #f1f5f9;
    color: #475569;
}

.btn-tour-prev:hover { background-color: #e2e8f0; }
.btn-tour-prev:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-tour-next {
    background-color: #1F5568;
    color: #ffffff;
}

.btn-tour-next:hover { background-color: #153e4d; }

/* Efeito de destaque no elemento focado 
.tour-highlight {
    position: relative;
    z-index: 1000002 !important;
    box-shadow: 0 0 0 4px rgba(31, 85, 104, 0.3) !important;
    border-radius: 8px;
    transition: box-shadow 0.3s;
    background: white;
} */

/* Estilo do Botão X para fechar temporariamente */
.webgis-tour-close-x {
    cursor: pointer;
    color: #94a3b8;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    transition: color 0.2s;
    padding-left: 10px;
}

.webgis-tour-close-x:hover {
    color: #ef4444; /* Vermelho ao passar o mouse */
}

/* O NOVO "DESTAQUE FANTASMA" ABSOLUTO */
.webgis-tour-ghost-highlight {
    position: fixed; /* Fixo na tela para escapar de TODOS os scrolls e cortes */
    z-index: 1000002;
    pointer-events: none; /* O clique atravessa a caixa e acerta o botão real */
    box-shadow: 0 0 0 4px rgba(31, 85, 104, 0.4);
    border-radius: 8px;
    background: transparent;
    transition: top 0.1s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s;
    opacity: 0;
}

.webgis-tour-ghost-highlight.active {
    opacity: 1;
}