/* 0.9K.4.7 · toegankelijke vergroting van routekaarten */
.lm-activity-route__zoom {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--lm-primary);
    cursor: zoom-in;
    text-align: left;
}

.lm-activity-route__zoom .lm-activity-route__image {
    transition: transform .2s ease, filter .2s ease;
}

.lm-activity-route__zoom > span {
    position: absolute;
    right: 9px;
    bottom: 9px;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    background: rgba(24, 36, 62, .9);
    box-shadow: 0 5px 15px rgba(10, 24, 42, .24);
    color: #fff;
    font-size: .72rem;
    font-weight: 850;
    line-height: 1;
}

.lm-activity-route__zoom:hover .lm-activity-route__image,
.lm-activity-route__zoom:focus-visible .lm-activity-route__image {
    filter: brightness(.96);
    transform: scale(1.015);
}

.lm-activity-route__zoom:focus-visible {
    outline: 3px solid rgba(183, 219, 56, .75);
    outline-offset: 3px;
}

.lm-activity-route-dialog {
    width: min(1100px, calc(100vw - 40px));
    max-width: none;
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(6, 19, 36, .38);
    color: var(--lm-primary);
}

.lm-activity-route-dialog::backdrop {
    background: rgba(9, 20, 38, .78);
    backdrop-filter: blur(5px);
}

.lm-activity-route-dialog__panel {
    display: grid;
    max-height: calc(100dvh - 40px);
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.lm-activity-route-dialog header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--lm-line);
}

.lm-activity-route-dialog header > div {
    min-width: 0;
}

.lm-activity-route-dialog header small {
    display: block;
    margin-bottom: 2px;
    color: var(--lm-teal-dark);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.lm-activity-route-dialog header h5 {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--lm-primary);
    font-size: clamp(1rem, 2.1vw, 1.35rem);
    line-height: 1.15;
}

.lm-activity-route-dialog [data-lm-route-close] {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--lm-primary);
    color: #fff;
    cursor: pointer;
    font-size: 1.65rem;
    line-height: 1;
}

.lm-activity-route-dialog [data-lm-route-close]:focus-visible {
    outline: 3px solid var(--lm-accent);
    outline-offset: 3px;
}

.lm-activity-route-dialog__canvas {
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: auto;
    padding: 14px;
    background: #edf3f2;
}

.lm-activity-route-dialog__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 180px);
    margin: auto;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.lm-activity-route-dialog__external {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-self: start;
    margin: 10px 16px 14px;
    color: var(--lm-teal-dark) !important;
    font-size: .82rem;
    font-weight: 850;
}

body:has(.lm-activity-route-dialog[open]) {
    overflow: hidden;
}

@media (max-width: 520px) {
    .lm-activity-route-dialog {
        width: calc(100vw - 18px);
        max-height: calc(100dvh - 18px);
        border-radius: 14px;
    }

    .lm-activity-route-dialog__panel {
        max-height: calc(100dvh - 18px);
    }

    .lm-activity-route-dialog header {
        padding: 11px 12px;
    }

    .lm-activity-route-dialog__canvas {
        padding: 8px;
    }

    .lm-activity-route-dialog__image {
        max-height: calc(100dvh - 150px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lm-activity-route__zoom .lm-activity-route__image {
        transition: none;
    }
}
