/* Sitedeki bütün Leaflet haritalarının ortak görünümü (harita-ortak.js ile birlikte kullanılır). */

/* Leaflet katmanlarına yüksek z-index (400-1000) veriyor; her harita kendi yığılma bağlamında kalsın ki
   sayfadaki açılır pencerelerin (geri bildirim formu, üye kartı vb.) üstüne çıkmasın. */
.leaflet-container {
    z-index: 0;
    isolation: isolate;
}

/* Tıklanan il/ilçe şeklinin etrafındaki tarayıcı odak çerçevesini gizle. */
.leaflet-container .leaflet-interactive:focus {
    outline: none;
}

/* Yuva durum noktaları: ana haritadaki renklerle aynı. */
.nest-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #9ca3af;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.nest-dot-Aktif { background: #16a34a; }
.nest-dot-GecmisteAktif { background: #eab308; }
.nest-dot-DurumuBilinmiyor { background: #9ca3af; }
/* Yuva artık mevcut değil: siyah (kırmızı elektrik riski içindir). */
.nest-dot-ArtikMevcutDegil { background: #111827; }
.nest-dot-BuYilKontrolEdildi { background: #2563eb; }
/* Elektrik riski: kırmızı. */
.nest-dot-ElektrikRiski { background: #dc2626; }

/* Tek yuvayı gösteren haritalarda biraz daha büyük nokta. */
.nest-dot-buyuk {
    width: 20px;
    height: 20px;
    border-width: 3px;
}

/* Yuva eklerken işaretlenen yeni konum ve haritadaki diğer kayıtlı yuvalar. */
.nest-dot-Secili {
    width: 20px;
    height: 20px;
    border-width: 3px;
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.nest-dot-Kayitli {
    width: 12px;
    height: 12px;
    background: #6b7280;
}

/* Konum seçme haritalarındaki diğer yuvalar: durum rengiyle küçük nokta (Kayitli ile aynı boyut). */
.nest-dot-kucuk {
    width: 12px;
    height: 12px;
}

/* Düzenleme sırasında sürüklenebilir işaretçi. */
.leaflet-marker-draggable .nest-dot {
    cursor: grab;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* İşaretçiye tıklanınca açılan kısa bilgi. */
.harita-popup {
    font-size: 13px;
    line-height: 1.45;
    min-width: 160px;
}
.harita-popup strong {
    display: block;
    font-size: 14px;
}
.harita-popup-kod {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    color: #6b7280;
}
.harita-popup-durum {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.harita-popup-durum .nest-dot {
    width: 9px;
    height: 9px;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
}
.harita-popup a {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
}

/* Sayfa içi haritalarda "Ctrl + kaydır" / "iki parmak" ipucu. */
.harita-ipucu {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.harita-ipucu.goster {
    opacity: 1;
}

/* Telefonda dikey hareket sayfayı kaydırır, yatay hareket haritaya kalır. */
.leaflet-container.harita-yatay-kaydir {
    touch-action: pan-y !important;
}

/* Tarayıcının tam ekran özelliği olmayan cihazlarda (iPhone) haritayı sayfayı kaplayacak şekilde açar. */
.harita-tam-ekran-taklit {
    position: fixed !important;
    inset: 0;
    z-index: 3000;
    background: #fff;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.harita-tam-ekran-taklit #turkiye-harita {
    height: 100% !important;
    width: 100%;
    border: 0 !important;
    border-radius: 0 !important;
}
body.harita-tam-ekranda {
    overflow: hidden;
}
