@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.dim-map-container {
    font-family: 'Inter', sans-serif;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(0,0,0,.12);
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* ── Header ─────────────────────────── */
.dim-map-header {
    background: linear-gradient(135deg, #2c2c2c, #424242);
    color: #fff;
    padding: 13px 20px;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}
.dim-map-header-left { display: flex; align-items: center; gap: 10px; }
.dim-map-header-icon { font-size: 1.3rem; }
.dim-map-title { margin: 0; font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.3; }
.dim-map-count {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    padding: 4px 14px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}

/* ── Map canvas ─────────────────────── */
#dim-leaflet-map {
    /* Height set dynamically by JS to match India's aspect ratio */
    min-height: 280px;
    width: 100% !important;
    display: block;
    position: relative;
    z-index: 0;
    background: #ffffff !important;
}
.leaflet-container {
    background: #ffffff !important;
}
#dim-leaflet-map .leaflet-tile-pane { display: none; }

/* ── Pins ───────────────────────────── */
.dim-pin-icon { background: none !important; border: none !important; cursor: pointer; }
.dim-pin-icon svg {
    transition: transform 0.15s ease;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.3));
    overflow: visible;
}
.dim-pin-icon:hover svg { transform: scale(1.3) translateY(-4px); }

/* ── Popup ──────────────────────────── */
.dim-popup .leaflet-popup-content-wrapper {
    background: #fff; border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    padding: 0; overflow: hidden; border: none; min-width: 210px;
}
.dim-popup .leaflet-popup-tip { background: #fff; }
.dim-popup .leaflet-popup-content { margin: 0; width: auto !important; }
.dim-popup .leaflet-popup-close-button {
    color: rgba(255,255,255,.8) !important; font-size: 18px !important;
    top: 6px !important; right: 8px !important; z-index: 10;
}
.dim-popup-top {
    background: linear-gradient(135deg, #1557b0, #1A73E8);
    padding: 12px 36px 10px 14px;
    display: flex; align-items: flex-start; gap: 10px; color: #fff;
}
.dim-popup-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.dim-popup-doctor { font-weight: 700; font-size: 0.9rem; line-height: 1.3; }
.dim-popup-hospital { font-size: 0.76rem; opacity: 0.85; margin-top: 2px; }
.dim-popup-bottom { padding: 10px 14px 12px; }
.dim-popup-city { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 600; color: #1A73E8; }
.dim-popup-city::before { content: "📍"; }
.dim-popup-list {
    margin-top: 8px; border-top: 1px solid #eee; padding-top: 8px;
    display: flex; flex-direction: column; gap: 6px; max-height: 150px; overflow-y: auto;
}
.dim-popup-list-item { font-size: 0.76rem; color: #555; line-height: 1.4; }
.dim-popup-list-item strong { color: #212121; display: block; }
