/* Shared visual system for the public inner pages. */
.visual-page-heading {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    min-height: clamp(310px, 38vw, 430px);
    margin-bottom: 54px;
    overflow: hidden;
    padding: clamp(38px, 7vw, 82px);
    border-radius: 22px;
    background-color: #fff8f6;
    background-position: center;
    background-size: cover;
    color: #172033;
    text-align: left;
    box-shadow: 0 22px 60px rgba(23, 32, 51, .08);
    isolation: isolate;
}

.visual-page-heading::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(255, 244, 242, .96) 0%, rgba(255, 255, 255, .82) 52%, rgba(223, 47, 54, .08) 100%);
}

.visual-page-heading::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -140px;
    z-index: -1;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(223, 47, 54, .14);
    border-radius: 50%;
    box-shadow: 0 0 0 36px rgba(223, 47, 54, .05), 0 0 0 76px rgba(223, 47, 54, .03);
}

.visual-page-heading-mountains { background-image: url('../images/home-hero-mountains.png'); }
.visual-page-heading-city { background-image: url('../images/home-hero-city.png'); }
.visual-page-heading-travel { background-image: url('../images/home-hero-travel.png'); }

.visual-page-heading .eyebrow-text {
    color: var(--primary-red);
}

.visual-page-heading h1,
.visual-page-heading h2 {
    max-width: 760px;
    margin-right: 0;
    margin-left: 0;
    color: #172033;
    text-wrap: balance;
}

.visual-page-heading .section-description {
    max-width: 670px;
    margin-right: 0;
    margin-left: 0;
    color: #4f5b6f;
}

.public-listing-page .package-listing,
.destinations-page .destination-grid,
.service-section .service-grid,
.faq-page .faq-grid,
.gallery-page .gallery-grid,
.blog-page .blog-grid {
    margin-bottom: 64px;
}

.journey-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin-top: 70px;
    overflow: hidden;
    padding: clamp(34px, 5vw, 58px);
    border-radius: 20px;
    background: radial-gradient(circle at 95% 0, rgba(223, 47, 54, .1), transparent 36%), linear-gradient(135deg, #fff7f5, #ffffff);
    color: #172033;
    border: 1px solid rgba(223, 47, 54, .12);
    box-shadow: 0 24px 60px rgba(23, 32, 51, .08);
}

