/* Runnr - kortværktøjet på /maal-loeberute/.
   Trukket ud af style-20260622.css, så værktøjet kan leve videre uændret
   inde i den filmiske ramme uden at hele det gamle stylesheet følger med.
   Opdateres værktøjet, skal det ske begge steder. */

:root {
    --panel: rgba(255, 255, 255, 0.05);
    --hairline: rgba(255, 255, 255, 0.10);
    --dim: rgba(255, 255, 255, 0.62);
}

.btn {
    position: relative;
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transform: translate(-22px, -50%);
    pointer-events: none;
}

.btn:hover::after {
    animation: buttonRunner 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.btn:active {
    transform: scale(0.96);
    opacity: 0.85;
}

.btn-orange {
    background: var(--orange);
    box-shadow: 0 8px 28px rgba(255, 81, 37, 0.35);
}

.btn-glass {
    background: var(--panel);
    border: 1px solid var(--hairline);
}

.btn-glass:hover {
    border-color: rgba(255, 81, 37, 0.35);
}

@keyframes buttonRunner {
    0% {
        opacity: 0;
        transform: translate(-22px, -50%);
    }
    22% {
        opacity: 0.95;
    }
    100% {
        opacity: 0;
        transform: translate(210px, -50%);
    }
}

/* Web-generator: fuldt kortview før sidens tekstindhold */
.web-route {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100svh;
    min-height: 650px;
    overflow: hidden;
    background: #17171b;
}

#route-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.web-route-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    top: auto;
    height: 520px;
    background: linear-gradient(180deg, transparent 0%, rgba(5,5,6,.16) 34%, rgba(5,5,6,.78) 100%);
}

.web-route-panel {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 20px;
    align-items: center;
    width: min(680px, calc(100% - 40px));
    padding: 0;
    transform: translateX(-50%);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.web-route-panel.is-choosing { width: min(720px, calc(100% - 40px)); grid-template-columns: 1fr; gap: 14px; padding: 0; }
.web-route-panel.is-choosing .web-route-controls { display: block; width: 100%; }
.web-route-panel.is-choosing .web-route-status strong { font-size: 17px; }

.web-route-status { display: flex; align-items: center; min-width: 0; gap: 12px; }
.web-route-status > div { min-width: 0; }
.web-route-status-icon { position: relative; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 13px; background: rgba(24,29,38,.38); border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px rgba(255,255,255,.12); -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25); }
.web-route-status-icon::before { content: ""; position: absolute; inset: 10px; border: 2px solid var(--orange); border-radius: 50%; }
.web-route-status-icon::after { content: ""; position: absolute; left: 17px; top: 5px; width: 2px; height: 28px; background: linear-gradient(var(--orange) 0 5px, transparent 5px 23px, var(--orange) 23px); }
.web-route-status strong { display: block; overflow: hidden; color: #fff; font-size: 15px; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; text-shadow: 0 2px 10px rgba(0,0,0,.7); white-space: nowrap; }
.web-route-status small { display: block; overflow: hidden; margin-top: 3px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 650; line-height: 1.3; text-overflow: ellipsis; text-shadow: 0 2px 8px rgba(0,0,0,.75); white-space: nowrap; }

.web-route-controls { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 10px; }
.web-route-controls button { font: inherit; }
.web-route-controls .btn { min-height: 46px; padding: 0 20px; border: 0; -webkit-appearance: none; appearance: none; white-space: nowrap; }
.web-route-controls [hidden], .web-route-result[hidden], .web-route-error[hidden] { display: none; }

.distance-choice {
    display: block;
    width: 100%;
}

.route-distance-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(84px, 1fr));
    gap: 9px;
    overflow-x: auto;
    padding: 1px 1px 5px;
    scrollbar-width: none;
}
.route-distance-row::-webkit-scrollbar { display: none; }

.route-distance-row button,
.route-distance-row a {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 84px;
    min-height: 58px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 22px;
    background: rgba(25,31,41,.38);
    box-shadow: inset 0 1px rgba(255,255,255,.13), 0 8px 22px rgba(0,0,0,.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.28);
    backdrop-filter: blur(18px) saturate(1.28);
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    font-weight: 850;
    text-decoration: none;
}

.route-distance-row button.is-selected { border-color: transparent; background: var(--orange); box-shadow: 0 8px 22px rgba(255,81,37,.24); }
.route-distance-row .is-locked { color: rgba(255,255,255,.68); }
.route-distance-row .is-locked::after { content: ""; position: absolute; top: 7px; right: 8px; width: 16px; height: 16px; background: url("assets/icons/lock.png") center/contain no-repeat; opacity: .7; }

