/* =========================
   Player Overlay (Full CSS)
   ========================= */

/* Leaflet'in default icon class'ları bazen boşluk bırakır, biz sadeleştiriyoruz */
.leaflet-div-icon {
  background: transparent !important;
  border: 0 !important;
}

/* Oyuncu ikonunun ana kutusu */
.player-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  /* marker'ın tam üstüne otursun */
  transform: translate(-50%, -50%);

  /* görünüm */
  font-family: Arial, sans-serif;
  user-select: none;
  pointer-events: none; /* haritaya tıklamayı engellemesin */
}

/* Kırmızı nokta */
.player-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;

  background: #ff3b3b;
  box-shadow: 0 0 6px rgba(255, 59, 59, 0.85);
}

/* İsim etiketi */
.player-name {
  background: rgba(0, 0, 0, 0.60);
  color: #fff;

  font-size: 12px;
  font-weight: 700;
  line-height: 1;

  padding: 4px 8px;
  border-radius: 10px;

  white-space: nowrap;

  /* okunabilirlik */
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
}

/* İstersen oyuncu etiketi hover gibi büyüsün (pointer-events: none olduğu için pasif kalır)
   pointer-events'i açarsan çalışır. */
.player-icon:hover .player-name {
  background: rgba(0,0,0,0.72);
}

/* Z-index: marker pane genelde üstte olur ama garanti için */
.leaflet-marker-pane {
  z-index: 600 !important;
}

/* Eğer bazı UI butonları üstte kalacaksa (zoom + layer switch),
   onların z-index'i zaten leaflet-control ile yüksek olur. */
.leaflet-control {
  z-index: 1000 !important;
}

