/* Breadcrumbs: a light bar in normal flow. JS moves it to sit directly under
   the hero; until then (and on pages with no hero) it clears the overlaid
   header with top padding. */
.gw-breadcrumbs {
    position: relative;
    z-index: 3; /* above page content, below the header and its open menu */
    clear: both;
    width: 100%;
    background: #f3f1ed;
    border-bottom: 1px solid rgba(40, 19, 33, .1);
}

.gw-breadcrumbs.is-top {
    padding-top: 8.5rem;
}

.gw-breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 83.33333%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 1rem 0;
    list-style: none;
}

.gw-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 0;
}

/* Chevron between pills */
.gw-breadcrumbs__item + .gw-breadcrumbs__item::before {
    content: "";
    display: inline-block;
    width: .4rem;
    height: .4rem;
    margin: 0 .55rem 0 .35rem;
    border-top: 1.5px solid #C9A96E;
    border-right: 1.5px solid #C9A96E;
    transform: rotate(45deg);
    flex: none;
}

/* Every crumb is a pill */
.gw-breadcrumbs__item > a,
.gw-breadcrumbs__item > span {
    display: inline-block;
    padding: .45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(40, 19, 33, .18);
    background: #fff;
    color: #281321;
    line-height: 1.2;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.gw-breadcrumbs__item > a {
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.gw-breadcrumbs__item > a:hover,
.gw-breadcrumbs__item > a:focus-visible {
    background: #281321;
    border-color: #281321;
    color: #C9A96E;
    transform: translateY(-1px);
    outline: none;
}

/* Non-link parents (e.g. Trekking): same pill, muted */
.gw-breadcrumbs__item:not(.is-current) > span {
    background: transparent;
    color: rgba(40, 19, 33, .6);
}

/* Current page: filled */
.gw-breadcrumbs__item.is-current > span {
    background: #281321;
    border-color: #281321;
    color: #C9A96E;
    max-width: 24rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Single posts already carried their own (mobile-only) breadcrumb */
.blog-mobile-breadcrumbs {
    display: none !important;
}

@media (max-width: 1024px) {
    .gw-breadcrumbs.is-top { padding-top: 5.5rem; }
    .gw-breadcrumbs__list { width: auto; margin: 0 1rem; padding: .75rem 0; row-gap: .4rem; }
    .gw-breadcrumbs__item { font-size: .62rem; letter-spacing: .05em; }
    .gw-breadcrumbs__item > a,
    .gw-breadcrumbs__item > span { padding: .35rem .75rem; }
    .gw-breadcrumbs__item + .gw-breadcrumbs__item::before { margin: 0 .35rem 0 .2rem; }
    .gw-breadcrumbs__item.is-current > span { max-width: 9rem; }
}

/* ── Blog listing: 3 x 3 grid ─────────────────────────────────── */
.gw-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gw-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: .5rem;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 14px rgba(40, 19, 33, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.gw-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(40, 19, 33, .16);
}

.gw-blog-card__image {
    aspect-ratio: 16 / 10;
    background: #e9e6e1;
    overflow: hidden;
}

.gw-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gw-blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.4rem 1.5rem;
}

.gw-blog-card__title {
    margin: 0 0 .6rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.gw-blog-card__text {
    margin: 0 0 1rem;
    font-size: .95rem;
    line-height: 1.55;
    opacity: .8;
}

.gw-blog-card__link {
    margin-top: auto;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #C9A96E;
}

.gw-blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: 2.5rem;
}

.gw-blog-pagination .page-numbers {
    min-width: 2.4rem;
    padding: .5rem .8rem;
    text-align: center;
    border: 1px solid rgba(40, 19, 33, .25);
    border-radius: .3rem;
    color: inherit;
    text-decoration: none;
}

.gw-blog-pagination .page-numbers.current,
.gw-blog-pagination a.page-numbers:hover {
    background: #281321;
    border-color: #281321;
    color: #fff;
}

@media (max-width: 991px) {
    .gw-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .gw-blog-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ── "View all" button at the top right of a section heading ──── */
.gw-has-viewall {
    position: relative;
    max-width: none !important; /* .ethos-header is capped at 52rem; span the full row so the button reaches the right edge */
    width: 100%;
}

.gw-viewall-btn {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
    padding: .6rem 1.3rem;
    border: 1px solid #281321;
    border-radius: 999px;
    background: transparent;
    color: #281321;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.gw-viewall-btn:hover,
.gw-viewall-btn:focus-visible {
    background: #281321;
    color: #C9A96E;
}

@media (max-width: 767px) {
    .gw-viewall-btn {
        position: static;
        margin-top: 1rem;
    }
}

/* ── Package cards: the whole card is a link ───────────────────── */
.listing-card {
    position: relative;
}

.gw-card-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    border-radius: inherit;
    cursor: pointer;
}

/* ── Footer partner logos: greyscale like the others ───────────── */
.c-partner__logo-img.gw-logo-grey {
    filter: grayscale(1);
    opacity: .7;
}

/* ── Package category label on the card (same look as the Inspirations label) ── */
.gw-pkg-badge {
    position: absolute;
    top: 1.1rem;
    left: 1.25rem; /* lines up with the card's text edge (pl-5) */
    z-index: 5;
    font-size: 11px;
    line-height: 1.5em;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #474747;
    background-color: #fff;
    border-radius: 4px;
    padding: 3px 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    pointer-events: none; /* clicks fall through to the whole-card link */
}

/* Room above the title on every card, so titles line up across a row whether or
   not a card carries a label */
div:not(#recommendedServiceProviders) .listing-card .bg-cover > .split.pb-7 {
    padding-top: 3.1rem;
}

/* The price block only needs its own content height; pinned to the bottom, so the
   text block can grow (title + label) without pushing the price out of the card. */
div:not(#recommendedServiceProviders) .listing-card .bg-cover > .price-section {
    min-height: 0 !important;
    margin-top: auto !important;
}

/* ...and a little extra height overall */
div:not(#recommendedServiceProviders) .sp-card.listing-card {
    min-height: 400px;
}

@media only screen and (min-width: 768px) {
    div:not(#recommendedServiceProviders) .sp-card.listing-card {
        min-height: 480px;
    }
}

/* ── Packages page pagination (client-side, works with the country tabs) ── */
.listing-card.is-paged-out {
    display: none !important;
}

.gw-pager {
    margin: 2rem 0 3rem;
}

.gw-blog-pagination button.page-numbers {
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.gw-blog-pagination button.page-numbers:disabled {
    opacity: .4;
    cursor: default;
}
