* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

header {
  padding: 12px 20px;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

header h1 {
  font-size: 18px;
  font-weight: 600;
}

.status-text {
  font-size: 13px;
  color: #b8b8d1;
}

.status-text.status-error {
  color: #e74c3c;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  width: 34px;
  height: 34px;
  flex: none;
  font-size: 18px;
  line-height: 1;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

#map {
  height: calc(100vh - 52px);
  width: 100%;
}

.legend {
  position: absolute;
  bottom: 20px;
  right: 10px;
  z-index: 1000;
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 12.5px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}

.route-panel {
  position: absolute;
  top: 60px;
  right: 12px;
  z-index: 1000;
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 12.5px;
  width: 220px;
}

.route-panel-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.route-panel-close {
  border: none;
  background: none;
  color: #888;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.route-panel-close:hover {
  color: #333;
}

.route-panel label {
  display: block;
  margin-top: 6px;
  margin-bottom: 3px;
  color: #555;
}

.route-panel select {
  width: 100%;
  padding: 5px 6px;
  font-size: 12.5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.route-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.route-actions button {
  flex: 1;
  padding: 6px 8px;
  font-size: 12.5px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: #2a78d6;
  color: #fff;
}

.route-actions button.secondary {
  background: #e6e6e6;
  color: #333;
}

.route-actions button:hover {
  opacity: 0.9;
}

.route-result {
  margin-top: 8px;
  line-height: 1.5;
  color: #333;
}

.route-result .route-error {
  color: #e74c3c;
  font-weight: 600;
}

.route-result .route-warn {
  color: #b8860b;
  font-weight: 600;
}

.area-select-tooltip {
  font-weight: 700;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
  border: none;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.area-select-tooltip.tooltip-from {
  background: #2a78d6;
}

.area-select-tooltip.tooltip-to {
  background: #9b59b6;
}

.weather-widget {
  position: absolute;
  bottom: 20px;
  left: 10px;
  z-index: 1000;
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 12.5px;
  min-width: 180px;
}

.weather-title {
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.weather-body {
  color: #333;
  line-height: 1.5;
}

.weather-body .weather-stale {
  color: #b8860b;
  font-size: 11px;
}

.weather-body .weather-error {
  color: #e74c3c;
}
