:root {
    --route-navy: #071d3b;
    --route-blue: #173f68;
    --route-sky: #edf6ff;
    --route-pale: #f7fbff;
    --route-cream: #fff8ef;
    --route-line: #dce6ef;
    --route-muted: #617184;
    --route-orange: #ef6f3c;
    --route-green: #41733d;
    --route-red: #b7262f;
}

.route-overview-page {
    color: var(--route-navy);
    background: #fff;
}

.route-kicker {
    margin: 0 0 .4rem;
    color: var(--route-orange);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.route-overview-hero {
    position: relative;
    overflow: hidden;
    padding: 2.6rem 0 1.7rem;
    border-bottom: 1px solid #d8e6f2;
    background:
        radial-gradient(circle at 78% 26%, rgba(114, 171, 226, .16), transparent 27%),
        linear-gradient(120deg, #f8fbff 0%, var(--route-sky) 62%, #f6fbff 100%);
}

.route-overview-hero .page-shell {
    position: relative;
    z-index: 1;
}

.route-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 690px;
}

.route-hero-copy h1 {
    margin: 0;
    color: var(--route-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 5vw, 5rem);
    font-weight: 700;
    line-height: .95;
}

.route-hero-copy > p:last-child {
    max-width: 610px;
    margin: .55rem 0 1rem;
    color: #314b66;
    font-size: 1rem;
    line-height: 1.5;
}

.route-hero-mark {
    position: absolute;
    top: -1rem;
    right: 1.5rem;
    width: min(44%, 570px);
    height: 210px;
    opacity: .65;
    pointer-events: none;
}

.route-hero-mark::before,
.route-hero-mark::after,
.route-hero-mark span {
    content: "";
    position: absolute;
    border: 2px solid rgba(67, 125, 185, .28);
    border-top-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(-12deg);
}

.route-hero-mark::before { inset: 18px 20px 20px 40px; }
.route-hero-mark::after { inset: 52px 82px 42px 12px; }
.route-hero-mark span:nth-child(1) { inset: 84px 20px 18px 130px; }
.route-hero-mark span:nth-child(2) { width: 18px; height: 18px; right: 19%; bottom: 28%; border-color: rgba(67, 125, 185, .45); }
.route-hero-mark span:nth-child(3) { width: 10px; height: 10px; left: 24%; top: 28%; border-color: rgba(67, 125, 185, .4); }
.route-hero-mark b {
    position: absolute;
    right: 18%;
    bottom: 38%;
    color: #3c77b6;
    font-size: 2.4rem;
    font-weight: 400;
}

.route-search {
    position: relative;
    z-index: 2;
    max-width: 660px;
    margin-top: .8rem;
}

.route-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.route-search > div {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
    min-height: 48px;
    padding: .25rem .28rem .25rem .85rem;
    border: 1px solid #c8d8e7;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(17, 54, 91, .06);
}

.route-search svg {
    width: 19px;
    fill: none;
    stroke: #47698d;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.route-search input[type="search"] {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--route-navy);
    font: inherit;
}

.route-search input[type="hidden"] { display: none; }
.route-search button {
    min-height: 38px;
    padding: 0 1.15rem;
    border: 0;
    border-radius: 999px;
    background: var(--route-orange);
    color: #fff;
    font: inherit;
    font-size: .82rem;
    font-weight: 850;
    cursor: pointer;
}

.route-primary-filters,
.route-sort-row {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.route-primary-filters { margin-top: .8rem; }
.route-primary-filters a,
.route-sort-row a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: .2rem .8rem;
    border: 1px solid #cad9e7;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: #24415f;
    font-size: .75rem;
    font-weight: 760;
    text-decoration: none;
}

.route-primary-filters a:hover,
.route-primary-filters a.active,
.route-sort-row a:hover,
.route-sort-row a.active {
    border-color: var(--route-navy);
    background: var(--route-navy);
    color: #fff;
}

.route-sort-row { margin-top: .72rem; }
.route-sort-row > span {
    margin-right: .2rem;
    color: var(--route-muted);
    font-size: .72rem;
    font-weight: 750;
}

.route-map-section,
.route-feature-section,
.route-detail-map-section,
.route-gallery {
    padding-top: 2.3rem;
    padding-bottom: 2.3rem;
}

.route-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1rem;
}

