/* ============================================================================
   Marcadores y ventana de informacion del mapa de P4S (grupoMapa.jsp).
   HU-1.69: antes traia colores fijos, una altura fija de
   51px y un cuadro con esquinas rectas alrededor de la X. Ahora todo sale de
   css/p4s-tokens.css y sigue el tema (body.dark) como el resto del marco.
   ========================================================================== */

/* Cifra dentro del pin: el circulo del icono es blanco en ambos temas. */
.markerlabel {
    color: var(--p4s-red-600) !important;
    font-size: 14px;
    font-weight: 600;
    font-family: Roboto, Arial, sans-serif;
}

/* Ventana de informacion: tarjeta con esquinas suaves. Google escribe
   max-height/overflow en linea sobre .gm-style-iw-d, de ahi los !important. */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    min-width: 11rem;
    border: 1px solid var(--p4s-border);
    border-radius: 14px !important;
    background: var(--p4s-surface) !important;
    color: var(--p4s-text);
    box-shadow: var(--p4s-shadow-card) !important;
}
.gm-style .gm-style-iw-d {
    max-height: none !important;
    overflow: hidden !important;
}
.gm-style .gm-style-iw-tc::after { background: var(--p4s-surface) !important; }

/* La X: un circulo discreto en lugar de un cuadro de color. */
.gm-style .gm-ui-hover-effect {
    top: 6px !important;
    right: 6px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    background: transparent !important;
    opacity: .75;
}
.gm-style .gm-ui-hover-effect:hover { background: var(--p4s-surface-alt) !important; opacity: 1; }
.gm-style .gm-ui-hover-effect > span {
    width: 14px !important;
    height: 14px !important;
    margin: 7px !important;
    background-color: var(--p4s-text-soft) !important;
}

.p4s-mapa__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
    padding: .9rem 2.5rem .9rem 1rem;
}
.p4s-mapa__info strong { font-size: 1rem; font-weight: 600; line-height: 1.25; }
.p4s-mapa__info span { font-size: .85rem; color: var(--p4s-muted); }
.p4s-mapa__info .btn { margin-top: .6rem; border-radius: 999px; padding-inline: 1rem; }
