/* Depremİstatistik.com — map.css
   Haritalar (deprem sayfasındaki harita, canlı harita ve arşiv haritası): çerçeve, JS'siz yedek
   metin, not ve Leaflet denetimlerinin, ipucunun ve açılır kutunun koyu temaya uyarlanması.
   Deprem sayfasındaki haritanın yüksekliği kendi stilindedir. */

.quake-map {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
}

.quake-map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0 16px;
    font-weight: 700;
    text-align: center;
    color: var(--text-muted);
}

.quake-map-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }

.quake-map.leaflet-container { font-family: inherit; background: var(--bg); }
.quake-map .leaflet-control-attribution { background: rgba(10, 28, 46, .85); color: var(--text-muted); }
.quake-map .leaflet-control-attribution a { color: var(--accent-text); }

.quake-map .leaflet-bar a {
    border-bottom-color: var(--line);
    background: var(--surface);
    color: var(--text);
}

.quake-map .leaflet-bar a:hover { background: var(--surface-raised); }
.quake-map .leaflet-bar { border: 1px solid var(--line); }

.quake-map-tip.leaflet-tooltip {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: none;
    font-size: 13px;
    color: var(--text);
}

.quake-map-tip.leaflet-tooltip-top::before { border-top-color: var(--line); }
.quake-map-tip strong { margin-right: 6px; }

/* Bilgi kutusu: büyüklük rozeti ve yer (deprem sayfasına bağlantı), altında zaman, derinlik
   ve varsa uzaklık */
.quake-map-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: none;
    color: var(--text-muted);
}

.quake-map-popup .leaflet-popup-tip { background: var(--surface); box-shadow: none; }
.quake-map-popup .leaflet-popup-close-button { color: var(--text-muted); }
.quake-map-popup .leaflet-popup-close-button:hover { color: var(--text); }

.quake-map-popup .leaflet-popup-content { margin: 12px 34px 12px 14px; font-size: 13px; line-height: 1.45; }

.map-popup { display: grid; gap: 2px; }

.map-popup a {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
}

.map-popup-mag {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 7px;
    border-radius: 6px;
    background: var(--mag-fill);
    color: var(--mag-ink);
}

/* Sayfa haritaları (canlı harita, arşiv); canlı haritanın açıklamasında son bir saatin beyaz
   çerçevesi */
.page-map { height: min(68vh, 640px); min-height: 320px; }
.mag-legend .is-recent::before { border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px #fff; }

@media (max-width: 600px) {
    .page-map { height: 62vh; min-height: 300px; }
}