.route-section-heading h2 {
    margin: 0;
    color: var(--route-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 2.4vw, 2.4rem);
    line-height: 1.08;
}

.route-section-heading > p {
    max-width: 420px;
    margin: 0;
    color: var(--route-muted);
    font-size: .88rem;
}

.route-section-heading > a {
    color: var(--route-orange);
    font-size: .82rem;
    font-weight: 850;
    text-decoration: none;
}

.route-map-workspace {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, .8fr);
    gap: .9rem;
}

.route-map {
    height: 430px;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid #d6e2eb;
    border-radius: 16px;
    background: #dce7df;
    box-shadow: 0 13px 36px rgba(16, 44, 73, .1);
}

.route-map .leaflet-popup-content a {
    color: var(--route-orange);
    font-weight: 800;
}

.route-filter-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.2rem;
    border: 1px solid var(--route-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 44, 73, .06);
}

.route-filter-panel h3 {
    margin: 0 0 .9rem;
    color: var(--route-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
}

.route-filter-panel fieldset {
    min-width: 0;
    margin: 0 0 .9rem;
    padding: 0;
    border: 0;
}

.route-filter-panel legend {
    margin-bottom: .4rem;
    color: #344d68;
    font-size: .72rem;
    font-weight: 850;
}

.route-option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem;
}

.route-option-grid.source { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route-option-grid a {
    display: flex;
    min-height: 37px;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .3rem .4rem;
    border: 1px solid #d7e1ea;
    border-radius: 8px;
    color: #29435e;
    font-size: .7rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

.route-option-grid a:hover,
.route-option-grid a.active {
    border-color: #91acc6;
    background: var(--route-sky);
    color: var(--route-navy);
    box-shadow: inset 0 0 0 1px #91acc6;
}

.difficulty i,
.route-card-meta .difficulty i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #7c8997;
}

.difficulty.easy i { background: var(--route-green); }
.difficulty.medium i { background: #e87518; }
.difficulty.hard i { background: var(--route-red); }

.route-filter-summary {
    display: flex;
    justify-content: space-between;
    gap: .7rem;
    margin-top: auto;
    padding-top: .8rem;
    border-top: 1px solid var(--route-line);
    font-size: .72rem;
}

.route-filter-summary a { color: var(--route-blue); font-weight: 750; }
.route-filter-summary strong { color: var(--route-navy); }

.route-feature-section { padding-top: .5rem; }
.route-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr);
    gap: .9rem;
}

.route-feature-card,
.route-card,
.route-inspiration-grid article {
    overflow: hidden;
    border: 1px solid var(--route-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 54, 91, .055);
}

.route-feature-card.lead {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
    min-height: 355px;
}

.route-feature-side {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.route-feature-card.compact {
    display: grid;
    grid-template-columns: 44% minmax(0, 1fr);
    min-height: 172px;
}

.route-card-image {
    display: block;
    overflow: hidden;
    background: #dbe6ee;
}

.route-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.route-card-image:hover img { transform: scale(1.025); }
.route-feature-card.lead > .route-card-image { min-height: 355px; }
.route-feature-card.compact > .route-card-image { min-height: 172px; }

.route-feature-card > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 1.2rem;
}

