.erm-svg-map-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
  position: relative;
  clear: both;
  box-sizing: border-box;
  background: transparent !important;
  overflow: visible;
  --erm-marker-color: #81D553;
  --erm-button-color: #81D553;
  --erm-map-height: 560px;
}

.erm-svg-map {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 320px;
  display: block !important;
  position: relative;
  box-sizing: border-box;
  background: transparent !important;
  overflow: visible;
  min-height: 320px;
  height: var(--erm-map-height, 560px);
}

.elementor-widget-shortcode,
.elementor-widget-shortcode .elementor-widget-container,
.elementor-widget-shortcode .elementor-shortcode,
.elementor-widget-shortcode .erm-svg-map-wrap,
.elementor-widget-shortcode .erm-svg-map {
  width: 100% !important;
  max-width: 100% !important;
}

.erm-svg-map svg,
.erm-sk-map {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
}

.erm-sk-map {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
}

.erm-sk-map .erm-sk-region {
  fill: var(--erm-region-fill, #f3f7f2) !important;
  stroke: var(--erm-region-stroke, #d4dfd0) !important;
  stroke-width: 1;
  stroke-linejoin: round;
  transition: fill .2s ease, filter .2s ease;
}

.erm-sk-map .erm-sk-region:hover {
  fill: var(--erm-region-hover, #e6f8df) !important;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.12));
}

.erm-svg-marker-layer,
.erm-svg-popup-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.erm-svg-marker-layer {
  z-index: 20;
}

.erm-svg-popup-layer {
  z-index: 99999;
}

.erm-svg-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  width: 34px;
  height: 44px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  cursor: pointer;
  pointer-events: auto;
  z-index: 30;
  appearance: none;
  -webkit-appearance: none;
}

.erm-svg-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  background: var(--erm-marker-color, #81D553);
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.erm-svg-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.erm-svg-marker:hover::before,
.erm-svg-marker:focus-visible::before {
  transform: translate(-50%, -50%) rotate(-45deg) scale(1.08);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.34);
}

.erm-svg-marker:focus-visible {
  outline: 3px solid rgba(15, 23, 42, 0.42);
  outline-offset: 4px;
  border-radius: 999px;
}

.erm-svg-popup {
  position: absolute;
  pointer-events: auto;
  width: min(380px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
  overflow: visible !important;
  z-index: 100000;
}

.erm-svg-popup-card {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  background: #fff;
  border-radius: 22px;
}

.erm-svg-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  color: #0f172a !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 32px;
  font-weight: 800;
  cursor: pointer;
  z-index: 100001;
  padding: 0 !important;
  text-shadow: 0 1px 6px rgba(255, 255, 255, .9);
}

.erm-svg-popup-close:hover,
.erm-svg-popup-close:focus-visible {
  background: rgba(255, 255, 255, .72) !important;
  color: #000 !important;
  outline: none;
}

.erm-svg-popup-card img,
.erm-svg-popup-image,
.erm-popup-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
}

.erm-svg-popup-content {
  padding: 22px 24px 24px;
}

.erm-svg-popup-content h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.erm-svg-popup-location {
  margin: 0 0 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

.erm-svg-popup-description {
  margin: 0 0 14px;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.erm-svg-popup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--erm-button-color);
  color: #0f172a !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(129, 213, 83, 0.28);
}

.erm-svg-empty {
  position: absolute;
  left: 50%;
  top: 22px;
  z-index: 10;
  width: min(520px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #1f2937;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  pointer-events: auto;
  transform: translateX(-50%);
}

@media (max-width: 1024px) {
  .erm-svg-map {
    height: 420px !important;
    min-height: 420px !important;
  }
}

@media (max-width: 767px) {
  .erm-svg-map {
    min-width: 0;
    height: 320px !important;
    min-height: 320px !important;
  }

  .erm-svg-popup-layer {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .18);
    pointer-events: auto;
  }

  .erm-svg-popup-layer.is-open {
    display: flex;
  }

  .erm-svg-popup {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: min(430px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 32px);
    overflow: auto !important;
    border-radius: 20px;
  }

  .erm-svg-popup-card {
    max-height: none;
  }

  .erm-svg-popup-card img,
  .erm-svg-popup-image,
  .erm-popup-image {
    max-height: 190px;
  }

  .erm-svg-popup-content {
    padding: 18px;
  }

  body.erm-popup-open {
    overflow: hidden;
  }
}
