#map{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background:#0f1117;
  z-index:1;
}

.leaflet-container{
  background:#0f1117;
  font:14px/1.4 Arial, Helvetica, sans-serif;
}

.leaflet-control-attribution{
  background:rgba(11,12,16,0.72) !important;
  color:rgba(255,255,255,0.45);
  border-radius:6px 0 0 0;
  border-top:1px solid rgba(255,255,255,0.05);
  border-left:1px solid rgba(255,255,255,0.05);
  font-size:9px !important;
  padding:2px 5px !important;
  opacity:0.5;
  transition:opacity 0.2s ease;
}

.leaflet-control-attribution:hover{
  opacity:1;
  color:rgba(255,255,255,0.82);
}

.leaflet-control-attribution a{
  color:#9bd7ff;
}

.leaflet-bottom.leaflet-right,
.leaflet-bottom.leaflet-left{
  margin-bottom:calc(var(--panel-mobile-offset) + 10px);
}

.speed-marker{
  width:38px;
  height:38px;
  border-radius:50%;
  background:#ffffff;
  border:3px solid #d93232;
  color:#111111;
  font-weight:700;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 10px rgba(0,0,0,0.35);
  transition:transform .15s ease, box-shadow .15s ease;
}

.speed-marker.is-selected{
  transform:scale(1.08);
  box-shadow:0 0 0 4px rgba(211,175,65,0.28), 0 2px 12px rgba(0,0,0,0.38);
}

.user-marker{
  width:18px;
  height:18px;
  border-radius:50%;
  background:#2a89ff;
  border:3px solid #ffffff;
  box-shadow:0 0 0 8px rgba(42,137,255,0.18);
}

.radar-popup .leaflet-popup-content-wrapper{
  background:#161920;
  color:#f2f2f2;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.08);
}

.radar-popup .leaflet-popup-tip{
  background:#161920;
}

.popup-name{
  font-weight:700;
  font-size:14px;
  line-height:1.35;
  margin-bottom:4px;
}

.popup-sub{
  color:#cfd3dc;
  font-size:12px;
  line-height:1.4;
}

.gps-control{
  width:42px;
  height:42px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(11,12,16,0.9);
  border:1px solid rgba(255,255,255,0.08);
  color:#ffffff;
  cursor:pointer;
  box-shadow:0 2px 10px rgba(0,0,0,0.22);
  font-size:18px;
  line-height:1;
}

.gps-control:hover{
  background:rgba(24,28,38,0.96);
}

.map-logo-bar{
  position:absolute;
  top:6px;
  left:4px;
  z-index:500;
  display:flex;
  align-items:center;
  gap:8px;
  pointer-events:none;
}

.map-logo-link{
  pointer-events:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:0;
  padding:0;
  opacity:0.96;
  transition:transform .15s ease, opacity .15s ease;
}

.map-logo-link:hover{
  transform:translateY(-1px);
  opacity:1;
}

.map-logo-link img{
  display:block;
  width:auto;
}

.map-logo-link.koshchall img{
  max-height:28px;
}

.map-logo-link.radarspy img{
  max-height:54px;
}

.logo-fallback{
  display:none;
  font-size:13px;
  font-weight:700;
  color:#f1f1f1;
  white-space:nowrap;
}

@media (min-width: 980px){
  .leaflet-bottom.leaflet-right,
  .leaflet-bottom.leaflet-left{
    margin-bottom:10px;
  }

  .map-logo-bar{
    top:10px;
    left:8px;
    gap:12px;
  }

  .map-logo-link.koshchall img{
    max-height:34px;
  }

  .map-logo-link.radarspy img{
    max-height:76px;
  }
}

@media (max-width: 640px){
  .speed-marker{
    width:34px;
    height:34px;
    font-size:11px;
  }
}
