/* Leaflet map must fill its parent flex cell with a definite height. */
.client-map-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Loading / error / empty overlays shown on top of the (possibly not yet
   initialized) map so the stable container element never disappears. */
.client-map-container .map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 600;
    color: #555;
}

/* Leaflet cluster badges used by ClientMapChart.
   Sizes and colours are set inline per group/cluster by leaflet-map.js to match
   the individual CircleMarkers (solid fill at the same opacity, no white ring).
   These rules only set the shared typography/shape so the number stays white. */
.client-map-cluster {
    border-radius: 50%;
    text-align: center;
    font: 700 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #fff;
}

.client-map-cluster .cmc-count {
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    line-height: inherit;
    white-space: nowrap;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Keep marker tooltips above tiles and other panels. */
.leaflet-tooltip {
    z-index: 400;
    background: rgba(20, 20, 20, 0.95);
    border: none;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
}
