.gs-ks-map,
.gs-ks-map * {
  box-sizing: border-box;
}

.gs-ks-map {
  --ks-navy: #232f3e;
  --ks-navy-2: #17212c;
  --ks-orange: #ff8400;
  --ks-white: #ffffff;
  --ks-gray-50: #f6f8fb;
  --ks-gray-100: #eef2f6;
  --ks-gray-200: #d9e1e9;
  --ks-gray-500: #6d7885;
  --ks-text: #17202b;
  --ks-green: #22a06b;
  --ks-red: #d14343;
  --ks-yellow: #e5a100;
  --ks-blue: #3478d4;
  --ks-purple: #7a5af8;
  position: relative;
  width: 100%;
  height: clamp(560px, 72vh, 780px);
  min-height: 560px;
  overflow: hidden;
  background: var(--ks-gray-100);
  border: 1px solid var(--ks-gray-200);
  box-shadow: 0 16px 44px rgba(35, 47, 62, 0.14);
  color: var(--ks-text);
  font-family: inherit;
  isolation: isolate;
}

.gs-ks-map button,
.gs-ks-map input {
  font: inherit;
}

.gs-ks-map button {
  -webkit-tap-highlight-color: transparent;
}

.gs-ks-map__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #e9eef4;
}

.gs-ks-map .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: inherit;
  background: #e9eef4;
}

.gs-ks-map .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 8px 24px rgba(35, 47, 62, 0.18);
}

.gs-ks-map .leaflet-control-zoom a {
  width: 42px;
  height: 42px;
  line-height: 42px;
  border: 0;
  color: var(--ks-navy);
  background: var(--ks-white);
}

.gs-ks-map .leaflet-control-zoom a:hover {
  color: var(--ks-white);
  background: var(--ks-orange);
}

.gs-ks-map .leaflet-control-attribution {
  max-width: calc(100% - 18px);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.84);
}

.gs-ks-map__top-left,
.gs-ks-map__top-right,
.gs-ks-map__bottom-left {
  position: absolute;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.gs-ks-map__top-left {
  top: 14px;
  left: 14px;
}

.gs-ks-map__top-right {
  top: 14px;
  right: 14px;
}

.gs-ks-map__bottom-left {
  left: 14px;
  bottom: 14px;
}

.gs-ks-map__top-left > *,
.gs-ks-map__top-right > *,
.gs-ks-map__bottom-left > * {
  pointer-events: auto;
}

.gs-ks-map__control-btn,
.gs-ks-map__icon-btn,
.gs-ks-map__panel-close,
.gs-ks-map__wide-btn,
.gs-ks-map__layer-buttons button,
.gs-ks-map__copy-btn,
.gs-ks-map__product-btn {
  border: 0;
  cursor: pointer;
}

.gs-ks-map__control-btn,
.gs-ks-map__icon-btn,
.gs-ks-map__active-layer,
.gs-ks-map__network-pill,
.gs-ks-map__updated {
  min-height: 44px;
  border: 1px solid rgba(35, 47, 62, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 24px rgba(35, 47, 62, 0.17);
  backdrop-filter: blur(10px);
}

.gs-ks-map__control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 94px;
  padding: 0 15px;
  color: var(--ks-white);
  background: var(--ks-navy);
  border-color: var(--ks-navy);
  font-weight: 800;
}

.gs-ks-map__control-btn:hover,
.gs-ks-map__control-btn[aria-expanded="true"] {
  background: var(--ks-orange);
  border-color: var(--ks-orange);
}

.gs-ks-map__control-icon {
  font-size: 18px;
  line-height: 1;
}

.gs-ks-map__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ks-navy);
  font-size: 22px;
  font-weight: 900;
}

.gs-ks-map__icon-btn:hover,
.gs-ks-map__icon-btn.is-active {
  color: var(--ks-white);
  background: var(--ks-orange);
  border-color: var(--ks-orange);
}

.gs-ks-map__active-layer {
  display: inline-flex;
  align-items: center;
  max-width: 250px;
  padding: 0 13px;
  color: var(--ks-navy);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-ks-map__network-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--ks-navy);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.gs-ks-map__network-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--ks-gray-500);
  box-shadow: 0 0 0 4px rgba(109, 120, 133, 0.12);
}

.gs-ks-map__network-pill.is-online .gs-ks-map__network-dot {
  background: var(--ks-green);
  box-shadow: 0 0 0 4px rgba(34, 160, 107, 0.14);
}

