/* ENC Weather Site Data - Weather Maps Hub
   ========================================================================== */

.encsd-weather-maps-page .enc-entry-header {
    display: none;
}

.encsd-weather-maps-page .enc-content-shell {
    padding-top: 26px;
}

.encsd-weather-maps {
    --maps-navy: #071f34;
    --maps-blue: #009cda;
    --maps-cyan: #55d5ff;
    --maps-line: #d7e3e9;
    --maps-text: #10283b;
    --maps-muted: #647c8d;
    --maps-shadow: 0 15px 34px rgba(14, 43, 64, 0.075);

    color: var(--maps-text);
}

.encsd-weather-maps *,
.encsd-weather-maps *::before,
.encsd-weather-maps *::after {
    box-sizing: border-box;
}

.encsd-weather-maps-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
    gap: 25px;
    align-items: end;
    padding: clamp(28px, 4vw, 43px);
    background:
        radial-gradient(
            circle at 84% -15%,
            rgba(74, 214, 255, 0.24),
            transparent 36%
        ),
        linear-gradient(
            130deg,
            #061a2b,
            #092e4b 58%,
            #0b4569
        );
    color: #fff;
    border-radius: 18px;
    box-shadow: var(--maps-shadow);
}

.encsd-weather-maps-eyebrow {
    display: block;
    color: #55d5ff;
    font-size: 10px;
    font-weight: 860;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.encsd-weather-maps-hero h1 {
    margin: 6px 0 0;
    color: #fff;
    font-size: clamp(40px, 6vw, 61px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.encsd-weather-maps-hero p {
    max-width: 760px;
    margin: 13px 0 0;
    color: #bdd0dd;
    font-size: 14px;
    line-height: 1.55;
}

.encsd-weather-maps-hero-note {
    padding: 14px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
}

.encsd-weather-maps-hero-note span,
.encsd-weather-maps-hero-note strong,
.encsd-weather-maps-hero-note small {
    display: block;
}

.encsd-weather-maps-hero-note span {
    color: #91b2c6;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.encsd-weather-maps-hero-note strong {
    margin-top: 5px;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
}

.encsd-weather-maps-hero-note small {
    margin-top: 4px;
    color: #a9c3d2;
    font-size: 9px;
    line-height: 1.35;
}

.encsd-weather-maps-warning {
    margin-top: 12px;
    padding: 12px 14px;
    background: #fff7e5;
    color: #654b13;
    border: 1px solid #ecd18e;
    border-radius: 9px;
}

.encsd-weather-maps-warning strong,
.encsd-weather-maps-warning span {
    display: block;
}

.encsd-weather-maps-warning strong {
    font-size: 11px;
}

.encsd-weather-maps-warning span {
    margin-top: 3px;
    font-size: 9px;
}

.encsd-weather-maps-main,
.encsd-weather-maps-specialty,
.encsd-weather-maps-tools,
.encsd-weather-maps-guide {
    margin-top: 25px;
}

.encsd-weather-maps-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.encsd-weather-maps-section-heading h2,
.encsd-weather-maps-guide h2 {
    margin: 3px 0 0;
    color: var(--maps-text);
    font-size: clamp(25px, 3.4vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.027em;
}

.encsd-weather-maps-section-heading > p {
    max-width: 420px;
    margin: 0;
    color: var(--maps-muted);
    font-size: 9px;
    line-height: 1.45;
}

.encsd-weather-maps-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin-bottom: 8px;
    scrollbar-width: none;
}

.encsd-weather-maps-tabs::-webkit-scrollbar {
    display: none;
}

.encsd-weather-maps-tab {
    flex: 0 0 auto;
    padding: 8px 11px;
    background: #fff;
    color: #526f80;
    border: 1px solid var(--maps-line);
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 9px;
    font-weight: 800;
}

.encsd-weather-maps-tab.is-active {
    background: var(--maps-navy);
    color: #fff;
    border-color: var(--maps-navy);
}

.encsd-weather-maps-viewer {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--maps-line);
    border-radius: 13px;
    box-shadow: var(--maps-shadow);
}

.encsd-weather-maps-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    background: #f6fafc;
    border-bottom: 1px solid var(--maps-line);
}

.encsd-weather-maps-viewer-header > div:first-child strong,
.encsd-weather-maps-viewer-header > div:first-child span {
    display: block;
}

.encsd-weather-maps-viewer-header > div:first-child strong {
    color: var(--maps-text);
    font-size: 13px;
}

.encsd-weather-maps-viewer-header > div:first-child span {
    margin-top: 2px;
    color: var(--maps-muted);
    font-size: 8px;
}

.encsd-weather-maps-updated {
    flex: 0 0 auto;
    color: #526f80;
    font-size: 9px;
    font-weight: 780;
    text-align: right;
}

.encsd-weather-maps-media {
    padding: 7px;
    background: #e7eef2;
}

.encsd-weather-maps-embed-wrap {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: #06162f;
}

.encsd-weather-maps-embed-wrap[hidden] {
    display: none;
}

.encsd-weather-maps-embed-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #06162f;
}

