.weather-page-map-test .main-shell {
    padding-top: 18px;
}

.weather-page-map-test {
    overflow-x: hidden;
}

.map-test-page {
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: 22px;
    min-width: 0;
}

.map-test-page,
.map-test-page * {
    box-sizing: border-box;
}

.map-test-hero,
.map-test-layout,
.map-test-info-grid {
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.map-test-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
}

.map-test-hero__copy,
.map-test-status,
.map-test-main-card,
.map-test-panel-card,
.map-test-info-grid article {
    min-width: 0;
    padding: 20px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

.map-test-hero h1,
.map-test-main-card h2,
.map-test-info-grid h2 {
    margin: 0;
    color: #17202a;
    line-height: 1.08;
}

.map-test-hero h1 {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.map-test-hero p,
.map-test-status p,
.map-test-copy,
.map-test-source,
.map-test-info-grid p {
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.56;
    overflow-wrap: anywhere;
}

.map-test-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.map-test-hero__badges span,
.map-test-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.map-test-hero__badges span {
    border: 1px solid rgba(15, 118, 110, 0.16);
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
}

.map-test-pill[data-state="ok"] { background: rgba(16, 185, 129, 0.14); color: #047857; }
.map-test-pill[data-state="warning"] { background: rgba(245, 158, 11, 0.16); color: #92400e; }
.map-test-pill[data-state="error"] { background: rgba(239, 68, 68, 0.16); color: #991b1b; }
.map-test-pill[data-state="loading"] { background: rgba(15, 23, 42, 0.08); color: #334155; }

.map-test-status,
.map-test-main-card,
.map-test-panel {
    display: grid;
    align-content: start;
    gap: 16px;
}

.map-test-status__row,
.map-test-panel-card__head,
.map-test-map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.map-test-status__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.map-test-status__grid span,
.map-test-extreme span,
.map-test-panel-card__head span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.map-test-layout {
    grid-template-columns: minmax(0, 2.15fr) minmax(280px, 0.68fr);
    align-items: start;
    min-width: 0;
}

.map-test-image-frame {
    position: relative;
    margin: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(31, 42, 48, 0.08);
    background: #e9eef3;
    min-height: 485px;
}

.map-test-image-frame img {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    object-fit: contain;
}

.map-test-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    background: rgba(248, 250, 252, 0.92);
    color: #17202a;
}

.map-test-loader.is-hidden {
    display: none;
}

.map-test-loader span {
    color: var(--text-soft);
}

.map-test-extremes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.map-test-extreme {
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    background: rgba(37, 99, 235, 0.08);
}

.map-test-extreme-hot {
    border-color: rgba(220, 38, 38, 0.14);
    background: rgba(220, 38, 38, 0.08);
}

.map-test-extreme strong {
    display: block;
    color: #17202a;
    font-size: 1.22rem;
    line-height: 1.1;
}

.map-test-extreme p {
    margin: 6px 0 0;
    color: var(--text-soft);
}

.map-test-panel {
    min-width: 0;
    position: sticky;
    top: 104px;
}

.map-test-options {
    display: grid;
    gap: 8px;
}

.map-test-option {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
    align-items: center;
    padding: 10px 11px;
    border: 1px solid rgba(31, 42, 48, 0.08);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    color: #17202a;
    text-align: left;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.map-test-option:hover,
.map-test-option[aria-checked="true"] {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, 0.28);
    background: rgba(15, 118, 110, 0.08);
}

.map-test-option__dot,
.map-test-legend-swatch {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.map-test-option strong {
    display: block;
    font-size: 0.88rem;
    line-height: 1.25;
}

.map-test-option span:last-child {
    color: var(--text-soft);
    font-size: 0.74rem;
}

.map-test-legend {
    display: grid;
    gap: 8px;
}

.map-test-legend-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
    align-items: center;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.map-test-source {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.1);
}

.map-test-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1180px) {
    .map-test-hero,
    .map-test-layout,
    .map-test-info-grid {
        grid-template-columns: 1fr;
    }

    .map-test-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .map-test-page {
        width: min(100%, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
    }

    .map-test-hero__copy,
    .map-test-status,
    .map-test-main-card,
    .map-test-panel-card,
    .map-test-info-grid article {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        border-radius: 22px;
        overflow: hidden;
    }

    .map-test-status__row,
    .map-test-panel-card__head,
    .map-test-map-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .map-test-map-head .button {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .map-test-status__grid,
    .map-test-extremes {
        grid-template-columns: 1fr;
    }

    .map-test-image-frame {
        min-height: 260px;
        border-radius: 18px;
    }

    .map-test-hero__badges {
        gap: 8px;
    }

    .map-test-hero__badges span {
        min-height: 32px;
        padding: 0 10px;
        font-size: 0.78rem;
    }
}