.route-feature-card.lead > div { padding: 1.5rem; }
.route-card-badge {
    align-self: flex-start;
    padding: .24rem .5rem;
    border-radius: 5px;
    background: #4a7143;
    color: #fff;
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.route-feature-card h3,
.route-card h3,
.route-inspiration-grid h3 {
    margin: .58rem 0 .42rem;
    color: var(--route-navy);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.12;
}

.route-feature-card.lead h3 { font-size: clamp(1.55rem, 2.2vw, 2.25rem); }
.route-feature-card.compact h3 { font-size: 1.12rem; }
.route-feature-card h3 a,
.route-card h3 a { color: inherit; text-decoration: none; }

.route-feature-card p,
.route-card p,
.route-inspiration-grid p {
    color: #586b7f;
    line-height: 1.45;
}

.route-feature-card p { margin: .7rem 0; }
.route-feature-card footer,
.route-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-top: auto;
    color: var(--route-muted);
    font-size: .76rem;
}

.route-feature-card footer a,
.route-card footer a {
    color: var(--route-orange);
    font-weight: 850;
    text-decoration: none;
}

.route-feature-card.compact small {
    margin-top: auto;
    color: var(--route-muted);
    font-size: .72rem;
}

.route-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .75rem;
    color: #53677a;
    font-size: .69rem;
    font-weight: 730;
}

.route-card-meta .difficulty {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
}

.route-list-section {
    padding: 2.5rem 0 3rem;
    background: var(--route-pale);
}

.route-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.route-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.route-card > .route-card-image { aspect-ratio: 8 / 5; }
.route-card > div {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: .95rem;
}

.route-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin-top: .5rem;
    font-size: 1.08rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.route-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: .55rem 0 .8rem;
    font-size: .82rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.route-card footer { margin-top: auto; }
.route-card footer a {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #fff0e8;
}

.route-empty {
    padding: 2rem;
    border: 1px solid var(--route-line);
    border-radius: 14px;
    background: #fff;
}

.route-inspiration {
    padding: 2.4rem 0 3rem;
    background: var(--route-cream);
}

.route-inspiration-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.route-inspiration-grid article {
    display: grid;
    grid-template-columns: 46% minmax(0, 1fr);
    min-height: 165px;
}

.route-inspiration-grid .route-card-image { min-height: 165px; }
.route-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(28deg, transparent 0 36px, rgba(32, 91, 112, .08) 37px 39px),
        #e8f2ef;
    color: #315f70;
    text-decoration: none;
}
.route-card-placeholder span { font-size: 3rem; line-height: .9; }
.route-card-placeholder small { margin-top: .35rem; font-size: .66rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.route-inspiration-grid article > div { padding: 1rem; }
.route-inspiration-grid h3 { margin-top: 0; font-size: 1.1rem; }
.route-inspiration-grid p { margin: .4rem 0 .8rem; font-size: .78rem; }
.route-inspiration-grid article > div > a {
    color: var(--route-orange);
    font-size: .76rem;
    font-weight: 850;
    text-decoration: none;
}

/* Fælles ruteside for HikingVarde, GeoFA og andre kilder. Kilden ændrer data, ikke layout. */
.route-detail-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #dce7e4;
    background: linear-gradient(110deg, #f7fbff 0%, #edf6f5 58%, #fff 100%);
    color: #0e2949;
}

.route-detail-hero-grid {
    display: grid;
    min-height: 455px;
    grid-template-columns: minmax(0, .96fr) minmax(390px, 1.04fr);
    align-items: stretch;
}

.route-detail-intro {
    z-index: 1;
    align-self: center;
    padding: 3.4rem 3.2rem 3.4rem 0;
}

.route-detail-visual {
    position: relative;
    min-height: 455px;
    overflow: hidden;
    background: #dfece8;
}

.route-detail-visual::before {
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: 110px;
    background: linear-gradient(90deg, #edf6f5, transparent);
    content: "";
}

.route-detail-visual img { width: 100%; height: 100%; object-fit: cover; }
.route-detail-visual small {
    position: absolute;
    z-index: 2;
    right: .8rem;
    bottom: .7rem;
    padding: .35rem .55rem;
    border-radius: 7px;
    background: rgba(8, 30, 47, .72);
    color: #fff;
    font-size: .67rem;
}

.route-type-badge {
    display: inline-flex;
    margin: 0 0 .8rem;
    padding: .3rem .65rem;
    border-radius: 6px;
    background: #476d2f;
    color: #fff;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.route-detail-hero h1 {
    max-width: 700px;
    margin: 0 0 .55rem;
    color: #0b284f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.45rem, 5vw, 4.6rem);
    line-height: 1.02;
}

.route-lead {
    max-width: 650px;
    margin: 0;
    color: #42566e;
    font-size: 1.04rem;
    line-height: 1.55;
}

.route-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.1rem;
}

.route-tag-row span {
    padding: .38rem .7rem;
    border-radius: 999px;
    background: #dcebd3;
    color: #29451e;
    font-size: .76rem;
    font-weight: 750;
}

.route-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.3rem;
}

