* {
  box-sizing: border-box;
}

html,
body,
#map {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

#map {
  position: fixed;
  inset: 0;
}

.map-instructions {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 700;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 13px 20px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(30 41 59 / 96%), rgb(15 23 42 / 94%));
  box-shadow: 0 4px 18px rgb(0 0 0 / 32%);
  color: #fff;
  font: 650 17px/1.4 "Avenir Next", ui-rounded, system-ui, sans-serif;
  letter-spacing: 0.01em;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

@media (max-width: 480px) {
  .map-instructions {
    top: 12px;
    padding: 11px 15px;
    font-size: 15px;
  }
}

.number-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--marker-color);
  box-shadow: 0 2px 8px rgb(0 0 0 / 45%);
  color: #fff;
  font: 700 14px/1 system-ui, sans-serif;
}

.number-marker:hover {
  filter: brightness(0.88);
  transform: scale(1.12);
}

.house-marker {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--house-color, #0b8274);
  box-shadow: 0 2px 8px rgb(0 0 0 / 45%);
  transition: transform 120ms ease, filter 120ms ease;
  animation: house-blink 1s ease-in-out infinite;
}

.house-marker--violet {
  --house-color: #6f42c1;
}

.house-marker--amber {
  --house-color: #a15c00;
}

.house-marker--slate {
  --house-color: #475569;
}

.house-marker--rose {
  --house-color: #b42318;
}

.house-marker--blue {
  --house-color: #0077b6;
}

@keyframes house-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.house-marker svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.house-marker:hover {
  transform: scale(1.1);
}

dialog#question-menu {
  position: fixed;
  inset: auto auto 16px 16px;
  width: min(320px, calc(100vw - 32px));
  max-height: min(390px, 46dvh);
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 14px;
  background: rgb(32 38 44 / 96%);
  box-shadow: 0 8px 28px rgb(0 0 0 / 38%);
  color: #fff;
  font-family: system-ui, sans-serif;
}

dialog#question-menu::backdrop {
  background: transparent;
}

.question-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  background: rgb(32 38 44 / 96%);
}

.question-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.close-menu {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  cursor: pointer;
  font: 24px/1 system-ui, sans-serif;
}

.close-menu:hover {
  background: rgb(255 255 255 / 18%);
}

.question-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 14px 12px 36px;
}

.question-list li {
  padding: 8px 0 8px 4px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 480px) {
  dialog#question-menu {
    inset: auto 12px 12px;
    width: auto;
    max-height: 40dvh;
  }
}

.leaflet-control-attribution {
  font: 10px/1.3 system-ui, sans-serif;
}
