/* Map Section Styles */
#zimbabwe-map {
    height: 600px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-legend {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: var(--box-shadow);
}

.map-legend h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-light);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.legend-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.legend-icon.government {
    background-color: #2c5f2d; /* Government green */
}

.legend-icon.private {
    background-color: #1d3557; /* Private blue */
}

.legend-icon.faith {
    background-color: #e94e1b; /* Faith-based orange */
}

.legend-icon.ngo {
    background-color: #97bc62; /* NGO light green */
}

/* Leaflet Overrides */
.leaflet-container {
    font-family: var(--font-primary);
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.leaflet-popup-content {
    margin: 0.75rem;
}

.leaflet-popup-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.leaflet-popup-content p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.leaflet-popup-content .rehab-popup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.leaflet-popup-content .rehab-popup-meta span {
    display: flex;
    align-items: center;
}

.leaflet-popup-content .rehab-popup-meta i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

.leaflet-popup-content .btn-popup {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.leaflet-popup-content .btn-popup:hover {
    background-color: var(--dark-color);
}

.leaflet-control-zoom {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--box-shadow) !important;
}

.leaflet-control-zoom a {
    width: 30px;
    height: 30px;
    line-height: 30px;
}

.leaflet-control-attribution {
    font-size: 0.7rem;
}

/* Cluster Markers */
.marker-cluster-small {
    background-color: rgba(151, 188, 98, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(151, 188, 98, 0.8);
}

.marker-cluster-medium {
    background-color: rgba(44, 95, 45, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(44, 95, 45, 0.8);
}

.marker-cluster-large {
    background-color: rgba(26, 62, 31, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(26, 62, 31, 0.8);
}

.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font: 12px var(--font-primary);
    font-weight: bold;
    color: var(--white);
}

.marker-cluster span {
    line-height: 30px;
}