.route-facts span {
    padding: .35rem 0;
    color: #193551;
    font-size: .82rem;
}

.route-facts span + span::before { margin-right: .7rem; color: #9aabb9; content: "•"; }
.route-facts b { margin-right: .25rem; }
.route-hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.route-hero-actions a {
    padding: .72rem 1.05rem;
    border: 1px solid #0d2d55;
    border-radius: 8px;
    color: #0d2d55;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
}
.route-hero-actions a.primary { background: #0d2d55; color: #fff; }
.route-map-placeholder {
    display: flex;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 28% 30%, rgba(76, 122, 154, .13) 0 3px, transparent 4px),
        repeating-linear-gradient(26deg, transparent 0 44px, rgba(76, 122, 154, .08) 45px 47px),
        #eef6f5;
    color: #55778b;
}
.route-map-placeholder span { font-size: 5rem; line-height: 1; }
.route-map-placeholder b { color: #244b60; font-family: Georgia, serif; font-size: 1.5rem; }
.route-map-placeholder small { margin-top: .35rem; }
.route-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 4rem;
    padding-top: 4.5rem;
    padding-bottom: 2rem;
}

.route-description {
    color: #354a46;
    font-size: 1.06rem;
    line-height: 1.8;
}

.route-description h2,
.route-description h3 { color: #102c2a; }
.route-description img { display: none; }
.route-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin: 1rem 0 2rem;
}
.route-benefit-grid > div {
    padding: 1rem;
    border: 1px solid #dce5df;
    border-radius: 14px;
    background: #fbfcfa;
}
.route-benefit-grid strong { color: #183d37; font-family: Georgia, serif; }
.route-benefit-grid p { margin: .35rem 0 0; font-size: .79rem; line-height: 1.45; }
.route-detail-grid aside {
    position: sticky;
    top: 1.5rem;
    height: max-content;
    padding: 1.7rem;
    border-radius: 24px;
    background: #e8f3ee;
}

.route-detail-grid aside h2 { margin-top: 0; color: #102c2a; }
.route-detail-grid dl { margin: 0; }
.route-detail-grid dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid #c9ddd4;
}

.route-detail-grid dt { color: #61726e; }
.route-detail-grid dd { margin: 0; font-weight: 700; text-align: right; }
.route-source-actions {
    display: grid;
    gap: .7rem;
    margin-top: 1.4rem;
}

.route-source-actions a {
    display: block;
    padding: .85rem 1rem;
    border: 1px solid #1f7a68;
    border-radius: 999px;
    color: #1f7a68;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.route-source-actions a.primary { background: #1f7a68; color: #fff; }
.route-attribution { margin: 1rem 0 0; color: #61726e; font-size: .72rem; line-height: 1.45; }
.route-attribution a { color: inherit; }
.route-detail-map-section .route-map { height: min(68vh, 650px); min-height: 430px; border-radius: 26px; }
.route-gallery > div:last-child {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.route-gallery figure {
    overflow: hidden;
    margin: 0;
    aspect-ratio: 8 / 5;
    border-radius: 18px;
    background: #dde8e1;
}

.route-gallery img { width: 100%; height: 100%; object-fit: cover; }
.route-more { padding: 3.5rem 0; background: #f4efe5; }
.route-more .page-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.route-more h2 { margin: 0; color: #102c2a; }
.route-more a {
    padding: .9rem 1.3rem;
    border-radius: 999px;
    background: #1f7a68;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1120px) {
    .route-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .route-feature-grid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); }
    .route-inspiration-grid article { grid-template-columns: 42% minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .route-hero-mark { width: 38%; opacity: .4; }
    .route-map-workspace { grid-template-columns: 1fr; }
    .route-filter-panel { min-height: 0; }
    .route-feature-grid { grid-template-columns: 1fr; }
    .route-feature-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
    .route-feature-card.compact { grid-template-columns: 42% minmax(0, 1fr); }
    .route-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .route-inspiration-grid { grid-template-columns: 1fr; }
    .route-inspiration-grid article { grid-template-columns: 38% minmax(0, 1fr); }
    .route-detail-hero-grid { min-height: 0; grid-template-columns: 1fr; }
    .route-detail-intro { padding: 2.7rem 0 2rem; }
    .route-detail-visual { min-height: 0; aspect-ratio: 8 / 5; }
    .route-detail-visual::before { display: none; }
    .route-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .route-detail-grid aside { position: static; }
    .route-gallery > div:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .route-overview-hero { padding: 2rem 0 1.35rem; }
    .route-hero-copy h1 { font-size: 3.35rem; }
    .route-hero-copy > p:last-child { font-size: .9rem; }
    .route-hero-mark { display: none; }
    .route-search > div { grid-template-columns: 20px minmax(0, 1fr); border-radius: 14px; }
    .route-search button { grid-column: 1 / -1; min-height: 40px; border-radius: 10px; }
    .route-primary-filters,
    .route-sort-row {
        flex-wrap: nowrap;
        margin-right: -18px;
        padding-right: 18px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .route-primary-filters::-webkit-scrollbar,
    .route-sort-row::-webkit-scrollbar { display: none; }
    .route-primary-filters a,
    .route-sort-row a,
    .route-sort-row > span { flex: 0 0 auto; }
    .route-map-section,
    .route-feature-section,
    .route-detail-map-section,
    .route-gallery { padding-top: 1.7rem; padding-bottom: 1.7rem; }
    .route-section-heading { display: block; }
    .route-section-heading > p { margin-top: .45rem; }
    .route-map { height: 350px; min-height: 350px; border-radius: 12px; }
    .route-option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .route-feature-card.lead { display: flex; min-height: 0; flex-direction: column; }
    .route-feature-card.lead > .route-card-image { min-height: 0; aspect-ratio: 8 / 5; }
    .route-feature-card.lead > div { padding: 1.15rem; }
    .route-feature-side { grid-template-columns: 1fr; }
    .route-feature-card.compact { min-height: 145px; grid-template-columns: 42% minmax(0, 1fr); }
    .route-feature-card.compact > .route-card-image { min-height: 145px; }
    .route-feature-card.compact > div { padding: .85rem; }
    .route-card-grid { grid-template-columns: 1fr; }
    .route-card > .route-card-image { aspect-ratio: 8 / 5; }
    .route-inspiration-grid article { grid-template-columns: 1fr; }
    .route-inspiration-grid .route-card-image { min-height: 0; aspect-ratio: 8 / 5; }
    .route-detail-intro { padding: 2rem 0 1.5rem; }
    .route-detail-hero h1 { font-size: 2.65rem; }
    .route-detail-visual { aspect-ratio: 8 / 5; margin: 0 -18px; }
    .route-benefit-grid { grid-template-columns: 1fr; }
    .route-facts span + span::before { display: none; }
    .route-facts { gap: .55rem 1.2rem; }
    .route-gallery > div:last-child { grid-template-columns: 1fr; }
    .route-gallery figure { aspect-ratio: 8 / 5; }
    .route-more .page-shell { display: block; }
    .route-more a { display: inline-block; margin-top: 1rem; }
}
.route-card[hidden] {
    display: none;
}

/* Fælles landingsside for ruter. Kilden leverer data; layoutet er ens. */
.route-detail-page {
    --route-detail-blue: #0b284f;
    --route-detail-green: #4e7136;
    --route-detail-orange: #ef6f3c;
    --route-detail-line: #dde5e2;
    color: #102b49;
    background: #fff;
}

.route-detail-page .route-detail-hero {
    background: linear-gradient(110deg, #f5faff 0%, #eef6f5 62%, #fff 100%);
}

.route-detail-page .route-detail-hero-grid {
    min-height: 390px;
    grid-template-columns: minmax(430px, .98fr) minmax(470px, 1.02fr);
}

.route-detail-page .route-detail-intro {
    padding: 2.25rem 3rem 2.25rem 0;
}

.route-detail-page .route-detail-hero h1 {
    max-width: 740px;
    font-size: clamp(2.65rem, 4.1vw, 4.55rem);
}

.route-detail-page .route-detail-visual {
    min-height: 390px;
}

.route-detail-page .route-detail-visual img {
    object-position: center;
}

.route-detail-page .route-detail-intro > small {
    display: block;
    margin-top: .75rem;
    color: #73818e;
    font-size: .68rem;
}

.route-detail-page .route-hero-actions button {
    padding: .72rem 1.05rem;
    border: 1px solid var(--route-detail-blue);
    border-radius: 8px;
    background: #fff;
    color: var(--route-detail-blue);
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
}

.route-detail-page .route-hero-actions .map {
    border-color: var(--route-detail-orange);
    color: #c84d1d;
}

.route-detail-page .route-save-button.is-saved {
    border-color: var(--route-detail-green);
    background: #eaf2e4;
    color: #355326;
}

.route-detail-content,
.route-page-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
    gap: 2.4rem;
    padding-top: 2rem;
    padding-bottom: 1.2rem;
}

.route-detail-main,
.route-page-main {
    min-width: 0;
}

.route-page-body {
    grid-template-columns: minmax(0, 2.1fr) minmax(275px, .82fr);
    align-items: start;
}

.route-page-sidebar {
    display: grid;
    align-content: start;
    gap: .8rem;
}

.route-kicker {
    margin: 0 0 .42rem;
    color: var(--route-detail-orange);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.route-reasons .route-benefit-grid {
    margin: 0;
}

.route-detail-page .route-benefit-grid {
    gap: .8rem;
}

.route-detail-page .route-benefit-grid article {
    overflow: hidden;
    border: 1px solid var(--route-detail-line);
    border-radius: 13px;
    background: #fff;
}

.route-detail-page .route-benefit-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}

.route-detail-page .route-benefit-grid article > div {
    padding: .8rem .85rem .9rem;
}

.route-detail-page .route-benefit-grid h2 {
    margin: 0;
    color: var(--route-detail-blue);
    font: 700 1rem/1.2 Georgia, "Times New Roman", serif;
}

.route-detail-page .route-benefit-grid p {
    display: -webkit-box;
    margin: .35rem 0 0;
    overflow: hidden;
    color: #52606c;
    font-size: .76rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.route-detail-page .route-description {
    padding-top: 1.65rem;
    color: #40505b;
    font-size: .94rem;
    line-height: 1.65;
}

.route-detail-page .route-description > h2 {
    margin: 0 0 .7rem;
    font: 700 1.55rem/1.2 Georgia, "Times New Roman", serif;
}

.route-detail-page .route-description p {
    margin: 0 0 .75rem;
}

.route-practical,
.route-map-facts,
.route-related-layout > aside > section,
.route-page-sidebar > section {
    height: max-content;
    padding: 1.25rem;
    border: 1px solid var(--route-detail-line);
    border-radius: 14px;
    background: #fff;
}

.route-practical {
    position: static;
}

.route-practical > h2,
.route-map-facts > h2,
.route-related-layout h2 {
    margin: 0 0 .7rem;
    color: var(--route-detail-blue);
    font: 700 1.35rem/1.2 Georgia, "Times New Roman", serif;
}

.route-practical dl,
.route-map-facts dl {
    margin: 0;
}

.route-practical dl > div,
.route-map-facts dl > div {
    display: grid;
    grid-template-columns: minmax(90px, .72fr) minmax(0, 1.28fr);
    gap: .7rem;
    padding: .52rem 0;
    border-bottom: 1px solid #eef1ef;
    font-size: .76rem;
}

.route-practical dt,
.route-map-facts dt {
    font-weight: 750;
}

.route-practical dd,
.route-map-facts dd {
    margin: 0;
    color: #53616d;
}

.route-fit {
    margin: 0;
}

.route-fit h2,
.route-fit h3 {
    margin: 0 0 .65rem;
    font: 700 1rem/1.2 Georgia, "Times New Roman", serif;
}

.route-fit > div {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
}

.route-fit span {
    padding: .34rem .58rem;
    border: 1px solid #d8e4d1;
    border-radius: 999px;
    color: #405e2e;
    font-size: .68rem;
    font-weight: 750;
}

.route-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(235px, 290px);
    gap: 1rem;
    padding-top: 1.3rem;
    padding-bottom: 1.4rem;
}

.route-detail-page .route-detail-map-section {
    padding: 0;
}

.route-detail-page .route-detail-map-section .route-map {
    height: 420px;
    min-height: 420px;
    border: 1px solid var(--route-detail-line);
    border-radius: 14px;
}

.route-map-facts {
    align-self: end;
}

.route-map-facts a {
    display: block;
    margin-top: .65rem;
    padding: .65rem .8rem;
    border: 1px solid var(--route-detail-blue);
    border-radius: 7px;
    color: var(--route-detail-blue);
    font-size: .74rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.route-detail-page .route-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .65rem;
}

.route-detail-page .route-section-heading h2 {
    margin: 0;
    color: var(--route-detail-blue);
    font: 700 1.45rem/1.2 Georgia, "Times New Roman", serif;
}

.route-detail-page .route-section-heading a,
.route-detail-page .route-section-heading button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--route-detail-orange);
    cursor: pointer;
    font-family: inherit;
    font-size: .7rem;
    font-weight: 850;
    text-decoration: none;
}

.route-detail-page .route-section-heading button:focus-visible {
    outline: 3px solid rgba(213, 91, 43, .24);
    outline-offset: 3px;
}

.route-detail-page .route-gallery {
    padding-top: 1.2rem;
    padding-bottom: 1.4rem;
}

.route-detail-page .route-gallery > div:last-child {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.route-detail-page .route-gallery figure {
    position: relative;
    aspect-ratio: 8 / 5;
    border-radius: 12px;
}

.route-detail-page .route-gallery figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.5rem .7rem .55rem;
    background: linear-gradient(transparent, rgba(4, 25, 42, .78));
    color: #fff;
}

.route-detail-page .route-gallery figcaption strong,
.route-detail-page .route-gallery figcaption span {
    display: block;
}

.route-detail-page .route-gallery figcaption strong {
    font: 700 .82rem/1.2 Georgia, "Times New Roman", serif;
}

.route-detail-page .route-gallery figcaption span {
    margin-top: .15rem;
    font-size: .58rem;
}

.route-related-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
    gap: 1.4rem;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}

.route-related-layout > aside {
    display: grid;
    align-content: start;
    gap: .8rem;
}

.route-page-main > .route-map-layout,
.route-page-main > .route-gallery,
.route-page-main > .route-related {
    margin-top: 1.2rem;
}

.route-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
}

.route-story-grid > a[hidden] {
    display: none;
}

.route-story-grid > a {
    display: grid;
    min-height: 112px;
    grid-template-columns: 40% minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--route-detail-line);
    border-radius: 11px;
    color: inherit;
    text-decoration: none;
}

.route-story-grid img,
.route-near-routes img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-story-grid span,
.route-near-routes > a span {
    padding: .65rem;
}

.route-story-grid strong,
.route-story-grid small,
.route-near-routes strong,
.route-near-routes small,
.route-near-events strong,
.route-near-events small {
    display: block;
}

.route-story-grid strong,
.route-near-routes strong,
.route-near-events strong {
    color: var(--route-detail-blue);
    font: 700 .78rem/1.25 Georgia, "Times New Roman", serif;
}

.route-story-grid small {
    display: -webkit-box;
    margin-top: .3rem;
    overflow: hidden;
    color: #5e6c76;
    font-size: .65rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.route-near-events > a,
.route-near-routes > a {
    display: grid;
    align-items: center;
    margin-top: .45rem;
    overflow: hidden;
    border: 1px solid #e7ebe8;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.route-near-events > a {
    grid-template-columns: 58px minmax(0, 1fr);
}

.route-near-events time {
    margin: .35rem;
    padding: .45rem .25rem;
    border-radius: 6px;
    background: var(--route-detail-orange);
    color: #fff;
    font-size: .68rem;
    font-weight: 850;
    text-align: center;
    white-space: nowrap;
}

.route-near-events > a span {
    padding: .55rem;
}

.route-near-events small,
.route-near-routes small {
    margin-top: .2rem;
    color: #65737e;
    font-size: .61rem;
}

.route-near-routes > a {
    min-height: 66px;
    grid-template-columns: 35% minmax(0, 1fr);
}

.route-source-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    border: 1px solid #eadfd2;
    border-radius: 13px;
    background: #fff8ef;
}

.route-source-cta h2 {
    margin: 0;
    color: var(--route-detail-blue);
    font: 700 1.3rem/1.2 Georgia, "Times New Roman", serif;
}

.route-source-cta p:not(.route-kicker) {
    margin: .25rem 0 0;
    color: #68737b;
    font-size: .72rem;
}

.route-detail-page .route-source-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
}

.route-detail-page .route-source-actions a {
    padding: .7rem .9rem;
    border-radius: 7px;
    font-size: .7rem;
}

.route-detail-page .route-source-actions a.primary {
    border-color: var(--route-detail-orange);
    background: var(--route-detail-orange);
}

.route-detail-page .route-attribution {
    margin-top: .5rem;
    margin-bottom: 1.6rem;
    color: #72808a;
    font-size: .65rem;
}

@media (max-width: 980px) {
    .route-detail-page .route-detail-hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .route-detail-page .route-detail-intro {
        padding: 2.2rem 0 1.8rem;
    }

    .route-detail-page .route-detail-visual {
        min-height: 0;
        aspect-ratio: 8 / 5;
    }

    .route-detail-content,
    .route-related-layout,
    .route-page-body {
        grid-template-columns: 1fr;
    }

    .route-practical {
        position: static;
    }

    .route-detail-page .route-gallery > div:last-child {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .route-detail-page .route-detail-hero h1 {
        font-size: 2.55rem;
    }

    .route-detail-page .route-detail-visual {
        margin: 0 -18px;
        aspect-ratio: 8 / 5;
    }

    .route-detail-page .route-benefit-grid,
    .route-map-layout,
    .route-story-grid {
        grid-template-columns: 1fr;
    }

    .route-detail-page .route-benefit-grid article {
        display: grid;
        grid-template-columns: 40% minmax(0, 1fr);
    }

    .route-detail-page .route-benefit-grid img {
        height: 100%;
        aspect-ratio: auto;
    }

    .route-detail-page .route-detail-map-section .route-map {
        height: 340px;
        min-height: 340px;
    }

    .route-source-cta {
        grid-template-columns: 1fr;
        gap: .9rem;
    }

    .route-detail-page .route-source-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .route-detail-page .route-gallery > div:last-child {
        grid-template-columns: 1fr;
    }

    .route-detail-page .route-gallery figure {
        aspect-ratio: 8 / 5;
    }
}
