:root {
  --panel-bg: rgba(255, 255, 255, 0.92);
  --accent: #1e66f5;
  --shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#topbar {
  position: absolute;
  top: 10px;
  left: 50px;
  right: 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

#topbar h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1c1c1c;
  background: var(--panel-bg);
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

#lang-toggle {
  margin-left: auto;
  pointer-events: auto;
}

#controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-bg);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

#controls button,
#lang-toggle {
  font-size: 1.1rem;
  line-height: 1;
  min-width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: #f1f3f5;
  color: #1c1c1c;
  cursor: pointer;
  transition: background 0.15s ease;
}

#controls button:hover,
#lang-toggle:hover {
  background: #e2e6ea;
}

#timestamp {
  min-width: 56px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #1c1c1c;
}

#zoom-info {
  padding-left: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5c636a;
  white-space: nowrap;
}

#zoom-info #zoom-level {
  font-variant-numeric: tabular-nums;
  color: #1c1c1c;
}

#locate-btn[data-state="active"] {
  background: var(--accent);
  color: #fff;
}

#locate-btn[data-state="blocked"] {
  background: #f3d6d6;
  color: #9b1c1c;
  cursor: not-allowed;
}

#toast {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  max-width: 80vw;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#toast[data-show="true"] {
  opacity: 1;
}
