/* Region map home block override. Keeps Geo map data and platform JS intact. */
.g24-region-map {
  --g24-region-blue: #2563eb;
  --g24-region-blue-dark: #1d4ed8;
  --g24-region-ink: #0f1f3d;
  --g24-region-muted: #71809a;
  --g24-region-soft: #f6f9fe;
  --g24-region-border: rgba(15, 31, 61, 0.1);
  --g24-region-shadow: 0 22px 60px rgba(15, 31, 61, 0.12);
  background:
    linear-gradient(180deg, rgba(246, 249, 254, 0.78) 0%, rgba(255, 255, 255, 0.96) 72%),
    var(--body-bg-color);
  padding: 36px 0 46px;
}

.g24-region-map__panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--g24-region-border);
  border-radius: 8px;
  box-shadow: var(--g24-region-shadow);
  overflow: hidden;
  padding: 30px;
  position: relative;
}

.g24-region-map__panel::before,
.g24-region-map__panel::after {
  background-image: radial-gradient(rgba(37, 99, 235, 0.16) 1.3px, transparent 1.3px);
  background-size: 12px 12px;
  content: "";
  height: 120px;
  pointer-events: none;
  position: absolute;
  width: 180px;
  z-index: 0;
}

.g24-region-map__panel::before {
  bottom: 96px;
  left: 15%;
}

.g24-region-map__panel::after {
  right: 45%;
  top: 45%;
}

.g24-region-map__head {
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.g24-region-map .in-box-title {
  align-items: center;
  color: var(--g24-region-ink);
  display: flex;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.18;
  margin: 0;
}

.g24-region-map .in-box-title .ico {
  color: var(--g24-region-blue);
  fill: var(--g24-region-blue);
  height: 22px;
  margin-right: 10px;
  max-width: 22px;
  width: 22px;
}

.g24-region-map__body {
  align-items: flex-start;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  position: relative;
  z-index: 1;
}

.g24-region-map__map {
  background: transparent;
  justify-self: center;
  max-width: 620px;
  min-width: min(100%, 360px);
}

.g24-region-map__map_full {
  margin: 0 auto;
}

.g24-region-map__map svg {
  display: block;
  filter: drop-shadow(0 18px 24px rgba(15, 31, 61, 0.16));
  height: auto;
  margin: 0 auto;
  max-height: 520px;
  max-width: 100%;
}

.g24-region-map .j-geo-region-map-block {
  background:
    radial-gradient(circle at 48% 52%, rgba(37, 99, 235, 0.1), transparent 26%),
    transparent;
}

.g24-region-map .index-map__region,
.g24-region-map .index-map__region path {
  cursor: pointer;
  fill: #dfe7f3 !important;
  stroke: #ffffff !important;
  stroke-linejoin: round;
  transition: fill 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.g24-region-map .index-map__region:hover,
.g24-region-map .index-map__region:hover path {
  fill: var(--g24-region-blue) !important;
  filter: drop-shadow(0 8px 12px rgba(37, 99, 235, 0.28));
}

.g24-region-map .index-map__city,
.g24-region-map .index-map__city path,
.g24-region-map .index-map__city circle {
  cursor: pointer;
  fill: var(--g24-region-blue) !important;
  stroke: #ffffff !important;
  transition: fill 0.18s ease, filter 0.18s ease;
}

.g24-region-map .index-map__city:hover,
.g24-region-map .index-map__city:hover path,
.g24-region-map .index-map__city:hover circle {
  fill: var(--g24-region-blue-dark) !important;
  filter: drop-shadow(0 6px 10px rgba(37, 99, 235, 0.32));
}

.g24-region-map .g24-region-map__svg-active,
.g24-region-map .g24-region-map__svg-active path,
.g24-region-map .g24-region-map__svg-active circle {
  fill: var(--g24-region-blue) !important;
  filter: drop-shadow(0 8px 14px rgba(37, 99, 235, 0.34));
  stroke: #ffffff !important;
  stroke-width: 3px !important;
}

.g24-region-map__cities-panel {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.g24-home-map-search {
  background: transparent;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  margin: 0;
  min-width: 0;
  position: relative;
  width: 100%;
  z-index: 3;
}

.g24-home-map-search::before {
  color: var(--g24-region-muted);
  content: "\f002";
  font-family: "Font Awesome 5 Free";
  font-size: 13px;
  font-weight: 900;
  left: 14px;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  top: 17px;
}

.g24-home-map-search__input {
  background: #fff;
  border: 1px solid var(--g24-region-border);
  border-radius: 8px;
  color: var(--g24-region-ink);
  flex: 1 1 auto;
  font-size: 14px;
  height: 46px;
  min-width: 0;
  outline: none;
  padding: 0 42px 0 38px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.g24-home-map-search__input:focus {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.g24-home-map-search__input::-webkit-search-cancel-button {
  appearance: none;
}

.g24-home-map-search__clear {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--g24-region-muted);
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 46px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 8px;
  top: 0;
  width: 34px;
}

.g24-home-map-search__clear:hover,
.g24-home-map-search__clear:focus {
  color: var(--g24-region-blue);
  outline: none;
}

.g24-home-map-search__empty {
  background: var(--g24-region-soft);
  border: 1px dashed var(--g24-region-border);
  border-radius: 8px;
  color: var(--g24-region-muted);
  font-size: 14px;
  margin-top: 10px;
  padding: 14px;
  text-align: center;
}

.g24-home-map-search__clear[hidden],
.g24-home-map-search__empty[hidden] {
  display: none !important;
}

.g24-region-map__city.is-hidden {
  display: none;
}

.g24-region-map__cities {
  max-height: 470px;
  overflow-y: auto;
  padding: 2px 6px 2px 0;
  scrollbar-gutter: stable;
}

.g24-region-map__cities::-webkit-scrollbar {
  width: 6px;
}

.g24-region-map__cities::-webkit-scrollbar-track {
  background: rgba(223, 231, 243, 0.65);
  border-radius: 999px;
}

.g24-region-map__cities::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.42);
  border-radius: 999px;
}

.g24-region-map__cities::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.62);
}

