body.home-relocation-popup-open {
  overflow: hidden;
}

.home-relocation-popup {
  width: min(940px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background: #252525;
  box-shadow: 0 28px 80px rgba(0, 18, 38, 0.42);
}

.home-relocation-popup::backdrop {
  background: rgba(0, 16, 34, 0.78);
  backdrop-filter: blur(4px);
}

.home-relocation-popup__content {
  display: grid;
  gap: 0;
}

.home-relocation-popup__visual {
  position: relative;
}

.home-relocation-popup__image {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}

.home-relocation-popup__map-link {
  position: absolute;
  right: 6.5%;
  bottom: 6%;
  width: 24%;
  height: 33%;
  border-radius: 4px;
  cursor: pointer;
  touch-action: manipulation;
}

.home-relocation-popup__map-link:focus-visible {
  outline: 4px solid #e10f2f;
  outline-offset: 3px;
}

.home-relocation-popup__confirm {
  min-height: 58px;
  padding: 14px 28px;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: #004775;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.home-relocation-popup__confirm:hover {
  background: #005d91;
}

.home-relocation-popup__confirm:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -7px;
  box-shadow: inset 0 0 0 2px #e10f2f;
}

@media (max-width: 640px) {
  .home-relocation-popup {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 12px;
  }

  .home-relocation-popup__confirm {
    min-height: 54px;
    padding: 12px 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-relocation-popup[open] {
    animation: home-relocation-popup-in 220ms ease-out;
  }

  @keyframes home-relocation-popup-in {
    from {
      opacity: 0;
      transform: translateY(12px) scale(0.985);
    }
  }
}
