﻿/* â”€â”€ Current conditions card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wx-hero {
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    margin-bottom: 1.5rem;
    transition: background 0.6s ease;
}
.wx-hero-top {
    padding: 1.6rem 1.8rem 1.2rem;
    color: #fff;
}
.wx-hero-location {
    font-size: 1rem; font-weight: 500; opacity: 0.88; margin-bottom: 0.9rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.wx-hero-body {
    display: flex; align-items: flex-start; gap: 0.5rem; flex-wrap: wrap;
}
.wx-hero-icon { width: 100px; height: 100px; margin-top: -0.5rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.wx-hero-temps { flex: 1; min-width: 160px; }
.wx-big-temp   { font-size: 4rem; font-weight: 800; line-height: 1; letter-spacing: -2px; }
.wx-unit-sup   { font-size: 1.8rem; font-weight: 400; vertical-align: super; margin-left: 2px; opacity: 0.85; }
.wx-hero-desc  { font-size: 1.2rem; font-weight: 500; margin-top: 0.1rem; opacity: 0.92; text-transform: capitalize; }
.wx-hero-feels { font-size: 0.88rem; opacity: 0.78; margin-top: 0.25rem; }
.wx-hero-right { text-align: right; margin-left: auto; font-size: 0.85rem; opacity: 0.88; white-space: nowrap; }
.wx-hero-right .wx-hl { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.wx-hero-right div { margin-top: 0.15rem; }

/* stats bar */
.wx-stats-bar {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    padding: 0.7rem 1.8rem;
    display: flex; flex-wrap: wrap; gap: 1.2rem;
    color: rgba(255,255,255,0.92); font-size: 0.84rem;
}
.wx-stat-item { display: flex; align-items: center; gap: 0.3rem; }
.wx-stat-icon { font-size: 1rem; }

