.map-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.map-container .header-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.map-container .section-title {
  margin-bottom: 0 !important;
}

.map-container .section-title__header {
  text-wrap: balance;
}

.map-container .map-image {
  position: relative;
  z-index: 1;
}

/* With link_url, the map box is a link. */
.map-container a.map-image {
  display: block;
}

.map-container .map-image::before {
  content: '';
  position: absolute;
  height: 4rem;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background-image: var(--map-mobile-list);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top center;
  z-index: 2;
}

.map-container .map-image::after {
  content: '';
  position: absolute;
  height: 18.375rem;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background-image: var(--map-mobile-report);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom center;
  z-index: 2;
}

.map-container .map-image img {
  width: 100%;
  height: 50rem;
  border-radius: 2.5rem;
  object-fit: cover;
}

@media (min-width: 768px) {
  .map-container .map-image::before {
    height: 25.75rem;
    background-image: var(--map-desktop-list);
    background-position: top right;
  }

  .map-container .map-image::after {
    height: 15.125rem;
    background-image: var(--map-desktop-report);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom left;
  }
}

@media (min-width: 1080px) {
  .map-container .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .map-container .left {
    max-width: 37.5rem;
  }

  .map-container .right {
    max-width: 35.625rem;
    font-size: 1.125rem;
  }

  .map-container .map-image::before {
    top: 3.125rem;
    left: 3.125rem;
    right: 3.125rem;
  }

  .map-container .map-image::after {
    bottom: 3.125rem;
    left: 3.125rem;
    right: 3.125rem;
  }
}
