.ssf-gpx-routes-wrap {
    margin: 24px 0;
}

.ssf-gpx-route-filters {
    position: relative;
    z-index: 2000;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.ssf-gpx-filter-field {
    display: flex;
    flex: 0 0 210px;
    width: 210px;
    max-width: 210px;
    min-width: 210px;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-weight: 700;
}

.ssf-gpx-filter-field > span {
    font-size: 13px;
    color: #334155;
}

.ssf-gpx-multiselect {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.ssf-gpx-multiselect-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.ssf-gpx-multiselect-toggle:hover,
.ssf-gpx-multiselect-toggle:focus {
    border-color: #94a3b8;
    background: #fff;
    color: #0f172a;
}

.ssf-gpx-multiselect-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ssf-gpx-multiselect-chevron {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
}

.ssf-gpx-multiselect-menu {
    position: absolute;
    z-index: 3200;
    top: calc(100% + 5px);
    left: 0;
    width: max(100%, 210px);
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
}


.ssf-gpx-multiselect.is-open {
    z-index: 3300;
}

.ssf-gpx-multiselect.is-open .ssf-gpx-multiselect-menu {
    z-index: 3400;
}

.ssf-gpx-multiselect-menu[hidden],
.ssf-gpx-multiselect-option[hidden] {
    display: none;
}

.ssf-gpx-multiselect-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
}

.ssf-gpx-multiselect-option:hover {
    background: #f1f5f9;
}

.ssf-gpx-multiselect-option input {
    flex: 0 0 auto;
    margin: 1px 0 0;
}

.ssf-gpx-filter-reset {
    grid-column: 1 / -1;
    justify-self: end;
    padding: 0;
    border: 0;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: underline;
}

.ssf-gpx-filter-reset[hidden] {
    display: none;
}

.ssf-gpx-filter-reset:hover,
.ssf-gpx-filter-reset:focus {
    color: #0f172a;
    background: transparent;
}

.ssf-gpx-routes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ssf-gpx-route-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.ssf-gpx-route-card[hidden] {
    display: none;
}


.ssf-gpx-route-image a {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.ssf-gpx-route-image img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.ssf-gpx-route-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.ssf-gpx-route-content > h2 {
    color: #eb5e1c;
}

.ssf-gpx-route-content > h2 a {
    color: inherit;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.ssf-gpx-route-content > h2 a:hover,
.ssf-gpx-route-content > h2 a:focus {
    color: inherit;
    text-decoration: underline;
}


.ssf-gpx-route-description {
    height: 4.8em;
    min-height: 4.8em;
    max-height: 4.8em;
    margin: 0 0 14px;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 0 0 4.8em;
}

.ssf-gpx-route-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.ssf-gpx-route-meta div {
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
}

.ssf-gpx-route-meta dt {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
}

.ssf-gpx-route-meta dd {
    margin: 2px 0 0;
    font-weight: 600;
}

.ssf-gpx-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #005eb8;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
}

.ssf-gpx-download-button:hover,
.ssf-gpx-download-button:focus {
    background: #004a91;
    color: #fff !important;
}

.ssf-route-download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.ssf-gpx-no-results {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

@media (max-width: 980px) {
    .ssf-gpx-filter-field {
        flex: 1 1 calc(50% - 7px);
        width: calc(50% - 7px);
        max-width: none;
        min-width: 220px;
    }

    .ssf-gpx-routes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ssf-gpx-filter-field {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .ssf-gpx-routes-grid {
        grid-template-columns: 1fr;
    }

    .ssf-gpx-route-meta {
        grid-template-columns: 1fr;
    }
}

.ssf-route-variant-downloads {
    margin-top: auto;
}

.ssf-route-variant-downloads-title {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.ssf-route-variant-downloads-list {
    display: grid;
    gap: 8px;
}

.ssf-route-variant-download-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.ssf-route-variant-label {
    font-weight: 700;
    color: #0f172a;
}

.ssf-route-variant-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.ssf-gpx-download-button-small {
    padding: 7px 11px;
    font-size: 13px;
}

@media (max-width: 420px) {
    .ssf-route-variant-download-row {
        grid-template-columns: 1fr;
    }

    .ssf-route-variant-actions {
        justify-content: flex-start;
    }
}

.ssf-gpx-route-read-more-wrap {
    margin: -4px 0 14px;
}

.ssf-gpx-route-read-more {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #005eb8;
}

.ssf-gpx-route-read-more:hover,
.ssf-gpx-route-read-more:focus {
    text-decoration: underline;
}

.ssf-route-single {
    margin: 24px 0;
}

.ssf-route-single-hero {
    margin-bottom: 24px;
}

.ssf-route-single-hero img,
.ssf-route-single-extra-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.ssf-route-single-intro {
    margin-bottom: 24px;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.7;
}

.ssf-route-single-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}

.ssf-route-single-meta div {
    padding: 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ssf-route-single-meta dt {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
}

.ssf-route-single-meta dd {
    margin: 4px 0 0;
    font-weight: 700;
}

.ssf-route-single-downloads {
    margin: 0 0 30px;
}

.ssf-route-single-downloads h2 {
    margin-bottom: 14px;
}

.ssf-route-single-long-text {
    margin-top: 28px;
    line-height: 1.7;
}

.ssf-route-single-extra-image {
    display: block;
    margin: 28px 0 0;
}

.ssf-route-single-extra-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

@media (max-width: 640px) {
    .ssf-route-single-meta {
        grid-template-columns: 1fr;
    }
}

/* Detailpagina v1.7.3: uitgelichte afbeelding rechts; labels direct onder die afbeelding. Extra afbeelding blijft in de content. */
.ssf-route-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 32px;
    align-items: start;
}

.ssf-route-single-main {
    min-width: 0;
}

.ssf-route-single-sidebar {
    min-width: 0;
}

.ssf-route-single-side-image {
    margin: 0 0 18px;
}

.ssf-route-single-side-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.ssf-route-single-sidebar .ssf-route-single-meta {
    grid-template-columns: 1fr;
    margin-bottom: 0;
}

@media (max-width: 780px) {
    .ssf-route-single-layout {
        grid-template-columns: 1fr;
    }
}

/* Detailpagina v1.7.4: forceer rechterkolom-volgorde en voorkom oude cache/layout-stijlen. */
.ssf-route-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ssf-route-single-sidebar .ssf-route-single-side-image {
    order: 1;
    margin: 0 0 18px;
}

.ssf-route-single-sidebar .ssf-route-single-meta {
    order: 2;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
}

.ssf-route-single-main > .ssf-route-single-side-image,
.ssf-route-single-main > .ssf-route-single-hero {
    display: none !important;
}

/* Detailpagina v1.7.7: eigen full-width template met teruglink. */
.ssf-route-single-template {
    width: 100%;
}

.ssf-route-single-template-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.ssf-route-single-entry {
    width: 100%;
    max-width: none;
}

.ssf-route-single-header {
    margin-bottom: 24px;
}


.ssf-route-back-link {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 600;
}

.ssf-route-back-link:hover,
.ssf-route-back-link:focus {
    text-decoration: underline;
}

.ssf-route-single-title {
    margin: 0;
}

.ssf-route-single-entry-content {
    width: 100%;
}

.ssf-gpx-route-description > :first-child {
    margin-top: 0;
}

.ssf-gpx-route-description > :last-child {
    margin-bottom: 0;
}

/* Route category archive pages */
.ssf-route-category-template-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.ssf-route-category-header {
    margin-bottom: 28px;
}

.ssf-route-category-title {
    margin-bottom: 12px;
}

.ssf-route-category-description {
    max-width: 860px;
}

.ssf-route-category-description > :first-child {
    margin-top: 0;
}

.ssf-route-category-description > :last-child {
    margin-bottom: 0;
}

/* Route kaart op detailpagina v1.12.2 */
.ssf-route-map-block {
    margin-top: 22px;
}

.ssf-route-map-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.ssf-route-map-thumb {
    display: block;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.ssf-route-map-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    cursor: zoom-in;
}

.ssf-route-map-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 24px;
}

.ssf-route-map-lightbox.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssf-route-map-lightbox-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    border: 0;
    cursor: pointer;
    padding: 0;
}

.ssf-route-map-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: min(1100px, 96vw);
    max-height: 92vh;
}

.ssf-route-map-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    background: #fff;
}

