/* =========================================================
   GAHANNA WEATHER
   NWS WEATHER ALERT DETAILS PAGE
   ========================================================= */


/* =========================================================
   PAGE CONTAINER
   ========================================================= */

.wx-alert-details-container {

    width: 100%;
    max-width: 1200px;

    margin: 25px auto;
    padding: 0 15px;

    box-sizing: border-box;

}


/* =========================================================
   WEATHER ALERT CARD
   ========================================================= */

.wx-alert-details-card {

    background: linear-gradient(
        145deg,
        #1b2530,
        #18222c
    );

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.20);

    overflow: hidden;

}


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

.wx-alert-details-card .card-header {

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

    gap: 10px;

    padding: 16px;

    color: #d6b56c;

    font-family: 'Oswald', sans-serif;
    font-size: 22px;

    text-align: center;

    border-bottom: 1px solid rgba(214,181,108,0.20);

}


/* =========================================================
   ALERT CONTENT
   ========================================================= */

.wx-alert-details-content {

    padding: 24px;

    color: #e2e6eb;

    font-size: 15px;
    line-height: 1.65;

    min-width: 0;

}


/* =========================================================
   HEADINGS
   ========================================================= */

.wx-alert-details-content h1,
.wx-alert-details-content h2,
.wx-alert-details-content h3,
.wx-alert-details-content h4 {

    font-family: 'Oswald', sans-serif;

    color: #d6b56c;

    font-weight: 500;

    margin: 18px 0 12px;

    line-height: 1.4;

}


.wx-alert-details-content h1 {

    font-size: 26px;

}


.wx-alert-details-content h2 {

    font-size: 22px;

}


.wx-alert-details-content h3 {

    font-size: 19px;

}


.wx-alert-details-content h4 {

    font-size: 16px;

}


/* =========================================================
   TEXT AND LINKS
   ========================================================= */

.wx-alert-details-content p {

    margin: 10px 0;

    line-height: 1.65;

}


.wx-alert-details-content a:not(.leaflet-container a) {

    color: #d6b56c;

    text-decoration: none;

    transition: color 0.2s ease;

}


.wx-alert-details-content a:not(.leaflet-container a):hover {

    color: #f4d894;

    text-decoration: underline;

}


/* =========================================================
   HORIZONTAL DIVIDERS
   ========================================================= */

.wx-alert-details-content hr {

    border: 0;

    height: 1px;

    background: rgba(214,181,108,0.20);

    margin: 20px 0;

}


/* =========================================================
   PREFORMATTED WEATHER ALERT TEXT
   ========================================================= */

.wx-alert-details-content pre {

    white-space: pre-wrap;
    overflow-wrap: break-word;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;

    color: #e2e6eb;

    background: rgba(0,0,0,0.15);

    padding: 16px;

    border-radius: 8px;

}


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

.wx-alert-details-content .leaflet-container {

    max-width: 100%;

    margin: 20px auto;

    border: 1px solid rgba(214,181,108,0.30);
    border-radius: 8px;

    box-shadow: 0 3px 12px rgba(0,0,0,0.25);

    box-sizing: border-box;

}


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

.wx-alert-details-content .leaflet-control-zoom {

    background: #1b2530 !important;

    border: 1px solid #46515c;

}


.wx-alert-details-content .leaflet-bar a {

    background: #1b2530;

    color: #d6b56c;

    border-bottom-color: #46515c;

}


.wx-alert-details-content .leaflet-bar a:hover {

    background: #344454;

    color: #ffffff;

}


.wx-alert-details-content .leaflet-bar a.leaflet-disabled {

    background: #25313d;

    color: #697582;

}


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

.wx-alert-details-content .leaflet-control-layers {

    background: #1b2530;

    color: #e2e6eb;

    border: 1px solid #46515c;

}


.wx-alert-details-content .leaflet-control-layers-expanded {

    background: #1b2530;

    color: #e2e6eb;

}


