.gps-page {
    background: #dbdad4;
}
.gps-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: min(960px, calc(100svh - 2.25rem));
    overflow: hidden;
    background: #172a24;
}
.gps-hero-image {
    position: relative;
    min-height: 100%;
    overflow: hidden;
}
.gps-hero-image:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 65%, #172a24),
        linear-gradient(0deg, rgba(23, 42, 36, 0.3), transparent);
}
.gps-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gps-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12rem var(--bp-page) 5rem;
    color: #e6e5dd;
}
.gps-breadcrumb {
    position: absolute;
    top: 10rem;
    display: flex;
    gap: 0.55rem;
    color: #aaa9a3;
    font-size: 0.65rem;
    text-transform: uppercase;
}
.gps-breadcrumb a {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}
.gps-hero h1 {
    margin: 0 0 2rem;
    font-size: clamp(5rem, 8.5vw, 9rem);
    font-weight: 850;
    line-height: 0.73;
    text-transform: uppercase;
}
.gps-hero h1 em {
    color: var(--bp-acid);
    text-transform: none;
}
.gps-hero-copy > p:not(.eyebrow, .gps-breadcrumb) {
    max-width: 32rem;
    font-size: 1.05rem;
}
.gps-hero-copy .button {
    align-self: flex-start;
    margin-top: 1rem;
}
.gps-route-line {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 44%;
    width: 28rem;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.gps-route-line path {
    fill: none;
    stroke: var(--bp-orange);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 3 14;
}
.gps-intro {
    display: grid;
    grid-template-columns: 0.45fr 1.55fr;
    gap: 3rem;
    color: #4d2c00;
    background: #ffdead;
}
.gps-intro > div {
    display: grid;
    grid-template-columns: 1.45fr 0.55fr;
    gap: clamp(3rem, 8vw, 9rem);
    align-items: end;
}
.gps-intro h2,
.gps-download-intro h2,
.gps-support h2 {
    margin: 0;
    font-size: clamp(4rem, 8vw, 9rem);
    font-weight: 530;
}
.gps-intro h2 em,
.gps-download-intro h2 em {
    color: #eb8900;
}
.gps-intro > div p {
    max-width: 31rem;
    margin: 0;
    color: #754300;
}
.route-library {
    background: #dbdad4;
}
.route-library-heading {
    scroll-margin-top: 7rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}
.route-library-heading h2 {
    margin: 0;
    color: #363633;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 540;
}
.route-library-heading > p {
    color: #81807c;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.route-library-heading > p strong {
    color: #363633;
}
.route-filter-panel {
    position: sticky;
    z-index: 20;
    top: 7rem;
    display: grid;
    grid-template-columns: 1.4fr repeat(5, minmax(8rem, 1fr)) auto;
    gap: 0.5rem;
    padding: 0.65rem;
    background: #faf9f2;
    border-radius: 0.75rem;
    box-shadow: 0 0.7rem 2rem rgba(31, 30, 29, 0.08);
}
.route-filter-panel label {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 0.18rem;
    padding: 0.35rem 0.8rem;
    background: #e6e5dd;
}
.route-filter-panel label > span:not(.screen-reader-text) {
    color: #81807c;
    font-size: 0.5rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.route-filter-panel input,
.route-filter-panel select {
    width: 100%;
    padding: 0;
    color: #363633;
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
}
.route-search {
    padding-left: 2.5rem !important;
}
.route-search svg {
    position: absolute;
    left: 0.8rem;
    width: 1rem;
    fill: none;
    stroke: #686763;
    stroke-width: 1.75;
}
.route-filter-panel > button {
    min-width: 7rem;
    padding: 0.5rem 0.8rem;
    color: #e6e5dd;
    background: #363633;
    border: 0;
    cursor: pointer;
    font-size: 0.6rem;
    font-weight: 750;
    text-transform: uppercase;
}
.route-filter-panel > button span {
    display: block;
    font-size: 1rem;
}
.route-active-summary {
    margin: 1rem 0 3rem;
    color: #81807c;
    font-size: 0.65rem;
}
.gps-route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 4rem) var(--bp-page);
}
.gps-route-card {
    position: relative;
    min-width: 0;
}
.gps-route-card[hidden],
.route-empty[hidden] {
    display: none;
}
.gps-route-card-media {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #c8c7c1;
}
.gps-route-card-media img,
.gps-route-card-media .content-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}
.gps-route-card-media img {
    object-fit: cover;
    transition: transform 0.55s var(--bp-ease);
}
.gps-route-card:hover .gps-route-card-media img {
    transform: scale(1.045);
}
.gps-route-tags {
    position: absolute;
    left: 0.8rem;
    top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    pointer-events: none;
}
.gps-route-tags span {
    padding: 0.4rem 0.65rem;
    color: #363633;
    background: #faf9f2;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 750;
    text-transform: uppercase;
}
.gps-route-tags .difficulty-easy {
    background: var(--bp-acid);
}
.gps-route-tags .difficulty-moderate {
    background: #ffdead;
}
.gps-route-tags .difficulty-hard {
    color: #fff2e0;
    background: #eb8900;
}
.gps-route-number {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    color: #e6e5dd;
    background: #1f1e1d;
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 0.68rem;
    font-style: italic;
}
.gps-route-card-copy {
    padding: 1.25rem 0;
}
.gps-route-start {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.gps-route-start:before {
    position: absolute;
    top: 0.1rem;
    left: 0;
    content: "";
    grid-row: 1 / 3;
    flex: 0 0 auto;
    width: .48rem;
    height: .48rem;
    background: #1F1E1D;
    border-radius: 50%;
}
.gps-route-start span {
    font-size: .65rem;
    font-weight: 750;
    letter-spacing: .06em;
    padding-left: 0.8rem;
    display: block;
    color: #849c33;
    text-transform: uppercase;
}
.gps-route-start strong {
    color: #686763;
    font-size: 0.85rem;
}
.gps-route-endpoints {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
}
.gps-route-endpoints p {
    margin: 0;
}
.gps-route-endpoints p:last-child {
    text-align: right;
}
.gps-route-endpoints span {
    display: block;
    color: #849c33;
    font-size: .61rem;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.gps-route-endpoints strong {
    display: block;
    margin-top: .2rem;
    color: #686763;
    font-size: .76rem;
}
.gps-route-endpoints i {
    color: var(--bp-orange);
    font-style: normal;
}
.gps-route-card h3 {
    min-height: 2em;
    margin: 0 0 1.2rem;
    color: #363633;
    font-size: clamp(1.8rem, 3vw, 3.1rem);
    text-transform: uppercase;
}
.gps-route-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    border-block: 1px solid #aaa9a3;
}
.gps-route-stats div {
    padding: 0.75rem 0;
}
.gps-route-stats div + div {
    padding-left: 1rem;
    border-left: 1px solid #aaa9a3;
}
.gps-route-stats dt {
    color: #81807c;
    font-size: 0.52rem;
    text-transform: uppercase;
}
.gps-route-stats dd {
    margin: 0.15rem 0 0;
    color: #363633;
    font-size: 0.78rem;
    font-weight: 750;
}
.gps-route-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-top: 0.85rem;
}
.gps-route-actions a {
    display: inline-flex;
    min-height: 2.4rem;
    padding: 0 0.85rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: #363633;
    background: var(--bp-orange);
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 750;
    text-transform: uppercase;
}
.gps-route-actions a:first-child {
    color: #e6e5dd;
    background: #363633;
}
.gps-route-actions a.route-view-link {
    color: #fff !important;
    background: #172a24;
    border: 1px solid #172a24;
}
.gps-route-actions a.route-view-link:hover,
.gps-route-actions a.route-view-link:focus-visible {
    color: #172a24 !important;
    background: var(--bp-acid);
    border-color: var(--bp-acid);
}
.route-empty {
    padding: 5rem 1.5rem;
    text-align: center;
    background: #e6e5dd;
}
.route-empty h3 {
    font-size: clamp(2rem, 4vw, 4rem);
    text-transform: uppercase;
}
.route-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    margin-top: clamp(3rem, 6vw, 6rem);
}
.route-pagination[hidden] {
    display: none;
}
.route-pagination > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
}
.route-pagination button {
    display: grid;
    min-width: 2.75rem;
    min-height: 2.75rem;
    place-items: center;
    padding: .5rem .85rem;
    color: #363633;
    background: transparent;
    border: 1px solid #aaa9a3;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 750;
    cursor: pointer;
}
.route-pagination button:hover,
.route-pagination button:focus-visible,
.route-pagination button.is-current {
    color: #e6e5dd;
    background: #363633;
    border-color: #363633;
}
.route-pagination button:disabled {
    opacity: .35;
    cursor: not-allowed;
}
.gps-download-guide {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(3rem, 8vw, 10rem);
    color: #4d2c00;
    background: #ffdead;
}
.gps-download-guide ol {
    margin: 0;
    padding: 0;
    list-style: none;
}
.gps-download-guide li {
    display: grid;
    grid-template-columns: 2rem 0.75fr 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid #d6a767;
}
.gps-download-guide li:last-child {
    border-bottom: 1px solid #d6a767;
}
.gps-download-guide li span {
    font-family: Georgia, serif;
    font-size: 0.7rem;
    font-style: italic;
}
.gps-download-guide h3 {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
}
.gps-download-guide li p {
    margin: 0;
    color: #754300;
    font-size: 0.78rem;
}
.gps-support {
    min-height: 44rem;
    color: #e6e5dd;
    background:
        linear-gradient(90deg, rgba(23, 42, 36, 0.96), rgba(23, 42, 36, 0.62)),
        url("https://bikepointtenerife.com/wp-content/uploads/2025/04/Teide_Los_Cris.jpg") center/cover;
}
.gps-support > div {
    max-width: 70rem;
    margin-left: auto;
}
.gps-support h2 em {
    color: var(--bp-acid);
}
.gps-support > div > p:not(.eyebrow) {
    max-width: 34rem;
    margin: 2rem 0;
}
.gps-support > div > div {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
@media (max-width: 1180px) {
    .gps-hero {
        grid-template-columns: 1fr 1fr;
    }
    .gps-intro,
    .gps-intro > div {
        grid-template-columns: 1fr;
    }
    .route-filter-panel {
        position: static;
        grid-template-columns: repeat(3, 1fr);
    }
    .route-search {
        grid-column: 1/3;
    }
    .route-filter-panel > button {
        grid-column: 3;
        grid-row: 1;
    }
    .gps-route-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gps-download-guide {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 700px) {
    .gps-hero {
        grid-template-columns: 1fr;
        min-height: 53rem;
    }
    .gps-hero-image {
        position: absolute;
        inset: 0;
    }
    .gps-hero-image:after {
        background: linear-gradient(0deg, rgba(23, 42, 36, 0.94) 12%, rgba(23, 42, 36, 0.3) 85%);
    }
    .gps-hero-copy {
        justify-content: flex-end;
        min-height: 53rem;
        padding: 10rem 1.25rem 4rem;
    }
    .gps-breadcrumb {
        top: 7.7rem;
    }
    .gps-hero h1 {
        font-size: clamp(4.8rem, 22vw, 7rem);
    }
    .gps-route-line {
        left: 28%;
        opacity: 0.65;
    }
    .route-library-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .route-filter-panel {
        grid-template-columns: 1fr;
    }
    .route-search,
    .route-filter-panel > button {
        grid-column: 1;
        grid-row: auto;
    }
    .route-filter-panel label {
        min-height: 3.4rem;
    }
    .route-filter-panel > button {
        min-height: 3rem;
    }
    .gps-route-grid {
        grid-template-columns: 1fr;
    }
    .gps-route-card h3 {
        min-height: auto;
    }
    .gps-download-guide li {
        grid-template-columns: 2rem 1fr;
    }
    .gps-download-guide li p {
        grid-column: 2;
    }
    .gps-support > div > div {
        align-items: flex-start;
        flex-direction: column;
    }
}

.gps-page :is(h1, h2, h3, strong),
.route-filter-panel {
    min-width: 0;
    overflow-wrap: break-word;
    hyphens: auto;
}
.gps-route-actions a:not(:first-child){color:#fff}

/* Editorial overlapping route cards. */
.gps-route-grid {
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.gps-route-card {
    overflow: hidden;
    padding-bottom: .15rem;
    background: #cbcebf;
    border-radius: 1.15rem;
    transition: none;
}
.gps-route-card:hover .gps-route-card-media img { transform: none; }
.gps-route-card-media {
    aspect-ratio: 6 / 5;
    border-radius: inherit inherit 0 0;
}
.gps-route-card-media:after {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(23, 42, 36, .28));
}
.gps-route-tags,
.gps-route-number {
    z-index: 2;
}
.gps-route-tags {
    left: 1rem;
    top: 1rem;
}
.gps-route-tags span {
    padding: .48rem .75rem;
    box-shadow: 0 2px 12px rgba(23, 42, 36, .1);
}
.gps-route-number {
    top: 1rem;
    right: 1rem;
    bottom: auto;
    width: 2.55rem;
    height: 2.55rem;
    color: #fff;
    background: #172a24;
    box-shadow: 0 4px 16px rgba(23, 42, 36, .18);
}
.gps-route-card-copy {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: 21rem;
    margin: -8.5rem .7rem .7rem;
    padding: 1.55rem 1.45rem 1.35rem;
    flex-direction: column;
    background: #fff;
    border-radius: .95rem;
    box-shadow: 0 12px 30px rgba(23, 42, 36, .08);
}
.gps-route-card h3 {
    min-height: 2.45em;
    margin: 0 0 1.45rem;
    color: #172a24;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 2.4vw, 2.45rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.035em;
    text-transform: none;
}
.gps-route-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
.gps-route-card h3 a:hover,
.gps-route-card h3 a:focus-visible {
    color: var(--bp-orange);
}
.gps-route-endpoints {
    gap: .5rem;
    margin: 0 0 1rem;
    padding: .85rem 1rem;
    background: #f1f2eb;
    border-radius: .7rem;
}
.gps-route-endpoints span {
    color: #6d7e32;
    font-size: .55rem;
}
.gps-route-endpoints strong {
    color: #343a36;
    font-size: .72rem;
    line-height: 1.25;
}
.gps-route-stats {
    gap: .55rem;
    border: 0;
}
.gps-route-stats div,
.gps-route-stats div + div {
    padding: .7rem .85rem;
    background: #f7f5f0;
    border: 0;
    border-radius: .65rem;
}
.gps-route-stats dt {
    color: #777b76;
    font-size: .52rem;
    letter-spacing: .05em;
}
.gps-route-stats dd {
    margin-top: .22rem;
    color: #172a24;
    font-size: .9rem;
}
.gps-route-actions {
    margin-top: auto;
    padding-top: 1.15rem;
}
.gps-route-actions a {
    min-height: 2.5rem;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.gps-route-actions a:hover,
.gps-route-actions a:focus-visible {
    transform: translateY(-2px);
}
@media (max-width: 700px) {
    .gps-route-card-copy {
        min-height: 0;
        margin-top: -7rem;
    }
    .gps-route-card h3 {
        min-height: 0;
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }
}