.ssf-route-map-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

/* Detailpagina v1.11.4: routekaart onder labels en snelle JS-lightbox */
.ssf-route-single-sidebar .ssf-route-map-block {
    order: 3;
    margin-top: 22px;
}

.ssf-route-single-sidebar .ssf-route-map-lightbox {
    order: 99;
}

html.ssf-route-map-modal-open { overflow: hidden; }

/* OpenStreetMap routekaart v1.12.0 */
.ssf-osm-map-block {
    margin-top: 24px;
}

.ssf-osm-map-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.ssf-osm-route-map {
    position: relative;
    width: 100%;
    min-height: 460px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f6;
}

.ssf-osm-route-map-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: #4b5563;
    background: #f3f4f6;
    z-index: 1;
}

@media (max-width: 782px) {
    .ssf-osm-route-map {
        min-height: 340px;
    }
}


/* OpenStreetMap routekaart onder de lange tekst v1.12.6 */
.ssf-osm-map-block-main {
    margin: 30px 0;
}

.ssf-osm-route-map-wrap {
    width: 100%;
}

.ssf-osm-route-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 12px;
    font-size: 0.95rem;
}

.ssf-osm-route-map-legend[hidden] {
    display: none;
}

.ssf-osm-route-map-legend-item {
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    color: #374151;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: inherit;
    line-height: 1.2;
    padding: 7px 11px;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.ssf-osm-route-map-legend-item:hover,
.ssf-osm-route-map-legend-item:focus {
    border-color: #4f2674;
    box-shadow: 0 0 0 2px rgba(79, 38, 116, .10);
    outline: none;
}

.ssf-osm-route-map-legend-item.is-active {
    background: #f5f3ff;
    border-color: #4f2674;
    color: #4f2674;
    font-weight: 700;
}

.ssf-osm-route-map-legend-all {
    background: #f9fafb;
}

.ssf-osm-route-map-legend-color {
    width: 22px;
    height: 5px;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
}

.ssf-osm-route-map-legend-label {
    color: inherit;
}

.ssf-osm-route-map.has-osm-error .ssf-osm-route-map-status {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

/* Variantkaart pop-up v1.12.7 */
.ssf-gpx-download-button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.ssf-osm-route-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 24px;
}

.ssf-osm-route-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssf-osm-route-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    border: 0;
    cursor: pointer;
    padding: 0;
}

