/*
 * PORTUGAL_VIATOR_20261007_R131_hub_editorial.css
 * Additive editorial styling for the exact live PortugalOnline /tours/ baseline.
 * The R116/PRESENTATION_R001 hero, search, results and product styles are untouched.
 */

.po-tours:not(.po-viator-product-view) .po-hub-editorial-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.po-tours:not(.po-viator-product-view) .po-hub-soft-section,
.po-tours:not(.po-viator-product-view) .po-hub-faq-section {
    background: #f5f8fc;
}

.po-tours:not(.po-viator-product-view) .po-hub-section-heading {
    max-width: 860px;
    margin: 0 auto 30px;
    text-align: center;
}

.po-tours:not(.po-viator-product-view) .po-hub-section-heading h2 {
    margin-bottom: 16px;
}

.po-tours:not(.po-viator-product-view) .po-hub-section-heading > p:last-child:not(.po-tours-kicker) {
    max-width: 820px;
    margin: 0 auto;
    color: #66717e;
    font-size: 16px;
    line-height: 1.68;
    text-align: left;
}

.po-tours:not(.po-viator-product-view) .po-hub-card-grid {
    display: grid;
    gap: 18px;
}

.po-tours:not(.po-viator-product-view) .po-hub-destination-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.po-tours:not(.po-viator-product-view) .po-hub-interest-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.po-tours:not(.po-viator-product-view) .po-hub-duration-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.po-tours:not(.po-viator-product-view) .po-hub-card-grid article {
    min-width: 0;
    padding: 22px 23px;
    border: 1px solid #d9e1e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(31, 42, 75, .055);
    text-align: left;
}

.po-tours:not(.po-viator-product-view) .po-hub-card-grid h3 {
    margin: 0 0 9px;
    color: #1769aa;
    font-size: 19px;
    line-height: 1.28;
    font-weight: 750;
}

.po-tours:not(.po-viator-product-view) .po-hub-card-grid h3 a {
    color: #1769aa !important;
    text-decoration: none !important;
}

.po-tours:not(.po-viator-product-view) .po-hub-card-grid h3 a:hover,
.po-tours:not(.po-viator-product-view) .po-hub-card-grid h3 a:focus {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.po-tours:not(.po-viator-product-view) .po-hub-card-grid p {
    margin: 0;
    color: #344454;
    font-size: 15px;
    line-height: 1.62;
    text-align: left;
}

.po-tours:not(.po-viator-product-view) .po-tours-advice-heading > p:last-child:not(.po-tours-kicker) {
    max-width: 820px;
    margin: 0 auto;
    color: #66717e;
    font-size: 16px;
    line-height: 1.68;
    text-align: left;
}

.po-tours:not(.po-viator-product-view) .po-tours-advice-grid article,
.po-tours:not(.po-viator-product-view) .po-tours-advice-grid article h3,
.po-tours:not(.po-viator-product-view) .po-tours-advice-grid article p {
    text-align: left;
}

.po-tours:not(.po-viator-product-view) .po-tours-advice-grid article h3 {
    color: #1769aa;
    font-size: 19px;
}

/* Single unified FAQ card, matching the approved island-page FAQ pattern. */
.po-tours:not(.po-viator-product-view) .po-hub-faq {
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #d9e1e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(31, 42, 75, .05);
}

.po-tours:not(.po-viator-product-view) .po-hub-faq details {
    margin: 0;
    border: 0;
    border-bottom: 1px solid #d9e1e8;
    border-radius: 0;
    background: transparent;
}

.po-tours:not(.po-viator-product-view) .po-hub-faq details:last-child {
    border-bottom: 0;
}

.po-tours:not(.po-viator-product-view) .po-hub-faq summary {
    position: relative;
    padding: 18px 54px 18px 21px;
    color: #1769aa;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    list-style: none;
}

.po-tours:not(.po-viator-product-view) .po-hub-faq summary::-webkit-details-marker {
    display: none;
}

.po-tours:not(.po-viator-product-view) .po-hub-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 20px;
    line-height: 22px;
    font-weight: 500;
    text-align: center;
}

.po-tours:not(.po-viator-product-view) .po-hub-faq details[open] summary::after {
    content: "−";
}

.po-tours:not(.po-viator-product-view) .po-hub-faq details > p {
    margin: -3px 0 0;
    padding: 0 54px 19px 21px;
    color: #344454;
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
}

.po-tours:not(.po-viator-product-view) .po-tours-planning-card .po-tours-kicker,
.po-tours:not(.po-viator-product-view) .po-tours-planning-card .po-tours-kicker-light {
    color: #fff !important;
}

