.location-map {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(400px, 50svh, 700px);
  overflow: hidden;
  scroll-margin-top: 88px;
  background: #163c36;
}
.location-map-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 36%;
}
.location-map-card {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  bottom: 24px;
  width: min(310px, calc(100% - 48px));
  padding: 21px 26px;
  border: 1px solid #b5d9c93d;
  border-radius: 22px;
  color: #f3f7f0;
  background: #142f29;
  box-shadow: 0 12px 40px #08241d66;
}
.location-map .location-map-card #location-map-heading {
  margin: 0 0 6px;
  color: #f3f7f0;
  font: 600 clamp(22px, 2.1vw, 28px)/1.15 Manrope, sans-serif;
  letter-spacing: -.04em;
}
.location-map-card p, .location-map-card address {
  margin: 0 0 11px;
  color: #cedfd4;
  font: normal 14px/1.5 "DM Sans", sans-serif;
}
.location-map-link {
  display: inline-block;
  color: #a6e6c9;
  font: 650 14px/1.5 Manrope, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.location-map-link svg { display: inline-block; vertical-align: -.14em; }
.location-map-link:hover { color: #e3fff2; }
.location-map-attribution {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 5px 8px;
  color: #edf7f0;
  background: #10362ef5;
  font: 11px/1.3 Arial, sans-serif;
  text-decoration: none;
}
.location-map-attribution a { color: inherit; text-decoration: underline; }
.location-map a:focus-visible { outline: 2px solid #a6e6c9; outline-offset: 2px; }
@media (max-width: 650px) {
  .location-map { height: clamp(450px, 60svh, 530px); }
  .location-map-art { object-position: 56% 48%; }
  .location-map-card { left: 14px; bottom: 31px; width: min(310px, calc(100% - 28px)); border-radius: 18px; padding: 15px 18px; }
  .location-map-card p, .location-map-card address { margin-bottom: 7px; }
}

.map-viewport { position: absolute; inset: 0; overflow: hidden; }
.map-viewport[data-ready] { cursor: grab; }
.map-viewport[data-dragging] { cursor: grabbing; }
.map-viewport:focus-visible { outline: 3px solid #a6e6c9; outline-offset: -4px; }
.map-viewport[data-ready] .location-map-art {
  inset: auto;
  top: 0;
  left: 0;
  object-fit: fill;
  max-width: none;
  max-height: none;
  transform-origin: top left;
  user-select: none;
  pointer-events: none;
}
.map-controls {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: clamp(14px, 2vw, 32px);
  display: flex;
  gap: 6px;
}
.map-controls button {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1px solid #82aa9866;
  border-radius: 24px;
  color: #e4f6ed;
  background: #142f29;
  box-shadow: 0 2px 12px #08241d45;
  font: 500 22px/1 Manrope, sans-serif;
  cursor: pointer;
}
.map-controls button:hover { background: #235144; }
.map-controls button:focus-visible { outline: 2px solid #c0f8dc; outline-offset: 2px; }
.map-controls button:disabled { color: #95ada1; cursor: default; }
.map-controls button[hidden], .location-map [hidden] { display: none; }
.map-region { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.location-map[data-area-view] .location-map-card { padding: 12px 18px; width: min(310px, calc(100% - 28px)); }
.location-map[data-area-view] .location-map-card address { display: none; }
.location-map[data-area-view] .location-map-card p { margin: 0 0 3px; }
.location-map[data-area-view] .location-map-card #location-map-heading { font-size: 18px; margin-bottom: 2px; }

@media (min-width: 651px) {
  body:has(.page-navigator) .map-controls { right: max(76px, 5vw); }
}
.map-zoom-hint {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 7px 12px;
  border-radius: 16px;
  color: #edf6ee;
  background: #153b32ed;
  font: 500 12px/1.4 "DM Sans", sans-serif;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
@media (hover: hover) and (min-width: 651px) {
  .map-viewport:hover ~ .map-zoom-hint { opacity: 1; transition-delay: .65s; }
}
.map-viewport:focus-visible ~ .map-zoom-hint { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .map-zoom-hint { transition: none; } }