.ssf-osm-route-modal-content {
    position: relative;
    z-index: 1;
    width: min(1100px, 96vw);
    max-height: 92vh;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .35);
}

.ssf-osm-route-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.ssf-osm-route-map-modal {
    min-height: min(680px, 72vh);
}

.ssf-osm-route-modal .ssf-osm-route-map-legend {
    margin-top: 12px;
}

@media (max-width: 782px) {
    .ssf-osm-route-modal {
        padding: 14px;
    }

    .ssf-osm-route-modal-content {
        width: 96vw;
        padding: 12px;
    }

    .ssf-osm-route-map-modal {
        min-height: 70vh;
    }
}

/* Overzichtskaart met route-startpunten v1.3.0 */
.ssf-gpx-startpoints-map-wrap {
    margin: 24px 0;
}

.ssf-gpx-startpoints-map-wrap.is-square {
    width: 100%;
    max-width: none;
}

.ssf-gpx-startpoints-map {
    position: relative;
    width: 100%;
    min-height: var(--ssf-startpoints-map-height, 600px);
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f6;
}

.ssf-gpx-startpoints-map.is-square {
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.ssf-gpx-startpoints-map-status {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f3f4f6;
    color: #4b5563;
    text-align: center;
    font-size: .95rem;
}

.ssf-gpx-startpoints-map.has-osm-error .ssf-gpx-startpoints-map-status {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.ssf-gpx-startpoints-map-help {
    margin: 12px 0 0;
    color: #64748b;
    font-size: .92rem;
}

.ssf-gpx-startpoints-map-active {
    min-height: 1.5em;
    margin: 6px 0 0;
    color: #1f2937;
    font-weight: 700;
}

@media (max-width: 782px) {
    .ssf-gpx-startpoints-map:not(.is-square) {
        min-height: min(var(--ssf-startpoints-map-height, 600px), 70vh);
    }
}


/* Hovervenster startpuntenkaart */
.ssf-gpx-startpoints-map .leaflet-popup-content-wrapper {
    max-width: 300px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(24, 24, 48, .22);
}

.ssf-gpx-startpoints-map .leaflet-popup-content {
    width: auto !important;
    margin: 0;
}

.ssf-gpx-startpoints-map .leaflet-popup-tip-container {
    display: none;
}

.ssf-gpx-startpoints-map .leaflet-popup-close-button {
    top: 4px;
    right: 5px;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    background: rgba(24, 24, 48, .22);
    color: #fff;
    font-size: 22px;
    line-height: 27px;
    text-align: center;
}

.ssf-gpx-startpoints-map .leaflet-popup-close-button:hover,
.ssf-gpx-startpoints-map .leaflet-popup-close-button:focus {
    background: rgba(24, 24, 48, .38);
    color: #fff;
}

.ssf-gpx-sport-marker {
    border: 0;
    background: transparent;
}

.ssf-gpx-sport-marker svg {
    display: block;
    width: 40px;
    height: 47px;
    filter: drop-shadow(0 3px 5px rgba(15, 23, 42, .24));
}

.ssf-gpx-startpoint-info {
    width: min(280px, 72vw);
    margin: 0;
    padding: 0;
    color: #181830;
    line-height: 1.4;
}

.ssf-gpx-startpoint-info-header {
    margin: 0;
    padding: 10px 42px 9px 12px;
    background: #579931;
    color: #fff;
}

.ssf-gpx-startpoint-info-title {
    display: block;
    margin: 0;
    color: inherit;
    font-size: 16px;
    line-height: 1.25;
}

.ssf-gpx-startpoint-info-body {
    padding: 9px 12px 11px;
}

.ssf-gpx-startpoint-info-meta {
    display: block;
    margin: 0 0 4px;
    color: #181830;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.ssf-gpx-startpoint-info-location {
    display: block;
    margin: 0 0 5px;
    color: #5f6368;
    font-size: 12.5px;
    font-weight: 600;
}

.ssf-gpx-startpoint-info-summary {
    margin: 0 0 8px;
    font-size: 13.5px;
    line-height: 1.4;
}

.ssf-gpx-startpoint-info-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 6px;
    background: #181830;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.ssf-gpx-startpoint-info-link:hover,
.ssf-gpx-startpoint-info-link:focus {
    background: #4f2674;
    color: #fff;
    text-decoration: none;
}

.ssf-gpx-startpoints-category-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 14px;
    margin: 10px 0 0;
    color: #475569;
    font-size: 13px;
}

.ssf-gpx-startpoints-category-legend-label {
    color: #181830;
    font-weight: 800;
}

.ssf-gpx-startpoints-category-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #334155;
    font: inherit;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    appearance: none;
    transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}

