/* NearbyIQ — Map Page Styles (OpenStreetMap / Leaflet) */

.map-container {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#map-canvas {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 0.75rem;
    background: #e9ecef;
}

.map-container .map-overlay-top {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    z-index: 1000;
}

/* Leaflet controls match NearbyIQ theme */
.leaflet-control-zoom a {
    border-radius: 6px !important;
    color: var(--color-text) !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.leaflet-popup-content {
    margin: 10px 14px;
    font-size: 0.85rem;
}

/* Radius selector */
.radius-selector {
    background: var(--color-surface);
    border-radius: 50px;
    padding: 0.35rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    gap: 0.25rem;
}

.radius-selector button {
    border: none;
    background: transparent;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
}

.radius-selector button.active {
    background: var(--color-primary);
    color: #fff;
}

/* Results list scrollbar */
.results-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.results-list::-webkit-scrollbar {
    width: 5px;
}

/* Mobile layout */
@media (max-width: 991.98px) {
    .map-container {
        height: 50vh;
        min-height: 300px;
    }
    .results-list {
        max-height: none;
    }
}