/* =========================================================
   LEAFLET MAP POPUPS
   ========================================================= */

.wx-alert-details-content .leaflet-popup-content-wrapper,
.wx-alert-details-content .leaflet-popup-tip {

    background: #1b2530;

    color: #e2e6eb;

}


.wx-alert-details-content .leaflet-popup-content {

    font-size: 13px;

    line-height: 1.5;

}


.wx-alert-details-content .leaflet-popup-content a {

    color: #d6b56c;

}


/* =========================================================
   MAP ATTRIBUTION
   ========================================================= */

.wx-alert-details-content .leaflet-control-attribution {

    background: rgba(27,37,48,0.90);

    color: #d5d9de;

}


.wx-alert-details-content .leaflet-control-attribution a {

    color: #d6b56c;

}


/* =========================================================
   MOBILE RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 768px) {

    .wx-alert-details-container {

        margin: 15px auto;
        padding: 0 10px;

    }

    .wx-alert-details-content {

        padding: 15px;

        font-size: 14px;

    }

    .wx-alert-details-card .card-header {

        font-size: 19px;

    }

}


@media (max-width: 480px) {

    .wx-alert-details-container {

        padding: 0 8px;

    }

    .wx-alert-details-content {

        padding: 12px;

    }

    .wx-alert-details-card .card-header {

        font-size: 17px;

    }

    .wx-alert-details-content pre {

        padding: 10px;

        font-size: 13px;

    }

}

/* =========================================================
   NWS DETAILS WRAPPER
   ========================================================= */

.nws-detail-wrapper {

    width: 100%;
    max-width: 1000px;

    margin: 0 auto;

    min-width: 0;

}


/* =========================================================
   NOAA HEADER
   ========================================================= */

.nws-detail-header {

    display: flex;

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

    gap: 18px;

    margin-bottom: 24px;
    padding: 10px 0 20px;

    border-bottom: 1px solid rgba(214,181,108,0.20);

}


.nws-detail-logo {

    width: 65px;
    height: auto;

    flex-shrink: 0;

    opacity: 1;
    filter: none;

}


.nws-detail-heading h2 {

    margin: 0 0 4px;

    font-family: 'Oswald', sans-serif;
    font-size: 24px;

    color: #d6b56c;

}


.nws-detail-heading span {

    font-size: 13px;

    color: #aeb8c2;

}


/* =========================================================
   NO ACTIVE ALERTS
   ========================================================= */

.nws-detail-status {

    display: flex;

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

    gap: 12px;

    padding: 22px;
    margin: 15px 0;

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

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;

    text-align: center;

    font-size: 16px;

}


.nws-status-clear {

    color: #70a9a1;

    border-left: 4px solid #70a9a1;

}


.nws-status-unknown {

    color: #d6b56c;

    border-left: 4px solid #d6b56c;

}


.nws-detail-status i {

    font-size: 22px;

}


/* =========================================================
   INDIVIDUAL ALERT CARDS
   ========================================================= */

.nws-detail-alert-list {

    display: grid;

    gap: 22px;

}