.ssf-gpx-startpoints-category-legend-item:hover,
.ssf-gpx-startpoints-category-legend-item:focus-visible {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #181830;
    outline: none;
}

.ssf-gpx-startpoints-category-legend-item.is-active {
    border-color: #cbd5e1;
    background: #eef2f7;
    color: #181830;
    font-weight: 700;
}

.ssf-gpx-startpoints-category-legend-item:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.ssf-gpx-startpoints-category-legend-all {
    padding-inline: 10px;
}

.ssf-gpx-startpoints-category-legend-color {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 4px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .18);
    box-sizing: border-box;
    flex: 0 0 auto;
}

.ssf-gpx-startpoints-category-legend-color img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Leaflet-controls binnen afgeronde kaart */
.ssf-osm-route-map .leaflet-control-container,
.ssf-gpx-startpoints-map .leaflet-control-container {
    font-family: inherit;
}

.ssf-osm-route-map .leaflet-control-attribution,
.ssf-gpx-startpoints-map .leaflet-control-attribution {
    font-size: 10px;
}


/* Filter actions and SEO-friendly filtered map page. */
.ssf-gpx-filter-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 42px;
    margin-left: auto;
    white-space: nowrap;
}

.ssf-gpx-filter-actions .ssf-gpx-filter-reset {
    grid-column: auto;
    justify-self: auto;
}

.ssf-gpx-filter-result-count {
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
    padding: 0 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.ssf-gpx-filter-apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
}

