.marker-cluster {
    border-radius: 50%;
    background-clip: padding-box;
}
.marker-cluster div {
    color: #fff;
    font-family: Roboto;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left:0;
    margin-top: 0;
}
.marker-cluster span {
    line-height: 40px;
}
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-small:hover,
.marker-cluster-medium:hover {
    background-color: transparent;
}
.marker-cluster-small div,
.marker-cluster-medium div{
    background-color: var(--color-primary-black, rgba(0, 0, 0, 0.5));
    opacity: 0.5;
}
.marker-cluster-small:hover div,
.marker-cluster-medium:hover div {
    background-color: var(--color-primary-black, rgba(0, 0, 0, 0.9));
    opacity: 0.9;
}

.geo-feature-collection {
    position: relative;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.geo-feature-collection__map-layer {
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Ensure all Leaflet layers stay below the navbar (z-index: 20 in Tailwind) */
.geo-feature-collection__map-layer .leaflet-pane,
.geo-feature-collection__map-layer .leaflet-tile-pane,
.geo-feature-collection__map-layer .leaflet-overlay-pane,
.geo-feature-collection__map-layer .leaflet-shadow-pane,
.geo-feature-collection__map-layer .leaflet-marker-pane,
.geo-feature-collection__map-layer .leaflet-tooltip-pane,
.geo-feature-collection__map-layer .leaflet-popup-pane,
.geo-feature-collection__map-layer .leaflet-map-pane canvas,
.geo-feature-collection__map-layer .leaflet-map-pane svg,
.geo-feature-collection__map-layer .leaflet-control-container {
    z-index: 1 !important;
}

.geo-feature-collection .modal__overlay {
    z-index: 9999;
}

.modal__container-body {
    position: relative;
}

.geo-feature-collection .modal__close {
    position: absolute;
    right: 0;
    top: 0;
    height: 2rem;
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    margin: auto;
    color: var(--color-black);
    background: var(--color-white);
}

.geo-feature-collection .card__body {
    position: relative;
}

.geo-feature-collection-item__category {
    position: absolute;
    left: 1rem;
    top: -2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: .5rem 1rem 1rem;
    background: var(--color-white);
}

.geo-feature-collection__legend {
    padding: 1rem;
    width: 16rem;
    background: #fff;
    border-radius: .5rem;
    pointer-events: all;
}

.geo-feature-collection__legend-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media only screen and (min-width: 30rem) {
    .geo-feature-collection__legend {
        width: 20rem;
    }
}

.geo-feature-collection-tooltip {
    background: none;
    border-radius: 4px;
    border: 0;
    padding: 6px;
    margin: 0;
    margin-top: -.25rem;
    box-shadow: none;
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-grey-500);
    text-align: center;
    background: #fff;
    width: 12em;
    white-space: normal;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    line-height: 1;
}

.geo-feature-collection-tooltip:before {
    display: none;
}

.geo-feature-collection .leaflet-touch .leaflet-bar {
    border: none;
    box-shadow: 0 6px 6px -3px rgb(221 221 221 / 43%), 0 10px 14px 1px rgb(221 221 221 / 37%), 0 4px 18px 3px rgb(221 221 221 / 35%)
}

.geo-feature-collection .leaflet-touch .leaflet-control-zoom-in,
.geo-feature-collection .leaflet-touch .leaflet-control-zoom-out {
    line-height: 2rem;
    height: 2rem;
    width: 2rem;
    font-weight: bold;
    font-size: 24px;
    font-family: var(--font-body);
}

.geo-feature-collection .leaflet-touch .leaflet-control-zoom-in:hover,
.geo-feature-collection .leaflet-touch .leaflet-control-zoom-out:hover {
    background-color: var(--color-grey-125);
}

.geo-feature-collection .leaflet-touch .leaflet-control-zoom-in {
    border-top-left-radius: .5rem !important;
    border-top-right-radius: .5rem !important;
    border-bottom: 1px var(--color-grey-125) solid !important;
}
.geo-feature-collection .leaflet-touch .leaflet-control-zoom-out {
    border-bottom-left-radius: .5rem !important;
    border-bottom-right-radius: .5rem !important;
}

/* Style for custom pin images using DivIcon */
.custom-marker-pin {
    width: 60px;
    height: 60px;
    border-radius: 50% 50% 50% 0;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -30px 0 0 -30px;
}

.custom-marker-pin::after {
    content: '';
    width: 48px;
    height: 48px;
    margin: 6px 0 0 6px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
}

.custom-div-marker .custom-marker-image {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    left: 0;
    right: 0;
    margin: 20px auto;
    object-fit: cover;
    z-index: 1;
}

/* Regional contacts map - regions/polygons styling */
/* Default: Use primary color (black) */
.geo-feature-collection__map-layer path.leaflet-interactive {
    stroke: var(--color-primary-black, #000) !important;
    fill: var(--color-primary-black, #000) !important;
    fill-opacity: 0.6 !important;
}

/* On hover: Use secondary color (yellow) */
.geo-feature-collection__map-layer path.leaflet-interactive:hover {
    stroke: var(--color-primary-yellow, #FEC900) !important;
    fill: var(--color-primary-yellow, #FEC900) !important;
    fill-opacity: 0.8 !important;
    cursor: pointer !important;
}