.route-utility-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.route-utility-row > a { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; background: rgba(25,31,41,.36); box-shadow: inset 0 1px rgba(255,255,255,.12),0 8px 22px rgba(0,0,0,.12); -webkit-backdrop-filter: blur(18px) saturate(1.28); backdrop-filter: blur(18px) saturate(1.28); color: #fff; text-decoration: none; }
.route-utility-row strong, .route-utility-row small { display: block; }
.route-utility-row strong { font-size: 14px; line-height: 1.15; }
.route-utility-row small { margin-top: 3px; color: var(--dim); font-size: 11px; font-weight: 650; line-height: 1.15; }
.utility-sliders { position: relative; flex: 0 0 25px; width: 25px; height: 22px; background: linear-gradient(var(--orange),var(--orange)) 0 3px/25px 2px no-repeat, linear-gradient(var(--orange),var(--orange)) 0 10px/25px 2px no-repeat, linear-gradient(var(--orange),var(--orange)) 0 17px/25px 2px no-repeat; }
.utility-sliders::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 65% 4px,var(--orange) 0 3px,transparent 3.5px),radial-gradient(circle at 35% 11px,var(--orange) 0 3px,transparent 3.5px),radial-gradient(circle at 72% 18px,var(--orange) 0 3px,transparent 3.5px); }
.utility-dice { flex: 0 0 27px; width: 27px; height: 27px; padding: 3px; border: 2px solid var(--orange); border-radius: 7px; color: var(--orange); font-size: 11px; font-style: normal; font-weight: 900; line-height: 8px; text-align: center; }

