.vg-location-map {
  --vg-map-bg: #1c261f;
  --vg-map-panel: #253027;
  --vg-map-line: #495a47;
  --vg-map-text: #edf1e7;
  --vg-map-muted: #bbc5b4;
  --vg-map-accent: #d9ed9c;
  color: var(--vg-map-text);
  background: var(--vg-map-bg);
  border: 1px solid var(--vg-map-line);
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
  margin: 18px 0;
  font-family: inherit;
}
.vg-location-map * { box-sizing: border-box; }
.vg-location-map [hidden] { display: none !important; }
.vg-location-map__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px 12px;
}
.vg-location-map__header h3 { margin: 0 0 5px; font-size: 19px; color: var(--vg-map-text); }
.vg-location-map__provider { margin: 0; color: var(--vg-map-muted); font-size: 13px; }
.vg-location-map__provider-control { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--vg-map-muted); }
.vg-location-map__provider-control select {
  width: auto;
  max-width: 240px;
  min-height: 38px;
  padding: 7px 25px 7px 9px;
  margin: 0;
  border: 1px solid var(--vg-map-line);
  border-radius: 9px;
  background: var(--vg-map-panel);
  color: var(--vg-map-text);
  font: inherit;
  color-scheme: dark;
}
.vg-location-map__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 20px 14px; }
.vg-location-map__toolbar button {
  width: auto;
  min-height: 38px;
  margin: 0;
  padding: 8px 13px;
  background: var(--vg-map-panel);
  color: var(--vg-map-text);
  border: 1px solid var(--vg-map-line);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  font-family: inherit;
  cursor: pointer;
}
.vg-location-map__toolbar .vg-location-map__edit { color: #18221a; background: var(--vg-map-accent); border-color: var(--vg-map-accent); }
.vg-location-map__toolbar button[aria-pressed="true"] { background: #34482b; border-color: #c8e98c; color: #edf5df; }
.vg-location-map button:disabled, .vg-location-map select:disabled { opacity: .5; cursor: default; }
.vg-location-map button:focus-visible, .vg-location-map a:focus-visible, .vg-location-map select:focus-visible { outline: 3px solid var(--vg-map-accent); outline-offset: 3px; }
.vg-location-map__selected { margin: 0 0 0 auto; font-size: 13px; color: var(--vg-map-muted); max-width: 100%; overflow-wrap: anywhere; }
.vg-location-map__canvas { position: relative; width: 100%; height: 390px; isolation: isolate; background: #35433a; color: #17231b; }
.vg-location-map.is-editing .vg-location-map__canvas { outline: 2px solid #d9ed9c; outline-offset: -2px; }
.vg-location-map.is-editing .leaflet-grab { cursor: crosshair; }
.vg-location-map.is-editing .leaflet-marker-draggable { cursor: grab; }
.vg-location-map__fallback { display: grid; place-items: center; min-height: 100%; padding: 32px; color: #edf1e7; text-align: center; font-size: 16px; line-height: 1.65; }
.vg-location-map__status, .vg-location-map__health, .vg-location-map__legend { padding: 0 20px; margin: 12px 0; line-height: 1.5; font-size: 13px; color: var(--vg-map-muted); }
.vg-location-map__status.is-error, .vg-location-map__health { color: #ffcdaf; }
.vg-location-map__legend { font-size: 12px; }
.vg-location-map__connection { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 14px 20px 0; padding-top: 12px; border-top: 1px solid var(--vg-map-line); color: var(--vg-map-muted); font-size: 12px; line-height: 1.5; }
.vg-location-map__connection span { flex: 1 1 280px; }
.vg-location-map__connection a { flex: 0 0 auto; }
.vg-location-map__connection a, .vg-location-map__footer a { color: #d7e8ad; text-underline-offset: 3px; }
.vg-location-map__footer { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 20px 17px; font-size: 12px; }
.vg-location-map__marker { border: none; background: none; }
.vg-location-map__pin { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid #fff; background: #314e38; border-radius: 50% 50% 50% 5px; transform: rotate(-45deg); box-shadow: 0 2px 5px #0005; color: transparent; font-size: 0; }
.vg-location-map__pin::after { content: attr(data-label); transform: rotate(45deg); color: #fff; font: 700 13px/1 sans-serif; }
.vg-location-map__pin.is-selected { background: #d9ed9c; border-color: #19251b; }
.vg-location-map__pin.is-selected::after { color: #19251b; }
.vg-location-map .leaflet-tooltip { padding: 6px 9px; background: #fffef7; color: #1d2a20; border: 1px solid #aab79e; font-family: inherit; font-size: 12px; max-width: 240px; white-space: normal; }
.vg-location-map .leaflet-control-attribution { background: #fffffff2; color: #243322; font-size: 10px; }
.vg-location-map .leaflet-control-attribution a { color: #175c35; }
.vg-location-map .leaflet-control-zoom a { background: #fffef8; color: #233825; border-color: #b7c1b0; }
.vg-location-map__yandex-logo { position: absolute; z-index: 800; display: block; left: 0; bottom: 0; width: 88px; height: 48px; background: none; border: none; padding: 0; margin: 0; }
.vg-location-map__yandex-logo img { display: block; width: 88px; height: 48px; max-width: none; padding: 0; margin: 0; filter: none; }
@media (max-width: 700px) {
  .vg-location-map__header { align-items: flex-start; flex-direction: column; gap: 12px; padding: 15px 14px 12px; }
  .vg-location-map__provider-control { width: 100%; justify-content: space-between; }
  .vg-location-map__provider-control select { max-width: calc(100% - 70px); }
  .vg-location-map__toolbar { padding: 0 14px 12px; }
  .vg-location-map__selected { width: 100%; margin: 4px 0 0; }
  .vg-location-map__canvas { height: 330px; }
  .vg-location-map__status, .vg-location-map__health, .vg-location-map__legend { padding: 0 14px; }
  .vg-location-map__connection { margin-left: 14px; margin-right: 14px; }
  .vg-location-map__footer { padding: 12px 14px 15px; }
}
@media (prefers-reduced-motion: reduce) { .vg-location-map * { scroll-behavior: auto; } }
