html, body, #map { width: 100%; height: 100%; margin: 0; }
body { font-family: Arial, sans-serif; color: #252824; background: #edf1e8; }
button { font: inherit; }
#map { isolation: isolate; }
.map-filters { position: absolute; z-index: 1000; top: 16px; left: 16px; display: flex; gap: 4px; max-width: calc(100% - 80px); padding: 4px; border: 1px solid #e3e5de; border-radius: 12px; background: #fff; box-shadow: 0 3px 14px #25282420; }
.map-filters button { min-height: 36px; padding: 8px 13px; border: 0; border-radius: 8px; background: transparent; color: #444b40; white-space: nowrap; cursor: pointer; }
.map-filters button[aria-pressed="true"] { color: #fff; background: #252824; }
.map-filters button:hover:not([aria-pressed="true"]) { background: #edf1e8; }
.map-filters button:focus-visible, .address-marker:focus-visible { outline: 3px solid #648056; outline-offset: 3px; }
.map-count { position: absolute; z-index: 1000; bottom: 24px; left: 16px; padding: 10px 14px; border: 1px solid #e3e5de; border-radius: 10px; background: #fff; box-shadow: 0 3px 14px #25282420; font-size: 13px; }
.map-count:empty { display: none; }
.map-status { position: absolute; z-index: 1100; top: 50%; left: 50%; max-width: calc(100% - 64px); margin: 0; padding: 16px 20px; border-radius: 12px; background: #fff; box-shadow: 0 3px 14px #25282420; text-align: center; transform: translate(-50%, -50%); }
.map-status[hidden] { display: none; }
.address-marker { box-sizing: border-box; border: 4px solid #fff; border-radius: 50%; background: #252824; box-shadow: 0 2px 8px #25282460; }
.address-marker:hover, .address-marker:focus { background: #648056; }
.map-address { margin: 0; font-size: 15px; line-height: 1.5; color: #252824; }
.leaflet-popup-content { margin: 16px 24px 16px 18px; }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-container { font-family: inherit; }
.leaflet-control-zoom { border: 1px solid #e3e5de !important; border-radius: 10px !important; overflow: hidden; box-shadow: 0 3px 14px #25282420 !important; }
.leaflet-control-zoom a { width: 34px !important; height: 34px !important; line-height: 34px !important; color: #252824 !important; }
.leaflet-right .leaflet-control { margin-right: 16px; }
.leaflet-top .leaflet-control { margin-top: 16px; }
.leaflet-control-attribution { max-width: calc(100vw - 32px); font-size: 10px; }
.leaflet-control-attribution a { color: #465e3e; }
@media (max-width: 420px) {
  .map-filters { top: 10px; left: 10px; max-width: calc(100% - 66px); gap: 2px; padding: 3px; }
  .map-filters button { padding: 8px; font-size: 12px; }
  .map-count { left: 10px; bottom: 22px; padding: 8px 10px; }
  .leaflet-right .leaflet-control { margin-right: 10px; }
  .leaflet-top .leaflet-control { margin-top: 10px; }
}
