.strategic-routes-page {
    width: min(1265px, calc(100% - 48px));
    margin: 0 auto;
    padding: 26px 0 64px;
}


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

.footer {
    margin-top: 70px;
    background: #0b0b0b;
    border-top: 1px solid #222;
    color: #a8a8a8;
}

.footer-container {
    padding-top: 45px;
    padding-bottom: 25px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.footer-brand-section {
    max-width: 460px;
}

.footer-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-brand span {
    color: #d4af37;
}

.footer-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #888;
}

.footer-info {
    max-width: 420px;
}

.footer-info-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-info-text {
    font-size: 13px;
    line-height: 1.7;
    color: #777;
}

.footer-divider {
    height: 1px;
    background: #242424;
    margin: 35px 0 22px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-copyright {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
}

.footer-disclaimer {
    max-width: 600px;
    text-align: right;
    font-size: 11px;
    line-height: 1.6;
    color: #666;
}

@media (max-width: 768px) {

    .footer {
        margin-top: 50px;
    }

    .footer-container {
        padding-top: 35px;
        padding-bottom: 22px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-divider {
        margin: 30px 0 20px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-disclaimer {
        text-align: left;
    }

}


/* -------------------------------------------------
   Page Header
------------------------------------------------- */

.strategic-routes-header {
    margin-bottom: 28px;
}

.strategic-routes-header h1 {
    margin: 0 0 5px;

    color: #f4f4f4;

    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.strategic-routes-header p {
    margin: 0;

    color: #89939d;

    font-size: 14px;
    line-height: 1.5;
}


/* -------------------------------------------------
   Sections
------------------------------------------------- */

.routes-section {
    margin-top: 28px;
}

.pipeline-section {
    margin-top: 48px;
}

.section-header {
    margin-bottom: 17px;
}

.section-header h2 {
    margin: 0;

    color: #f2f2f2;

    font-size: 19px;
    font-weight: 700;
}


/* -------------------------------------------------
   Route Grid
------------------------------------------------- */

.routes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}


/* -------------------------------------------------
   Route Cards
------------------------------------------------- */

.route-card {
    appearance: none;

    display: block;

    width: 100%;
    min-width: 0;
    min-height: 96px;

    margin: 0;
    padding: 0;

    border: 1px solid #2b3035;
    border-radius: 10px;

    background: #15191c;

    color: inherit;
    font: inherit;

    text-align: left;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        transform 0.15s ease;
}

.route-card:hover {
    border-color: #43494f;

    background: #181c20;

    transform: translateY(-1px);
}

.route-card:focus-visible {
    outline: 1px solid #d6a900;
    outline-offset: 2px;
}

.route-card-content {
    min-height: 96px;

    padding: 20px 18px;

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

    gap: 16px;
}

.route-card-text {
    min-width: 0;
}

.route-card-title {
    color: #f4f4f4;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.route-card-subtitle {
    margin-top: 6px;

    color: #7e8993;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.06em;
    line-height: 1.3;

    text-transform: uppercase;
}

.route-card-arrow {
    flex: 0 0 auto;

    color: #d6a900;

    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}


/* -------------------------------------------------
   Modal Overlay
------------------------------------------------- */

.route-modal-overlay {
    position: fixed;
    inset: 0;

    z-index: 9999;

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

    padding: 24px;

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

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.route-modal-overlay.active {
    display: flex;
}


/* -------------------------------------------------
   Modal
------------------------------------------------- */

.route-modal {
    width: min(940px, 100%);
    max-height: calc(100vh - 48px);

    overflow-y: auto;

    border: 1px solid #30363b;
    border-radius: 12px;

    background: #101417;

    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.58);
}

.route-modal-header {
    position: sticky;
    top: 0;

    z-index: 2;

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

    gap: 20px;

    padding: 22px 24px;

    border-bottom: 1px solid #292f34;

    background: #101417;
}

.route-modal-header h2 {
    margin: 0;

    color: #f4f4f4;

    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
}

.route-modal-header p {
    margin: 5px 0 0;

    color: #89939d;

    font-size: 13px;
    line-height: 1.4;
}

.route-modal-close {
    appearance: none;

    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 6px;

    background: transparent;

    color: #9aa4ad;

    font-size: 28px;
    font-weight: 300;
    line-height: 30px;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.route-modal-close:hover {
    background: #1b2024;

    color: #ffffff;
}

.route-modal-body {
    padding: 24px;
}


/* -------------------------------------------------
   Modal Top Cards
------------------------------------------------- */

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.modal-info-card {
    min-width: 0;

    padding: 18px;

    border: 1px solid #2a3035;
    border-radius: 9px;

    background: #15191c;
}

.modal-section-title {
    margin-bottom: 14px;

    color: #d6a900;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.modal-info-row {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);

    gap: 16px;

    padding: 10px 0;

    border-bottom: 1px solid #252a2f;
}

.modal-info-row:last-child {
    border-bottom: 0;
}

.modal-info-row span {
    color: #89939d;

    font-size: 13px;
    line-height: 1.45;
}

.modal-info-row strong {
    color: #e7e7e7;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;

    overflow-wrap: anywhere;
}


/* -------------------------------------------------
   Current Weather
------------------------------------------------- */

.modal-weather-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 9px;
}

.weather-item {
    min-width: 0;

    padding: 11px 12px;

    border: 1px solid #272d32;
    border-radius: 7px;

    background: #111518;
}

.weather-item span {
    display: block;

    margin-bottom: 5px;

    color: #7f8992;

    font-size: 11px;
    line-height: 1.3;
}

.weather-item strong {
    display: block;

    color: #f1f1f1;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.weather-updated {
    margin-top: 13px;

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

    gap: 12px;

    color: #707a83;

    font-size: 11px;
    line-height: 1.4;
}


/* -------------------------------------------------
   Modal Text Sections
------------------------------------------------- */

.modal-text-section {
    margin-top: 18px;

    padding: 18px;

    border: 1px solid #292f34;
    border-radius: 9px;

    background: #13171a;
}

.modal-text-section p {
    margin: 0;

    color: #bdc4ca;

    font-size: 14px;
    line-height: 1.7;
}


/* -------------------------------------------------
   Forecast
------------------------------------------------- */

.forecast-section {
    overflow: hidden;
}

.forecast-meta {
    margin-top: -4px;
    margin-bottom: 16px;

    color: #747e87;

    font-size: 11px;
    line-height: 1.4;
}


/* -------------------------------------------------
   Forecast Accordion
------------------------------------------------- */

.forecast-accordion {
    display: grid;
    gap: 10px;
}

.forecast-accordion-item {
    overflow: hidden;

    border: 1px solid #292f34;
    border-radius: 8px;

    background: #101417;
}

.forecast-accordion-header {
    appearance: none;

    width: 100%;

    margin: 0;
    padding: 13px 15px;

    border: 0;

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

    gap: 16px;

    background: #15191c;

    color: inherit;
    font: inherit;

    text-align: left;

    cursor: pointer;

    transition: background-color 0.15s ease;
}

.forecast-accordion-header:hover {
    background: #181d21;
}

.forecast-accordion-header:focus-visible {
    outline: 1px solid #d6a900;
    outline-offset: -1px;
}

.forecast-point-name {
    color: #e8e8e8;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.forecast-point-coords {
    margin-top: 3px;

    color: #737d86;

    font-size: 10px;
    line-height: 1.3;
}

.forecast-toggle-icon {
    flex: 0 0 auto;

    color: #d6a900;

    font-size: 20px;
    font-weight: 400;
    line-height: 1;

    transition: transform 0.2s ease;
}

.forecast-accordion-header.active .forecast-toggle-icon {
    transform: rotate(45deg);
}

.forecast-accordion-content {
    display: none;
}

.forecast-accordion-content.active {
    display: block;
}


/* -------------------------------------------------
   Forecast Table
------------------------------------------------- */

.forecast-table-wrapper {
    width: 100%;

    overflow-x: auto;

    border-top: 1px solid #292f34;
}

.forecast-table {
    width: 100%;
    min-width: 850px;

    border-collapse: collapse;

    background: #101417;
}

.forecast-table th {
    padding: 10px 12px;

    border-bottom: 1px solid #30363b;

    background: #15191c;

    color: #7f8992;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.05em;

    text-align: left;
    text-transform: uppercase;

    white-space: nowrap;
}

.forecast-table td {
    padding: 10px 12px;

    border-bottom: 1px solid #23282d;

    color: #d5d9dc;

    font-size: 12px;
    line-height: 1.35;

    white-space: nowrap;
}

.forecast-table tbody tr:last-child td {
    border-bottom: 0;
}

.forecast-table tbody tr:hover {
    background: #151a1e;
}


/* -------------------------------------------------
   Route Points
------------------------------------------------- */

.route-points {
    display: grid;
    gap: 8px;
}

.route-point {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 11px 12px;

    border: 1px solid #252b30;
    border-radius: 7px;

    background: #101417;
}

.route-point-main {
    min-width: 0;
}

.route-point strong {
    color: #e6e6e6;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.point-type {
    margin-left: 7px;

    color: #78828b;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}

.route-point-coords {
    flex: 0 0 auto;

    color: #7f8992;

    font-size: 12px;
    line-height: 1.4;
}


/* -------------------------------------------------
   Misc
------------------------------------------------- */

.no-data {
    padding: 10px 0;

    color: #747e87;

    font-size: 13px;
    line-height: 1.4;
}

body.route-modal-open {
    overflow: hidden;
}


/* -------------------------------------------------
   Responsive
------------------------------------------------- */

@media (max-width: 1100px) {

    .routes-grid {
        grid-template-columns: repeat(
            3,
            minmax(0, 1fr)
        );
    }

}


@media (max-width: 820px) {

    .strategic-routes-page {
        width: min(
            100% - 36px,
            1265px
        );
    }

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

    .modal-info-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 560px) {

    .strategic-routes-page {
        width: min(
            100% - 28px,
            1265px
        );

        padding-top: 20px;
    }

    .strategic-routes-header h1 {
        font-size: 23px;
    }

    .routes-grid {
        grid-template-columns: 1fr;
    }

    .pipeline-section {
        margin-top: 38px;
    }

    .route-modal-overlay {
        padding: 10px;
    }

    .route-modal {
        max-height: calc(
            100vh - 20px
        );
    }

    .route-modal-header {
        padding: 18px;
    }

    .route-modal-header h2 {
        font-size: 20px;
    }

    .route-modal-body {
        padding: 16px;
    }

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

    .modal-info-row {
        grid-template-columns:
            105px
            minmax(0, 1fr);

        gap: 12px;
    }

    .weather-updated {
        align-items: flex-start;
        flex-direction: column;

        gap: 4px;
    }

    .route-point {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;
    }

    .route-point-coords {
        flex: none;
    }

}


@media (max-width: 390px) {

    .modal-weather-grid {
        grid-template-columns: 1fr;
    }

}