.map-wrap .map-block #map {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: #e9e4dd !important;
  filter: none !important;
}

.map-wrap .map-block #map::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

.map-wrap .map-block #map::before {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 5px;
  background: #e9e4dd;
  color: #5d4f3c;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

.map-wrap .map-block #map[data-map-state="loading"]::before { content: "Загрузка карты…"; }
.map-wrap .map-block #map[data-map-state="ready"]::before { display: none; content: none; }
.map-wrap .map-block #map[data-map-state="error"]::before { content: "Карта временно недоступна"; }

.eon-map-marker {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #322d28;
  font: inherit;
  cursor: pointer;
  transform: translate(-18px, -50%);
  transform-origin: 18px 50%;
  filter: drop-shadow(0 1px 2px rgba(71, 58, 43, 0.18));
}

.eon-map-marker__icon {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #c89d58;
  border-radius: 50%;
  background: #ecd8b6;
  color: #8b6428;
}

.eon-map-marker__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eon-map-marker__label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 27px;
  margin-left: -4px;
  padding: 3px 11px 3px 9px;
  border: 1px solid rgba(141, 121, 96, 0.2);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 3px rgba(71, 58, 43, 0.12);
  color: #413c37;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.eon-map-marker--project {
  transform: translate(calc(-100% + 35px), -50%);
  transform-origin: calc(100% - 35px) 50%;
  filter: none;
}

.eon-map-marker--project .eon-map-marker__icon {
  z-index: 3;
  order: 2;
  flex-basis: 70px;
  width: 70px;
  height: 70px;
  overflow: hidden;
  border: 1px solid rgba(47, 47, 47, 0.25);
  background: transparent;
  color: transparent;
}

.eon-map-marker--project .eon-map-marker__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}

.eon-map-marker--project .eon-map-marker__label {
  z-index: 2;
  order: 1;
  min-height: 32px;
  margin: 0 -70px 0 0;
  padding: 6px 82px 6px 16px;
  border: 1px solid rgba(47, 47, 47, 0.25);
  border-radius: 16px;
  background: #c59651;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.map-wrap #map .eon-map-marker--text-only {
  filter: none;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.map-wrap #map .eon-map-marker--text-only .eon-map-marker__icon {
  display: none;
}

.map-wrap #map .eon-map-marker--text-only .eon-map-marker__label {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.eon-map-marker__popup {
  position: absolute;
  z-index: 5;
  left: 16px;
  bottom: calc(100% + 9px);
  display: none;
  width: max-content;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid rgba(141, 121, 96, 0.24);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(71, 58, 43, 0.2);
  color: #413c37;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.eon-map-marker__popup strong,
.eon-map-marker__popup span { display: block; }
.eon-map-marker__popup span { margin-top: 4px; color: #766b5f; }
.eon-map-marker.is-open { z-index: 500 !important; }
.eon-map-marker.is-open .eon-map-marker__popup { display: block; }

.eon-map-zoom {
  position: absolute;
  z-index: 2000;
  top: 50%;
  left: 14px;
  display: flex;
  width: 30px;
  padding: 3px 0;
  border: 1px solid rgba(141, 121, 96, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 9px rgba(71, 58, 43, 0.16);
  flex-direction: column;
  align-items: center;
  transform: translateY(-50%);
}

.eon-map-zoom__button {
  display: grid;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #82602c;
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

.eon-map-zoom__button:hover,
.eon-map-zoom__button:focus-visible { background: #f6ead4; }

.eon-map-zoom__range {
  width: 78px;
  height: 16px;
  margin: 31px 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  direction: rtl;
  transform: rotate(-90deg);
}

.eon-map-zoom__range::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: #c7bba9;
}

.eon-map-zoom__range::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  appearance: none;
  border: 1px solid #bd8d43;
  border-radius: 50%;
  background: #edcf91;
  box-shadow: 0 1px 3px rgba(71, 58, 43, 0.2);
}

.eon-map-zoom__range::-moz-range-track {
  height: 2px;
  border: 0;
  border-radius: 2px;
  background: #c7bba9;
}

.eon-map-zoom__range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 1px solid #bd8d43;
  border-radius: 50%;
  background: #edcf91;
  box-shadow: 0 1px 3px rgba(71, 58, 43, 0.2);
}

@media (max-width: 600px) {
  .eon-map-zoom { left: 7px; width: 26px; }
  .eon-map-zoom__button { width: 24px; height: 24px; font-size: 17px; }
  .eon-map-zoom__range { width: 60px; margin: 22px 0; }
  .eon-map-marker { transform: translate(-18px, -50%); transform-origin: 18px 50%; }
  .eon-map-marker__icon { flex-basis: 36px; width: 36px; height: 36px; }
  .eon-map-marker__icon svg { width: 21px; height: 21px; stroke-width: 1.45; }
  .eon-map-marker__label {
    min-height: 27px;
    padding: 3px 9px 3px 8px;
    border-radius: 0 10px 10px 0;
    font-size: 11.25px;
  }
  .eon-map-marker__popup { left: 12px; max-width: 190px; font-size: 9px; }
  .eon-map-marker--project {
    transform: translate(calc(-100% + 35px), -50%);
    transform-origin: calc(100% - 35px) 50%;
  }
  .eon-map-marker--project .eon-map-marker__icon { flex-basis: 70px; width: 70px; height: 70px; }
  .eon-map-marker--project .eon-map-marker__label {
    min-height: 32px;
    margin-right: -70px;
    padding: 6px 80px 6px 14px;
    border-radius: 16px;
    font-size: 12px;
  }
}
