﻿/* ===================================================================
   MAPA DE CALOR — CSS
   Agregar a landing-prestadores.css
=================================================================== */

.lp-mapa-section {
    padding: 5rem 0;
    background: var(--lp-bg);
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
}

.lp-mapa-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 860px) {
    .lp-mapa-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ── Panel izquierdo ─────────────────────────────────────────────── */
.lp-mapa-left {
}

.lp-mapa-leyenda {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.lp-leyenda-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.82rem;
    color: var(--lp-text);
    font-weight: 500;
}

.lp-leyenda-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lp-dot-prestadores {
    background: #8B1D1D;
}

.lp-dot-visitas {
    background: #2563eb;
    opacity: 0.65;
}

.lp-dot-atractivos {
    background: #D4AF37;
    opacity: 0.7;
}

/* Stats debajo de leyenda */
.lp-mapa-stats {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.lp-mapa-stat {
}

.lp-mapa-stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--lp-dark);
    line-height: 1;
    display: block;
}

.lp-mapa-stat-label {
    font-size: 0.65rem;
    color: var(--lp-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.2rem;
    display: block;
}

/* Tooltip info al hover */
.lp-mapa-tooltip-info {
    background: var(--lp-white);
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
    animation: tooltipFade 0.2s ease;
}

@keyframes tooltipFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lp-tooltip-nombre {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--lp-dark);
    margin-bottom: 0.6rem;
}

.lp-tooltip-datos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.td-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.td-bordo {
    background: rgba(139,29,29,0.08);
    color: #8B1D1D;
}

.td-azul {
    background: rgba(37,99,235,0.08);
    color: #2563eb;
}

.td-dorado {
    background: rgba(212,175,55,0.1);
    color: #b8941f;
}

/* ── Panel derecho: SVG ──────────────────────────────────────────── */
.lp-mapa-right {
}

.lp-mapa-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(139, 29, 29, .10);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 24px 60px rgba(80, 25, 25, .08);
}

.lp-mapa-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    color: #8B1D1D;
    font-size: .9rem;
    background: rgba(255,255,255,.75);
    border-radius: 22px;
}

    .lp-mapa-loading i {
        color: var(--lp-bordo);
    }

.lp-mapa-svg {
    width: 100%;
    height: auto;
    display: block;
}
.mapa-punto-label {
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 3px;
    stroke-linejoin: round;
}

/* Hover en puntos del mapa */
.mapa-punto {
    transition: opacity 0.15s;
}

    .mapa-punto:hover {
        opacity: 0.85;
    }

@media (max-width: 600px) {
    .lp-mapa-wrapper {
        padding: 1rem;
    }

    .lp-mapa-stats {
        gap: 1rem;
    }
}
