:root {
  --zs-bg: #eef2f6;
  --zs-panel: #ffffff;
  --zs-border: #d9e0ea;
  --zs-text: #183247;
  --zs-muted: #5c7285;
  --zs-red: #b5152f;
  --zs-red-deep: #bf1f22;
  --zs-shadow: 0 20px 48px rgba(13, 36, 56, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

button,
select {
  font: inherit;
}

a {
  color: inherit;
}

.zs-map-page {
  min-height: 90vh;
  margin:60px auto 0;
  padding:0;
}

.zs-map-module {
  width: min(1400px, 100%);
  margin: 0 auto;
}

.zs-map-header {
  margin-bottom: 24px;
}

.zs-map-header .xbt{
  color:#b5152f;
  line-height:30px;
}

.zs-map-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zs-red);
}

.zs-map-title {
  margin-top: 20px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  color:#000;
}

.zs-map-desc {
  margin: 12px 0 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--zs-muted);
}

.zs-map-toolbar {
  display: flex;
  align-items: normal;
  justify-content: end;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.zs-map-select-wrap {
  min-width: 200px;
  position: relative;
}

.zs-map-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--zs-muted);
}

.zs-map-select {
  width: 100%;
  min-height: 48px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--zs-border);
  background: #fff;
  font-size:16px;
  color: #000;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.zs-map-select:focus {
  outline: none;
  border-color: var(--zs-red);
}

.zs-map-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.zs-map-select-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #b5152f;
}

.zs-map-select-wrap.is-open .zs-map-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.zs-map-tabs {
  display: none;
  gap: 10px;
  flex-wrap: wrap;
}

.zs-map-tab {
  min-width: 88px;
  min-height: 46px;
  padding: 0 18px;
  font-size:16px;
  border: 1px solid var(--zs-border);
  background: #fff;
  color: var(--zs-text);
  cursor: pointer;
  transition: 0.2s ease;
}

.zs-map-tab:hover,
.zs-map-tab:focus-visible {
  border-color: var(--zs-red);
  color: var(--zs-red);
}

.zs-map-tab.is-active {
  border-color: var(--zs-red);
  background: var(--zs-red);
  color: #fff;
}

.zs-map-stage {
 width: 100%;
}

.zs-map-note {
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--zs-muted);
  display:none;
}

.zs-map-viewport {
  position: relative;
}

.zs-map-canvas {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  min-height: 320px;
}

.zs-map-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.06));
  opacity:0.08;
}

.zs-map-markers {
  position: absolute;
  inset: 0;
}

.zs-map-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.zs-map-marker::before,
.zs-map-marker::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.zs-map-marker::before {
  background: var(--zs-red);
  box-shadow: 0 0 0 10px rgba(222, 47, 50, 0.12);
  animation: zsPulse 1.8s infinite;
}

.zs-map-marker--headquarter::before {
  background: #fff;
  border: 4px solid var(--zs-red);
  box-shadow: 0 0 0 10px rgba(222, 47, 50, 0.08);
}

.zs-map-marker--headquarter::after {
  inset: 5px;
  background: var(--zs-red);
}

.zs-map-marker--cluster::before {
  background: var(--zs-red);
  border: 3px solid #fff;
  box-shadow: 0 0 0 12px rgba(222, 47, 50, 0.14);
}

.zs-map-marker:hover,
.zs-map-marker:focus-visible {
  z-index: 2;
  transform: scale(1.06);
}

.zs-map-marker__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 6px 10px;
  white-space: nowrap;
  font-size: 12px;
  color: #fff;
  background: rgba(11,42,109,0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.zs-map-marker:hover .zs-map-marker__label,
.zs-map-marker:focus-visible .zs-map-marker__label {
  opacity: 1;
}

.zs-map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 4;
}

.zs-map-overlay[hidden] {
  display: none;
}

.zs-map-overlay:not([hidden]):not(.is-closing) {
  animation: zsOverlayFadeIn 0.28s ease both;
}

.zs-map-overlay__panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: #ffffff;
  transform-origin: center center;
}

.zs-map-overlay:not([hidden]):not(.is-closing) .zs-map-overlay__panel {
  animation: zsOverlayZoomIn 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.zs-map-overlay.is-closing {
  pointer-events: none;
  animation: zsOverlayFadeOut 0.24s ease both;
}

.zs-map-overlay.is-closing .zs-map-overlay__panel {
  animation: zsOverlayZoomOut 0.24s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.zs-map-overlay__map {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px dashed #e9e9e9;
}

.zs-map-overlay__image {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  opacity: 0.08;
}

.zs-map-overlay__close {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  background: var(--zs-red);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  cursor: pointer;
}

.zs-map-overlay__close span {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.zs-map-overlay__close:hover,
.zs-map-overlay__close:focus-visible {
  background: var(--zs-red-deep);
}

.zs-map-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  color: var(--zs-muted);
  font-size: 14px;
}

.zs-map-legend li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.zs-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  background: var(--zs-red);
}

.zs-dot--headquarter {
  background: #fff;
  border: 5px solid var(--zs-red);
}

.zs-dot--headquarter::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--zs-red);
}

.zs-dot--cluster {
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(222, 47, 50, 0.2);
}

.zs-map-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.zs-map-modal.is-open {
  display: flex;
}

.zs-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 36, 0.48);
}

.zs-map-modal__dialog {
  position: relative;
  width: min(980px, calc(100% - 32px));
  margin: 0;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--zs-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.zs-map-modal__dialog[hidden] {
  display: none;
}

.zs-map-modal__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: stretch;
}

.zs-map-modal__dialog--text-only .zs-map-modal__content {
  grid-template-columns: minmax(0, 1fr);
}

.zs-map-modal__main {
  min-width: 0;
}

.zs-map-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--zs-red);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.zs-map-modal__type {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zs-red);
}

.zs-map-modal__title {
  margin: 0 0 18px;
  padding-right: 44px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.zs-map-modal__address {
  line-height: 1.8;
  color: var(--zs-text);
}

.zs-map-modal__contact {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.zs-map-modal__contact a {
  text-decoration: none;
  color: var(--zs-muted);
  word-break: break-all;
}

.zs-map-modal__contact a:hover,
.zs-map-modal__contact a:focus-visible {
  color: var(--zs-red);
}

.zs-map-modal__media {
  min-width: 0;
}

.zs-map-modal__image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

@keyframes zsPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(222, 47, 50, 0.22);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(222, 47, 50, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(222, 47, 50, 0);
  }
}

@keyframes zsOverlayFadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes zsOverlayFadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes zsOverlayZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zsOverlayZoomOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.92);
  }
}

@media (max-width: 767px) {
  .zs-map-page {
    padding:0;
    margin:0;
  }

  .zs-map-module {
    padding:0;
    border-left: 0;
    border-right: 0;
  }
    
  .zs-map-header{
      margin-bottom:14px;
  }
  
  .zs-map-stage {
    padding: 0;
  }

  .zs-map-tabs {
    width: 100%;
  }

  .zs-map-tab {
    flex: 1 1 calc(50% - 5px);
  }

  .zs-map-overlay__panel {
    padding: 0;
  }

  .zs-map-overlay__close {
    width: 60px;
    height: 60px;
  }

  .zs-map-legend {
    gap: 14px 18px;
    font-size: 13px;
  }

  .zs-map-modal__dialog {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 22px 16px 18px;
    border-left: 0;
    border-right: 0;
  }

  .zs-map-modal__content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .zs-map-modal__image {
    min-height: 200px;
  }
}