.journey-cta-copy { max-width: 690px; }
.journey-cta .eyebrow-text { margin-bottom: 8px; color: var(--primary-red); }
.journey-cta h2 { margin: 0 0 10px; color: #172033; font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.25; }
.journey-cta-copy > p:last-child { margin: 0; color: #546174; line-height: 1.75; }
.journey-cta-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.journey-cta-secondary { border: 1px solid rgba(223, 47, 54, .22); background: #fff; color: var(--primary-red); }
.journey-cta-secondary:hover { border-color: var(--primary-red); background: var(--soft-red); color: var(--primary-red-dark); }

.listing-filter-panel {
    margin: 0 auto 54px;
    padding: 26px;
    border: 1px solid #e1e5eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(23, 32, 51, .14);
}

.public-listing-page .package-card {
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(23, 32, 51, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.public-listing-page .package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(23, 32, 51, .13);
}

.public-listing-page .package-card-image {
    height: 225px;
}

.package-card-image-fallback {
    display: flex;
    align-items: flex-end;
    padding: 22px;
    background: linear-gradient(135deg, #fff7f5, #ffe9e7);
    color: #172033;
}

.package-card-image-fallback span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.destinations-page .destination-card {
    position: relative;
    overflow: hidden;
    border-radius: 17px;
    box-shadow: 0 16px 38px rgba(23, 32, 51, .1);
    transition: transform .25s ease, box-shadow .25s ease;
}

.destinations-page .destination-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(23, 32, 51, .16);
}

.destinations-page .destination-card-image { min-height: 250px; }

.service-section .service-card {
    min-height: 280px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(23, 32, 51, .07);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.service-section .service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(223, 47, 54, .26);
    box-shadow: 0 22px 42px rgba(23, 32, 51, .12);
}

.service-section .service-card-image {
    width: calc(100% + 48px);
    height: 155px;
    margin: -24px -24px 8px;
    object-fit: cover;
}

.faq-page .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.faq-page .faq-item {
    position: relative;
    min-height: 170px;
    padding: 30px 30px 28px 34px;
    overflow: hidden;
    border: 1px solid #e2e6ec;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(23, 32, 51, .06);
}

.faq-page .faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: var(--primary-red);
}

.faq-page .faq-item strong { display: block; margin-bottom: 12px; color: #172033; font-size: 1.02rem; }
.faq-page .faq-item p { margin: 0; color: var(--text-muted); line-height: 1.75; }

.gallery-page .gallery-card,
.blog-page .blog-card {
    border-radius: 16px;
    box-shadow: 0 15px 38px rgba(23, 32, 51, .09);
    transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-page .gallery-card:hover,
.blog-page .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(23, 32, 51, .15);
}

.public-empty-state {
    padding: clamp(42px, 7vw, 76px);
    border: 1px dashed #d4dae3;
    border-radius: 18px;
    background: linear-gradient(145deg, #f7f9fb, #fff);
    text-align: center;
}

.detail-page-heading {
    max-width: 930px;
    margin-right: auto;
    margin-left: auto;
}

.detail-heading-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
}

.detail-heading-meta span {
    padding: 8px 13px;
    border: 1px solid #e1e5eb;
    border-radius: 24px;
    background: #f8f9fb;
    color: #4a5568;
    font-size: .78rem;
    font-weight: 700;
}

.public-detail-page .detail-hero-image {
    position: relative;
    height: clamp(330px, 50vw, 570px);
    border-radius: 22px;
    box-shadow: 0 26px 64px rgba(23, 32, 51, .17);
}

.public-detail-page .package-detail-grid { gap: 28px; }
.public-detail-page .detail-section { gap: 18px; }
.public-detail-page .detail-card { border-radius: 15px; box-shadow: 0 10px 28px rgba(23, 32, 51, .06); }
.public-detail-page .detail-card h3 { position: relative; padding-bottom: 13px; }
.public-detail-page .detail-card h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 42px; height: 3px; border-radius: 3px; background: var(--primary-red); }
.public-detail-page .detail-sidebar { position: sticky; top: 106px; }
.public-detail-page .detail-sidebar .detail-card:last-child {
    background: linear-gradient(180deg, #fff7f5 0%, #ffffff 100%);
    color: #172033;
    border: 1px solid rgba(223, 47, 54, .12);
}
.public-detail-page .detail-sidebar .detail-card:last-child h3 { color: #172033; }
.public-detail-page .detail-sidebar .detail-card:last-child p { color: #546174; }
.public-detail-page .detail-sidebar .button { width: 100%; }

.blog-article-header {
    padding: clamp(38px, 6vw, 70px);
    border-radius: 20px;
    background: linear-gradient(145deg, #fff7f5, #ffffff);
    color: #172033;
    border: 1px solid rgba(223, 47, 54, .12);
    text-align: center;
}

.blog-article-header h1 { color: #172033; text-wrap: balance; }
.blog-article-header > p { color: #546174; }
.blog-article .blog-article-image { margin-top: -20px; border: 8px solid #fff; border-radius: 20px; box-shadow: 0 24px 58px rgba(23, 32, 51, .15); }
.blog-article-content { padding: clamp(28px, 5vw, 58px); border: 1px solid #e4e8ee; border-radius: 16px; background: #fff; box-shadow: 0 12px 36px rgba(23, 32, 51, .06); }

.status-card,
.success-card {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(32px, 6vw, 58px);
    border: 1px solid #e2e6ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(23, 32, 51, .09);
    text-align: center;
}

.status-card p,
.success-card p { color: var(--text-muted); line-height: 1.75; }
.status-actions { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }

@media (max-width: 980px) {
    .journey-cta { align-items: flex-start; flex-direction: column; }
    .listing-filter-panel { margin-top: 0; }
    .public-detail-page .detail-sidebar { position: static; }
}

@media (max-width: 760px) {
    .visual-page-heading {
        min-height: 360px;
        margin-right: -16px;
        margin-bottom: 38px;
        margin-left: -16px;
        padding: 34px 24px;
        border-radius: 0 0 20px 20px;
    }

    .visual-page-heading::before { background: linear-gradient(90deg, rgba(255, 244, 242, .96), rgba(255, 255, 255, .72)); }
    .listing-filter-panel { margin: 0 0 40px; padding: 20px; }
    .journey-cta { margin-top: 50px; padding: 30px 24px; }
    .journey-cta-actions, .status-actions { width: 100%; flex-direction: column; }
    .journey-cta-actions .button, .status-actions .button { width: 100%; }
    .faq-page .faq-grid { grid-template-columns: 1fr; }
    .faq-page .faq-item { min-height: 0; }
    .public-detail-page .detail-hero-image { height: 320px; margin-top: -8px; border-radius: 16px; }
    .detail-heading-meta { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .visual-page-heading { min-height: 330px; }
    .public-listing-page .package-card-image { height: 205px; }
    .public-detail-page .detail-hero-image { height: 260px; }
}

@media (max-width: 760px) {
    .visual-page-heading {
        min-height: 320px;
        margin-right: -12px;
        margin-left: -12px;
        margin-bottom: 30px;
        padding: 28px 20px;
    }

    .visual-page-heading h1,
    .visual-page-heading h2 {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .visual-page-heading .section-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .listing-filter-panel {
        margin-bottom: 30px;
        padding: 18px;
        border-radius: 14px;
    }

    .journey-cta {
        margin-top: 40px;
        padding: 24px 20px;
        border-radius: 16px;
        gap: 20px;
    }

    .journey-cta h2 {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    .public-detail-page .detail-card {
        border-radius: 14px;
    }

    .public-detail-page .detail-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .visual-page-heading {
        min-height: 300px;
        padding: 24px 18px;
    }

    .journey-cta {
        padding: 22px 18px;
    }
}