/* â”€â”€ Section headers â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wx-section-head {
    font-size: 0.68rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: #64748b; margin-bottom: 0.6rem;
}

/* â”€â”€ Hourly strip â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wx-hourly-wrap { overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: thin; }
.wx-hourly-strip { display: flex; gap: 0.45rem; width: max-content; }
.wx-nowcast-wrap { overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: thin; }
.wx-nowcast-strip { display: flex; gap: 0.45rem; width: max-content; }
.wx-nowcast-item {
    width: 132px;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    padding: 0.62rem 0.58rem 0.56rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    text-align: center;
}
.wx-nowcast-time { font-size: 0.66rem; color: #64748b; font-weight: 700; text-transform: uppercase; }
.wx-nowcast-temp { font-size: 1.15rem; font-weight: 800; color: #1e293b; margin-top: 0.14rem; line-height: 1.1; }
.wx-nowcast-precip, .wx-nowcast-pop { font-size: 0.64rem; color: #475569; line-height: 1.25; }
.wx-nowcast-precip { margin-top: 0.16rem; }
.wx-nc-none { border-top: 3px solid #cbd5e1; }
.wx-nc-light { border-top: 3px solid #60a5fa; }
.wx-nc-med { border-top: 3px solid #3b82f6; }
.wx-nc-heavy { border-top: 3px solid #1d4ed8; }

.wx-trend-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0.55rem 0.6rem 0.45rem;
}
.wx-trend-tip {
    font-size: 0.8rem;
    color: #334155;
    min-height: 1.2rem;
    margin-bottom: 0.4rem;
}
.wx-trend-scroll {
    overflow-x: auto;
    padding-bottom: 0.35rem;
}
.wx-trend-svg {
    display: block;
    height: 170px;
    min-width: 100%;
}
.wx-trend-svg text { fill: #64748b; font-size: 10px; }
.wx-trend-x {
    display: flex;
    gap: 0;
    font-size: 0.66rem;
    color: #64748b;
    margin-top: 0.2rem;
}
.wx-trend-x span {
    text-align: center;
    white-space: nowrap;
}
.wx-hourly-item {
    width: 116px; text-align: center;
    border: 1px solid #e2e8f0; border-radius: 0.6rem;
    padding: 0.72rem 0.42rem 0.62rem;
    background: #fff; font-size: 0.78rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.15s;
}
.wx-hourly-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.wx-hourly-day  { font-size: 0.62rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; }
.wx-hourly-time { font-size: 0.7rem; color: #64748b; margin-bottom: 0.15rem; }
.wx-hourly-icon img { width: 36px; height: 36px; }
.wx-hourly-temp { font-weight: 800; font-size: 1.15rem; color: #0f172a; line-height: 1.1; }
.wx-hourly-meta { font-size: 0.72rem; color: #334155; line-height: 1.25; font-weight: 600; }
.wx-hourly-pop  { font-size: 0.65rem; color: #3b82f6; margin-top: 0.1rem; }

/* â”€â”€ 5-day forecast â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wx-forecast-grid {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    padding-bottom: 0.2rem;
}

.wx-forecast-carousel {
    overflow: hidden;
}

.wx-fc-nav { display: inline-flex; gap: 0.35rem; }
.wx-fc-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wx-fc-nav-btn:disabled { opacity: 0.45; cursor: default; }

.wx-fc-card {
    width: 148px;
    min-width: 148px;
    border: 1px solid #e2e8f0; border-radius: 0.7rem;
    padding: 0.58rem 0.36rem; text-align: center; background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.15s, transform 0.15s;
    scroll-snap-align: start;
}
.wx-fc-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.wx-fc-card.is-active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.85), 0 10px 22px rgba(37,99,235,0.22);
    transform: translateY(-1px);
}
.wx-fc-dow  { font-weight: 700; font-size: 0.76rem; color: #334155; text-transform: uppercase; letter-spacing:.04em; }
.wx-fc-date { font-size: 0.62rem; color: #94a3b8; margin-bottom: 0.05rem; }
.wx-fc-icon img { width: 54px; height: 54px; }
.wx-fc-desc { font-size: 0.61rem; color: #64748b; text-transform: capitalize; margin-top: -0.08rem; line-height: 1.25; min-height: 1.55rem; }
.wx-fc-temps { margin-top: 0.2rem; font-size: 0.95rem; line-height: 1.2; }
.wx-fc-high  { font-weight: 700; color: #1e293b; }
.wx-fc-low   { color: #94a3b8; margin-left: 0.22rem; }
.wx-fc-pop   { font-size: 0.64rem; color: #3b82f6; margin-top: 0.15rem; }

/* Day tabs + selected-day graph */
.wx-day-tabs {
    display: none;
    gap: 0.42rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 0.45rem;
    scrollbar-width: thin;
}
.wx-day-tab {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.28rem 0.72rem;
    white-space: nowrap;
}
.wx-day-tab.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.wx-day-mini-strip {
    position: relative;
    height: 95px;
    padding: 0.08rem var(--wx-mini-right-inset, 18px) 0.45rem var(--wx-mini-left-inset, 36px);
    margin-bottom: 0.38rem;
}
.wx-day-mini-anchor {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
}
.wx-day-mini-card {
    width: 74px;
    border: 1px solid #d6deea;
    border-radius: 0.7rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    padding: 0.3rem 0.34rem 0.28rem;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 10px rgba(0,0,0,0.04);
}
.wx-day-mini-time {
    font-size: 0.58rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.02em;
}
.wx-day-mini-icon img {
    width: 28px;
    height: 28px;
    margin: 0.04rem auto 0.02rem;
    display: block;
}
.wx-day-mini-temp {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}
.wx-day-mini-pop {
    margin-top: 0.04rem;
    font-size: 0.6rem;
    font-weight: 700;
    color: #0ea5e9;
    line-height: 1.1;
}
.wx-day-graph-card {
    border: 1px solid #d6deea;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 10px rgba(0,0,0,0.04);
    padding: 0.56rem 0.65rem 0.5rem;
}
.wx-day-graph-tip {
    font-size: 0.8rem;
    color: #334155;
    min-height: 1.2rem;
    margin-bottom: 0.28rem;
}
.wx-day-graph-scroll {
    overflow-x: auto;
    padding-bottom: 0.28rem;
}
.wx-day-graph-svg {
    display: block;
    height: 188px;
    min-width: 100%;
}
.wx-day-graph-x {
    position: relative;
    height: 17px;
    margin-top: 0.1rem;
    font-size: 0.66rem;
    color: #64748b;
}
.wx-day-graph-x span {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}
.wx-day-graph-card {
    position: relative;
}
.wx-day-hover-line {
    position: absolute;
    top: 2.1rem;
    bottom: 1.65rem;
    width: 0;
    border-left: 1px dashed rgba(203,213,225,0.55);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease;
}
.wx-day-hover-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #1d4ed8;
    box-shadow: 0 0 0 1px rgba(30,41,59,0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease;
}
.wx-day-hover-chip {
    position: absolute;
    min-width: 84px;
    max-width: 140px;
    border-radius: 0.9rem;
    background: rgba(226,232,240,0.96);
    color: #0f172a;
    padding: 0.45rem 0.52rem 0.42rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.1;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    pointer-events: none;
    transform: translate(-50%, -100%);
    opacity: 0;
    transition: opacity 0.1s ease;
}
.wx-day-hover-chip::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -7px;
    border-width: 7px 7px 0 7px;
    border-style: solid;
    border-color: rgba(226,232,240,0.96) transparent transparent transparent;
}
.wx-day-hover-chip-time { color: #64748b; font-weight: 700; margin-bottom: 0.2rem; }
.wx-day-hover-chip-temp { font-size: 1.55rem; font-weight: 800; color: #0f172a; line-height: 1; }
.wx-day-hover-chip-pop { margin-top: 0.14rem; color: #475569; font-weight: 700; }

/* â”€â”€ Overview graph â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wx-overview-card {
    border: 1px solid #d6deea;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 10px rgba(0,0,0,0.04);
    padding: 0.58rem 0.65rem 0.5rem;
}
.wx-overview-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.36rem;
}
.wx-overview-tip {
    font-size: 0.78rem;
    color: #334155;
    min-height: 1.2rem;
    margin-bottom: 0.28rem;
}
.wx-overview-scroll {
    overflow-x: auto;
    padding-bottom: 0.28rem;
}
.wx-overview-svg {
    display: block;
    height: 190px;
    min-width: 100%;
}
.wx-overview-x {
    display: flex;
    gap: 0;
    font-size: 0.66rem;
    color: #64748b;
    margin-top: 0.1rem;
    position: relative;
    height: 17px;
}
.wx-overview-x span {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

[data-theme="dark"] #wx-main .wx-section-head { color: #9ca3af; }
[data-theme="dark"] #wx-main .wx-hourly-item,
[data-theme="dark"] #wx-main .wx-nowcast-item,
[data-theme="dark"] #wx-main .wx-fc-card,
[data-theme="dark"] #wx-main .wx-day-graph-card,
[data-theme="dark"] #wx-main .wx-trend-card,
[data-theme="dark"] #wx-main .wx-overview-card,
[data-theme="dark"] #wx-main .wx-hazard-card,
[data-theme="dark"] #wx-main .wx-map-legend,
[data-theme="dark"] #wx-main #wx-aqi-panel .card {
    background: #0f172a;
    border-color: #243447;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
[data-theme="dark"] #wx-main .wx-overview-card {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}
[data-theme="dark"] #wx-main .wx-hourly-temp,
[data-theme="dark"] #wx-main .wx-nowcast-temp,
[data-theme="dark"] #wx-main .wx-fc-high,
[data-theme="dark"] #wx-main .wx-fc-dow,
[data-theme="dark"] #wx-main .wx-day-graph-tip,
[data-theme="dark"] #wx-main .wx-overview-tip,
[data-theme="dark"] #wx-main .wx-trend-tip {
    color: #e2e8f0;
}
[data-theme="dark"] #wx-main .wx-hourly-day,
[data-theme="dark"] #wx-main .wx-hourly-time,
[data-theme="dark"] #wx-main .wx-hourly-meta,
[data-theme="dark"] #wx-main .wx-fc-date,
[data-theme="dark"] #wx-main .wx-fc-desc,
[data-theme="dark"] #wx-main .wx-fc-low,
[data-theme="dark"] #wx-main .wx-day-graph-x,
[data-theme="dark"] #wx-main .wx-overview-x,
[data-theme="dark"] #wx-main .wx-trend-x,
[data-theme="dark"] #wx-main .wx-hazard-status,
[data-theme="dark"] #wx-main .wx-hazard-meta {
    color: #94a3b8;
}
[data-theme="dark"] #wx-main .wx-fc-nav-btn {
    background: #111827;
    border-color: #334155;
    color: #cbd5e1;
}
[data-theme="dark"] #wx-main .wx-day-tab {
    background: #111827;
    border-color: #334155;
    color: #cbd5e1;
}
[data-theme="dark"] #wx-main .wx-fc-card.is-active {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96,165,250,0.95), 0 12px 26px rgba(96,165,250,0.30);
}
[data-theme="dark"] #wx-main .wx-day-mini-card {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-color: #243447;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
[data-theme="dark"] #wx-main .wx-day-mini-time {
    color: #94a3b8;
}
[data-theme="dark"] #wx-main .wx-day-mini-temp {
    color: #f8fafc;
}
[data-theme="dark"] #wx-main .wx-day-mini-pop {
    color: #38bdf8;
}
[data-theme="dark"] #wx-main .wx-day-tab.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
[data-theme="dark"] #wx-main .wx-day-hover-line {
    border-left-color: rgba(148,163,184,0.55);
}
[data-theme="dark"] #wx-main .wx-day-hover-dot {
    border-color: #0f172a;
    box-shadow: 0 0 0 1px rgba(203,213,225,0.3);
}
[data-theme="dark"] #wx-main .wx-day-hover-chip {
    background: rgba(15,23,42,0.96);
    color: #e2e8f0;
    box-shadow: 0 8px 22px rgba(0,0,0,0.4);
}
[data-theme="dark"] #wx-main .wx-day-hover-chip::after {
    border-color: rgba(15,23,42,0.96) transparent transparent transparent;
}
[data-theme="dark"] #wx-main .wx-day-hover-chip-time { color: #94a3b8; }
[data-theme="dark"] #wx-main .wx-day-hover-chip-temp { color: #f8fafc; }
[data-theme="dark"] #wx-main .wx-day-hover-chip-pop { color: #cbd5e1; }

/* â”€â”€ Alert banners â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wx-alert {
    display: flex; align-items: flex-start; gap: 0.6rem;
    padding: 0.65rem 0.9rem; border-radius: 0.5rem;
    font-size: 0.84rem; margin-bottom: 0.5rem;
    border-left: 4px solid;
}
.wx-alert-extreme  { background: #fef2f2; border-color: #dc2626; color: #991b1b; }
.wx-alert-severe   { background: #fff7ed; border-color: #ea580c; color: #9a3412; }
.wx-alert-moderate { background: #fefce8; border-color: #ca8a04; color: #92400e; }
.wx-alert-minor,
.wx-alert-unknown  { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.wx-alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.wx-alert-body strong { display: block; }
.wx-alert-body .wx-alert-meta { font-size: 0.74rem; opacity: 0.75; margin-top: 0.1rem; }

/* â”€â”€ Map â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#wx-map { height: 360px; border-radius: 0.8rem; border: 1px solid #e2e8f0;
          box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.wx-map-legend {
    margin-top: -0.65rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.45rem;
    background: #fff;
    max-width: 360px;
}
.wx-legend-title { font-size: 0.68rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .05em; }
.wx-legend-bar { height: 8px; border-radius: 4px; margin: 0.35rem 0 0.2rem; }
.wx-legend-rain { background: linear-gradient(to right, #93c5fd, #3b82f6, #1d4ed8, #0f172a); }
.wx-legend-ir   { background: linear-gradient(to right, #fde68a, #f59e0b, #ef4444, #7c3aed); }
.wx-legend-scale { display: flex; justify-content: space-between; font-size: 0.62rem; color: #64748b; }
.wx-map-note {
    margin-top: -0.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.76rem;
    color: #92400e;
}
.wx-hazard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 900px) { .wx-hazard-grid { grid-template-columns: 1fr; } }
.wx-hazard-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}
.wx-hazard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.8rem;
}
.wx-hazard-title-wrap { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.wx-hazard-loc {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}
.wx-hazard-status { font-size: 0.72rem; color: #64748b; }
.wx-hazard-status.is-ok { color: #166534; }
.wx-hazard-status.is-bad { color: #9a3412; }
.wx-hazard-meta {
    font-size: 0.69rem;
    color: #64748b;
    padding: 0.35rem 0.7rem 0.45rem;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.35;
}
.wx-hazard-map {
    height: 240px;
    width: 100%;
}

/* â”€â”€ AQI / UV panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wx-aqi-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1.25rem;
    align-items: start;
}
@media (max-width: 575px) { .wx-aqi-grid { grid-template-columns: 1fr; } }
.wx-aqi-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.75rem; border-radius: 2rem; font-weight: 700;
    font-size: 0.95rem; white-space: nowrap;
}
.wx-aqi-1 { background: #dcfce7; color: #166534; }
.wx-aqi-2 { background: #d9f99d; color: #3f6212; }
.wx-aqi-3 { background: #fef9c3; color: #854d0e; }
.wx-aqi-4 { background: #fed7aa; color: #9a3412; }
.wx-aqi-5 { background: #fecaca; color: #991b1b; }
.wx-aqi-components { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.78rem; color: #64748b; }
.wx-aqi-components span strong { color: #334155; }

.wx-uv-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.75rem; border-radius: 2rem; font-weight: 700; font-size: 0.95rem;
}
.wx-uv-low      { background: #dcfce7; color: #166534; }
.wx-uv-moderate { background: #fef9c3; color: #854d0e; }
.wx-uv-high     { background: #fed7aa; color: #9a3412; }
.wx-uv-veryhigh { background: #fecaca; color: #991b1b; }
.wx-uv-extreme  { background: #f3e8ff; color: #6b21a8; }

/* â”€â”€ Loading / error â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wx-spinner-wrap { padding: 4rem 0; text-align: center; }

/* â”€â”€ Updated timestamp â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wx-timestamp { font-size: 0.68rem; opacity: 0.55; margin-top: 0.4rem; }

/* â”€â”€ Top bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wx-topbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1.25rem; }
.wx-topbar h1 { margin: 0; font-size: 1.3rem; font-weight: 700; color: #1e293b; }
[data-theme="dark"] #wx-main .wx-topbar h1 { color: #e2e8f0; }

/* â”€â”€ Autocomplete â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wx-search-wrap { position: relative; }
.wx-suggest-drop {
    position: absolute; top: calc(100% + 3px); left: 0; min-width: 260px; z-index: 1050;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 0.55rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.13); overflow: hidden;
}
.wx-suggest-item {
    padding: 0.5rem 0.8rem; cursor: pointer; font-size: 0.84rem;
    border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 0.5rem;
}
.wx-suggest-item:last-child { border-bottom: none; }
.wx-suggest-item:hover, .wx-suggest-item.wx-focused { background: #f0f7ff; }
.wx-suggest-pin  { font-size: 0.9rem; flex-shrink: 0; color: #64748b; }
.wx-suggest-name { font-weight: 600; color: #1e293b; }
.wx-suggest-sub  { font-size: 0.72rem; color: #94a3b8; margin-top: 1px; }
