/* ─────────────────────────────────
   Цаг агаарын мэдээ — Монгол Улсын газрын зураг
───────────────────────────────── */
.hw-section { background: #fff; }

/* ── Өдөр сонгох ── */
.hw-days {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: -12px 0 20px;
    scrollbar-width: thin;
}
.hw-day {
    flex: 1 0 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 12px;
    background: #F5F5F5;
    border: 1px solid #E4E6EF;
    border-radius: 10px;
    font-family: 'Exo 2', sans-serif;
    color: #1E2129;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.hw-day:hover { border-color: #A1CD46; background: #F3FDE8; }
.hw-day:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,89,58,0.15); }
.hw-day-name { font-size: 13px; font-weight: 600; }
.hw-day-date { font-size: 12px; font-weight: 300; color: #7E8299; }
.hw-day.active { background: #00593A; border-color: #00593A; color: #fff; }
.hw-day.active .hw-day-date { color: rgba(255,255,255,0.75); }
.hw-day-sk {
    flex: 1 0 96px; height: 54px; border-radius: 10px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: hwSk 1.3s infinite;
}

/* ── Карт ── */
.hw-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: stretch;
}
.hw-card {
    background: #fff;
    border: 1px solid #E4E6EF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px;
}

/* ── Газрын зураг ── */
.hw-map-card { display: flex; flex-direction: column; }
.hw-map-wrap {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hw-map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hw-map-sk {
    width: 100%; aspect-ratio: 2 / 1; border-radius: 10px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: hwSk 1.3s infinite;
}
.hw-grat { stroke: #E4E6EF; stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
.hw-grat-lbl { font-family: 'Exo 2', sans-serif; font-size: 11px; font-weight: 300; fill: #B5B5C3; }
.hw-country {
    fill: url(#hwCountryFill);
    stroke: #00593A;
    stroke-width: 1.8;
    stroke-linejoin: round;
    filter: drop-shadow(0 3px 6px rgba(0,89,58,0.12));
}

/* Тэмдэглэгээ */
.hw-mk { cursor: pointer; outline: none; }
.hw-mk-halo { fill: rgba(161,205,70,0.35); transition: r .15s; }
.hw-mk-dot  { fill: #00593A; stroke: #fff; stroke-width: 1.5; }
.hw-mk:hover .hw-mk-halo,
.hw-mk:focus-visible .hw-mk-halo,
.hw-mk.active .hw-mk-halo { r: 11; }
.hw-chip-bg {
    fill: #fff;
    stroke: #E4E6EF;
    stroke-width: 1;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.08));
    transition: fill .15s, stroke .15s;
}
.hw-chip-txt { font-family: 'Exo 2', sans-serif; font-variant-numeric: tabular-nums; }
.hw-chip-max { font-size: 14px; font-weight: 700; fill: #1E2129; }
.hw-chip-min { font-size: 12px; font-weight: 400; fill: #7E8299; }
.hw-mk:hover .hw-chip-bg,
.hw-mk:focus-visible .hw-chip-bg { stroke: #A1CD46; }
.hw-mk.active .hw-chip-bg { fill: #00593A; stroke: #00593A; }
.hw-mk.active .hw-chip-max { fill: #fff; }
.hw-mk.active .hw-chip-min { fill: rgba(255,255,255,0.75); }

.hw-map-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #E4E6EF;
    padding-top: 12px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 300;
    color: #7E8299;
}
.hw-lg-max { font-weight: 700; color: #1E2129; }
.hw-lg-min { color: #7E8299; }

/* ── Дэлгэрэнгүй ── */
.hw-d-head {
    border-bottom: 1px solid #E4E6EF;
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.hw-d-title { font-size: 18px; font-weight: 600; color: #1E2129; margin: 0; }
.hw-d-sub   { font-size: 12px; font-weight: 300; color: #7E8299; margin-top: 2px; }
.hw-d-now {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.hw-d-now svg { width: 60px; height: 60px; flex-shrink: 0; }
.hw-d-temp { font-size: 38px; font-weight: 700; color: #1E2129; line-height: 1; }
.hw-d-desc { font-size: 14px; font-weight: 600; color: #00593A; margin-top: 4px; }
.hw-d-range { font-size: 12px; color: #7E8299; margin-top: 2px; }
.hw-d-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.hw-d-stat {
    background: #F5F5F5;
    border-radius: 8px;
    padding: 8px 10px;
}
.hw-d-stat-lbl { font-size: 12px; font-weight: 300; color: #7E8299; }
.hw-d-stat-val { font-size: 14px; font-weight: 600; color: #1E2129; margin-top: 2px; }
.hw-d-week-title {
    font-size: 13px; font-weight: 600; color: #1E2129;
    margin-bottom: 6px;
}
.hw-d-row {
    display: grid;
    grid-template-columns: 1fr 24px 76px;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    color: #1E2129;
    text-align: left;
    cursor: pointer;
}
.hw-d-row:hover { background: #F8F9FA; }
.hw-d-row.active { background: #E8FFF3; color: #00593A; font-weight: 600; }
.hw-d-row svg { width: 22px; height: 22px; }
.hw-d-row-t { text-align: right; font-variant-numeric: tabular-nums; }
.hw-d-row-t span { color: #7E8299; font-weight: 400; margin-left: 4px; }

.hw-detail-sk { display: flex; flex-direction: column; gap: 10px; }
.hw-detail-sk span {
    display: block; height: 14px; width: 100%; border-radius: 6px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: hwSk 1.3s infinite;
}

/* ── Жагсаалт (гар утсанд) ── */
.hw-list { display: none; }
.hw-li {
    display: grid;
    grid-template-columns: 1fr 26px 80px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: none;
    border-bottom: 1px solid #E4E6EF;
    font-family: 'Exo 2', sans-serif;
    text-align: left;
    cursor: pointer;
}
.hw-li:last-child { border-bottom: none; }
.hw-li.active { background: #E8FFF3; }
.hw-li-name { font-size: 14px; font-weight: 600; color: #1E2129; }
.hw-li-sub  { font-size: 12px; font-weight: 300; color: #7E8299; }
.hw-li svg  { width: 24px; height: 24px; }
.hw-li-t { text-align: right; font-size: 14px; font-weight: 700; color: #1E2129; font-variant-numeric: tabular-nums; }
.hw-li-t span { font-size: 12px; font-weight: 400; color: #7E8299; margin-left: 4px; }

/* ── Хоосон төлөв ── */
.hw-empty { text-align: center; padding: 40px 16px; }
.hw-empty-t { font-size: 14px; font-weight: 600; color: #1E2129; margin-top: 10px; }
.hw-empty-s { font-size: 12px; font-weight: 300; color: #7E8299; margin-top: 4px; }
.hw-float-g { animation: hwFloat 3s ease-in-out infinite; }
@keyframes hwFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

@keyframes hwSk {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 1000px) {
    .hw-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hw-card { padding: 14px; }
    .hw-chip { display: none; }
    .hw-grat-lbl { display: none; }
    .hw-list {
        display: block;
        margin-top: 20px;
        border: 1px solid #E4E6EF;
        border-radius: 12px;
        overflow: hidden;
    }
}

/* ─────────────────────────────────
   Шилэн (glass) хувилбар — нэвтрэх хуудасны зургийн дээр
───────────────────────────────── */
.hw-glass {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.13);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(245,145,32,0.45);
    border-radius: 14px;
    box-shadow: 0 0 0 0.5px rgba(245,145,32,0.2) inset;
    font-family: 'Exo 2', sans-serif;
    color: #fff;
}
.hw-glass-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.hw-glass-title { font-size: 16px; font-weight: 600; color: #fff; }
.hw-glass .hw-map-src { font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.65); }

/* Өдрийн табууд */
.hw-glass .hw-days { margin: 0; gap: 6px; padding-bottom: 2px; }
.hw-glass .hw-day,
.hw-glass .hw-day-sk { flex: 1 0 70px; }
.hw-glass .hw-day {
    padding: 6px 8px;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.hw-glass .hw-day:hover { background: rgba(255,255,255,0.16); border-color: #A1CD46; }
.hw-glass .hw-day-name { font-size: 12px; }
.hw-glass .hw-day-date { font-size: 11px; color: rgba(255,255,255,0.65); }
.hw-glass .hw-day.active { background: #00593A; border-color: #A1CD46; }
.hw-glass .hw-day-sk { height: 44px; }

/* Газрын зураг */
.hw-glass .hw-map-wrap { flex: 0 1 auto; min-height: 0; }
.hw-glass .hw-map-svg { aspect-ratio: 2 / 1; max-height: min(42vh, calc(100vh - 500px)); }
.hw-glass .hw-country {
    fill: rgba(255,255,255,0.12);
    stroke: #A1CD46;
    stroke-width: 2;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}
.hw-glass .hw-grat { stroke: rgba(255,255,255,0.14); }
.hw-glass .hw-grat-lbl { fill: rgba(255,255,255,0.45); }
.hw-glass .hw-mk-dot { fill: #A1CD46; stroke: #fff; }
.hw-glass .hw-mk-halo { fill: rgba(161,205,70,0.4); }

/* Skeleton / хоосон төлөв харанхуй дэвсгэр дээр */
.hw-glass .hw-map-sk,
.hw-glass .hw-day-sk,
.hw-glass .hw-detail-sk span {
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.08) 75%);
    background-size: 200% 100%;
}
.hw-glass .hw-map-sk { max-height: min(42vh, calc(100vh - 500px)); }
.hw-glass .hw-empty { padding: 24px 12px; }
.hw-glass .hw-empty-t { color: #fff; }
.hw-glass .hw-empty-s { color: rgba(255,255,255,0.65); }

/* Авсаархан дэлгэрэнгүй мөр */
.hw-glass .hw-detail {
    border-top: 1px solid rgba(255,255,255,0.18);
    padding-top: 12px;
}
.hw-cd {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
}
.hw-cd > svg { width: 40px; height: 40px; }
.hw-cd-name { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-cd-name span { font-weight: 300; font-size: 12px; color: rgba(255,255,255,0.7); }
.hw-cd-desc { font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 2px; }
.hw-cd-temp { font-size: 28px; font-weight: 700; color: #fff; line-height: 1; text-align: right; }
.hw-cd-temp span { display: block; font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.65); margin-top: 3px; }
.hw-cd-stats {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hw-cd-stats span {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 4px 10px;
}
.hw-cd-stats b { font-weight: 600; color: #fff; margin-left: 2px; }
