*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#map {
  width: 100vw;
  height: 100vh;
}

.map-attribution {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 6px;
  font-size: 11px;
  z-index: 1000;
  border-top-left-radius: 3px;
}

.map-attribution a {
  color: #0078a8;
  text-decoration: none;
}

.map-attribution a:hover {
  text-decoration: underline;
}

/* --- Projection Switcher Control --- */
.projection-ctrl {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0,0,0,.1);
  overflow: hidden;
}

.projection-ctrl button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  width: 100%;
  min-height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.projection-ctrl button:hover {
  background: rgba(0,0,0,.05);
}

.projection-ctrl button:active {
  background: rgba(0,0,0,.1);
}

.projection-ctrl button .proj-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

/* --- End Projection Switcher --- */

.map-webgl-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 24px 32px;
  max-width: 420px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}