.gs-ks-map__network-pill.is-warning .gs-ks-map__network-dot {
  background: var(--ks-yellow);
  box-shadow: 0 0 0 4px rgba(229, 161, 0, 0.14);
}

.gs-ks-map__network-pill.is-offline .gs-ks-map__network-dot {
  background: var(--ks-red);
  box-shadow: 0 0 0 4px rgba(209, 67, 67, 0.14);
}

.gs-ks-map__floating-panel {
  position: absolute;
  z-index: 980;
  top: 66px;
  left: 14px;
  width: min(360px, calc(100% - 28px));
  max-height: calc(100% - 94px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--ks-gray-200);
  box-shadow: 0 20px 50px rgba(35, 47, 62, 0.24);
  backdrop-filter: blur(12px);
}

.gs-ks-map__floating-panel[hidden],
.gs-ks-map__info-sheet[hidden],
.gs-ks-map__legend[hidden] {
  display: none !important;
}

.gs-ks-map__panel-head,
.gs-ks-map__info-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid var(--ks-gray-200);
}

.gs-ks-map__panel-head strong {
  display: block;
  color: var(--ks-navy);
  font-size: 18px;
}

.gs-ks-map__panel-head span {
  display: block;
  margin-top: 4px;
  color: var(--ks-gray-500);
  font-size: 12px;
  line-height: 1.35;
}

.gs-ks-map__panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  color: var(--ks-navy);
  background: var(--ks-gray-100);
  font-size: 24px;
  line-height: 1;
}

.gs-ks-map__panel-close:hover {
  color: var(--ks-white);
  background: var(--ks-orange);
}

.gs-ks-map__layer-section {
  padding: 15px 16px;
}

.gs-ks-map__layer-section + .gs-ks-map__layer-section {
  border-top: 1px solid var(--ks-gray-200);
}

.gs-ks-map__section-title {
  margin-bottom: 9px;
  color: var(--ks-gray-500);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gs-ks-map__switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.gs-ks-map__switch-row span {
  min-width: 0;
}

.gs-ks-map__switch-row strong,
.gs-ks-map__switch-row small {
  display: block;
}

.gs-ks-map__switch-row strong {
  color: var(--ks-navy);
  font-size: 14px;
}

.gs-ks-map__switch-row small {
  margin-top: 3px;
  color: var(--ks-gray-500);
  font-size: 11px;
  line-height: 1.35;
}

.gs-ks-map__switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gs-ks-map__switch-row i {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 42px;
  border-radius: 999px;
  background: var(--ks-gray-200);
  transition: background 0.2s ease;
}

.gs-ks-map__switch-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ks-white);
  box-shadow: 0 2px 7px rgba(35, 47, 62, 0.2);
  transition: transform 0.2s ease;
}

.gs-ks-map__switch-row input:checked + i {
  background: var(--ks-orange);
}

.gs-ks-map__switch-row input:checked + i::after {
  transform: translateX(18px);
}

.gs-ks-map__layer-label {
  margin-bottom: 8px;
  color: var(--ks-navy);
  font-size: 14px;
  font-weight: 800;
}

.gs-ks-map__layer-buttons--stations {
  grid-template-columns: 1fr 1fr;
}

.gs-ks-map__layer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.gs-ks-map__layer-buttons button,
.gs-ks-map__wide-btn {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--ks-gray-200);
  color: var(--ks-navy);
  background: var(--ks-gray-50);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.gs-ks-map__layer-buttons button:hover,
.gs-ks-map__layer-buttons button.is-active,
.gs-ks-map__wide-btn:hover {
  color: var(--ks-white);
  background: var(--ks-orange);
  border-color: var(--ks-orange);
}

.gs-ks-map__wide-btn {
  width: 100%;
  text-align: center;
}

.gs-ks-map__legend {
  position: absolute;
  z-index: 890;
  left: 14px;
  bottom: 52px;
  max-width: min(420px, calc(100% - 28px));
  padding: 10px 12px;
  color: var(--ks-navy);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(35, 47, 62, 0.12);
  box-shadow: 0 7px 24px rgba(35, 47, 62, 0.15);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  pointer-events: none;
}

.gs-ks-map__legend-items {
  display: grid;
  gap: 5px;
}

.gs-ks-map__legend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
}

.gs-ks-map__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gs-ks-map__legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(35, 47, 62, 0.15);
}

.gs-ks-map__updated {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--ks-gray-500);
  font-size: 10px;
  font-weight: 700;
}

