/* Inclusive place markers + region zoom on homepage Uzbekistan SVG map */

.map-test {
  position: relative;
  overflow: hidden;
}

.map-test.inc-map-ready svg {
  transition: none;
  width: 100%;
  height: auto;
  display: block;
}

.map-test .inc-markers {
  pointer-events: auto;
}

.map-test .inc-marker {
  cursor: pointer;
}

.map-test .inc-marker__dot {
  stroke: #ffffff;
  stroke-width: 70px;
  filter: drop-shadow(0 40px 60px rgba(16, 33, 60, 0.35));
  transition: filter 0.15s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.map-test .inc-marker__shadow {
  fill: rgba(16, 33, 60, 0.18);
  pointer-events: none;
}

.map-test .inc-marker__count {
  fill: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.12);
  stroke-width: 20px;
}

.map-test .inc-marker:hover .inc-marker__dot,
.map-test .inc-marker:focus .inc-marker__dot {
  filter: drop-shadow(0 50px 80px rgba(16, 33, 60, 0.45));
}

.map-test a.inc-marker:hover,
.map-test a.inc-marker:focus {
  fill: none !important;
  stroke: none !important;
}

.map-test a.inc-marker:hover .inc-marker__dot,
.map-test a.inc-marker:focus .inc-marker__dot {
  stroke: #ffffff !important;
  stroke-width: 70px !important;
}

.map-test a.inc-marker--cluster:hover .inc-marker__dot,
.map-test a.inc-marker--cluster:focus .inc-marker__dot {
  fill: #3367d6 !important;
}

/* Region zoom states */
.map-test a[id^="path"] {
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.map-test a.inc-region--dim {
  opacity: 0.28;
  filter: grayscale(0.25);
  pointer-events: none;
}

.map-test a.inc-region--active {
  opacity: 1;
  filter: none;
}

.map-test a.inc-region--active:hover polygon,
.map-test a.inc-region--active:hover path,
.map-test.is-zoomed a.inc-region--active:hover polygon,
.map-test.is-zoomed a.inc-region--active:hover path {
  fill: inherit;
  stroke: #145a01;
  stroke-width: 55px;
}

.map-test.is-zoomed a.inc-region--dim:hover,
.map-test.is-zoomed a.inc-region--dim:hover polygon,
.map-test.is-zoomed a.inc-region--dim:hover path {
  fill: inherit !important;
  stroke: none !important;
}

.inc-map-reset {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 7;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: #1f2a37;
  font: 600 13px/1.2 Arial, Helvetica, sans-serif;
  box-shadow: 0 8px 22px rgba(16, 33, 60, 0.18);
  cursor: pointer;
}

.inc-map-reset:hover {
  background: #f3f6fb;
}

.inc-map-reset[hidden] {
  display: none !important;
}

.inc-map-popups {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.inc-map-popups.is-open {
  pointer-events: auto;
}

.inc-map-popup {
  position: absolute;
  width: min(260px, 78vw);
  background: #fff;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 33, 60, 0.18);
  padding: 8px 8px 8px;
  z-index: 6;
}

.inc-map-popup--full {
  width: min(300px, 84vw);
  max-height: min(420px, 70vh);
  display: flex;
  flex-direction: column;
  padding-top: 10px;
}

.inc-map-popup__title {
  margin: 0 28px 8px 6px;
  font: 700 14px/1.3 Arial, Helvetica, sans-serif;
  color: #1f2a37;
}

.inc-map-popup__title span {
  font-weight: 600;
  color: #66758a;
}

.inc-map-popup__list {
  overflow: auto;
  max-height: min(360px, 60vh);
  padding-right: 2px;
}

.inc-map-popup--full .inc-map-popup__list {
  flex: 1 1 auto;
}

.inc-map-popup__close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #66758a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.inc-map-popup__close:hover {
  background: #f3f6fb;
  color: #1f2a37;
}

.inc-map-popup__item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 28px 7px 6px;
  text-decoration: none !important;
  color: #1f2a37 !important;
  border-radius: 6px;
}

.inc-map-popup__item:hover {
  background: #f3f6fb;
}

.inc-map-popup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.2);
}

.inc-map-popup__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.inc-map-popup__text strong {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.inc-map-popup__text em {
  font-style: normal;
  font-size: 12px;
  color: #66758a;
}

.inc-map-popup__more {
  display: block;
  margin-top: 4px;
  padding: 8px 6px 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #1a73e8 !important;
  text-decoration: none !important;
  border-top: 1px solid #eef2f6;
}

@media (max-width: 640px) {
  .inc-map-reset {
    top: 8px;
    right: 8px;
    padding: 7px 12px;
    font-size: 12px;
  }
}