.encsd-weather-maps-image-button {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 460px;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: zoom-in;
}

.encsd-weather-maps-image-button img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 1024px;
    background: #fff;
}

.encsd-weather-maps-image-button > span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 7px;
    background: rgba(7, 31, 52, 0.88);
    color: #fff;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.encsd-weather-maps-viewer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    background: #f7fafc;
    color: #718796;
    border-top: 1px solid var(--maps-line);
    font-size: 8px;
}

.encsd-weather-maps-viewer-footer a {
    color: #007da9 !important;
    font-weight: 780;
    text-decoration: none !important;
}

.encsd-weather-maps-specialty-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.encsd-weather-maps-card {
    min-width: 0;
    margin: 0;
}

.encsd-weather-maps-card > a {
    display: block;
    overflow: hidden;
    height: 100%;
    background: #fff;
    color: var(--maps-text) !important;
    border: 1px solid var(--maps-line);
    border-radius: 11px;
    box-shadow: 0 8px 21px rgba(14, 43, 64, 0.055);
    text-decoration: none !important;
}

.encsd-weather-maps-card-image {
    position: relative;
    display: grid;
    height: 300px;
    place-items: center;
    overflow: hidden;
    background: #edf3f6;
}

.encsd-weather-maps-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.encsd-weather-maps-expand {
    position: absolute;
    right: 7px;
    bottom: 7px;
    padding: 4px 6px;
    background: rgba(7, 31, 52, 0.88);
    color: #fff;
    border-radius: 5px;
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
}

.encsd-weather-maps-card figcaption {
    min-height: 88px;
    padding: 10px 11px;
    border-top: 1px solid #e0e8ed;
}

.encsd-weather-maps-card figcaption strong,
.encsd-weather-maps-card figcaption span,
.encsd-weather-maps-card figcaption small {
    display: block;
}

.encsd-weather-maps-card figcaption strong {
    color: var(--maps-text);
    font-size: 11px;
}

.encsd-weather-maps-card figcaption span {
    margin-top: 3px;
    color: var(--maps-muted);
    font-size: 8px;
    line-height: 1.35;
}

.encsd-weather-maps-card figcaption small {
    margin-top: 5px;
    color: #8294a0;
    font-size: 7px;
}

.encsd-weather-maps-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.encsd-weather-maps-tools-grid > a {
    min-width: 0;
    padding: 14px;
    background: #fff;
    color: var(--maps-text) !important;
    border: 1px solid var(--maps-line);
    border-top: 3px solid #159ed1;
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(14, 43, 64, 0.045);
    text-decoration: none !important;
}

.encsd-weather-maps-tools-grid > a > span,
.encsd-weather-maps-tools-grid > a > strong,
.encsd-weather-maps-tools-grid > a > small {
    display: block;
}

.encsd-weather-maps-tools-grid > a > span {
    color: #0084b8;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.encsd-weather-maps-tools-grid > a > strong {
    margin-top: 4px;
    color: var(--maps-text);
    font-size: 12px;
}

.encsd-weather-maps-tools-grid > a > p {
    min-height: 36px;
    margin: 5px 0 0;
    color: var(--maps-muted);
    font-size: 8px;
    line-height: 1.4;
}

.encsd-weather-maps-tools-grid > a > small {
    margin-top: 8px;
    color: #007da9;
    font-size: 8px;
    font-weight: 780;
}

.encsd-weather-maps-guide {
    display: grid;
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
    gap: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--maps-line);
    border-radius: 12px;
    box-shadow: var(--maps-shadow);
}

.encsd-weather-maps-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.encsd-weather-maps-guide-grid article {
    padding: 11px;
    background: #f4f8fa;
    border: 1px solid #dbe5ea;
    border-radius: 9px;
}

