.map-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.map-controls { display: flex; flex-direction: column; gap: 6px; }
.map-toggle { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; padding: 4px 0; }
.map-toggle input { width: auto; }
.map-toggle .dim { color: var(--text-muted); font-size: 12px; margin-left: auto; }
.map-container {
    height: 75vh;
    min-height: 480px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* How-to-use-the-map instruction card */
.map-instructions {
    margin-bottom: 16px;
    background: color-mix(in srgb, var(--tertiary) 8%, var(--bg-card));
    border-left: 4px solid var(--tertiary);
    line-height: 1.55;
    font-size: 14px;
}
.map-instructions strong { color: var(--text); }
.map-instructions ol {
    margin: 8px 0 0 0;
    padding-left: 24px;
}
.map-instructions li { margin-bottom: 4px; color: var(--text-muted); }
.map-instructions li strong { color: var(--text); }

/* ---- Marker pins ---- */
.pin-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ---- Cluster bubbles ---- override Leaflet.markercluster default green
   so clusters match the dark blue of the individual pins.
   !important needed because Leaflet's default CSS uses the same selector
   specificity AND ships a separate stylesheet — load order alone isn't
   reliable across CDN caches. ---- */
.marker-cluster {
    background-color: rgba(34, 64, 124, 0.4) !important;
}
.marker-cluster div {
    background-color: rgba(34, 64, 124, 0.85) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
/* Three default size tiers — same blue, just different opacity rings. */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large { background-color: rgba(34, 64, 124, 0.4) !important; }
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div { background-color: rgba(34, 64, 124, 0.9) !important; }

/* ---- Popups ---- */
.map-popup .mp-type { font-size: 10px; text-transform: uppercase; color: #888; letter-spacing: 0.5px; }
.map-popup .mp-title { font-weight: 700; font-size: 15px; margin: 2px 0 4px; }
.map-popup .mp-hl { font-size: 12px; color: #555; margin-bottom: 6px; }
.map-popup .mp-picks { font-size: 11px; color: #666; margin: 6px 0; display: flex; align-items: center; gap: 3px; }
.mp-pickcount { margin-left: 4px; }
.map-popup .mp-link { font-size: 12px; color: var(--accent); }

@media (max-width: 800px) {
    .map-layout { grid-template-columns: 1fr; }
    .map-container { height: 60vh; }
}
