@import url("https://unpkg.com/leaflet@1.9.4/dist/leaflet.css");


/* ========================================
   SAMNET MAP PAGE
======================================== */

.samnet-map-page {
    min-height: 100vh;

    color: #172b43;

    background: #f4f7f8;
}


/* ========================================
   PAGE HEADER
======================================== */

.map-page-header {
    padding: 34px 0;

    border-bottom: 1px solid #dfe6e9;

    background: #ffffff;
}


.map-page-header__inner {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}


.map-page-kicker {
    display: block;

    margin-bottom: 3px;

    color: #2f8f5b;

    font-size: 0.816rem;
    font-weight: 900;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.map-page-header h1 {
    margin: 0;

    color: #172b43;

    font-size: clamp(
        2rem,
        4vw,
        2.65rem
    );

    font-weight: 800;

    letter-spacing: -0.035em;
}


.map-page-header p {
    margin: 7px 0 0;

    color: #718096;

    font-size: 1.08rem;
}


/* ========================================
   NETWORK STATUS SECTION
======================================== */

.map-network-status {
    padding: 8px 0;

    border-bottom: 1px solid #dce4e7;

    background: #eef3f4;
}


.map-network-status__header {
    margin-bottom: 5px;
}


.map-network-status__header span {
    display: block;

    color: #2f8f5b;

    font-size: 0.696rem;
    font-weight: 900;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


.map-network-status__header strong {
    display: block;

    margin-top: 1px;

    color: #52646e;

    font-size: 0.912rem;
    font-weight: 800;
}


/* ========================================
   NETWORK STATUS GRID
======================================== */

.map-network-status__grid {
    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(165px, 1fr)
    );

    gap: 6px;
}


/* ========================================
   NETWORK STATION CARD
======================================== */

.map-network-station {
    display: grid;

    min-width: 0;
    min-height: 44px;

    padding: 6px 9px;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    grid-template-areas:
        "identity status"
        "identity latest";

    align-items: center;

    column-gap: 9px;

    border: 1px solid #dce4e7;

    border-radius: 7px;

    background: #ffffff;

    box-shadow:
        0 1px 4px
        rgba(7, 26, 38, 0.03);
}


/* ========================================
   NETWORK STATION IDENTITY
======================================== */

.map-network-station__identity {
    grid-area: identity;

    min-width: 0;
}


.map-network-station__identity strong {
    display: block;

    color: #172b43;

    font-size: 0.936rem;
    font-weight: 900;

    line-height: 1.05;
}


.map-network-station__identity span {
    display: block;

    margin-top: 2px;

    overflow: hidden;

    color: #72848d;

    font-size: 0.684rem;
    font-weight: 600;

    line-height: 1.15;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* ========================================
   NETWORK STATION STATUS
======================================== */

.map-network-station__status {
    display: flex;

    grid-area: status;

    align-items: center;
    justify-content: flex-end;

    gap: 5px;

    white-space: nowrap;
}


.map-network-status-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #9aa7ad;
}


.map-network-station__status strong {
    font-size: 0.744rem;
    font-weight: 900;

    letter-spacing: 0.025em;

    text-transform: uppercase;
}


/* ========================================
   LIVE
======================================== */

.map-network-station__status--live {
    color: #16834f;
}


.map-network-station__status--live
.map-network-status-dot {
    background: #1aaa63;

    box-shadow:
        0 0 0 2px
        rgba(26, 170, 99, 0.10);
}


/* ========================================
   DELAYED
======================================== */

.map-network-station__status--delayed {
    color: #a36b00;
}


.map-network-station__status--delayed
.map-network-status-dot {
    background: #e3a11b;

    box-shadow:
        0 0 0 2px
        rgba(227, 161, 27, 0.10);
}


/* ========================================
   OLD DATA
======================================== */

.map-network-station__status--old {
    color: #b33a3a;
}


.map-network-station__status--old
.map-network-status-dot {
    background: #d84a4a;

    box-shadow:
        0 0 0 2px
        rgba(216, 74, 74, 0.10);
}


/* ========================================
   LOADING
======================================== */

.map-network-station__status--loading {
    color: #7b8990;
}


/* ========================================
   LATEST OBSERVATION TIME
======================================== */

.map-network-station__latest {
    display: flex;

    grid-area: latest;

    margin-top: 2px;

    align-items: baseline;
    justify-content: flex-end;

    gap: 4px;
}


.map-network-station__latest span {
    color: #89969d;

    font-size: 0.576rem;
    font-weight: 800;

    text-transform: uppercase;
}


.map-network-station__latest strong {
    color: #52646e;

    font-size: 0.72rem;
    font-weight: 900;

    white-space: nowrap;
}


/* ========================================
   MAP WORKSPACE
======================================== */

.map-workspace {
    padding: 24px 0 48px;
}


/* ========================================
   MAIN MAP LAYOUT
======================================== */

.map-layout {
    display: grid;

    grid-template-columns:
        245px
        minmax(0, 1fr);

    gap: 15px;

    align-items: start;
}


/* ========================================
   SIDEBAR
======================================== */

.map-sidebar {
    display: flex;

    min-width: 0;

    flex-direction: column;

    gap: 10px;

    align-self: start;
}


/* ========================================
   COLLAPSIBLE CONTROL PANELS
======================================== */

.map-control-panel {
    width: 100%;

    flex: 0 0 auto;

    align-self: start;

    overflow: hidden;

    border: 1px solid #dce4e7;

    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 4px 14px
        rgba(7, 26, 38, 0.04);
}


.map-control-panel summary {
    display: flex;

    min-height: 42px;

    padding: 0 13px;

    align-items: center;
    justify-content: space-between;

    color: #172b43;

    font-size: 0.864rem;
    font-weight: 900;

    cursor: pointer;

    list-style: none;

    user-select: none;
}


.map-control-panel summary::-webkit-details-marker {
    display: none;
}


.map-control-chevron {
    color: #7c8a91;

    transition:
        transform
        160ms
        ease;
}


.map-control-panel[open]
.map-control-chevron {
    transform: rotate(180deg);
}


.map-control-panel__body {
    display: grid;

    padding: 4px 9px 10px;

    gap: 4px;

    border-top: 1px solid #edf0f1;
}


/* ========================================
   SIDEBAR OPTIONS
======================================== */

.map-radio-option,
.map-variable-option {
    display: flex;

    min-height: 38px;

    padding: 7px 8px;

    align-items: center;

    gap: 8px;

    border-radius: 7px;

    cursor: pointer;
}


.map-radio-option:hover,
.map-variable-option:hover {
    background: #f4f8f6;
}


.map-radio-option input,
.map-variable-option input {
    flex: 0 0 auto;

    accent-color: #2f8f5b;
}


.map-radio-option > span {
    display: flex;

    min-width: 0;

    flex-direction: column;
}


.map-radio-option strong,
.map-variable-option span {
    color: #253b4b;

    font-size: 0.828rem;
    font-weight: 800;
}


.map-radio-option small {
    margin-top: 1px;

    color: #87949b;

    font-size: 0.648rem;

    line-height: 1.25;
}


/* ========================================
   HELP CARD
======================================== */

.map-help-card {
    width: 100%;

    padding: 12px;

    flex: 0 0 auto;

    border: 1px solid #dce4e7;

    border-left: 3px solid #2f8f5b;

    border-radius: 8px;

    background: #ffffff;
}


.map-help-card strong {
    display: block;

    color: #172b43;

    font-size: 0.78rem;
    font-weight: 900;
}


.map-help-card p {
    margin: 4px 0 0;

    color: #74848c;

    font-size: 0.696rem;

    line-height: 1.45;
}


/* ========================================
   MAP CONTAINER
======================================== */

.map-main {
    min-width: 0;

    overflow: hidden;

    border: 1px solid #dce4e7;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 8px 25px
        rgba(7, 26, 38, 0.06);
}


.samnet-map {
    width: 100%;
    height: 670px;

    background: #dce5e8;
}


/* ========================================
   MAP FOOTER
======================================== */

.map-footer-bar {
    display: flex;

    min-height: 48px;

    padding: 0 14px;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-top: 1px solid #dce4e7;

    background: #ffffff;
}


.map-footer-updated span {
    display: block;

    color: #8a979d;

    font-size: 0.588rem;
    font-weight: 800;

    text-transform: uppercase;
}


.map-footer-updated strong {
    display: block;

    margin-top: 2px;

    color: #52646e;

    font-size: 0.756rem;
    font-weight: 900;
}


.map-footer-legend {
    display: flex;

    align-items: center;

    gap: 6px;

    color: #66777f;

    font-size: 0.696rem;
}


.map-legend-dot {
    width: 8px;
    height: 8px;

    border: 2px solid #ffffff;

    border-radius: 50%;

    background: #2f8f5b;

    box-shadow:
        0 0 0 1px
        #2f8f5b;
}


/* ========================================
   SIMPLE MAP MARKER
======================================== */

.samnet-simple-icon {
    background: transparent;

    border: 0;
}


.samnet-simple-marker {
    position: relative;

    display: flex;

    align-items: center;

    gap: 5px;

    white-space: nowrap;

    cursor: pointer;
}


.samnet-simple-marker__dot {
    width: 10px;
    height: 10px;

    flex: 0 0 10px;

    border: 2px solid #ffffff;

    border-radius: 50%;

    background: #2f8f5b;

    box-shadow:
        0 1px 5px
        rgba(0, 0, 0, 0.35);
}


.samnet-simple-marker__value {
    padding: 4px 7px;

    border-radius: 5px;

    color: #172b43;

    background:
        rgba(255, 255, 255, 0.94);

    box-shadow:
        0 1px 5px
        rgba(0, 0, 0, 0.20);

    font-size: 1.128rem;
    font-weight: 900;

    line-height: 1;
}


/* ========================================
   STATION PLOT
======================================== */

.samnet-stationplot-icon {
    background: transparent;

    border: 0;
}


.samnet-stationplot {
    position: relative;

    width: 100px;
    height: 82px;

    color: #152b3a;

    font-family:
        "Source Sans 3",
        sans-serif;

    font-size: 1.248rem;
    font-weight: 900;

    line-height: 1;

    cursor: pointer;
}


/* ========================================
   STATION PLOT CENTER
======================================== */

.samnet-stationplot__center {
    position: absolute;

    top: 34px;
    left: 43px;

    width: 13px;
    height: 13px;

    border: 2px solid #ffffff;

    border-radius: 50%;

    background: #2f8f5b;

    box-shadow:
        0 0 0 1px
        #15384a;
}


/* ========================================
   STATION PLOT TEMPERATURE
======================================== */

.samnet-stationplot__temp {
    position: absolute;

    top: 3px;
    left: 0;

    font-size: 1.248rem;
    font-weight: 900;
}


/* ========================================
   STATION PLOT DEW POINT
======================================== */

.samnet-stationplot__dew {
    position: absolute;

    bottom: 3px;
    left: 0;

    font-size: 1.248rem;
    font-weight: 900;
}


/* ========================================
   STATION PLOT PRESSURE
======================================== */

.samnet-stationplot__pressure {
    position: absolute;

    top: 3px;
    right: -8px;

    font-size: 1.2rem;
    font-weight: 900;
}


/* ========================================
   STATION PLOT RAIN
======================================== */

.samnet-stationplot__rain {
    position: absolute;

    right: -8px;
    bottom: 3px;

    font-size: 1.2rem;
    font-weight: 900;
}


/* ========================================
   STATION PLOT WIND STAFF
======================================== */

.samnet-stationplot__wind {
    position: absolute;

    top: 10px;
    left: 49px;

    width: 2px;
    height: 30px;

    background: #163648;

    transform-origin:
        50%
        100%;
}


/* ========================================
   STATION PLOT WIND SPEED
======================================== */

.samnet-stationplot__wind-speed {
    position: absolute;

    top: 34px;
    right: -12px;

    color: #172b43;

    font-size: 1.104rem;
    font-weight: 900;
}


/* ========================================
   LEAFLET TOOLTIP
======================================== */

.leaflet-tooltip.samnet-hover-tooltip {
    padding: 0;

    border: 0;

    border-radius: 11px;

    background: transparent;

    box-shadow:
        0 12px 35px
        rgba(5, 15, 24, 0.25);
}


.leaflet-tooltip.samnet-hover-tooltip::before {
    display: none;
}


/* ========================================
   HOVER CARD
======================================== */

.map-hover-card {
    width: 330px;

    overflow: hidden;

    border:
        1px solid
        rgba(220, 228, 231, 0.95);

    border-radius: 11px;

    color: #172b43;

    background: #ffffff;

    font-family:
        "Source Sans 3",
        sans-serif;
}


/* ========================================
   HOVER CARD HEADER
======================================== */

.map-hover-card__header {
    display: flex;

    padding: 10px 12px;

    align-items: flex-start;
    justify-content: space-between;

    gap: 10px;
}


.map-hover-card__code {
    display: block;

    color: #2f8f5b;

    font-size: 0.684rem;
    font-weight: 900;

    letter-spacing: 0.07em;
}


.map-hover-card__header h3 {
    margin: 1px 0 0;

    color: #172b43;

    font-size: 1.176rem;
    font-weight: 900;

    line-height: 1.1;
}


.map-hover-card__header p {
    margin: 3px 0 0;

    color: #76868e;

    font-size: 0.708rem;
}


.map-hover-card__elevation {
    flex: 0 0 auto;

    padding: 4px 6px;

    border-radius: 5px;

    color: #52646e;

    background: #eef3f4;

    font-size: 0.648rem;
    font-weight: 800;
}


/* ========================================
   CAMERA
======================================== */

.map-hover-camera {
    position: relative;

    width: 100%;
    height: 155px;

    overflow: hidden;

    background: #12202a;
}


.map-hover-camera img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.map-hover-camera__placeholder {
    display: flex;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    color:
        rgba(255, 255, 255, 0.75);

    font-size: 0.78rem;
    font-weight: 700;
}


.map-hover-camera__time {
    position: absolute;

    left: 7px;
    bottom: 6px;

    padding: 3px 5px;

    border-radius: 4px;

    color: #ffffff;

    background:
        rgba(5, 15, 24, 0.65);

    font-size: 0.588rem;
    font-weight: 700;
}


/* ========================================
   HOVER WEATHER
======================================== */

.map-hover-weather {
    display: grid;

    padding: 10px;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 6px;
}


.map-hover-variable {
    min-width: 0;

    padding: 7px;

    border-radius: 7px;

    background: #f3f6f7;
}


.map-hover-variable span {
    display: block;

    color: #788890;

    font-size: 0.564rem;
    font-weight: 800;

    letter-spacing: 0.02em;

    text-transform: uppercase;
}


.map-hover-variable strong {
    display: block;

    margin-top: 2px;

    color: #172b43;

    font-size: 1.2rem;
    font-weight: 900;

    line-height: 1;
}


.map-hover-variable small {
    color: #819098;

    font-size: 0.564rem;
    font-weight: 700;
}


/* ========================================
   OBSERVATION TIME
======================================== */

.map-hover-observed {
    display: flex;

    padding: 7px 10px;

    align-items: center;
    justify-content: space-between;

    gap: 8px;

    border-top: 1px solid #e5eaed;

    color: #809098;

    font-size: 0.624rem;
}


.map-hover-observed strong {
    color: #52646e;

    font-weight: 800;
}


/* ========================================
   VIEW STATION LINK
======================================== */

.map-hover-link {
    display: flex;

    padding: 8px 10px;

    align-items: center;
    justify-content: space-between;

    border-top: 1px solid #e5eaed;

    color: #2f8f5b;

    font-size: 0.72rem;
    font-weight: 900;

    text-decoration: none;
}


/* ========================================
   LEAFLET CONTROLS
======================================== */

.leaflet-control-zoom a {
    color: #172b43;
}


/* ========================================
   SMALL DESKTOP / LAPTOP
======================================== */

@media (max-width: 1100px) {

    .map-layout {
        grid-template-columns:
            220px
            minmax(0, 1fr);

        gap: 12px;
    }


    .samnet-map {
        height: 640px;
    }


    .map-network-status__grid {
        grid-template-columns:
            repeat(
                auto-fit,
                minmax(165px, 1fr)
            );
    }

}


/* ========================================
   TABLET
======================================== */

@media (max-width: 760px) {

    .map-layout {
        grid-template-columns: 1fr;
    }


    .map-sidebar {
        display: grid;

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap: 8px;
    }


    .map-help-card {
        grid-column:
            1 / -1;
    }


    .samnet-map {
        height: 580px;
    }


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

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .map-page-header {
        padding: 26px 0;
    }


    .map-page-header__inner {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }


    .map-sidebar {
        display: flex;

        flex-direction: column;

        gap: 8px;
    }


    .map-help-card {
        grid-column: auto;
    }


    .map-network-status__grid {
        grid-template-columns: 1fr;
    }


    .samnet-map {
        height: 520px;
    }


    .map-hover-card {
        width: 280px;
    }


    .map-hover-camera {
        height: 130px;
    }


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

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 420px) {

    .samnet-map {
        height: 480px;
    }


    .map-footer-bar {
        align-items: flex-start;

        flex-direction: column;

        padding: 9px 12px;

        gap: 6px;
    }

}

/* =========================================================
   FULL-WIDTH MAP / FLOATING LAYER PANEL
   2026-08-06
========================================================= */

.map-workspace {
    padding: 0;
}


.map-workspace > .page-container {
    width: 100%;
    max-width: none;
    padding: 0;
}


.map-layout {
    display: block;
}


.map-main {
    position: relative;

    width: 100%;
    min-width: 0;

    overflow: hidden;

    border: 0;
    border-radius: 0;

    background: #dce5e8;

    box-shadow: none;
}


.samnet-map {
    width: 100%;

    height:
        calc(
            100vh -
            205px
        );

    min-height: 650px;

    background: #dce5e8;
}


/* ========================================
   FLOATING LAYERS BUTTON
======================================== */

.map-layer-toggle {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 1100;

    display: inline-flex;

    min-height: 39px;

    padding: 0 13px;

    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 1px solid #d5dfe2;

    border-radius: 8px;

    color: #233b4b;

    background:
        rgba(
            255,
            255,
            255,
            0.97
        );

    box-shadow:
        0 5px 18px
        rgba(
            7,
            26,
            38,
            0.16
        );

    font-family:
        "Source Sans 3",
        sans-serif;

    font-size: 0.816rem;
    font-weight: 900;

    cursor: pointer;
}


.map-layer-toggle:hover {
    background: #f4f8f6;
}


/* ========================================
   FLOATING PANEL
======================================== */

.map-layer-panel {
    position: absolute;

    top: 61px;
    right: 14px;

    z-index: 1200;

    display: block;

    width: 285px;
    max-width:
        calc(
            100% -
            28px
        );

    max-height:
        calc(
            100% -
            78px
        );

    overflow: hidden;

    border: 1px solid #d5dfe2;

    border-radius: 11px;

    background:
        rgba(
            247,
            249,
            249,
            0.98
        );

    box-shadow:
        0 12px 35px
        rgba(
            7,
            26,
            38,
            0.20
        );

    backdrop-filter: blur(6px);
}


.map-layer-panel[hidden] {
    display: none !important;
}


.map-layer-panel__header {
    display: flex;

    min-height: 52px;

    padding: 8px 11px;

    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #dce4e7;

    background: #ffffff;
}


.map-layer-panel__header span {
    display: block;

    color: #2f8f5b;

    font-size: 0.564rem;
    font-weight: 900;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


.map-layer-panel__header strong {
    display: block;

    margin-top: 1px;

    color: #172b43;

    font-size: 0.984rem;
    font-weight: 900;
}


.map-layer-panel__close {
    display: flex;

    width: 30px;
    height: 30px;

    padding: 0;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 6px;

    color: #66777f;

    background: transparent;

    font-size: 1.32rem;

    cursor: pointer;
}


.map-layer-panel__close:hover {
    background: #edf3f0;
}


.map-layer-panel__body {
    display: flex;

    max-height:
        calc(
            100vh -
            295px
        );

    padding: 9px;

    overflow-y: auto;

    flex-direction: column;

    gap: 8px;

    overscroll-behavior: contain;
}


/* Existing panels are now cards inside modal */
.map-layer-panel .map-control-panel {
    box-shadow: none;
}


.map-layer-panel .map-help-card {
    margin: 0;
}


/* ========================================
   RADAR OPACITY
======================================== */

.map-radar-opacity {
    padding:
        5px
        8px
        8px;
}


.map-radar-opacity > div {
    display: flex;

    margin-bottom: 4px;

    align-items: center;
    justify-content: space-between;

    gap: 10px;
}


.map-radar-opacity span,
.map-radar-opacity strong {
    color: #7d8a91;

    font-size: 0.576rem;
    font-weight: 800;
}


.map-radar-opacity input[type="range"] {
    width: 100%;

    accent-color: #2f8f5b;
}


.map-control-note {
    margin:
        0
        8px
        5px;

    color: #89969d;

    font-size: 0.6rem;

    line-height: 1.35;
}


/* ========================================
   FLOATING MAP FOOTER
======================================== */

.map-footer-bar {
    display: none;
}


.map-floating-updated,
.map-floating-legend {
    position: absolute;

    bottom: 11px;

    z-index: 1000;

    min-height: 34px;

    padding: 6px 9px;

    border:
        1px solid
        rgba(
            215,
            224,
            227,
            0.96
        );

    border-radius: 7px;

    background:
        rgba(
            255,
            255,
            255,
            0.94
        );

    box-shadow:
        0 3px 12px
        rgba(
            7,
            26,
            38,
            0.13
        );

    backdrop-filter: blur(4px);
}


.map-floating-updated {
    left: 11px;
}


.map-floating-updated span {
    display: block;

    color: #8a979d;

    font-size: 0.54rem;
    font-weight: 800;

    text-transform: uppercase;
}


.map-floating-updated strong {
    display: block;

    margin-top: 1px;

    color: #52646e;

    font-size: 0.708rem;
    font-weight: 900;
}


.map-floating-legend {
    right: 11px;

    display: flex;

    align-items: center;

    gap: 6px;

    color: #66777f;

    font-size: 0.672rem;
    font-weight: 800;
}


/* ========================================
   NWS ALERT POPUP
======================================== */

.map-alert-popup {
    min-width: 220px;

    color: #172b43;

    font-family:
        "Source Sans 3",
        sans-serif;
}


.map-alert-popup strong {
    display: block;

    margin-bottom: 4px;

    font-size: 0.912rem;
    font-weight: 900;
}


.map-alert-popup span {
    display: block;

    margin-top: 2px;

    color: #63747d;

    font-size: 0.696rem;

    line-height: 1.35;
}


/* ========================================
   RESPONSIVE FULL MAP
======================================== */

@media (max-width: 900px) {

    .samnet-map {
        height:
            calc(
                100vh -
                190px
            );

        min-height: 600px;
    }


    .map-layer-panel__body {
        max-height:
            calc(
                100vh -
                280px
            );
    }

}


@media (max-width: 700px) {

    .map-page-header {
        padding:
            18px
            0;
    }


    .map-page-header p {
        display: none;
    }


    .map-network-status__header {
        display: none;
    }


    .samnet-map {
        height:
            calc(
                100vh -
                150px
            );

        min-height: 560px;
    }


    .map-layer-toggle {
        top: 10px;
        right: 10px;
    }


    .map-layer-panel {
        top: 55px;
        right: 10px;

        width:
            min(
                285px,
                calc(
                    100% -
                    20px
                )
            );

        max-height:
            calc(
                100% -
                65px
            );
    }


    .map-layer-panel__body {
        max-height:
            calc(
                100vh -
                235px
            );
    }


    .map-floating-updated {
        left: 9px;
        bottom: 9px;
    }


    .map-floating-legend {
        right: 9px;
        bottom: 9px;
    }

}


@media (max-width: 430px) {

    .map-network-status {
        display: none;
    }


    .samnet-map {
        height:
            calc(
                100vh -
                105px
            );

        min-height: 520px;
    }


    .map-floating-legend {
        display: none;
    }

}

/* =========================================================
   ASOS / METAR OBSERVATION LAYER
========================================================= */

.asos-stationplot-icon {
    background: transparent;
    border: 0;
}


.asos-stationplot {
    position: relative;

    width: 92px;
    height: 74px;

    color: #183a59;

    font-family:
        "Source Sans 3",
        sans-serif;

    font-size: 1.008rem;
    font-weight: 900;

    line-height: 1;

    cursor: default;
}


.asos-stationplot__center {
    position: absolute;

    top: 31px;
    left: 40px;

    width: 12px;
    height: 12px;

    border: 3px solid #2d6f9f;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 0 1px
        rgba(
            255,
            255,
            255,
            0.9
        );
}


.asos-stationplot__temp {
    position: absolute;

    top: 2px;
    left: 2px;
}


.asos-stationplot__dew {
    position: absolute;

    bottom: 2px;
    left: 2px;
}


.asos-stationplot__pressure {
    position: absolute;

    top: 2px;
    right: -2px;

    font-size: 0.936rem;
}


.asos-stationplot__id {
    position: absolute;

    right: -3px;
    bottom: 2px;

    color: #446879;

    font-size: 0.732rem;
    font-weight: 900;
}


.asos-stationplot__wind {
    position: absolute;

    top: 7px;
    left: 45px;

    width: 2px;
    height: 28px;

    background: #285d7d;

    transform-origin:
        50%
        100%;
}


.asos-stationplot__wind-speed {
    position: absolute;

    top: 32px;
    right: -4px;

    color: #285d7d;

    font-size: 0.864rem;
}


/* ========================================
   ASOS HOVER TOOLTIP
======================================== */

.leaflet-tooltip.asos-hover-tooltip {
    padding: 0;

    border: 0;

    border-radius: 10px;

    background: transparent;

    box-shadow:
        0 10px 30px
        rgba(
            7,
            26,
            38,
            0.24
        );
}


.leaflet-tooltip.asos-hover-tooltip::before {
    display: none;
}


.asos-popup {
    width: 310px;

    overflow: hidden;

    border:
        1px solid
        #d7e0e4;

    border-radius: 10px;

    color: #172b43;

    background: #ffffff;

    font-family:
        "Source Sans 3",
        sans-serif;
}


.asos-popup__header {
    display: flex;

    padding: 9px 10px;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    border-bottom:
        1px solid
        #e6ecee;

    background: #f5f8fa;
}


.asos-popup__header > div > span {
    display: block;

    color: #2d6f9f;

    font-size: 0.564rem;
    font-weight: 900;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


.asos-popup__header > div > strong {
    display: block;

    margin-top: 1px;

    color: #172b43;

    font-size: 1.116rem;
    font-weight: 900;
}


.asos-popup__flight-category {
    padding:
        3px
        6px;

    border-radius: 5px;

    color: #31586e;

    background: #e5eef3;

    font-size: 0.624rem;
    font-weight: 900;
}


.asos-popup__grid {
    display: grid;

    padding: 8px;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 5px;
}


.asos-popup__grid > div {
    min-width: 0;

    padding: 6px;

    border-radius: 6px;

    background: #f4f7f8;
}


.asos-popup__grid span {
    display: block;

    color: #849198;

    font-size: 0.516rem;
    font-weight: 800;

    text-transform: uppercase;
}


.asos-popup__grid strong {
    display: block;

    margin-top: 2px;

    color: #294b60;

    font-size: 0.804rem;
    font-weight: 900;
}


.asos-popup__raw {
    padding: 7px 9px;

    border-top:
        1px solid
        #e6ecee;

    color: #5b6c74;

    background: #fbfcfc;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;

    font-size: 0.576rem;

    line-height: 1.35;

    overflow-wrap: anywhere;
}


@media (max-width: 500px) {

    .asos-popup {
        width: 275px;
    }

}


/* =========================================================
   NOAA SURFACE NETWORK STATION PLOTS
========================================================= */

.surface-stationplot-icon {
    background: transparent;
    border: 0;
}


.surface-stationplot {
    position: relative;

    width: 64px;
    height: 54px;

    font-family:
        "Source Sans 3",
        sans-serif;

    font-size: 0.936rem;
    font-weight: 900;

    line-height: 1;

    white-space: nowrap;
}


.surface-stationplot__center {
    position: absolute;

    top: 22px;
    left: 27px;

    width: 10px;
    height: 10px;

    border: 2px solid #59656c;

    border-radius: 50%;

    background: #ffffff;
}


/* Network-specific center symbols */
.surface-stationplot--cwop
.surface-stationplot__center {
    border-color: #7a49a5;
}


.surface-stationplot--mesonet
.surface-stationplot__center {
    border-color: #d27b24;
}


.surface-stationplot--marine
.surface-stationplot__center {
    border-color: #1686a7;

    border-radius: 2px;
}


.surface-stationplot--other
.surface-stationplot__center {
    border-color: #6d777c;
}


/* Variables */
.surface-stationplot__temp {
    position: absolute;

    top: 5px;
    left: 3px;

    color: #c93632;

    font-size: 1.008rem;
}


.surface-stationplot__dew {
    position: absolute;

    left: 3px;
    bottom: 4px;

    color: #25834e;

    font-size: 1.008rem;
}


.surface-stationplot__pressure {
    position: absolute;

    top: 5px;
    right: 0;

    color: #111111;

    font-size: 0.864rem;
}


.surface-stationplot__id {
    position: absolute;

    right: 0;
    bottom: 4px;

    color: #59686f;

    font-size: 0.6rem;
}


.surface-stationplot__wind {
    position: absolute;

    top: 3px;
    left: 31px;

    width: 2px;
    height: 22px;

    background: #2166a5;

    transform-origin:
        50%
        100%;
}


.surface-stationplot__wind-speed {
    position: absolute;

    top: 23px;
    right: 1px;

    color: #2166a5;

    font-size: 0.744rem;
}


/* =========================================================
   NOAA SURFACE HOVER TOOLTIP
========================================================= */

.leaflet-tooltip.surface-hover-tooltip {
    padding: 0;

    border: 0;

    border-radius: 10px;

    background: transparent;

    box-shadow:
        0 10px 30px
        rgba(
            7,
            26,
            38,
            0.24
        );
}


.leaflet-tooltip.surface-hover-tooltip::before {
    display: none;
}


.surface-popup {
    width: 310px;

    overflow: hidden;

    border: 1px solid #d7e0e4;

    border-radius: 10px;

    color: #172b43;

    background: #ffffff;

    font-family:
        "Source Sans 3",
        sans-serif;
}


.surface-popup__header {
    padding: 9px 10px;

    border-bottom: 1px solid #e6ecee;

    background: #f5f8fa;
}


.surface-popup__header span {
    display: block;

    color: #61727a;

    font-size: 0.564rem;
    font-weight: 900;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


.surface-popup__header strong {
    display: block;

    margin-top: 1px;

    font-size: 1.08rem;
    font-weight: 900;
}


.surface-popup__header small {
    display: block;

    margin-top: 2px;

    color: #7c8b92;

    font-size: 0.624rem;
}


.surface-popup__grid {
    display: grid;

    padding: 8px;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 5px;
}


.surface-popup__grid > div {
    padding: 6px;

    border-radius: 6px;

    background: #f4f7f8;
}


.surface-popup__grid span {
    display: block;

    color: #849198;

    font-size: 0.516rem;
    font-weight: 800;

    text-transform: uppercase;
}


.surface-popup__grid strong {
    display: block;

    margin-top: 2px;

    color: #294b60;

    font-size: 0.768rem;
    font-weight: 900;

    overflow-wrap: anywhere;
}


.surface-popup__raw {
    padding: 7px 9px;

    border-top: 1px solid #e6ecee;

    color: #5b6c74;

    background: #fbfcfc;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;

    font-size: 0.576rem;

    line-height: 1.35;

    overflow-wrap: anywhere;
}


/* =========================================================
   NYS AIR QUALITY / MET LAYER
========================================================= */

.nys-air-icon {
    background: transparent;
    border: 0;
}


.nys-air-marker {
    display: flex;
    flex-direction: column;

    width: 46px;
    min-height: 38px;

    padding: 4px 5px;

    align-items: center;
    justify-content: center;

    border: 2px solid #6b4f86;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.96);

    box-shadow:
        0 2px 7px
        rgba(7, 26, 38, 0.22);

    color: #263947;

    font-family:
        "Source Sans 3",
        sans-serif;

    line-height: 1;
}


.nys-air-marker__pollutant {
    color: #6b4f86;

    font-size: 0.6rem;
    font-weight: 900;

    letter-spacing: 0.02em;
}


.nys-air-marker__value {
    display: block;

    margin-top: 2px;

    color: #1b2f3b;

    font-size: 0.936rem;
    font-weight: 900;
}


/* =========================================================
   NYS AIR HOVER TOOLTIP
========================================================= */

.leaflet-tooltip.nys-air-hover-tooltip {
    padding: 0;

    border: 0;

    border-radius: 10px;

    background: transparent;

    box-shadow:
        0 10px 30px
        rgba(7, 26, 38, 0.24);
}


.leaflet-tooltip.nys-air-hover-tooltip::before {
    display: none;
}


.nys-air-popup {
    width: 310px;

    overflow: hidden;

    border: 1px solid #d7e0e4;

    border-radius: 10px;

    color: #172b43;

    background: #ffffff;

    font-family:
        "Source Sans 3",
        sans-serif;
}


.nys-air-popup__header {
    padding: 9px 10px;

    border-bottom: 1px solid #e6ecee;

    background: #f6f4f8;
}


.nys-air-popup__header > span {
    display: block;

    color: #6b4f86;

    font-size: 0.564rem;
    font-weight: 900;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


.nys-air-popup__header > strong {
    display: block;

    margin-top: 2px;

    color: #172b43;

    font-size: 1.104rem;
    font-weight: 900;
}


.nys-air-popup__header > small {
    display: block;

    margin-top: 2px;

    color: #7c8b92;

    font-size: 0.636rem;
}


.nys-air-popup__pollutants {
    display: grid;

    padding: 8px;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 5px;
}


.nys-air-popup__pollutant {
    padding: 7px;

    border-radius: 6px;

    background: #f4f7f8;
}


.nys-air-popup__pollutant span {
    display: block;

    color: #6b4f86;

    font-size: 0.6rem;
    font-weight: 900;
}


.nys-air-popup__pollutant strong {
    display: block;

    margin-top: 2px;

    color: #263947;

    font-size: 0.864rem;
    font-weight: 900;

    overflow-wrap: anywhere;
}


.nys-air-popup__section-title {
    padding:
        6px
        9px
        2px;

    border-top: 1px solid #e6ecee;

    color: #7c8b92;

    font-size: 0.54rem;
    font-weight: 900;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}


.nys-air-popup__met-grid,
.nys-air-popup__meta {
    display: grid;

    padding: 8px;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 5px;
}


.nys-air-popup__met-grid > div,
.nys-air-popup__meta > div {
    padding: 6px;

    border-radius: 6px;

    background: #f4f7f8;
}


.nys-air-popup__meta {
    border-top: 1px solid #e6ecee;
}


.nys-air-popup__met-grid span,
.nys-air-popup__meta span {
    display: block;

    color: #849198;

    font-size: 0.516rem;
    font-weight: 800;

    text-transform: uppercase;
}


.nys-air-popup__met-grid strong,
.nys-air-popup__meta strong {
    display: block;

    margin-top: 2px;

    color: #294b60;

    font-size: 0.756rem;
    font-weight: 900;

    overflow-wrap: anywhere;
}


@media (max-width: 500px) {

    .nys-air-popup {
        width: 275px;
    }

}

/* ========================================
   RAWS / FIRE WEATHER MAP OBSERVATIONS
======================================== */

.raws-map-icon {
    background: transparent !important;
    border: 0 !important;
}

.raws-map-icon.leaflet-div-icon {
    background: transparent !important;
    border: 0 !important;
}

.raws-map-observation {
    position: relative;
    width: 64px;
    height: 44px;

    font-family:
        "Source Sans 3",
        Arial,
        sans-serif;

    font-size: 14.4px;
    font-weight: 900;
    line-height: 1;

    pointer-events: auto;
}

.raws-map-observation::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #111111;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
    z-index: 2;
}

.raws-map-observation__temp,
.raws-map-observation__rh,
.raws-map-observation__wind,
.raws-map-observation__id {
    position: absolute;
    min-width: 24px;
    white-space: nowrap;
    z-index: 3;

    text-shadow:
        -1px -1px 0 #ffffff,
         1px -1px 0 #ffffff,
        -1px  1px 0 #ffffff,
         1px  1px 0 #ffffff,
         0 0 3px #ffffff;
}

.raws-map-observation__temp {
    top: 2px;
    left: 0;
    color: #c62828;
    text-align: right;
}

.raws-map-observation__rh {
    bottom: 2px;
    left: 0;
    color: #16813a;
    text-align: right;
}

.raws-map-observation__wind {
    top: 2px;
    right: 0;
    color: #1565c0;
    text-align: left;
}

.raws-map-observation__id {
    right: 0;
    bottom: 2px;
    color: #111111;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}

/* Keep the RAWS hover card above nearby map plots. */
.surface-hover-tooltip {
    z-index: 1000;
}


/* ========================================
   MAP VIEW ANCHOR
======================================== */

#map-view {
    scroll-margin-top: 20px;
}


/* ========================================
   UNIVERSAL SIMPLE OBSERVATION MARKER
   Applies to SAMNET + all external networks
======================================== */

.universal-simple-icon,
.universal-simple-icon.leaflet-div-icon {
    background: transparent !important;
    border: 0 !important;
}

.universal-simple-marker {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: "Source Sans 3", Arial, sans-serif;
    cursor: pointer;
}

.universal-simple-marker__dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;

    border: 2px solid #ffffff;
    border-radius: 50%;

    background: #111111;

    box-shadow:
        0 1px 5px
        rgba(0, 0, 0, 0.35);
}

.universal-simple-marker__value {
    padding: 4px 7px;

    border-radius: 5px;

    color: #111111;

    background:
        rgba(
            255,
            255,
            255,
            0.94
        );

    box-shadow:
        0 1px 5px
        rgba(0, 0, 0, 0.20);

    font-size: 1.13rem;
    font-weight: 900;
    line-height: 1;
}

.universal-simple-marker__value--wind {
    font-size: 1rem;
}


/* ========================================
   UNIVERSAL RAWS-STYLE STATION PLOT
======================================== */

.universal-stationplot-icon,
.universal-stationplot-icon.leaflet-div-icon {
    background: transparent !important;
    border: 0 !important;
}

.universal-stationplot {
    position: relative;

    width: 72px;
    height: 48px;

    font-family:
        "Source Sans 3",
        Arial,
        sans-serif;

    font-size: 14.4px;
    font-weight: 900;
    line-height: 1;

    pointer-events: auto;
    cursor: pointer;
}

.universal-stationplot__temp,
.universal-stationplot__rh,
.universal-stationplot__dew,
.universal-stationplot__wind,
.universal-stationplot__id {
    position: absolute;

    min-width: 24px;

    white-space: nowrap;

    z-index: 4;

    text-shadow:
        -1px -1px 0 #ffffff,
         1px -1px 0 #ffffff,
        -1px  1px 0 #ffffff,
         1px  1px 0 #ffffff,
         0 0 3px #ffffff;
}

.universal-stationplot__temp {
    top: 2px;
    left: 0;

    color: #c62828;

    text-align: right;
}

.universal-stationplot__rh,
.universal-stationplot__dew {
    bottom: 2px;
    left: 0;

    color: #16813a;

    text-align: right;
}

.universal-stationplot__wind {
    top: 2px;
    right: 0;

    color: #1565c0;

    text-align: left;
}

.universal-stationplot__id {
    right: 0;
    bottom: 2px;

    color: #111111;

    font-size: 12px;
    font-weight: 800;

    text-align: left;
}

.universal-stationplot__center {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 6px;
    height: 6px;

    transform:
        translate(
            -50%,
            -50%
        );

    border-radius: 50%;

    background: #111111;

    box-shadow:
        0 0 0 2px
        rgba(
            255,
            255,
            255,
            0.95
        );

    z-index: 5;
}


/* ========================================
   UNIVERSAL WIND BARB
======================================== */

.universal-wind-barb {
    position: absolute;

    inset: 0;

    width: 72px;
    height: 48px;

    overflow: visible;

    color: #1565c0;

    z-index: 3;

    pointer-events: none;
}

.universal-wind-barb line {
    fill: none;

    stroke: currentColor;
    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.universal-wind-barb polygon {
    fill: currentColor;

    stroke: currentColor;
    stroke-width: 1;
}


/* ========================================
   UNIVERSAL CLICK DETAIL POPUP
======================================== */

.leaflet-popup.universal-station-detail-popup
.leaflet-popup-content-wrapper {
    border-radius: 10px;
}

.leaflet-popup.universal-station-detail-popup
.leaflet-popup-content {
    margin: 0;

    min-width: 300px;
    max-width: 420px;
}


/* ========================================
   KEEP EXTERNAL HOVER CARDS ABOVE PLOTS
======================================== */

.asos-hover-tooltip,
.surface-hover-tooltip,
.nys-air-hover-tooltip {
    z-index: 1300;
}


/* ========================================
   MOBILE UNIVERSAL PLOT ADJUSTMENTS
======================================== */

@media (max-width: 600px) {

    .universal-simple-marker__value {
        font-size: 1rem;
    }

    .universal-simple-marker__value--wind {
        font-size: 0.9rem;
    }

    .universal-stationplot {
        font-size: 13px;
    }

    .universal-stationplot__id {
        font-size: 11px;
    }
}


/* ========================================
   STATION CLICK DETAIL PANELS
   ASOS / METAR + RAWS
======================================== */

.station-detail {
    width: 100%;
    min-width: 320px;

    color: #172b43;

    background: #ffffff;

    font-family:
        "Source Sans 3",
        Arial,
        sans-serif;
}

.station-detail__header {
    display: flex;

    padding: 14px 16px;

    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;

    border-bottom: 1px solid #e1e7ea;
}

.station-detail__network {
    display: block;

    margin-bottom: 3px;

    color: #2f8f5b;

    font-size: 0.78rem;
    font-weight: 900;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}

.station-detail__title {
    display: block;

    color: #172b43;

    font-size: 1.2rem;
    font-weight: 900;

    line-height: 1.15;
}

.station-detail__id {
    display: block;

    margin-top: 4px;

    color: #74848c;

    font-size: 0.8rem;
    font-weight: 800;
}

.station-detail__badge {
    flex: 0 0 auto;

    padding: 5px 8px;

    border: 1px solid #d9e2e5;
    border-radius: 6px;

    color: #344b5a;

    background: #f3f6f7;

    font-size: 0.76rem;
    font-weight: 900;
}

.station-detail__section {
    padding: 12px 16px;

    border-bottom: 1px solid #e8edef;
}

.station-detail__section h4 {
    margin: 0 0 9px;

    color: #536670;

    font-size: 0.78rem;
    font-weight: 900;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}

.station-detail__grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 7px;
}

.station-detail__row {
    min-width: 0;

    padding: 8px 9px;

    border-radius: 7px;

    background: #f3f6f7;
}

.station-detail__row span {
    display: block;

    color: #788890;

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.02em;

    text-transform: uppercase;
}

.station-detail__row strong {
    display: block;

    margin-top: 3px;

    overflow-wrap: anywhere;

    color: #172b43;

    font-size: 0.96rem;
    font-weight: 900;

    line-height: 1.15;
}

.station-detail__raw {
    padding: 10px;

    overflow-wrap: anywhere;

    border: 1px solid #dfe6e9;
    border-radius: 7px;

    color: #243a49;

    background: #f7f9fa;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;

    font-size: 0.76rem;
    font-weight: 700;

    line-height: 1.45;
}

.station-detail__source-link {
    display: flex;

    padding: 11px 16px;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    color: #2f8f5b;

    font-size: 0.82rem;
    font-weight: 900;

    text-decoration: none;
}

.station-detail__source-link:hover {
    background: #f4f8f6;
}

.leaflet-popup.universal-station-detail-popup
.leaflet-popup-content-wrapper {
    overflow: hidden;

    padding: 0;

    border-radius: 11px;

    box-shadow:
        0 12px 35px
        rgba(5, 15, 24, 0.24);
}

.leaflet-popup.universal-station-detail-popup
.leaflet-popup-content {
    margin: 0;

    width: auto !important;

    min-width: 330px;
}

.leaflet-popup.universal-station-detail-popup
.leaflet-popup-close-button {
    top: 6px;
    right: 7px;

    z-index: 10;
}

@media (max-width: 600px) {

    .station-detail {
        min-width: 270px;
    }

    .station-detail__grid {
        grid-template-columns: 1fr;
    }

    .leaflet-popup.universal-station-detail-popup
    .leaflet-popup-content {
        min-width: 270px;
    }
}

