/* ── Weather Panel (Open-Meteo) ───────────────────────────────────── */

.weather-gear {
  position: absolute;
  top: 140px;
  left: 10px;
  z-index: 850;
  width: 29px;
  height: 29px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--wing-glass);
  backdrop-filter: blur(8px);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
  padding: 0;
}

.weather-gear:hover {
  color: var(--text);
  border-color: var(--accent);
}

.weather-gear.open {
  color: var(--accent);
  border-color: var(--accent);
}

.weather-panel {
  position: absolute;
  top: 130px;
  left: 48px;
  z-index: 850;
  background: var(--wing-glass-dense);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  width: 260px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.wp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.wp-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}

.wp-loading {
  font-size: 9px;
  color: var(--accent);
}

.wp-error {
  font-size: 9px;
  color: #f87171;
  margin-bottom: 6px;
  padding: 4px 6px;
  background: rgba(248, 113, 113, 0.1);
  border-radius: 4px;
}

.wp-empty {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding: 12px 0;
}

.wz-card {
  border-left: 3px solid var(--border);
  padding: 6px 8px;
  margin-bottom: 6px;
  border-radius: 0 4px 4px 0;
  background: var(--wing-subtle);
  transition: background 0.15s;
}

.wz-card:last-of-type {
  margin-bottom: 0;
}

.wz-card.wz-warn {
  background: rgba(248, 113, 113, 0.08);
}

.wz-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.wz-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.wz-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.wz-icon {
  font-size: 10px;
  color: var(--accent);
}

.wz-label {
  font-size: 9px;
  color: var(--muted);
}

.wz-value {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}

.wz-weather {
  font-weight: 500;
  color: var(--muted);
}

.wp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.wp-time {
  font-size: 9px;
  color: var(--muted);
}

.wp-refresh {
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
  padding: 0;
}

.wp-refresh:hover {
  color: var(--text);
  border-color: var(--accent);
}

.wp-refresh:disabled {
  opacity: 0.5;
  cursor: default;
}
