.map-snapshot {
  position: relative;
  height: clamp(480px, 42vw, 680px);
  min-height: 480px;
  overflow: hidden;
  border: 1px solid #d8d2ca;
  border-radius: 20px;
  background: #e6e8e4;
  isolation: isolate;
}

.map-snapshot__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-snapshot__stage.is-dragging {
  cursor: grabbing;
}

.map-snapshot__stage img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1.12);
  transform-origin: center;
  will-change: transform;
}

.map-snapshot::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 22%;
  background: linear-gradient(transparent, rgba(28, 27, 29, 0.48));
  pointer-events: none;
}

.map-snapshot__controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(37, 36, 38, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(36, 31, 35, 0.14);
  backdrop-filter: blur(8px);
}

.map-snapshot__controls button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #dedad5;
  background: transparent;
  color: #252426;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.map-snapshot__controls button:last-child {
  border-bottom: 0;
  font-size: 14px;
}

.map-snapshot__controls button:hover,
.map-snapshot__controls button:focus-visible {
  background: #ff4f78;
  color: #fff;
}

.map-snapshot__controls button:focus-visible {
  outline: 2px solid #252426;
  outline-offset: -3px;
}

.map-snapshot__hint,
.map-snapshot__caption {
  position: absolute;
  z-index: 2;
  color: #fff;
  pointer-events: none;
}

.map-snapshot__hint {
  top: 16px;
  left: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(37, 36, 38, 0.76);
  font-size: 11px;
  backdrop-filter: blur(6px);
}

.map-snapshot__caption {
  right: 22px;
  bottom: 19px;
  left: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.map-snapshot__caption strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.map-snapshot__caption span,
.map-snapshot__caption small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.55;
}

.map-snapshot__caption small {
  max-width: 210px;
  text-align: right;
}

@media (max-width: 700px) {
  .map-snapshot {
    height: 360px;
    min-height: 360px;
  }

  .map-snapshot__hint {
    max-width: 180px;
  }

  .map-snapshot__caption {
    right: 18px;
    bottom: 16px;
    left: 18px;
    display: block;
  }

  .map-snapshot__caption small {
    display: block;
    margin-top: 5px;
    max-width: none;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-snapshot__stage img {
    will-change: auto;
  }
}
