.location-map {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--pomm-border);
  border-radius: 10px;
  background: #fff;
}

.location-map-viewport {
  position: relative;
  height: 340px;
  overflow: hidden;
  isolation: isolate;
  background: #edf0e9;
}

.location-map .location-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.location-map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 72px 28px 40px;
  background: #edf0e9;
  text-align: center;
  color: var(--pomm-ink);
}

.location-map-fallback-area {
  width: 80px;
  height: 80px;
  margin-bottom: 6px;
  border: 1px solid #7d9a83;
  border-radius: 50%;
  background: #d7e2d5;
}

.location-map-fallback p {
  max-width: 32ch;
  margin: 0;
  color: var(--pomm-muted);
  font-size: 14px;
}

.location-map-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 80px);
  padding: 8px 11px;
  border: 1px solid #d2ddd0;
  border-radius: 6px;
  background: #fff;
  color: var(--pomm-action);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
}

.location-map-badge > span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 1px solid #6e8d76;
  border-radius: 50%;
  background: #d2dfcf;
}

.location-map-caption {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-top: 1px solid var(--pomm-border);
}

.location-map-caption strong {
  font-size: 15px;
  font-weight: 600;
}

.location-map-caption p {
  margin: 0;
  color: var(--pomm-muted);
  font-size: 13px;
}

.location-map .maplibregl-ctrl-top-right .maplibregl-ctrl {
  margin: 16px 16px 0 0;
}

.location-map .maplibregl-ctrl-group {
  overflow: visible;
  border: 1px solid var(--pomm-border);
  border-radius: 6px;
  box-shadow: 0 2px 8px #20292312;
}

.location-map .maplibregl-ctrl-group button {
  width: 44px;
  height: 44px;
  min-height: 44px;
}

.location-map .maplibregl-ctrl button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--pomm-action);
  outline-offset: 2px;
}

.location-map .maplibregl-ctrl-attrib {
  font-size: 10px;
}

@media (min-width: 1024px) {
  .location-section {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 48px;
    row-gap: 32px;
    align-items: stretch;
  }

  .location-section > .location-intro {
    grid-column: 1 / -1;
  }

  .location-section .location-description {
    max-width: 65ch;
  }

  .location-section > .location-details {
    align-self: start;
  }

  .location-map {
    display: flex;
    flex-direction: column;
  }

  .location-map-viewport {
    height: auto;
    min-height: 220px;
    flex: 1 1 0px;
  }

  .location-map-caption {
    flex: 0 0 auto;
  }
}
