html, body { margin: 0; height: 100%; font: 13px/1.45 -apple-system, "Segoe UI", Roboto, sans-serif; }
#map { position: absolute; inset: 0; }

#panel {
  position: absolute; top: 10px; left: 10px; z-index: 1000;
  width: 265px; max-height: calc(100% - 20px); overflow-y: auto;
  background: rgba(18, 22, 28, .92); color: #e8ecf1;
  border-radius: 10px; padding: 12px 14px; box-shadow: 0 4px 18px rgba(0,0,0,.4);
}
#panel h1 { font-size: 16px; margin: 0 0 6px; }
#stats { color: #9fb0c0; margin-bottom: 8px; white-space: pre-line; }
.block { border-top: 1px solid #2c3644; padding: 8px 0; }
.block-title { font-weight: 600; color: #b8c6d4; margin-bottom: 4px; }
.free-toggle { color: #7ee787; cursor: pointer; }

#search { width: 100%; box-sizing: border-box; padding: 6px 8px; border-radius: 6px; border: 1px solid #3a4656; background: #0e1218; color: #eee; }
#search-results div { padding: 4px 6px; cursor: pointer; border-radius: 4px; }
#search-results div:hover { background: #24303e; }

#metal-filters label, #dev-filters label { display: inline-block; margin: 2px 8px 2px 0; cursor: pointer; white-space: nowrap; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.popup h3 { margin: 0 0 4px; font-size: 14px; }
.popup table { border-collapse: collapse; }
.popup td { padding: 1px 6px 1px 0; vertical-align: top; }
.popup td:first-child { color: #777; white-space: nowrap; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 8px; font-weight: 600; font-size: 12px; margin-bottom: 4px; }
.badge.free { background: #d6f5dd; color: #157a33; }
.badge.taken { background: #fbdcdc; color: #b3232c; }

.leaflet-popup-content { margin: 10px 12px; }

/* Подписи городов и областей поверх спутника */
.city-label, .oblast-label {
  background: transparent !important; border: none !important; box-shadow: none !important;
  color: #fff; font-weight: 600; font-size: 12px; white-space: nowrap;
  text-shadow: 0 0 3px #000, 0 0 6px #000, 1px 1px 2px #000;
}
.city-label .pop { color: #ffe9a8; font-weight: 400; font-size: 10px; }
.oblast-label {
  color: #ffe9a8; font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.9;
}
.leaflet-tooltip.city-label::before, .leaflet-tooltip.oblast-label::before { display: none; }