@media (max-width: 980px) {
    .po-tours:not(.po-viator-product-view) .po-hub-destination-grid,
    .po-tours:not(.po-viator-product-view) .po-hub-interest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .po-tours:not(.po-viator-product-view) .po-hub-editorial-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .po-tours:not(.po-viator-product-view) .po-hub-destination-grid,
    .po-tours:not(.po-viator-product-view) .po-hub-interest-grid,
    .po-tours:not(.po-viator-product-view) .po-hub-duration-grid {
        grid-template-columns: 1fr;
    }

    .po-tours:not(.po-viator-product-view) .po-hub-card-grid article {
        padding: 20px;
    }

    .po-tours:not(.po-viator-product-view) .po-hub-faq summary {
        padding: 17px 50px 17px 18px;
    }

    .po-tours:not(.po-viator-product-view) .po-hub-faq summary::after {
        right: 16px;
    }

    .po-tours:not(.po-viator-product-view) .po-hub-faq details > p {
        padding: 0 18px 18px;
    }
}


/* ============================================================
 * PORTUGAL_VIATOR_20261007_R134
 * HUB VERTICAL-RHYTHM NORMALIZATION
 *
 * Presentation only. The PHP continues to load this exact R131 filename.
 * Removes stacked section padding across the lower /tours/ page while
 * preserving the approved cards, FAQ, hero, search, results and CTA.
 * ============================================================ */

/* Results -> first editorial section:
   prevent pagination margin + results padding + editorial padding from stacking. */
.po-tours:not(.po-viator-product-view) .po-viator-results-section {
    padding-bottom: 24px !important;
}

.po-tours:not(.po-viator-product-view) .po-viator-pagination {
    margin-bottom: 0 !important;
}

.po-tours:not(.po-viator-product-view) .po-hub-destinations {
    padding-top: 28px !important;
    padding-bottom: 36px !important;
}

/* Main editorial rhythm. Alternating section backgrounds already separate
   the content visually, so large blank bands are unnecessary. */
.po-tours:not(.po-viator-product-view) .po-hub-interests,
.po-tours:not(.po-viator-product-view) .po-hub-duration {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
}

/* Keep headings connected to their card grids. */
.po-tours:not(.po-viator-product-view) .po-hub-section-heading {
    margin-bottom: 24px !important;
}

.po-tours:not(.po-viator-product-view) .po-hub-section-heading h2 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

/* Duration -> booking-advice section. */
.po-tours:not(.po-viator-product-view) .po-tours-advice {
    padding-top: 36px !important;
    padding-bottom: 22px !important;
}

.po-tours:not(.po-viator-product-view) .po-tours-advice-heading {
    margin-bottom: 24px !important;
}

/* Booking-advice cards -> FAQ:
   this is the large light-gray gap visible in the supplied screenshot. */
.po-tours:not(.po-viator-product-view) .po-hub-faq-section {
    padding-top: 22px !important;
    padding-bottom: 30px !important;
}

/* FAQ -> blue vacation-planning card. */
.po-tours:not(.po-viator-product-view) .po-tours-planning {
    padding-top: 22px !important;
    padding-bottom: 28px !important;
}

/* Keep disclosure attached to the CTA rather than floating far below it. */
.po-tours:not(.po-viator-product-view) .po-tours-disclosure-section {
    padding-top: 0 !important;
}

/* Slightly tighten internal card rhythm without making the page cramped. */
.po-tours:not(.po-viator-product-view) .po-hub-card-grid {
    gap: 16px !important;
}

@media (max-width: 700px) {
    .po-tours:not(.po-viator-product-view) .po-viator-results-section {
        padding-bottom: 18px !important;
    }

    .po-tours:not(.po-viator-product-view) .po-hub-destinations {
        padding-top: 22px !important;
        padding-bottom: 30px !important;
    }

    .po-tours:not(.po-viator-product-view) .po-hub-interests,
    .po-tours:not(.po-viator-product-view) .po-hub-duration {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .po-tours:not(.po-viator-product-view) .po-tours-advice {
        padding-top: 30px !important;
        padding-bottom: 18px !important;
    }

    .po-tours:not(.po-viator-product-view) .po-hub-faq-section {
        padding-top: 18px !important;
        padding-bottom: 24px !important;
    }

    .po-tours:not(.po-viator-product-view) .po-tours-planning {
        padding-top: 18px !important;
        padding-bottom: 24px !important;
    }

    .po-tours:not(.po-viator-product-view) .po-hub-section-heading,
    .po-tours:not(.po-viator-product-view) .po-tours-advice-heading {
        margin-bottom: 20px !important;
    }
}
