html, body, #map {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.leaflet-control-zoom {
  margin-bottom: 16px !important;
  margin-right: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12) !important;
}

.leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 18px !important;
  font-weight: 500;
  color: #334155 !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.leaflet-control-zoom a:hover {
  background: #f8fafc !important;
}

.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(255, 255, 255, 0.65) !important;
  border-radius: 6px 0 0 0;
}

@keyframes pulseRed {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.52), 0 2px 8px rgba(239, 68, 68, 0.35); }
  70%  { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0), 0 2px 8px rgba(239, 68, 68, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 2px 8px rgba(239, 68, 68, 0.35); }
}

.marker-pulse {
  animation: pulseRed 1.9s infinite;
}

.mahalla-label {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 9999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
  transition: transform 0.15s ease, background 0.15s ease;
}

.mahalla-label-alert {
  background: #ffffff;
  border-color: rgba(239, 68, 68, 0.38);
  color: #991b1b;
  font-size: 10.5px;
}

.mahalla-label-warn {
  background: #ffffff;
  border-color: rgba(245, 158, 11, 0.42);
  color: #92400e;
}

.mahalla-label-plan {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.38);
  color: #5b21b6;
}

.marker-wrap:hover .mahalla-label {
  transform: scale(1.07);
  background: #ffffff;
}

.text-halo {
  text-shadow: 0 0 6px #fff, 0 0 6px #fff, 0 1px 2px rgba(255, 255, 255, 0.95);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 24-часовой график в модалке статистики */
.hourly-chart {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  gap: 3px;
  height: 76px;
  padding-top: 8px;
}

.hourly-bar {
  border-radius: 4px 4px 2px 2px;
  background: #cbd5e1;
  min-height: 4px;
  transition: height 0.25s ease, background 0.2s ease;
}

.hourly-bar.has-val {
  background: #2ca7f2;
}