.route-primary-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-top: 10px; }
.route-generate-primary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; border: 0; border-radius: 999px; background: var(--orange); box-shadow: 0 10px 28px rgba(255,81,37,.28); color: #fff; cursor: pointer; font: inherit; font-size: 17px; font-weight: 850; }
.route-generate-primary svg { width: 22px; height: 22px; fill: currentColor; }
.route-generate-primary:disabled { opacity: .58; cursor: wait; }
.route-regenerate { display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(25,31,41,.4); box-shadow: inset 0 1px rgba(255,255,255,.13),0 8px 22px rgba(0,0,0,.14); -webkit-backdrop-filter: blur(18px) saturate(1.28); backdrop-filter: blur(18px) saturate(1.28); color: #fff; cursor: pointer; }
.route-regenerate[hidden] { display: none; }
.route-regenerate svg { width: 25px; height: 25px; fill: currentColor; }
.route-regenerate:disabled { opacity: .55; cursor: wait; }

.web-route-error { grid-column: 1 / -1; width: fit-content; max-width: 100%; padding: 7px 11px; border: 1px solid rgba(255,157,132,.25); border-radius: 12px; background: rgba(12,12,14,.62); color: #ffb09c; font-size: 12px; font-weight: 700; line-height: 1.4; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.web-route-attribution { position: absolute; right: 8px; bottom: 6px; z-index: 2; padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.68); color: #333; font-size: 9px; line-height: 1.2; }
.web-route-attribution a { color: inherit; }

/* Telefoner: distance-rækkens 5 chips SKAL kunne være på skærmen. Grid-minimum
   på 84px pr. chip giver 456px totalbredde og skubber rækken ud over kanten -
   på smalle skærme deler chipsene i stedet bredden ligeligt. */
@media (max-width: 540px) {
    html, body { max-width: 100%; overflow-x: hidden; }
    .web-route-panel,
    .web-route-panel.is-choosing { left: 12px; right: 12px; width: auto; max-width: none; min-width: 0; transform: none; }
    .web-route-panel *, .web-route-controls, .distance-choice { min-width: 0; max-width: 100%; box-sizing: border-box; }
    .route-distance-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; overflow: visible; }
    .route-distance-row button,
    .route-distance-row a { min-width: 0; min-height: 52px; padding: 0 4px; border-radius: 18px; font-size: 15px; }
    .route-distance-row .is-locked::after { top: 5px; right: 5px; width: 13px; height: 13px; }
    .route-utility-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .route-utility-row > a { min-width: 0; min-height: 54px; padding: 8px 11px; gap: 9px; overflow: hidden; }
    .route-utility-row > a > span:last-child { min-width: 0; overflow: hidden; }
    .route-utility-row strong, .route-utility-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .route-utility-row small { font-size: 10px; }
    .route-generate-primary { min-height: 54px; font-size: 16px; }
    .route-regenerate { width: 54px; height: 54px; }
}
.web-route-noscript { position: absolute; z-index: 4; inset: 50% auto auto 50%; transform: translate(-50%,-50%); padding: 20px; background: #111; }

.location-consent { position: absolute; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.location-consent[hidden] { display: none; }
.location-consent-backdrop { position: absolute; inset: 0; background: rgba(5,5,6,.52); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.location-consent-card { position: relative; width: min(420px,100%); padding: 25px; border: 1px solid rgba(255,255,255,.16); border-radius: 26px; background: rgba(17,17,20,.94); box-shadow: 0 28px 90px rgba(0,0,0,.5); text-align: center; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.location-consent-icon { position: relative; display: block; width: 48px; height: 48px; margin: 0 auto 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.07); }
.location-consent-icon::before { content: ""; position: absolute; inset: 12px; border: 3px solid var(--orange); border-radius: 50%; }
.location-consent-icon::after { content: ""; position: absolute; left: 22px; top: 6px; width: 3px; height: 36px; background: linear-gradient(var(--orange) 0 7px,transparent 7px 29px,var(--orange) 29px); }
.location-consent-card h2 { margin: 0 0 8px; font-size: 25px; line-height: 1.1; }
.location-consent-card > p { margin: 0 auto; max-width: 34ch; color: var(--dim); font-size: 14px; line-height: 1.5; }
.location-consent-help { margin-top: 16px; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.045); color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.45; text-align: left; }
.location-consent-help[hidden] { display: none; }
.location-consent-help strong, .location-consent-help span { display: block; }
.location-consent-help strong { margin-bottom: 4px; color: #fff; }
.location-help-ios { display: none; }
.location-consent-actions { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px; margin-top: 20px; }
.location-consent-actions button { min-height: 48px; padding: 0 18px; border-radius: 999px; color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; -webkit-appearance: none; appearance: none; }
.location-consent-cancel { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); }
.location-consent-allow { border: 0; background: var(--orange); box-shadow: 0 8px 24px rgba(255,81,37,.28); }

@supports (-webkit-touch-callout: none) {
    .location-help-ios { display: block; }
    .location-help-desktop { display: none; }
}

.measure-intro { max-width: none; padding: 96px 0 72px; }
.measure-intro h1 { max-width: 760px; margin: 7px 0 18px; font-size: clamp(42px, 6vw, 64px); line-height: 1.04; letter-spacing: -.025em; }
.measure-intro .lead { max-width: 720px; color: var(--dim); font-size: clamp(18px, 2.2vw, 23px); }
.measure-intro .actions { margin-top: 28px; }

.mapboxgl-map { font-family: inherit; background: #17171b; }
#route-map { opacity: .65; transition: opacity .6s ease; }
#route-map.is-loaded { opacity: 1; }
#route-map .mapboxgl-ctrl-top-left { top: 18px; left: 18px; }
#route-map .mapboxgl-ctrl-group {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 18px;
    background: rgba(16,18,22,.72);
    box-shadow: inset 0 1px rgba(255,255,255,.1),0 12px 30px rgba(0,0,0,.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
}
#route-map .mapboxgl-ctrl-group button { width: 42px; height: 42px; }
#route-map .mapboxgl-ctrl-icon { filter: invert(1); }
#route-map .mapboxgl-ctrl-attrib { border-radius: 8px; background: rgba(8,8,9,.68); color: rgba(255,255,255,.68); }
#route-map .mapboxgl-ctrl-attrib a { color: rgba(255,255,255,.74); }
#route-map .mapboxgl-popup-content {
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 13px;
    background: #111216;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}
#route-map .mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip { border-top-color: #111216; }
.route-origin-marker { display: block; width: 18px; height: 18px; border: 4px solid #fff; border-radius: 50%; background: var(--orange); box-shadow: 0 5px 18px rgba(0,0,0,.42); }
.route-recenter { position: absolute; top: 18px; right: 18px; z-index: 4; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; background: rgba(25,31,41,.42); box-shadow: inset 0 1px rgba(255,255,255,.14),0 9px 26px rgba(0,0,0,.2); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); color: #fff; cursor: pointer; -webkit-appearance: none; appearance: none; }
.route-recenter[hidden] { display: none; }
.route-recenter svg { width: 24px; height: 24px; fill: currentColor; }
.route-recenter:hover { border-color: rgba(255,81,37,.65); color: var(--orange); }
