/* Pilgrimaps Post Hero 1.3.1 — theme-native typography; centered title and hover gradient. */
.pph-hero.pph-hero--cover {
    position: relative !important;
    isolation: isolate;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-height: var(--pph-height, 680px) !important;
    height: auto !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: #242529;
    color: #fff;
    text-align: left;
}
.pph-hero, .pph-hero * { box-sizing: border-box; }
.pph-hero.pph-hero--cover .pph-hero__media,
.pph-hero.pph-hero--cover .pph-hero__gradient,
.pph-hero.pph-hero--cover .pph-hero__hover-gradient {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}
.pph-hero.pph-hero--cover .pph-hero__media {
    z-index: 0;
    background-position: var(--pph-focus-x,50%) var(--pph-focus-y,50%) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-color: #252729;
    transform: none;
}
.pph-hero.pph-hero--cover .pph-hero__gradient {
    z-index: 1;
    background: linear-gradient(to bottom,
        var(--pph-shade-top,rgba(0,0,0,.22)) 0%,
        var(--pph-shade-middle,rgba(0,0,0,.39)) 53%,
        var(--pph-shade-bottom,rgba(0,0,0,.66)) 100%) !important;
}
/* Second overlay appears across the entire hero on hover, as on Tripster's slider.
   Transitioning opacity (not the gradient itself) keeps the animation smooth. */
.pph-hero.pph-hero--cover .pph-hero__hover-gradient {
    z-index: 2;
    opacity: 0;
    background: linear-gradient(110deg,
        var(--pph-hover-start,rgba(0,0,0,.60)) 0%,
        var(--pph-hover-mid,rgba(0,0,0,.32)) 48%,
        var(--pph-hover-end,rgba(0,0,0,.07)) 100%) !important;
    transition: opacity 380ms ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
    .pph-hero.pph-hero--cover:hover .pph-hero__hover-gradient { opacity: 1; }
}
.pph-hero.pph-hero--cover:focus-within .pph-hero__hover-gradient { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .pph-hero.pph-hero--cover .pph-hero__hover-gradient { transition: none; }
}
.pph-hero.pph-hero--cover .pph-hero__content {
    position: relative !important;
    z-index: 3;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto !important;
    padding: 44px 30px 52px;
    /* Centers the title in the hero; category remains immediately below it. */
    transform: translateY(22px);
    background: transparent !important;
    color: #fff;
}
.pph-hero.pph-hero--cover .pph-hero__title {
    position: static;
    max-width: 1120px;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: #fff !important;
    /* Let Tripster heading styles determine the font family, weight and style. */
    font-size: clamp(34px, 4.8vw, var(--pph-title-size,72px)) !important;
    line-height: 1.12 !important;
    text-align: left;
    overflow-wrap: break-word;
    text-shadow: 0 1px 6px rgba(0,0,0,.24);
}
.pph-hero.pph-hero--cover .pph-hero__link,
.pph-hero.pph-hero--cover .pph-hero__link:visited,
.pph-hero.pph-hero--cover .pph-hero__link:hover {
    color: #fff !important;
    text-decoration: none !important;
    background: transparent !important;
}
.pph-hero.pph-hero--cover .pph-hero__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.pph-hero.pph-hero--cover .pph-hero__link:focus-visible,
.pph-hero.pph-hero--cover .pph-hero__category-label:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}
.pph-hero.pph-hero--cover .pph-hero__category {
    position: relative;
    z-index: 2;
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 40px 0 0 !important;
    padding: 0 !important;
    color: #fff !important;
    /* Category typography inherits from the active theme, including font weight. */
    font-size: 21px;
    line-height: 1.35;
    text-align: left;
}
.pph-hero.pph-hero--cover .pph-hero__category-label,
.pph-hero.pph-hero--cover .pph-hero__category-label:visited,
.pph-hero.pph-hero--cover .pph-hero__category-label:hover {
    color: #fff !important;
    text-decoration: none !important;
}
.pph-hero.pph-hero--cover .pph-hero__category-icon {
    display: inline-block;
    flex: 0 0 1.12em;
    position: relative;
    width: 1.12em;
    height: 1.12em;
    min-width: 1.12em;
    margin: 0;
    padding: 0;
    color: #fff;
    font-weight: normal;
    font-size: 1em;
    line-height: 1.12em;
    vertical-align: middle;
    text-align: center;
}
.pph-hero.pph-hero--cover .pph-hero__category-icon--image {
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.pph-hero.pph-hero--cover .pph-hero__category-icon--fallback {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    overflow: visible;
}
@media (max-width: 767px) {
    .pph-hero.pph-hero--cover {
        min-height: var(--pph-mobile-height, 260px) !important;
        justify-content: center;
        height: auto !important;
    }
    .pph-hero.pph-hero--cover .pph-hero__media {
        background-position: var(--pph-mobile-focus-x,50%) var(--pph-mobile-focus-y,50%) !important;
    }
    .pph-hero.pph-hero--cover .pph-hero__content {
        padding: 26px 22px 28px !important;
        transform: none;
    }
    .pph-hero.pph-hero--cover .pph-hero__title {
        max-width: 100%;
        font-size: clamp(26px, 8vw, var(--pph-mobile-title-size,34px)) !important;
        line-height: 1.14 !important;
    }
    .pph-hero.pph-hero--cover .pph-hero__category {
        margin-top: 22px !important;
        gap: 7px;
        font-size: 17px;
    }
}
@media (max-width: 359px) {
    .pph-hero.pph-hero--cover .pph-hero__content { padding: 22px 18px 24px !important; }
    .pph-hero.pph-hero--cover .pph-hero__title { font-size: clamp(22px, 6.5vw, 30px) !important; }
}
