.weather-page {
    background:
        radial-gradient(900px 400px at 0% 0%, rgba(184, 107, 53, .07), transparent 55%),
        var(--paper);
}
.weather-header {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 248, 249, .94);
    backdrop-filter: blur(14px);
}
.weather-nav { height: 78px; display: flex; align-items: center; gap: 48px; }
.weather-nav .brand { color: var(--ink); }
.weather-nav .brand small { color: var(--muted); }
.weather-nav nav { display: flex; gap: 28px; margin-left: auto; font-size: 13px; font-weight: 700; }
.weather-nav nav a:hover { color: var(--copper); }
.weather-header .back-home {
    display: inline-flex; align-items: center; gap: 7px; padding: 11px 15px;
    border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 800; background: white;
}
.weather-header .back-home [data-lucide] { width: 15px; }
.weather-hero { padding: 52px 0 0; }
.weather-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.weather-title h1 {
    margin: 8px 0 9px;
    font-family: var(--font-serif);
    font-size: clamp(36px,4vw,52px);
    letter-spacing: -.03em;
    font-weight: 600;
}
.weather-title p { margin: 0; color: var(--muted); font-size: 14px; }
.weather-update { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.weather-update [data-lucide] { width: 14px; color: var(--copper); }
.weather-overview {
    display: grid; grid-template-columns: 270px 1fr; min-height: 290px; overflow: hidden;
    border-radius: var(--radius-lg); border: 1px solid var(--line); background: white;
}
.today-card {
    padding: 30px; display: flex; flex-direction: column; justify-content: space-between; color: white;
    background: linear-gradient(145deg, #1a242e, #0b1116 70%);
}
.today-location { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.today-location [data-lucide] { width: 16px; color: #e0b48a; }
.today-main { display: flex; align-items: center; justify-content: space-between; }
.today-main > div { display: flex; flex-direction: column; }
.today-main strong { font-size: 57px; line-height: 1; letter-spacing: -3px; }
.today-main span { margin-top: 7px; color: rgba(255,255,255,.72); font-size: 12px; }
.today-main > [data-lucide] { width: 68px; height: 68px; color: #e0b48a; stroke-width: 1.3; }
.today-details { display: grid; gap: 8px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.18); }
.today-details span { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 5px; color: rgba(255,255,255,.66); font-size: 10px; }
.today-details [data-lucide] { width: 13px; }
.today-details b { color: white; }
.forecast-strip { display: grid; grid-template-columns: repeat(7,1fr); }
.forecast-card { padding: 28px 13px; display: flex; flex-direction: column; text-align: center; border-right: 1px solid var(--line); }
.forecast-card:last-child { border: 0; }
.forecast-card > span { color: var(--mist); font-size: 9px; }
.forecast-card > b { margin-top: 5px; font-size: 11px; }
.forecast-card > [data-lucide] { width: 36px; height: 36px; margin: 24px auto 12px; color: var(--copper); stroke-width: 1.6; }
.forecast-card > em { min-height: 29px; color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.4; }
.forecast-card > div { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: auto; padding-top: 15px; }
.forecast-card strong { color: var(--copper); font-size: 21px; }
.forecast-card small { color: var(--mist); font-size: 14px; }
.forecast-card .rain { margin-top: 7px; color: var(--copper); font-size: 9px; }
.skeleton { opacity: .45; }
.city-tabs {
    display: flex; margin-top: 22px; overflow-x: auto;
    border-radius: 14px; border: 1px solid var(--line); background: white;
}
.city-tabs button {
    position: relative; min-width: 145px; padding: 15px 20px; border: 0;
    border-right: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer;
}
.city-tabs button:after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:transparent; }
.city-tabs button.active { color: var(--copper-deep); }
.city-tabs button.active:after { background: var(--copper); }
.city-tabs button small { display: block; margin-top: 3px; color: var(--mist); font-size: 9px; }
.map-section { padding: 35px 0 75px; }
.weather-content-grid { display: grid; grid-template-columns: 1fr 290px; gap: 22px; }
.map-panel {
    padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: white;
}
.panel-heading {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
    margin-bottom: 18px; flex-wrap: wrap;
}
.panel-heading > div:first-child { min-width: 0; flex: 1 1 auto; }
.panel-heading h2 {
    margin: 6px 0 0; font-family: var(--font-serif); font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.25; letter-spacing: -.02em; font-weight: 600;
}
.map-legend {
    display: flex; flex-wrap: wrap; gap: 12px 16px; color: var(--muted); font-size: 10px;
    flex: 0 0 auto;
}
.map-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.legend-dot.warm { background: var(--copper); }
.legend-dot.cool { background: #5a7d92; }
.mongolia-map {
    position: relative; height: 520px; overflow: hidden; border-radius: 14px;
    background: #c9bda4; border: 1px solid #b9a888; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.map-terrain { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.map-locations { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-marker {
    position: absolute; z-index: 2; transform: translate(-50%, -50%);
    display: block; padding: 0; border: 0; background: none; cursor: pointer;
}
.map-pin {
    min-width: 36px; height: 28px; padding: 0 7px;
    display: grid; place-items: center; border-radius: 999px;
    background: rgba(255, 252, 245, .96); border: 1.5px solid #8a6a35;
    color: #3f2f18; font-size: 11px; font-weight: 800; letter-spacing: -.02em;
    font-variant-numeric: tabular-nums; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(62, 42, 12, .18);
}
.map-label {
    position: absolute; left: 50%; bottom: calc(100% + 8px);
    transform: translateX(-50%);
    display: none; flex-direction: column; align-items: center; gap: 2px;
    min-width: max-content; max-width: 140px; padding: 7px 10px;
    border-radius: 10px; border: 1px solid rgba(138, 106, 53, .3);
    background: rgba(255, 252, 245, .97); box-shadow: 0 10px 24px rgba(62, 42, 12, .16);
    pointer-events: none; white-space: nowrap;
}
.map-label b {
    color: #3f2f18; font-size: 11px; font-weight: 800; line-height: 1.2;
}
.map-label small {
    color: #7a6a4e; font-size: 9px; font-weight: 600; line-height: 1.2;
}
.map-marker:hover,
.map-marker:focus-visible,
.map-marker.selected { z-index: 6; }
.map-marker:hover .map-label,
.map-marker:focus-visible .map-label,
.map-marker.selected .map-label { display: flex; }
.map-marker:hover { transform: translate(-50%, -50%) scale(1.06); }
.map-marker.selected .map-pin {
    background: var(--ink); border-color: #071018; color: #e0b48a;
}
.map-loading {
    position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 8px;
    transform: translate(-50%, -50%); color: #6d5a38; font-size: 11px;
    background: rgba(255,252,245,.86); padding: 10px 14px; border-radius: 10px;
}
.map-loading [data-lucide] { animation: mapSpin 1s linear infinite; }
@keyframes mapSpin { to { transform: rotate(360deg); } }
.map-note { display: flex; align-items: center; gap: 6px; margin: 13px 0 0; color: #8a7a5c; font-size: 10px; }
.map-note [data-lucide] { width: 13px; }
.weather-sidebar { display: grid; align-content: start; gap: 18px; }
.sidebar-card {
    padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: white;
}
.sidebar-icon { width: 42px; height: 42px; margin: 24px 0 14px; color: var(--copper); stroke-width: 1.5; }
.sidebar-card h3 { margin: 0 0 11px; font-family: var(--font-serif); font-size: 20px; line-height: 1.4; font-weight: 600; }
.sidebar-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.latest-card { display: grid; }
.latest-card > a { padding: 17px 0; border-bottom: 1px solid var(--line); }
.latest-card > a:last-child { border: 0; padding-bottom: 0; }
.latest-card b, .latest-card small { display: block; }
.latest-card b { font-size: 13px; line-height: 1.5; }
.latest-card small { margin-top: 7px; color: var(--mist); font-size: 10px; }
.weather-footer { padding: 24px 0; color: rgba(255,255,255,.5); background: #071018; font-size: 11px; }
.weather-footer .container { display: flex; justify-content: space-between; }

@media (max-width: 1050px) {
    .weather-nav nav { display: none; }
    .weather-header .back-home { margin-left: auto; }
    .weather-overview { grid-template-columns: 1fr; overflow: hidden; }
    .forecast-strip {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
        grid-template-columns: repeat(7, minmax(112px, 1fr));
    }
    .weather-content-grid { grid-template-columns: 1fr; }
    .weather-sidebar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .weather-nav { height: 68px; }
    .weather-header .back-home { padding: 10px; font-size: 0; }
    .weather-title { align-items: flex-start; flex-direction: column; }
    .weather-title h1 { font-size: clamp(28px, 8vw, 34px); }
    .weather-overview { display: block; overflow: hidden; }
    .today-card { min-height: 260px; }
    .forecast-strip { overflow-x: auto; min-width: 0; grid-template-columns: repeat(7, minmax(112px, 130px)); }
    .city-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .city-tabs button { min-width: 125px; }
    .map-panel { padding: 14px; }
    .panel-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .mongolia-map { height: min(360px, 68vw); }
    .map-label, .city-pin span { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .weather-sidebar { grid-template-columns: 1fr; }
}
