/* harita.css — Paylasilan form-harita stilleri (harita.js / P360Harita ile). Talep modulunden
   cikarilip proje geneline tasindi. Sinif adlari tk-harita-* korundu (eski Talep markup'i ayni
   stili kullanmaya devam etsin). Konum secici modal kabi (.p360-harita-*) burada eklendi. */

/* Tam ekran: harita div'i sayfanin ustune fixed overlay olur. z-index !important — harita div'i
   zaten z-index:0 tasiyor; bu kural ayri tek sinif oldugu icin esit ozgullukte kalir, !important
   olmazsa kaynak sirasiyla z-index:0 kazanir ve pencere kabugunun (z-index 400) ARKASINDA kalir. */
.tk-harita-tam {
  position: fixed !important; inset: 0; z-index: 9000 !important;
  width: auto !important; height: auto !important; max-height: none !important;
  border-radius: 0 !important; border: 0 !important; margin: 0 !important;
}

/* Tam ekrandan cikis butonu (ust-orta, dinamik olusturulur). */
#tk-harita-cik {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 9001;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--text); cursor: pointer;
}
#tk-harita-cik[hidden] { display: none; }

/* Harita uzerindeki tam ekran toggle kontrolu (Leaflet kontrol kabugu icinde <a>). */
.tk-harita-tam-btn {
  display: flex !important; align-items: center; justify-content: center;
  width: 30px; height: 30px; font-size: 15px;
  background: var(--surface); color: var(--text);
  text-decoration: none; cursor: pointer;
}
.tk-harita-tam-btn:hover { background: var(--gray-surface); }

/* Konum pini (damla). */
.tk-harita-pin { position: relative; width: 22px; height: 22px; }
.tk-harita-pin::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 50% 0; background: var(--red); transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); }
.tk-harita-pin::after { content: ""; position: absolute; top: 6px; left: 6px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }

/* Soluk mahalle poligon ad etiketi (kalici, bolge merkezinde) — Leaflet tooltip override. */
.leaflet-tooltip.tk-poligon-etiket {
  background: transparent; border: 0; box-shadow: none; padding: 0;
  color: #1c1c1e; font-weight: 700; font-size: 11px; white-space: nowrap;
  text-shadow: 0 1px 2px #fff, 0 0 3px #fff, 0 0 5px #fff;
}
.leaflet-tooltip.tk-poligon-etiket::before { display: none; }
body[data-theme="dark"] .leaflet-tooltip.tk-poligon-etiket {
  color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000, 0 0 5px #000;
}

/* ── Konum secici modal kabi (P360Harita.secModal) ───────────────────────────── */
.p360-harita-modal { display: flex; flex-direction: column; gap: 12px; }
.p360-harita-tut {
  height: 420px; max-height: 56vh; width: 100%;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-soft); background: var(--gray-surface);
}
.p360-harita-koord {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--text);
  padding: 9px 12px; border-radius: 10px;
  background: var(--gray-surface); border: 1px solid var(--border-soft);
}
.p360-harita-koord i { color: var(--red); }
