/**
 * GTOS — veri gorsellestirme kabugu (H6-CHARTS)
 *
 * Chart.js tuvalinin ICI dashboard/js/gtos-chart-theme.js ile temalanir.
 * Bu dosya tuvalin DISINDA kalan, CSS ile cozulen kismi toplar: Leaflet'in
 * kendi kabugu (karo bosluklari, zoom dugmeleri, atif seridi, balon).
 *
 * Leaflet'in kendi stil dosyasi tek renk varsayar: beyaz dugme, beyaz atif
 * seridi. Koyu temada bunlar karanlik haritanin uzerinde parlak lekeler
 * biraktigi icin token karsiliklariyla degistirilir.
 *
 * index.html'de unified.css'ten SONRA yuklenir; b02 harita kurallarini
 * ezebilmek icin secicilerde modul kapsami tekrarlanir.
 */

/* Karo bosluklari ve harita zemini: yuzeyden bir kademe geri duran ton. */
.leaflet-container {
  background: var(--gtos-color-surface-muted);
}

html[data-theme='dark'] .module-card[data-module='b02'] .b02-live-map .leaflet-container,
html[data-theme='dark'] .b02-live-map-canvas .leaflet-container {
  background: var(--gtos-color-surface-muted);
}

/* Zoom / katman denetimleri — acik + koyu ayni tokenlar */
.leaflet-bar a,
.leaflet-bar a:hover,
.leaflet-control-layers {
  background-color: var(--gtos-color-surface-elevated);
  color: var(--gtos-color-text);
  border-bottom-color: var(--gtos-color-border);
}

html[data-theme='dark'] .leaflet-bar a:hover {
  background-color: var(--gtos-color-surface);
}

html[data-theme='dark'] .leaflet-bar a.leaflet-disabled {
  background-color: var(--gtos-color-surface);
  color: var(--gtos-color-text-muted);
}

.leaflet-bar {
  border-color: var(--gtos-color-border);
}

/* Atif seridi — kucuk punto, AA icin muted degil tam metin tonu.
 * Baglanti rengi birincil tokenden gelir. */
.leaflet-control-attribution {
  background: var(--gtos-color-surface-elevated);
  color: var(--gtos-color-text);
}

html[data-theme='dark'] .leaflet-control-attribution {
  background: var(--gtos-color-surface);
  color: var(--gtos-color-text);
}

.leaflet-control-attribution a {
  color: var(--gtos-color-primary);
}

/* Balon (popup) */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--gtos-color-surface-elevated);
  color: var(--gtos-color-text);
  box-shadow: var(--gtos-shadow-md);
}

html[data-theme='dark'] .leaflet-container a.leaflet-popup-close-button {
  color: var(--gtos-color-text-muted);
}

html[data-theme='dark'] .leaflet-container a.leaflet-popup-close-button:hover {
  color: var(--gtos-color-text);
}

/* Pilot seed rows — small consistent ÖRNEK VERİ mark (26 Aug demo) */
.gtos-sample-data-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.5rem 0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #856404;
  background: #fff3cd;
  color: #856404;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

html[data-theme='dark'] .gtos-sample-data-badge {
  background: rgba(133, 100, 4, 0.22);
  border-color: #c9a227;
  color: #f0d78c;
}