.gs-ks-map__info-sheet {
  position: absolute;
  z-index: 990;
  top: 70px;
  right: 14px;
  bottom: 62px;
  width: min(390px, calc(100% - 28px));
  overflow: auto;
  background: rgba(255, 255, 255, 0.985);
  border: 1px solid var(--ks-gray-200);
  box-shadow: 0 20px 52px rgba(35, 47, 62, 0.26);
  backdrop-filter: blur(12px);
}

.gs-ks-map__sheet-handle {
  display: none;
}

.gs-ks-map__info-head h3 {
  margin: 4px 0 0;
  color: var(--ks-navy);
  font-size: 22px;
  line-height: 1.18;
}

.gs-ks-map__info-kicker {
  color: var(--ks-orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gs-ks-map__info-body {
  padding: 16px;
}

.gs-ks-map__status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  color: var(--ks-navy);
  background: var(--ks-gray-50);
  border-left: 4px solid var(--ks-gray-500);
  font-size: 13px;
  font-weight: 800;
}

.gs-ks-map__status-line.is-online { border-left-color: var(--ks-green); }
.gs-ks-map__status-line.is-offline { border-left-color: var(--ks-red); }
.gs-ks-map__status-line.is-warning { border-left-color: var(--ks-yellow); }
.gs-ks-map__status-line.is-info { border-left-color: var(--ks-orange); }

.gs-ks-map__facts {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.gs-ks-map__fact {
  padding: 10px 12px;
  background: var(--ks-gray-50);
  border-left: 3px solid var(--ks-orange);
}

.gs-ks-map__fact span,
.gs-ks-map__fact strong {
  display: block;
}

.gs-ks-map__fact span {
  margin-bottom: 2px;
  color: var(--ks-gray-500);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gs-ks-map__fact strong {
  color: var(--ks-navy);
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
}

.gs-ks-map__subhead {
  margin: 18px 0 8px;
  color: var(--ks-navy);
  font-size: 14px;
  font-weight: 900;
}

.gs-ks-map__mount-list {
  display: grid;
  gap: 7px;
}

.gs-ks-map__mount {
  padding: 10px;
  border: 1px solid var(--ks-gray-200);
  background: var(--ks-white);
}

.gs-ks-map__mount-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.gs-ks-map__mount code {
  color: var(--ks-navy);
  font-size: 12px;
  font-weight: 900;
  word-break: break-all;
}

.gs-ks-map__availability {
  flex: 0 0 auto;
  padding: 3px 6px;
  color: var(--ks-gray-500);
  background: var(--ks-gray-100);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.gs-ks-map__availability.is-available {
  color: #087a4f;
  background: rgba(34, 160, 107, 0.12);
}

.gs-ks-map__availability.is-missing {
  color: #9c2e2e;
  background: rgba(209, 67, 67, 0.1);
}

.gs-ks-map__mount p {
  margin: 7px 0 0;
  color: var(--ks-gray-500);
  font-size: 11px;
  line-height: 1.45;
}

.gs-ks-map__copy-btn,
.gs-ks-map__product-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  padding: 9px 12px;
  font-weight: 900;
}

.gs-ks-map__copy-btn {
  color: var(--ks-white);
  background: var(--ks-navy);
}

.gs-ks-map__copy-btn:hover {
  background: var(--ks-orange);
}

.gs-ks-map__product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ks-white) !important;
  background: var(--ks-orange);
}

.gs-ks-map__product-btn:hover {
  background: var(--ks-navy);
}

.gs-ks-map__mountpoint-directory {
  display: grid;
  gap: 14px;
}

.gs-ks-map__directory-group h4 {
  margin: 0 0 7px;
  color: var(--ks-navy);
  font-size: 14px;
}

.gs-ks-map__directory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.gs-ks-map__directory-tags code {
  padding: 5px 7px;
  color: var(--ks-navy);
  background: var(--ks-gray-100);
  font-size: 10px;
}

.gs-ks-map__station-marker {
  position: relative;
  width: 24px;
  height: 24px;
  border: 3px solid var(--ks-white);
  border-radius: 50%;
  background: var(--ks-gray-500);
  box-shadow: 0 3px 10px rgba(35, 47, 62, 0.38);
}

.gs-ks-map__station-marker::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(109, 120, 133, 0.3);
  border-radius: 50%;
}

.gs-ks-map__station-marker.is-online { background: var(--ks-green); }
.gs-ks-map__station-marker.is-online::after { border-color: rgba(34, 160, 107, 0.32); }
.gs-ks-map__station-marker.is-offline { background: var(--ks-red); }
.gs-ks-map__station-marker.is-offline::after { border-color: rgba(209, 67, 67, 0.32); }
.gs-ks-map__station-marker.is-warning { background: var(--ks-yellow); }
.gs-ks-map__station-marker.is-warning::after { border-color: rgba(229, 161, 0, 0.32); }