.ssf-gpx-filter-apply-button:hover,
.ssf-gpx-filter-apply-button:focus {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #0f172a !important;
}

.ssf-gpx-show-map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #eb5e1c;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: none;
}

.ssf-gpx-show-map-button:hover,
.ssf-gpx-show-map-button:focus {
    background: #c94b12;
    color: #fff !important;
    text-decoration: none !important;
}

.ssf-routes-map-template {
    width: 100%;
}

.ssf-routes-map-template-inner {
    width: min(100% - 32px, 1200px);
    margin: 0 auto;
    padding: 34px 0 56px;
}

.ssf-routes-map-header {
    margin-bottom: 24px;
}

.ssf-routes-map-title {
    margin-top: 10px;
    margin-bottom: 14px;
}

.ssf-routes-map-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ssf-routes-map-active-filters span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.ssf-gpx-map-filters-wrap {
    position: relative;
    z-index: 2500;
    overflow: visible;
    margin-bottom: 22px;
}

.ssf-gpx-map-filter-bar {
    margin-bottom: 0;
}

.ssf-routes-map-content {
    position: relative;
    z-index: 1;
}

.ssf-routes-map-content .ssf-gpx-startpoints-map-wrap {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

@media (max-width: 980px) {
    .ssf-gpx-filter-actions {
        flex: 1 1 100%;
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .ssf-gpx-filter-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .ssf-gpx-filter-reset {
        width: 100%;
        text-align: right;
    }

    .ssf-gpx-filter-apply-button,
    .ssf-gpx-show-map-button {
        flex: 1 1 auto;
    }

    .ssf-routes-map-template-inner {
        width: min(100% - 24px, 1200px);
        padding-top: 24px;
    }
}


/* Routebron in het routegrid */
.ssf-gpx-route-source-logo-wrap {
    display: flex;
    align-items: center;
    min-height: 38px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.ssf-gpx-route-source-logo-wrap a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 0;
    text-decoration: none;
}

.ssf-gpx-route-source-logo {
    display: block;
    width: auto;
    max-width: 155px;
    height: auto;
    max-height: 38px;
    object-fit: contain;
    object-position: left center;
}

.ssf-gpx-route-meta-source dd .ssf-gpx-route-source-logo-wrap {
    margin-top: 2px;
    padding-top: 0;
    border-top: 0;
}

/* Routebron v1.7.1: eigen metablok naast Sporttype, onder Afstand. */
.ssf-gpx-route-meta-source {
    min-width: 0;
}

.ssf-gpx-route-meta-source dd {
    display: flex;
    align-items: center;
    min-height: 38px;
}

.ssf-gpx-route-meta-source dd .ssf-gpx-route-source-logo-wrap {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
}

.ssf-gpx-route-meta-source .ssf-gpx-route-source-logo {
    max-width: 100%;
    max-height: 38px;
}


/* Detailpagina v1.7.2: bronlogo vrijstaand onder Categorie in de rechterkolom. */
.ssf-route-single-source-logo {
    margin: 18px 0 24px;
}

.ssf-route-single-source-logo .ssf-gpx-route-source-logo-wrap {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ssf-route-single-source-logo .ssf-gpx-route-source-logo-wrap a {
    display: inline-flex;
    max-width: 100%;
}

.ssf-route-single-source-logo .ssf-gpx-route-source-logo {
    width: auto;
    max-width: min(100%, 210px);
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
}

/* v1.9.1: beheerbare sporttype-iconen en sporttypekleuren. */
.ssf-gpx-sport-marker {
    width: 44px !important;
    height: 52px !important;
    overflow: visible;
}

.ssf-gpx-sport-marker-pin {
    --ssf-sport-marker-color: #579931;
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    margin: 2px 0 0 3px;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--ssf-sport-marker-color);
    box-shadow: 0 3px 7px rgba(15, 23, 42, .28);
    transform: rotate(-45deg);
}

.ssf-gpx-sport-marker-icon-image,
.ssf-gpx-sport-marker-icon-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
    transform: translate(-50%, -50%) rotate(45deg);
}

.ssf-gpx-sport-marker-icon-fallback {
    color: #fff;
    font-size: 28px;
    line-height: 25px;
    text-align: center;
}
