.dvt-vector-poc {
    position: relative;
    width: 100%;
    min-width: 0;
    background: var(--global-palette9, #fff);
}

.dvt-vector-poc__map {
    position: relative;
    width: 100%;
    height: var(--dvt-vector-map-height, 720px);
    min-height: 420px;
    overflow: hidden;
    background: #eef2ed;
}

.dvt-vector-poc__status {
    position: absolute;
    z-index: 25;
    left: 50%;
    top: 56%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: .55rem .85rem;
    border-radius: .3rem;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 .25rem 1rem rgb(0 0 0 / 14%);
    color: var(--global-palette4, #2f2f2f);
    font-family: var(--global-body-font-family, sans-serif);
    font-size: .9rem;
}

.dvt-vector-poc__status[hidden] {
    display: none;
}

.dvt-explorer-help-bar {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    flex: 0 0 auto;
    margin: 0;
    padding: .65rem .9rem;
    border: 1px solid #cbd8ce;
    border-radius: 0 0 .3rem .3rem;
    background: #f1f6f2;
    color: #174c34;
    text-align: left;
    font: inherit;
    font-size: .9rem;
    line-height: 1.4;
    cursor: pointer;
}
button.dvt-explorer-help-bar,
button.dvt-explorer-help-bar:hover,
button.dvt-explorer-help-bar:focus,
button.dvt-explorer-help-bar:active {
    background: #1c4535 !important;
    color: #fff !important;
    border-color: #176b47 !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: none !important;
}
button.dvt-explorer-help-bar:focus:not(:focus-visible) { outline: none !important; }
button.dvt-explorer-help-bar:focus-visible { outline: 3px solid #fff !important; outline-offset: -5px; }
.dvt-explorer-help-question {
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    border: 2px solid #176b47;
    border-radius: 50%;
    background: white;
    color: #176b47;
    font: bold 1.1rem/1 sans-serif;
}
.dvt-explorer-help {
    position: absolute;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #24382d;
    font: 1rem/1.55 var(--global-body-font-family, sans-serif);
    animation: dvt-help-enter 220ms ease-out;
}
.dvt-explorer-help[hidden], .dvt-explorer-help [hidden] { display: none !important; }
.dvt-explorer-help__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .9rem clamp(.8rem, 3vw, 1.8rem);
    border-bottom: 1px solid #d8e3da;
    background: #f1f6f2;
}
.dvt-explorer-help__header h2 { margin: 0; font-size: clamp(1.1rem, 2.5vw, 1.5rem); line-height: 1.3; color: #174c34; }
.dvt-explorer-help__close {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex: 0 0 auto;
    min-height: 44px;
    padding: .3rem .7rem;
    border: 1px solid #176b47;
    border-radius: 4px;
    background: #fff;
    color: #174c34;
    font: inherit;
    cursor: pointer;
}
.dvt-explorer-help__close span { font-size: 1.6rem; line-height: 1; }
.dvt-explorer-help__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1rem clamp(.8rem, 3vw, 1.8rem) 1.8rem; }
.dvt-explorer-help__body > p { margin-top: 0; }
.dvt-explorer-help__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dvt-explorer-help__grid article { min-width: 0; padding: 1rem; border: 1px solid #d8e3da; border-radius: 8px; }
.dvt-explorer-help__grid h3 { margin: 0 0 .7rem; font-size: 1.1rem; color: #174c34; }
.dvt-explorer-help__grid p { margin: .8rem 0 0; }
.dvt-explorer-help-picture { display: block; width: 100%; height: auto; }
.dvt-explorer-help-demo { display: block; width: 100%; margin: 0; padding: 0; overflow: hidden; border: 1px solid #9bb5a4; border-radius: 8px; background: #f1f6f2; color: #174c34; font: inherit; text-align: left; }
.dvt-explorer-help-demo:hover { background: #e3eee6; color: #174c34; }
.dvt-explorer-help-demo > span { display: block; padding: .4rem .6rem; font-size: .85rem; }
.dvt-explorer-help-demo__icon { opacity: 0; }
.dvt-explorer-help-demo:hover .dvt-explorer-help-demo__icon,
.dvt-explorer-help-demo:focus-visible .dvt-explorer-help-demo__icon,
.dvt-explorer-help-demo[aria-expanded="true"] .dvt-explorer-help-demo__icon { opacity: 1; }
.dvt-explorer-help-demo__description { margin-top: .6rem; padding: .8rem; border-left: 4px solid #176b47; background: #f1f6f2; }
.dvt-explorer-help-inline-icon svg { width: 1.1em; height: 1.1em; vertical-align: -.15em; }
.dvt-explorer-help-key { display: grid; gap: .3rem; padding: .8rem; border-radius: 8px; background: #edf2e5; }
.dvt-explorer-help-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 1rem .8rem; }
.dvt-explorer-help-controls svg { width: 44px; height: 44px; color: #176b47; }
.dvt-explorer-help-controls p { margin: 0; }
.dvt-explorer-help-bar:focus-visible, .dvt-explorer-help button:focus-visible, .dvt-explorer-help__body:focus-visible { outline: 3px solid #176b47; outline-offset: -3px; }
@keyframes dvt-help-enter { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (max-width: 650px) {
    .dvt-explorer-help__grid { grid-template-columns: 1fr; }
    .dvt-explorer-help-bar__detail { display: none; }
}
@media (hover: none) { .dvt-explorer-help-demo__icon { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dvt-explorer-help { animation: none; } }

.route-explorer-map-host .maplibregl-map,
.route-explorer-map-host .maplibregl-canvas {
    font-family: var(--global-body-font-family, sans-serif);
}

.route-explorer-map-host .maplibregl-ctrl-group {
    overflow: hidden;
    border-radius: .25rem;
    box-shadow: 0 .15rem .65rem rgb(0 0 0 / 18%);
}

.route-explorer-map-host .maplibregl-ctrl button {
    margin: 0;
    border: 0;
    border-radius: 0;
    background-color: #fff;
}

.route-explorer-map-host .maplibregl-ctrl button:hover,
.route-explorer-map-host .maplibregl-ctrl button:focus-visible {
    background-color: #f2f5f2;
}

.dvt-vector-legend {
    position: absolute;
    z-index: 8;
    left: .75rem;
    bottom: 2.25rem;
    max-width: min(19rem, calc(100% - 1.5rem));
}

.dvt-vector-poi-marker {
    /* MapLibre positions marker elements with a translate transform. Keep the
       element absolutely positioned; making it relative removes it from
       MapLibre's positioning system and causes markers to form a false list. */
    position: absolute;
    display: block;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    color: var(--global-palette3, #25312a);
    font-family: var(--global-body-font-family, sans-serif);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff, 0 0 .2rem #fff;
}

.dvt-blocked-marker {
    width: 30px;
    height: 30px;
    min-width: 0;
    min-height: 0;
    max-width: 30px;
    max-height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    cursor: help;
    z-index: 5;
}

.dvt-blocked-marker img { display: block; width: 30px; height: 30px; max-width: none; pointer-events: none; }
.dvt-blocked-marker[hidden] { display: none !important; }

.dvt-vector-poi-marker:hover,
.dvt-vector-poi-marker:focus-visible {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dvt-vector-poi-marker.is-dragging,
.dvt-vector-poi-marker.is-saving {
    opacity: .8;
}

button.dvt-vector-poi-marker,
button.dvt-vector-poi-marker:hover,
button.dvt-vector-poi-marker:focus-visible,
button.dvt-blocked-marker,
button.dvt-blocked-marker:hover {
    cursor: var(--dvt-info-cursor, help) !important;
}

button.dvt-vector-poi-marker:is(.is-dragging, .is-saving),
button.dvt-vector-poi-marker:is(.is-dragging, .is-saving):hover {
    cursor: grabbing !important;
}

.dvt-vector-poi-marker img {
    display: block;
    width: 2rem;
    height: 2rem;
    filter: drop-shadow(0 .08rem .14rem rgb(0 0 0 / 28%));
}

.dvt-vector-poi-marker[data-category="waypoint"] {
    width: 1.5rem;
    height: 1.5rem;
}

.dvt-vector-poi-marker[data-category="waypoint"] img {
    width: 1.5rem;
    height: 1.5rem;
}

.dvt-vector-poi-marker[hidden] {
    display: none !important;
}

.dvt-vector-poi-marker__label {
    position: absolute;
    top: 50%;
    left: calc(100% + .28rem);
    width: max-content;
    max-width: 11rem;
    transform: translateY(-50%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dvt-vector-poc__map:not(.has-local-poi-labels) .dvt-vector-poi-marker__label {
    display: none;
}

.dvt-vector-poc__map:not(.has-local-poi-labels) .dvt-vector-poi-marker:not([data-category="waypoint"]) img {
    width: 1.5rem;
    height: 1.5rem;
    margin: .5rem .25rem 0;
}

.dvt-vector-poc__map:not(.has-local-poi-labels) .dvt-vector-poi-marker[data-category="waypoint"] img {
    width: 1.15rem;
    height: 1.15rem;
    margin: .175rem;
}

.dvt-vector-poi-marker:hover,
.dvt-vector-poi-marker:focus-visible {
    z-index: 2;
    outline: none;
    color: var(--global-palette-highlight, #1d6342);
}

.route-explorer-focus-mode > .route-explorer-map-host {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 auto;
}

.route-explorer-focus-mode > .route-explorer-map-host .maplibregl-map,
.route-explorer-focus-mode > .route-explorer-map-host .maplibregl-canvas-container,
.route-explorer-focus-mode > .route-explorer-map-host .maplibregl-canvas {
    width: 100% !important;
    height: 100% !important;
}

.route-gpx-prompt {
    position: absolute;
    z-index: 8;
    top: .75rem;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: calc(100% - 2rem);
    padding: .7rem .85rem;
    transform: translateX(-50%);
    border-radius: .35rem;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 .15rem .7rem rgb(0 0 0 / 18%);
    color: var(--global-palette3, #25312a);
}

.route-gpx-prompt button,
.route-gpx-dialog button {
    min-height: 2.65rem;
    padding: .55rem .9rem;
    border: 1px solid var(--global-palette-highlight, #1d6342);
    border-radius: .25rem;
    background: var(--global-palette-highlight, #1d6342);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.route-gpx-prompt button {
    min-height: 2rem;
    padding: .3rem .65rem;
}

.route-gpx-marker {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: .2rem solid #fff;
    border-radius: 50%;
    box-shadow: 0 .1rem .4rem rgb(0 0 0 / 40%);
    color: #fff;
    font: 700 .9rem/1 sans-serif;
}

.route-gpx-marker--start { background: #176b45; }
.route-gpx-marker--end { background: #9f2d20; }

.route-gpx-dialog-backdrop {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgb(20 30 25 / 45%);
}

.route-gpx-dialog {
    width: min(34rem, 100%);
    max-height: min(42rem, calc(100vh - 2rem));
    padding: 1.5rem;
    overflow: auto;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 .35rem 1.4rem rgb(0 0 0 / 28%);
    color: var(--global-palette3, #25312a);
}

.route-gpx-dialog--small { width: min(25rem, 100%); }
.route-gpx-route-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.route-gpx-route-options button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }

.route-gpx-dialog-backdrop.route-gpx-summary {
    position: absolute;
    inset: .75rem;
    z-index: 25;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
    pointer-events: none;
}

.route-gpx-summary .route-gpx-dialog {
    display: flex;
    flex-direction: column;
    width: min(26rem, 42vw);
    max-height: 100%;
    box-sizing: border-box;
    padding: 1rem;
    font-size: .95rem;
    pointer-events: auto;
    overscroll-behavior: contain;
    overflow: hidden;
}

.route-gpx-summary-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: .25rem; }
.route-gpx-summary-heading { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: #fff; padding: .5rem 0; }
.route-gpx-summary .route-gpx-dialog__actions { flex: 0 0 auto; margin-top: .75rem; padding-top: .65rem; border-top: 1px solid #dce3df; }
.route-gpx-alternative { margin: .75rem 0; }
.route-gpx-choice-location { margin: .25rem 0; font-size: .9rem; overflow-wrap: anywhere; }
.route-gpx-summary-heading h2 { font-size: 1.3rem; }
.route-gpx-summary .route-gpx-dialog button { font-size: .9rem; padding: .5rem .65rem; min-height: 40px; }
.route-gpx-summary .route-gpx-dialog dd { overflow-wrap: anywhere; }
.route-gpx-summary .is-collapsed > :not(.route-gpx-summary-heading) { display: none !important; }

.dvt-terrain-control {
    position: relative;
}

.dvt-terrain-control__hint {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    width: 175px;
    padding: .45rem .6rem;
    border-radius: .3rem;
    background: rgb(255 255 255 / 95%);
    color: #263c32;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 1px 5px rgb(0 0 0 / 20%);
    pointer-events: none;
}

.dvt-terrain-control__hint[hidden] { display: none; }

.dvt-vector-poc .dvt-terrain-control button {
    font-weight: 700;
    font-size: 16px;
    min-width: 48px;
    min-height: 44px;
    background: #fff;
    color: #174b39;
    border: 2px solid #174b39;
    border-radius: 4px;
}

.dvt-vector-poc .dvt-terrain-control button:not(:disabled):hover {
    background: #e4eee8;
    color: #174b39;
}

.dvt-vector-poc .dvt-terrain-control button:focus-visible {
    outline: 3px solid #b75b00;
    outline-offset: 3px;
}

.dvt-terrain-notice {
    margin: .5rem 0;
    padding: .5rem .75rem;
    background: #f1f4f2;
    color: #263c32;
    font-size: .9rem;
}

.dvt-vector-poc .dvt-terrain-control button[aria-pressed="true"],
.dvt-vector-poc .dvt-terrain-control button[aria-pressed="true"]:hover {
    background: #174b39;
    color: #fff;
}

.dvt-terrain-control button:disabled {
    opacity: .45;
    cursor: default;
}

@media (max-width: 720px) {
    .route-gpx-dialog-backdrop.route-gpx-summary { align-items: flex-end; }
    .route-gpx-summary .route-gpx-dialog { width: 100%; max-height: min(80%, max(48%, 18rem)); }
}
.route-gpx-dialog h2 { margin: 0 0 .45rem; }
.route-gpx-dialog h3 { margin: 1.25rem 0 .55rem; }

.route-gpx-dialog dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .35rem .8rem;
    margin: 1rem 0;
}

.route-gpx-dialog dt { font-weight: 700; }
.route-gpx-dialog dd { margin: 0; }

.route-gpx-variant-choice {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: .45rem 0;
}

.route-gpx-variant-choice input { margin-top: .25rem; }

.route-gpx-filename { display: grid; gap: .4rem; margin: 1rem 0; font-weight: 700; }
.route-gpx-filename input { width: 100%; min-width: 0; box-sizing: border-box; font-weight: 400; }

.route-gpx-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.25rem;
}

.route-gpx-dialog button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.route-gpx-dialog .route-gpx-secondary {
    background: #fff;
    color: var(--global-palette-highlight, #1d6342);
}

.route-gpx-error {
    color: #9f2d20;
    font-weight: 700;
}

.route-gpx-notice {
    padding: .75rem 1rem;
    border-left: 4px solid #176b47;
    background: #eef6f1;
    color: #173e2c;
    font-weight: 700;
}

.route-gpx-choices { margin: 1rem 0; padding: 0; border: 0; min-width: 0; }
.route-gpx-choices legend { margin-bottom: .75rem; font-size: 1.15em; font-weight: 700; }

@media (max-width: 720px) {
    .dvt-vector-poc__map {
        height: min(72vh, var(--dvt-vector-map-height, 620px));
        min-height: 34rem;
    }

    .dvt-vector-legend {
        left: .5rem;
        bottom: 1.8rem;
        max-width: calc(100% - 1rem);
    }

    .route-gpx-prompt {
        top: .5rem;
        width: calc(100% - 1rem);
        justify-content: space-between;
    }

}

/* Separate information help from the route and NCN key entries above it. */
.route-gpx-network-choice { display: block; width: 100%; max-width: 100%; box-sizing: border-box; margin: 8px 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
