/* NAVITRAX CLUSTER DESIGN - TRACKERAX STYLE */

/* Conservar tamaño y posicionamiento original de Leaflet */

.leaflet-marker-icon.cluster .cluster-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

/* Halo dinámico según el color original */

.leaflet-marker-icon.cluster .cluster-inner::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 50% !important;

    background: radial-gradient(
        circle,
        rgba(var(--navitrax-cluster-rgb, 110, 66, 255), 0.38) 0%,
        rgba(var(--navitrax-cluster-rgb, 110, 66, 255), 0) 72%
    ) !important;

    pointer-events: none !important;
}

/* Ocultar anillo anterior */

.leaflet-marker-icon.cluster .cluster-inner::after {
    content: none !important;
}

/* Contador central */

.leaflet-marker-icon.cluster .cluster-inner > b {
    position: absolute !important;
    z-index: 1 !important;

    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 50% !important;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.35),
        inset 0 0 0 2px rgba(255, 255, 255, 0.15)
        !important;
}

/* Contadores de tres cifras o más */

.leaflet-marker-icon.cluster
.cluster-inner > b.navitrax-counter-3digits {
    font-size: 10px !important;
}