.gs-ks-map__msk-marker,
.gs-ks-map__zone-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 3px solid var(--ks-white);
  border-radius: 50%;
  color: var(--ks-white);
  background: #232f3e;
  box-shadow: 0 4px 12px rgba(35, 47, 62, 0.35);
  font-size: 12px;
  font-weight: 900;
}

.gs-ks-map__msk-marker:hover,
.gs-ks-map__zone-marker:hover,
.gs-ks-map__zone-marker.is-selected {
  background: var(--ks-orange);
}

.gs-ks-map__zone-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ks-white);
  background: #232f3e;
  border: 3px solid var(--ks-white);
  box-shadow: 0 4px 12px rgba(35, 47, 62, 0.35);
  font-size: 12px;
  font-weight: 900;
}

.gs-ks-map__toast {
  position: absolute;
  z-index: 1100;
  left: 50%;
  bottom: 20px;
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  color: var(--ks-white);
  background: var(--ks-navy);
  box-shadow: 0 8px 24px rgba(35, 47, 62, 0.24);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gs-ks-map__toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.gs-ks-map-lock {
  overflow: hidden !important;
}

.gs-ks-map.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 0 !important;
  border: 0 !important;
  margin: 0 !important;
}

@media (max-width: 860px) {
  .gs-ks-map {
    height: 72dvh;
    min-height: 520px;
  }

  .gs-ks-map__active-layer {
    display: none;
  }

  .gs-ks-map__network-pill {
    max-width: 150px;
  }

  .gs-ks-map__network-pill span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gs-ks-map__info-sheet {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(54dvh, 520px);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
  }

  .gs-ks-map__sheet-handle {
    display: block;
    width: 46px;
    height: 5px;
    margin: 8px auto -3px;
    border-radius: 99px;
    background: var(--ks-gray-200);
  }

  .gs-ks-map__legend {
    bottom: 48px;
    right: 76px;
    max-width: none;
  }

  .gs-ks-map__bottom-left {
    bottom: 10px;
  }
}

@media (max-width: 620px) {
  .gs-ks-map {
    height: 68dvh;
    min-height: 500px;
  }

  .gs-ks-map__top-left {
    top: 10px;
    left: 10px;
  }

  .gs-ks-map__top-right {
    top: 10px;
    right: 10px;
    gap: 5px;
  }

  .gs-ks-map__network-pill {
    display: none;
  }

  .gs-ks-map__icon-btn {
    width: 40px;
    height: 40px;
    min-height: 40px;
    font-size: 20px;
  }

  .gs-ks-map__control-btn {
    min-width: 78px;
    min-height: 40px;
    padding: 0 11px;
    font-size: 12px;
  }

  .gs-ks-map__floating-panel {
    top: 58px;
    left: 10px;
    width: calc(100% - 20px);
    max-height: calc(100% - 74px);
  }

  .gs-ks-map__layer-buttons {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .gs-ks-map__layer-buttons--stations {
    grid-template-columns: 1fr 1fr;
  }

  .gs-ks-map__layer-buttons button {
    min-height: 39px;
    padding: 7px;
    font-size: 10px;
    text-align: center;
  }

  .gs-ks-map__legend {
    left: 10px;
    right: 70px;
    bottom: 44px;
    max-width: none;
    padding: 8px 9px;
    font-size: 10px;
  }

  .gs-ks-map__legend-row {
    flex-wrap: nowrap;
    gap: 5px 10px;
  }

  .gs-ks-map__legend-item {
    white-space: nowrap;
  }

  .gs-ks-map__bottom-left {
    left: 10px;
  }

  .gs-ks-map__updated {
    min-height: 28px;
    max-width: calc(100vw - 96px);
    padding: 0 8px;
    overflow: visible;
    white-space: nowrap;
    font-size: 9px;
  }

  .gs-ks-map .leaflet-control-zoom a {
    width: 38px;
    height: 38px;
    line-height: 38px;
  }

  .gs-ks-map .leaflet-bottom.leaflet-right {
    bottom: 4px;
  }

  .gs-ks-map__info-head {
    padding: 13px 14px;
  }

  .gs-ks-map__info-head h3 {
    font-size: 19px;
  }

  .gs-ks-map__info-body {
    padding: 14px;
  }
}

@media (max-width: 400px) {
  .gs-ks-map__layer-buttons {
    grid-template-columns: 1fr 1fr;
  }
}