.encsd-weather-maps-guide-grid article > span {
    display: inline-grid;
    min-width: 44px;
    height: 26px;
    place-items: center;
    padding-inline: 6px;
    background: #e7f6fc;
    color: #007da9;
    border: 1px solid #bce1ef;
    border-radius: 7px;
    font-size: 7px;
    font-weight: 900;
}

.encsd-weather-maps-guide-grid strong {
    display: block;
    margin-top: 6px;
    color: var(--maps-text);
    font-size: 10px;
}

.encsd-weather-maps-guide-grid p {
    margin: 4px 0 0;
    color: var(--maps-muted);
    font-size: 8px;
    line-height: 1.4;
}

.encsd-weather-maps-source {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 13px 15px;
    background: var(--maps-navy);
    color: #a8c0cf;
    border-radius: 10px;
}

.encsd-weather-maps-source strong,
.encsd-weather-maps-source span {
    display: block;
}

.encsd-weather-maps-source strong {
    color: #fff;
    font-size: 10px;
}

.encsd-weather-maps-source span {
    margin-top: 2px;
    font-size: 8px;
}

.encsd-weather-maps-source a {
    color: #65d7ff !important;
    font-size: 9px;
    font-weight: 780;
    text-decoration: none !important;
}

/* Map lightbox
   ========================================================================== */

body.encsd-weather-maps-lightbox-open {
    overflow: hidden;
}

.encsd-weather-maps-lightbox[hidden] {
    display: none !important;
}

.encsd-weather-maps-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 18px;
}

.encsd-weather-maps-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 13, 23, 0.88);
    backdrop-filter: blur(4px);
}

.encsd-weather-maps-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(1240px, 97vw);
    max-height: 96vh;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    outline: none;
}

.encsd-weather-maps-lightbox-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 13px;
    background: var(--maps-navy);
    color: #fff;
}

.encsd-weather-maps-lightbox-copy strong,
.encsd-weather-maps-lightbox-copy span {
    display: block;
}

.encsd-weather-maps-lightbox-copy strong {
    color: #fff;
    font-size: 15px;
}

.encsd-weather-maps-lightbox-copy span {
    margin-top: 3px;
    color: #a9c1d0;
    font-size: 9px;
}

.encsd-weather-maps-lightbox-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.encsd-weather-maps-lightbox-image-wrap {
    min-height: 0;
    display: grid;
    flex: 1 1 auto;
    place-items: center;
    overflow: auto;
    padding: 10px;
    background: #dfe7eb;
}

.encsd-weather-maps-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(96vh - 82px);
    width: auto;
    height: auto;
    background: #fff;
}

@media (max-width: 900px) {
    .encsd-weather-maps-image-button {
        min-height: 360px;
    }

    .encsd-weather-maps-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .encsd-weather-maps-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 19px;
    }

    .encsd-weather-maps-section-heading,
    .encsd-weather-maps-viewer-header,
    .encsd-weather-maps-viewer-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .encsd-weather-maps-updated {
        text-align: left;
    }

    .encsd-weather-maps-guide {
        grid-template-columns: 1fr;
    }

    .encsd-weather-maps-source {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .encsd-weather-maps-page .enc-content-shell {
        padding-top: 18px;
    }

    .encsd-weather-maps-hero {
        border-radius: 14px;
    }

    .encsd-weather-maps-hero h1 {
        font-size: 39px;
    }

    .encsd-weather-maps-image-button {
        min-height: 0;
        padding: 3px;
    }

    .encsd-weather-maps-specialty-grid,
    .encsd-weather-maps-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .encsd-weather-maps-card-image {
        height: 145px;
    }

    .encsd-weather-maps-card figcaption {
        min-height: 100px;
        padding: 8px;
    }

    .encsd-weather-maps-card figcaption strong {
        font-size: 9px;
    }

    .encsd-weather-maps-card figcaption span {
        font-size: 7px;
    }

    .encsd-weather-maps-tools-grid > a {
        padding: 11px;
    }

    .encsd-weather-maps-tools-grid > a > p {
        min-height: 0;
    }

    .encsd-weather-maps-guide-grid {
        grid-template-columns: 1fr;
    }

    .encsd-weather-maps-lightbox {
        padding: 7px;
    }

    .encsd-weather-maps-lightbox-dialog {
        width: 100%;
        max-height: 97vh;
        border-radius: 10px;
    }

    .encsd-weather-maps-lightbox-image {
        max-height: calc(97vh - 82px);
    }
}