.nws-detail-alert {

    padding: 22px;

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

    border: 1px solid rgba(255,255,255,0.10);

    border-left: 5px solid var(--alert-color, #d6b56c);

    border-radius: 10px;

    min-width: 0;

    overflow-wrap: anywhere;

}


/* =========================================================
   ALERT TITLE
   ========================================================= */

.nws-detail-title {

    display: flex;

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

    gap: 12px;

    text-align: center;

}


.nws-detail-title h2 {

    color: #d6b56c;

    font-size: 23px;

    margin: 0;

}


.nws-detail-title img {

    width: 20px;
    height: auto;

    flex-shrink: 0;

}


/* =========================================================
   ALERT LOCATION
   ========================================================= */

.nws-detail-location {

    margin: 8px 0 18px;

    color: #b8c2cc;

    font-size: 15px;

    text-align: center;

    letter-spacing: 1px;

}


.nws-detail-location i {

    color: #d6b56c;

    margin-right: 5px;

}


/* =========================================================
   AFFECTED AREAS
   ========================================================= */

.nws-detail-areas {

    padding: 16px;

    margin-bottom: 18px;

    background: rgba(0,0,0,0.12);

    border-radius: 6px;

    text-align: center;

    color: #e2e6eb;

    font-size: 14px;

}


.nws-detail-areas h3 {

    margin: 0 0 8px;

    color: #d6b56c;

    font-size: 17px;

}


/* =========================================================
   ALERT STATISTICS GRID
   ========================================================= */

.nws-detail-grid {

    display: grid;

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

    gap: 12px;

    margin-bottom: 20px;

}


.nws-detail-stat {

    display: flex;

    flex-direction: column;

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

    gap: 6px;

    min-width: 0;

    padding: 14px 10px;

    background: rgba(0,0,0,0.15);

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 7px;

    text-align: center;

}


.nws-detail-stat span {

    color: #aeb8c2;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.7px;

}


.nws-detail-stat strong {

    color: #e2e6eb;

    font-size: 15px;

}


.nws-detail-stat strong span {

    font-size: inherit;

    text-transform: none;

    letter-spacing: normal;

}


/* =========================================================
   OFFICIAL NWS ALERT MESSAGE
   ========================================================= */

.nws-detail-message {

    padding: 20px;

    background: rgba(0,0,0,0.16);

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;

    color: #e2e6eb;

}


.nws-detail-message > b {

    display: block;

    color: #d6b56c;

    font-family: 'Oswald', sans-serif;

    font-size: 18px;

    margin-bottom: 8px;

}


.nws-detail-message pre {

    margin: 0 0 16px;
    padding: 0;

    background: transparent;

    color: #e2e6eb;

    font-family: inherit;

    font-size: 14px;
    line-height: 1.75;

    white-space: pre-wrap;

    overflow-wrap: anywhere;

}


.nws-detail-message pre:last-child {

    margin-bottom: 0;

}


/* =========================================================
   RESPONSIVE LEAFLET MAP
   ========================================================= */

.wx-alert-details-content #map.nws-detail-map {

    width: 100%;

    height: 400px;

    margin: 20px auto 10px;

    border: 1px solid rgba(214,181,108,0.30);
    border-radius: 8px;

    box-sizing: border-box;

    isolation: isolate;

}


/* =========================================================
   MAP POLYGON LEGEND
   ========================================================= */

.nws-detail-map-legend {

    display: flex;

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

    flex-wrap: wrap;

    gap: 10px 18px;

    margin: 0 0 22px;
    padding: 12px;

    background: rgba(0,0,0,0.12);

    border-radius: 6px;

}


.nws-detail-legend-item {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #d5d9de;

    font-size: 12px;

    max-width: 100%;

}


.nws-detail-legend-swatch {

    display: inline-block;

    width: 13px;
    height: 13px;

    border: 1px solid rgba(255,255,255,0.30);
    border-radius: 2px;

    flex-shrink: 0;

}


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

@media (max-width: 768px) {

    .nws-detail-grid {

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

    }

    .nws-detail-alert {

        padding: 16px;

    }

    .wx-alert-details-content #map.nws-detail-map {

        height: 320px;

    }

    .nws-detail-heading h2 {

        font-size: 20px;

    }

}


@media (max-width: 480px) {

    .nws-detail-header {

        gap: 10px;

    }

    .nws-detail-logo {

        width: 48px;

    }

    .nws-detail-heading h2 {

        font-size: 18px;

    }

    .nws-detail-heading span {

        font-size: 11px;

    }

    .nws-detail-alert {

        padding: 12px;

    }

    .nws-detail-title h2 {

        font-size: 18px;

    }

    .nws-detail-stat strong {

        font-size: 13px;

    }

    .nws-detail-message {

        padding: 12px;

    }

    .wx-alert-details-content #map.nws-detail-map {

        height: 260px;

    }

}