html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

#map {
  position: absolute;
  inset: 0;
  background: #1b1f24;
}

.map-buttons {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.map-button {
  padding: 10px 16px;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.map-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.map-button.locate {
  background: #1e8e3e;
}

.map-button.orientation {
  background: #1a73e8;
}

.map-button.orientation.active {
  background: #5f6368;
  cursor: default;
}

/* 地点标记：图钉尖端对准坐标，名称显示在图钉下方。
   不能设置 position，MapLibre 依赖 .maplibregl-marker 的 absolute 定位 */
.place {
  width: 28px;
  height: 36px;
  cursor: pointer;
}

.place svg {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.place-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 2px;
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  font-size: 11px;
  color: #333;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.user-location svg {
  display: block;
}

.user-location .arrow {
  transform-origin: center;
  transition: transform 0.15s ease-out;
}
