.kw-map-content {
    display: block;
}

#kw-project-map {
    height: 70vh;
    width: 100%;
    min-height: 650px;
}

.kw-map-legend {
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
    font-size: 13px;
    line-height: 1.25;
    max-width: 340px;
}

.kw-legend-title {
    font-family: var(--bs-body-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-weight: 500;
    padding-bottom: 4px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(88, 90, 96, 0.45);
    font-size: 16px;
    color: #222934;
}

.kw-legend-section {
    margin-bottom: 18px;
}

.kw-legend-subtitle {
    font-family: var(--bs-body-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    color: #343d4e;
}

.kw-legend-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 8px 0;
}

.kw-legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 4px;
    border: 2px solid #ffffff; /* separation from map */
    box-shadow: 0 0 0 1px #333333; /* outer contrast ring */
}

.kw-legend-swatch {
    width: 14px;
    height: 10px;
    border-radius: 2px;
    margin-right: 4px;
    flex: 0 0 auto;
}

.kw-legend-swatch--pollution {
    background: #fa8039;
    opacity: 0.90;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #333;
}

.kw-legend-swatch--boundary {
    background: rgba(0, 128, 255, 0.25);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #333;
}

.kw-project-marker {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.kw-marker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.kw-marker-dot:hover {
    transform: scale(1.25);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.kw-project-marker.is-active .kw-marker-dot {
    transform: scale(1.2);
}


.kw-project-tooltip {
    font-family: var(--bs-body-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    background: #ffffff;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.leaflet-tooltip-top.kw-project-tooltip:before {
    border-top-color: #ffffff;
}

.kw-tooltip-types {
    display: inline-flex;
    gap: 6px;
}

.kw-tooltip-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    opacity: 0.9;
}

.leaflet-control-layers-selector {
    margin-right: 2px;
}
