.popular-journeys-page {
    margin: -1rem calc(var(--bs-gutter-x, 1.5rem) * -0.5) 2rem;
    color: #102b49;
}

.popular-hero {
    display: flex;
    align-items: center;
    min-height: 270px;
    padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
    color: #fff;
    background-color: #174e6c;
    background-image: linear-gradient(90deg, rgba(4, 33, 54, .9) 0%, rgba(4, 39, 59, .72) 42%, rgba(4, 39, 59, .08) 100%), url('/img/popular-journeys/hero.webp');
    background-position: center;
    background-size: cover;
}

.popular-hero__content {
    max-width: 550px;
}

.popular-hero__eyebrow {
    margin: 0 0 .45rem;
    color: #d7ecff;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.popular-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
}

.popular-hero__accent {
    display: block;
    width: 52px;
    height: 5px;
    margin: 1rem 0 .8rem;
    border-radius: 4px;
    background: #f5c542;
}

.popular-hero__content > p:last-child {
    max-width: 440px;
    margin: 0;
    color: rgba(255, 255, 255, .94);
    font-size: 1.05rem;
    line-height: 1.55;
}

.popular-routes {
    padding: 1.5rem clamp(.75rem, 2.5vw, 1.5rem) 1rem;
}

.popular-routes__heading,
.popular-routes__title-group {
    display: flex;
    align-items: center;
}

.popular-routes__heading {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.popular-routes__title-group {
    gap: .75rem;
}

.popular-routes__icon {
    color: #0871c5;
    font-size: 1.75rem;
    line-height: 1;
}

.popular-routes__heading h2,
.popular-cta h2 {
    margin: 0;
    color: #102b49;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
}

.popular-routes__all-link {
    flex-shrink: 0;
    color: #0569b7;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
}

.popular-routes__all-link:hover,
.popular-routes__all-link:focus-visible {
    color: #034f8e;
    text-decoration: underline;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.journey-card {
    overflow: hidden;
    border: 1px solid #e0e8ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(16, 43, 73, .1);
    transition: transform .18s ease, box-shadow .18s ease;
}

.journey-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 43, 73, .15);
}

.journey-card__image {
    min-height: 150px;
    background-color: #dcebf4;
    background-position: center;
    background-size: cover;
}

.journey-card__body {
    display: flex;
    min-height: 174px;
    flex-direction: column;
    align-items: flex-start;
    padding: .8rem .9rem .9rem;
}

.journey-card h3 {
    margin: 0 0 .35rem;
    color: #102b49;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.journey-card__description {
    min-height: 2.8em;
    margin: 0 0 .7rem;
    color: #35485c;
    font-size: .9rem;
    line-height: 1.45;
}

.journey-card__button,
.popular-cta__button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .55rem 1rem;
    border: 1px solid #0871c5;
    border-radius: 8px;
    background: #0871c5;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.journey-card__button {
    margin-top: auto;
}

.journey-card__button:hover,
.journey-card__button:focus-visible {
    border-color: #045a9f;
    background: #045a9f;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(8, 113, 197, .2);
}

.journey-card__button--disabled {
    border-color: #8b9aaa;
    background: #8b9aaa;
    cursor: not-allowed;
}

.popular-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.1rem clamp(1rem, 3vw, 2rem);
    border-radius: 12px;
    background: linear-gradient(100deg, #fff8e9 0%, #fbf5e8 70%, #eee8d8 100%);
}

.popular-cta__mark {
    flex: 0 0 auto;
    color: #0871c5;
    font-size: 2.4rem;
}

.popular-cta__copy {
    flex: 1 1 auto;
}

.popular-cta__copy p {
    max-width: 540px;
    margin: .25rem 0 0;
    color: #35485c;
    line-height: 1.45;
}

.popular-cta__button {
    flex: 0 0 auto;
    border-color: #0871c5;
    background: transparent;
    color: #0569b7;
}

.popular-cta__button:hover,
.popular-cta__button:focus-visible {
    background: #0871c5;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(8, 113, 197, .2);
}

@media (max-width: 900px) {
    .journey-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .popular-hero {
        min-height: 245px;
        padding: 2rem 1.25rem;
        background-image: linear-gradient(90deg, rgba(4, 33, 54, .9), rgba(4, 39, 59, .4)), url('/img/popular-journeys/hero.webp');
        background-position: center;
    }

    .popular-routes {
        padding: 1.25rem .75rem .5rem;
    }

    .popular-routes__heading {
        align-items: flex-start;
    }

    .popular-routes__icon {
        font-size: 1.45rem;
    }

    .popular-routes__all-link {
        padding-top: .3rem;
        font-size: .85rem;
    }

    .journey-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: .9rem;
    }

    .journey-card {
        display: grid;
        grid-template-columns: minmax(95px, 34%) minmax(0, 1fr);
    }

    .journey-card__image {
        min-height: 100%;
    }

    .journey-card__body {
        min-height: 0;
        padding: .75rem;
    }

    .journey-card h3 {
        font-size: .97rem;
    }

    .journey-card__description {
        min-height: 0;
        margin-bottom: .55rem;
        font-size: .84rem;
    }

    .journey-card__button {
        min-height: 36px;
        padding: .45rem .7rem;
        font-size: .84rem;
    }

    .popular-cta {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: .5rem .75rem;
        margin-top: 1rem;
        padding: 1rem;
    }

    .popular-cta__mark {
        font-size: 1.8rem;
    }

    .popular-cta__copy {
        flex: 1 1 calc(100% - 3rem);
    }

    .popular-cta__copy h2 {
        font-size: 1.2rem;
    }

    .popular-cta__copy p {
        font-size: .9rem;
    }

    .popular-cta__button {
        margin-left: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journey-card,
    .journey-card__button,
    .popular-cta__button {
        transition: none;
    }

    .journey-card:hover {
        transform: none;
    }
}
