body {
    background: #000;
    color: #f6f1cc;
}

.route-page-container {
    width: min(1500px, 100%);
    min-height: calc(100dvh - 140px);
    margin: 0 auto;
    padding: 2rem clamp(1rem, 3vw, 3rem);
}

.route-page-container .map-title {
    margin-bottom: 1.5rem;
    color: #f6f1cc;
}

.route-map-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.route-map-panel {
    min-width: 0;
    margin: 0;
}

.route-map-frame {
    position: relative;
    height: min(68vh, 760px);
    min-height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border: 1px solid rgba(246, 241, 204, 0.3);
    cursor: zoom-in;
    touch-action: manipulation;
}

.route-map-frame[aria-pressed="true"] {
    cursor: zoom-out;
}

.route-zoom-map {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.25s ease, transform-origin 0.1s ease;
}

.route-zoom-map.is-zoomed {
    transform: scale(2.5);
}

.route-map-frame:focus-visible {
    outline: 2px solid #f6f1cc;
    outline-offset: 3px;
}

.route-map-caption {
    display: block;
    margin-top: 0.75rem;
    color: #f6f1cc;
    font-weight: 700;
    text-align: center;
}

.route-page-container .route-image-credit {
    display: block;
    margin-top: 0.5rem;
    color: #f6f1cc;
    font-size: 0.85rem;
    font-weight: 400;
    text-align: center;
}

@media screen and (max-width: 800px) {
    .route-map-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .route-map-frame {
        height: 65vh;
        min-height: 280px;
    }

    .route-page-container .map-title {
        font-size: 1.6rem;
    }
}