* {
  box-sizing: border-box;
}

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

#map {
  background: #eef2f6;
}

.toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 700;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.18);
  max-width: 80%;
  text-align: center;
}

.toast.error {
  background: #dc2626;
}

.hidden {
  display: none !important;
}

.map-overlay {
  position: fixed;
  right: 12px;
  bottom: 28px;
  z-index: 650;
  max-width: 280px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: #1e293b;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
}

.map-overlay a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

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

.route-tooltip {
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}
