/* Climate Hub — extends geo-hub / places-vivid tokens (TZ_WEATHER_CLIMATE_HUB) */

.wx-climate-page {
  --geo-from: #0d9488;
  --geo-to: #14b8a6;
  --geo-accent: #0f766e;
  --wx-dry: #0d9488;
  --wx-wet: #2563eb;
  --wx-inter: #ca8a04;
  --wx-mild: #64748b;
}

.wx-climate-wrap {
  width: 100%;
  max-width: var(--catalog-rail-max, 1340px);
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 2vw, 1.25rem) 2.5rem;
  box-sizing: border-box;
}

.wx-climate-hero {
  position: relative;
  width: 100%;
  max-width: var(--catalog-rail-max, 1340px);
  margin: 0 auto 1.25rem;
  min-height: clamp(220px, 36vw, 340px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  background: linear-gradient(135deg, #0f766e 0%, #134e4a 55%, #0f172a 100%);
}

.wx-climate-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.wx-climate-hero__media--fallback {
  background-image: linear-gradient(135deg, #0d9488, #115e59 40%, #0f172a);
}

.wx-climate-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.72) 100%);
}

.wx-climate-hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.65rem;
  min-height: inherit;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  color: #fff;
}

.wx-climate-hero__title {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.wx-climate-hero__sub {
  margin: 0;
  font-size: 1rem;
  opacity: 0.92;
}

.wx-climate-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.wx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  font-size: 0.88rem;
  font-weight: 600;
}

.wx-chip--best {
  background: rgba(13, 148, 136, 0.55);
}

.wx-section-title {
  margin: 1.75rem 0 0.85rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: #0f172a;
}

.wx-month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.wx-month-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.wx-month-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  border-color: rgba(13, 148, 136, 0.45);
}

.wx-month-card.is-active {
  border-color: var(--geo-accent);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.25);
}

.wx-month-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}

.wx-month-card__temp {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f766e;
}

.wx-month-card__meta {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.wx-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wx-badge--dry { background: rgba(13, 148, 136, 0.15); color: var(--wx-dry); }
.wx-badge--wet { background: rgba(37, 99, 235, 0.12); color: var(--wx-wet); }
.wx-badge--inter { background: rgba(202, 138, 4, 0.15); color: var(--wx-inter); }
.wx-badge--mild,
.wx-badge--unknown { background: rgba(100, 116, 139, 0.12); color: var(--wx-mild); }

.wx-month-detail {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.wx-month-detail__title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.wx-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.wx-metric {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.wx-metric__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.wx-metric__value {
  font-size: 1.15rem;
  font-weight: 750;
  color: #0f172a;
}

.wx-overlay-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: #334155;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.08);
}

.wx-season-grid,
.wx-station-grid,
.wx-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.wx-season-card,
.wx-station-card,
.wx-country-card {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wx-station-card:hover,
.wx-country-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.wx-station-card__name,
.wx-country-card__name {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.wx-station-card__meta,
.wx-country-card__meta {
  font-size: 0.85rem;
  color: #64748b;
}

.wx-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 1rem;
}

.wx-filter-pill {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.wx-filter-pill.is-active {
  background: var(--geo-accent);
  border-color: var(--geo-accent);
  color: #fff;
}

.wx-attr {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.wx-empty {
  padding: 1.25rem;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
}

/* Geo-hub teaser */
.wx-climate-teaser {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(13, 148, 136, 0.25);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(255, 255, 255, 0.95));
}

.wx-climate-teaser__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wx-climate-teaser__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.wx-climate-teaser__cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--geo-accent);
  text-decoration: none;
  white-space: nowrap;
}

.wx-climate-teaser__months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.3rem;
}

@media (max-width: 720px) {
  .wx-climate-teaser__months {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.wx-teaser-m {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  text-decoration: none;
  color: inherit;
  font-size: 0.65rem;
}

.wx-teaser-m__t {
  font-weight: 800;
  font-size: 0.78rem;
  color: #0f766e;
}

.wx-teaser-m.is-best {
  border-color: rgba(13, 148, 136, 0.55);
  background: rgba(13, 148, 136, 0.08);
}
