/* #region zone:disaster.style.base — รีเซ็ต, เลย์เอาต์หลัก, แผนที่เต็มจอ, แถบบน */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--map-bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button,
input {
  font-family: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}
.app {
  position: fixed;
  inset: 0;
}
/* #map, not .map: MapLibre adds its OWN `.maplibregl-map` class (position: relative, no height) to this
   same element, and an id selector beats that class rule regardless of stylesheet load order. */
#map {
  position: absolute;
  inset: 0;
  background: var(--map-bg);
}
/* disaster-wind-particles.js's own transparent overlay canvas — sits above the WebGL map canvas (later in
   DOM order, no z-index needed) but never intercepts pointer events (the map underneath stays draggable/
   clickable, and markers/popups added later still receive their own events normally). */
.wind-particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* design-spec.md §4 "Muted basemap": see disaster-map.js's own _installHazardLayers() comment — a
   `hazard-basemap-wash` MapLibre background layer (JS-driven, animated by MapLibre's own paint-property
   transition, not CSS) sits between the real basemap and every hazard/weather layer, so it mutes the map
   WITHOUT washing out precipitation/temperature/wind/clouds drawn on top of it. A round-8 fix: the
   original CSS `filter` on the whole canvas muted those layers too, to near invisibility. */
.maplibregl-ctrl-attrib {
  font-family: var(--font);
  font-size: var(--fs-xs);
}

.topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--u-space-2);
  padding: 9px var(--u-space-4) 9px 10px;
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--text);
}
.brand img {
  display: block;
  border-radius: 8px;
}
.brand-name {
  font-weight: 700;
  font-size: var(--fs-md);
}
.brand-sub {
  font-size: var(--fs-sm);
  color: var(--muted);
}
.topbar-spacer {
  flex: 1;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  border: 0;
  background: transparent;
  color: var(--text);
  transition: background var(--t-fast) var(--ease-out);
}
.icon-button:hover {
  background: var(--accent-soft);
}
.icon-button.glass {
  background: var(--glass-strong);
}
.icon-button:focus-visible,
.lang:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lang {
  border-radius: var(--r-pill);
  border: 0;
  padding: 9px var(--u-space-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}
/* Mobile-only "layer chip" (design-spec.md §2 mobile "Top"): opens the same rail sheet the desktop
   switcher lives in, at its `full` state, so the field picker is one tap away without a second UI. Hidden
   on desktop (JS never un-hides it there); shown ≤820px below. */
.layer-chip {
  display: none;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-pill);
  border: 0;
  padding: var(--u-space-2) var(--u-space-3) var(--u-space-2) 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}
.layer-chip-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}
/* #endregion */
