html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

body {
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
}

#map-wrapper {
  background-color: #cccccc;
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
}

#map-wrapper .map-tile {
  display: block;
  height: 512px;
  position: absolute;
  user-select: none;
  width: 512px;
}

.map-marker {
  cursor: pointer;
  height: auto;
  position: absolute;
  transform: translate(-50%, -100%);
  user-select: none;
  width: 32px;
  z-index: 2;
}

.marker-popup {
  background: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  box-sizing: border-box;
  max-width: min(280px, calc(100vw - 24px));
  padding: 10px 12px;
  pointer-events: auto;
  position: absolute;
  transform: translate(12px, -100%);
  z-index: 3;
}

.marker-popup[hidden] {
  display: none;
}

.marker-popup-title {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.marker-popup h2,
.marker-popup p {
  margin: 0;
}

.marker-popup h2 {
  font-size: 1rem;
}

.marker-popup-title a,
.marker-popup-title a:visited,
.marker-popup-title a:hover,
.marker-popup-title a:active,
.marker-popup-title a:focus {
  color: inherit;
  line-height: 1;
  text-decoration: none;
}

.marker-popup p {
  font-size: 0.875rem;
}