.g24-region-map__cities-list {
  display: grid;
  gap: 10px;
}

.g24-region-map__city-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--g24-region-border);
  border-radius: 8px;
  color: var(--g24-region-ink);
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  min-height: 62px;
  padding: 10px 14px;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  width: 100%;
}

.g24-region-map__city-link:hover,
.g24-region-map__city-link:focus {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 10px 24px rgba(15, 31, 61, 0.08);
  color: var(--g24-region-ink);
  text-decoration: none;
  transform: translateY(-1px);
}

.g24-region-map__city.is-active .g24-region-map__city-link {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.g24-region-map__city-pin {
  align-items: center;
  background: #eef3fb;
  border-radius: 50%;
  color: #7b889d;
  display: flex;
  font-size: 17px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.g24-region-map__city.is-active .g24-region-map__city-pin {
  background: rgba(37, 99, 235, 0.12);
  color: var(--g24-region-blue);
}

.g24-region-map__city-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.g24-region-map__city-title {
  color: var(--g24-region-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.g24-region-map__city-count {
  color: var(--g24-region-muted);
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.g24-region-map__city-arrow {
  color: var(--g24-region-blue);
  font-size: 28px;
  line-height: 1;
  text-align: right;
}

.g24-region-map .in-map-nomap {
  background: var(--g24-region-soft);
  border: 1px dashed var(--g24-region-border);
  border-radius: 8px;
  color: var(--g24-region-muted);
  padding: 24px;
  position: relative;
  z-index: 1;
}

.g24-region-map__info {
  background: #0f1f3d;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 31, 61, 0.22);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.45;
  max-width: 240px;
  pointer-events: none;
  position: absolute;
  z-index: 10020;
}

.g24-region-map__info > div {
  padding: 8px 12px;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .g24-region-map {
    padding: 28px 0 36px;
  }

  .g24-region-map__panel {
    padding: 24px;
  }

  .g24-region-map__body {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .g24-region-map__map {
    min-width: 0;
    width: 100% !important;
  }

  .g24-region-map__cities {
    max-height: 390px;
  }
}

@media (min-width: 1200px) {
  .g24-region-map__body {
    grid-template-columns: minmax(0, 1fr) minmax(440px, 0.95fr);
  }

  .g24-region-map__cities-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .g24-region-map {
    padding: 22px 0 28px;
  }

  .g24-region-map__panel {
    padding: 18px;
  }

  .g24-region-map__panel::before,
  .g24-region-map__panel::after {
    opacity: 0.55;
  }

  .g24-region-map__head {
    margin-bottom: 16px;
  }

  .g24-region-map .in-box-title {
    font-size: 22px;
  }

  .g24-region-map__city-link {
    grid-template-columns: 36px minmax(0, 1fr) 14px;
    min-height: 58px;
    padding: 9px 12px;
  }

  .g24-region-map__cities {
    max-height: 330px;
    padding-right: 4px;
  }

  .g24-region-map__city-pin {
    font-size: 15px;
    height: 36px;
    width: 36px;
  }
}
