.mrs-hero {
    position: relative;
    min-height: 780px;
    margin-top: -104px;
    /* pulls the section up under the transparent sticky header, same as home */
    padding-top: 104px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.mrs-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.mrs-hero-slide.is-active {
    opacity: 1;
}

.mrs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(10, 10, 10, 0.75) 0%,
            rgba(10, 10, 10, 0.55) 45%,
            rgba(10, 10, 10, 0.25) 100%);
}

.mrs-hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 60px 60px 0;
}

@media (max-width: 1100px) {
    .mrs-hero-heading {
        font-size: 40px;
    }
}

@media (max-width: 640px) {
    .mrs-hero {
        min-height: 640px;
    }

    .mrs-hero-content {
        padding: 40px 20px 0;
    }

    .mrs-hero-heading {
        font-size: 32px;
    }
}

.mrs-hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-lime);
    margin-bottom: 18px;
}

.mrs-hero-heading {
    font-family: var(--font-body);
    font-size: 44px;
    line-height: 1.2;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 16px;
}

.mrs-hero-heading .highlight {
    color: var(--accent-lime);
}

.mrs-hero-desc {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

@media (max-width: 640px) {
    .mrs-hero {
        height: 55vh;
    }

    .mrs-hero-content {
        padding: 0 24px;
    }

    .mrs-hero-heading {
        font-size: 30px;
    }
}

/*------------------ mrs-route css -----------------*/
.mrs-route-section {
    background: #FFFFFF;
    padding: 60px 40px 90px;
}

.mrs-route-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.mrs-route-heading {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 800;
    color: #141414;
    margin: 0 0 24px;
}

/* ---------- Two-column layout: sidebar (controls/summary/chart) + map ---------- */
.mrs-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.mrs-sidebar {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mrs-controls {
    background: #F4F7F2;
    border-radius: 14px;
    padding: 20px;
}

.mrs-btn-primary.btn {
    background-color: var(--accent-lime) !important;
    color: var(--accent-lime-dark) !important;
    font-weight: 700;
    border: none !important;
}

.mrs-btn-primary.btn:hover {
    background-color: var(--accent-lime-dark) !important;
    color: var(--accent-lime) !important;
}

.mrs-card.card {
    border: none;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#distanceInfo h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-lime-dark);
    margin-bottom: 8px;
}

#distanceInfo table td {
    font-size: 13px;
    padding: 3px 6px;
}

.mrs-map-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    /* prevents flex child from overflowing its column */
}

#map {
    width: 100%;
    height: 640px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.layer-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FFFFFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.layer-menu {
    position: absolute;
    top: 58px;
    right: 12px;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 999;
}

.layer-menu label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    cursor: pointer;
}

.mrs-chart-wrap {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 24px;
    margin-top: 24px;
    max-width: 420px;
}

.mrs-chart-wrap canvas {
    max-height: 320px;
}

.mrs-chart-heading {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: #141414;
    margin-bottom: 16px;
}

@media (max-width: 1000px) {
    .mrs-layout {
        flex-direction: column;
    }

    .mrs-sidebar {
        flex-basis: auto;
        width: 100%;
    }

    #map {
        height: 420px;
    }
}

@media (max-width: 640px) {
    .mrs-route-section {
        padding: 40px 20px 60px;
    }

    #map {
        height: 45vh;
    }
}