.risk-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.risk-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(16, 33, 42, 0.05);
}

.risk-icon--rain {
  animation: iconBob 2.8s ease-in-out infinite;
}

.risk-icon--wind {
  animation: spinSoft 5.5s linear infinite;
}

.risk-icon--uv {
  animation: sunPulse 3.2s ease-in-out infinite;
}

.risk-icon--drought {
  animation: leafTilt 3.6s ease-in-out infinite;
}

.risk-icon--balloon {
  animation: balloonFloat 4s ease-in-out infinite;
}

.risk-icon--moon {
  animation: moonGlow 3.8s ease-in-out infinite;
}

.risk-icon--drone {
  animation: droneHover 2.6s ease-in-out infinite;
}

.timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(100px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 0 24px 24px;
  scroll-snap-type: x proximity;
}

.timeline--map {
  grid-auto-columns: minmax(88px, 96px);
  gap: 8px;
  padding: 0;
  cursor: grab;
  user-select: none;
  overscroll-behavior-x: contain;
}

.timeline.is-dragging,
.timeline--map.is-dragging {
  cursor: grabbing;
}

.timeline-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(16, 33, 42, 0.06);
  color: var(--text-soft);
  font-weight: 600;
}

.timeline-button {
  min-height: 92px;
  padding: 14px 12px;
  border-radius: 20px;
  text-align: left;
  background: rgba(16, 33, 42, 0.06);
  color: var(--text);
  scroll-snap-align: start;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.timeline-button.active {
  background: linear-gradient(145deg, var(--accent), var(--accent-3));
  color: white;
}

.timeline-symbol {
  display: block;
  font-size: 1rem;
  line-height: 1;
}

.timeline-top {
  display: flex;
  min-height: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.timeline-precip {
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
  color: rgba(184, 229, 255, 0.98);
}

.timeline--map .timeline-button {
  min-height: 88px;
  padding: 10px 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.94);
}

.timeline--map .timeline-button.active {
  background: linear-gradient(145deg, rgba(15, 140, 123, 0.98), rgba(15, 76, 129, 0.98));
}

.timeline--map .timeline-date {
  font-size: 0.7rem;
}

.timeline--map .timeline-hour {
  font-size: 1rem;
}

.timeline--map .timeline-temp {
  font-size: 0.76rem;
}

.timeline-date,
.timeline-hour {
  display: block;
}

.timeline-date {
  font-size: 0.78rem;
  opacity: 0.82;
}

.timeline-hour {
  margin-top: 6px;
  font-family: "Archivo", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
}

.timeline-temp {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
  opacity: 0.9;
}

.leaflet-container {
  font: inherit;
}

.weather-marker {
  width: 150px;
  margin-left: -75px;
  margin-top: -46px;
}

.weather-marker--compact {
  width: 108px;
  margin-left: -54px;
  margin-top: -38px;
}

.weather-marker--mobile {
  width: 82px;
  margin-left: -41px;
  margin-top: -29px;
}

.weather-badge {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: linear-gradient(145deg, rgba(12, 41, 46, 0.9), rgba(15, 76, 129, 0.86));
  color: white;
  box-shadow: 0 14px 26px rgba(11, 37, 45, 0.24);
}

.weather-badge--selected {
  outline: 2px solid rgba(240, 180, 93, 0.95);
  box-shadow: 0 0 0 3px rgba(240, 180, 93, 0.16), 0 16px 30px rgba(11, 37, 45, 0.28);
}

.weather-marker--compact .weather-badge {
  gap: 6px;
  padding: 7px 9px;
  border-radius: 15px;
}

  .weather-marker--mobile .weather-badge {
    gap: 4px;
    min-height: 42px;
    padding: 5px 6px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(11, 37, 45, 0.22);
  }

.weather-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 16px;
  height: 16px;
  background: rgba(12, 41, 46, 0.92);
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.weather-marker--mobile .weather-badge::after {
  bottom: -7px;
  width: 11px;
  height: 11px;
}

.weather-city {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.weather-marker--compact .weather-city {
  font-size: 0.64rem;
  letter-spacing: 0.05em;
}

.weather-marker--mobile .weather-city {
  max-width: 55px;
  overflow: hidden;
  font-size: 0.52rem;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-temp {
  margin-top: 2px;
  font-family: "Archivo", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.weather-marker--compact .weather-temp {
  font-size: 1rem;
}

.weather-marker--mobile .weather-temp {
  margin-top: 1px;
  font-size: 0.84rem;
  line-height: 0.95;
}

.weather-side {
  display: flex;
  align-items: center;
}

.weather-wind {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  opacity: 0.88;
}

.weather-marker--compact .weather-wind {
  gap: 4px;
  font-size: 0.63rem;
}

.weather-marker--mobile .weather-wind {
  gap: 2px;
  margin-top: 2px;
  font-size: 0.52rem;
}

.weather-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  animation: iconBob 3.2s ease-in-out infinite;
}

.weather-marker--compact .weather-icon {
  font-size: 1.12rem;
}

.weather-marker--mobile .weather-icon {
  font-size: 0.88rem;
}

.weather-icon::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.weather-icon--sun {
  filter: drop-shadow(0 0 10px rgba(255, 204, 109, 0.35));
  animation: sunPulse 3.6s ease-in-out infinite;
}

.weather-icon--cloud {
  animation: cloudDrift 4.5s ease-in-out infinite;
}

.weather-icon--storm {
  animation: stormFlash 3s ease-in-out infinite;
}

