.map-card {
  position: relative;
  height: var(--lead-height);
  min-height: 0;
  overflow: hidden;
  border: 1px solid #91afb0;
  border-radius: var(--media-radius);
  background: linear-gradient(145deg, #4d8190 0%, #86adb0 48%, #b6cfd0 100%);
  box-shadow: inset 0 0 80px rgba(7, 42, 55, .12);
}

.map-head {
  position: absolute;
  z-index: 4;
  left: 20px;
  top: 18px;
}

.map-title {
  position: relative;
  padding: 11px 15px 12px;
  color: #fff;
  background: rgba(16, 47, 85, .96);
  box-shadow: 0 12px 28px rgba(7, 31, 45, .22);
  backdrop-filter: blur(8px);
}

.map-title::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.map-title strong {
  display: block;
  color: #fff;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
}

.map-title a {
  display: inline-block;
  margin-top: 5px;
  color: #f0d27b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.map-title a:hover,
.map-title a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.map-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #9fc1c8;
}

.home-map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-map-place {
  position: absolute;
  z-index: 3;
  left: var(--x);
  top: var(--y);
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .92), 0 0 0 9px rgba(16, 47, 85, .15);
  transition: background .18s ease, box-shadow .18s ease;
}

.home-map-place span {
  position: absolute;
  left: 20px;
  top: 50%;
  padding: 3px 6px;
  transform: translateY(-50%);
  background: rgba(251, 250, 247, .94);
  color: #171b1d;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(16, 47, 85, .08);
}

.home-map-place.place-left span {
  right: 20px;
  left: auto;
}

.home-map-labels-managed .home-map-place span {
  right: auto;
  left: var(--home-label-left);
  top: var(--home-label-top);
  transform: none;
}

.home-map-place span[hidden] {
  display: none;
}

.home-map-place:hover,
.home-map-place:focus-visible {
  background: var(--wine);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .96), 0 0 0 11px rgba(143, 31, 44, .24);
  outline: none;
}

.home-map-place:hover span,
.home-map-place:focus-visible span {
  color: var(--wine);
}

.map-stage:not(.has-google-map) .home-map-place {
  left: var(--x);
  top: var(--y);
}

@media (max-width: 760px) {
  .map-card {
    order: -1;
    display: grid;
    grid-template-rows: auto clamp(420px, 110vw, 470px);
    height: auto;
    min-height: 0;
  }

  .map-head {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
  }

  .map-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 11px 13px;
    box-shadow: none;
    backdrop-filter: none;
  }

  .map-title strong {
    font-size: 22px;
    line-height: 1;
  }

  .map-title a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0;
  }

  .map-stage {
    position: relative;
    inset: auto;
    height: 100%;
  }

  .home-map-place::before {
    content: "";
    position: absolute;
    inset: -4px;
  }

  .home-map-place span {
    display: flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 5px;
    background: rgba(255, 255, 255, .97);
    font-size: 12px;
    line-height: 1.2;
  }

  .map-stage .national-map-inset {
    top: 10px;
    bottom: auto;
    width: 92px;
  }

  .map-stage .national-map-inset strong {
    left: 4px;
    bottom: 4px;
    padding: 3px 5px;
    background: rgba(255, 255, 255, .97);
    font-size: 10px;
  }
}

@media (min-width: 481px) and (max-width: 760px) {
  .map-card {
    grid-template-rows: auto clamp(470px, 70vw, 520px);
  }
}
