html, body {
  margin: 0;
  height: 100%;
  background: #1c1e21;
  color: #f2f2f2;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow: hidden;
}

#map {
  position: fixed;
  inset: 0;
  background: #1c1e21;
}

.title-bar {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: calc(100vw - 32px);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(20, 22, 25, 0.72);
  backdrop-filter: blur(8px);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  height: 3px;
  width: 0;
  background: #4da3ff;
  transition: width 0.2s, opacity 0.4s;
  opacity: 0;
}

.progress.active {
  opacity: 1;
}

.error {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.error[hidden] {
  display: none;
}

.leaflet-bottom.leaflet-right {
  bottom: env(safe-area-inset-bottom);
}

.leaflet-bar a.reset-view {
  font-size: 16px;
}

@media (max-width: 600px) {
  .leaflet-control-zoom {
    display: none;
  }
}
