/*
 * PORTUGAL_VIATOR_20261007_R133_destination_visual.css
 * Shared PortugalOnline destination-page FAQ + lower-spacing refinement.
 * Presentation only.
 */

/* ============================================================
 * Unified FAQ card — match approved Azores.com pattern
 * ============================================================ */
.portugal-viator-destination-page .po-destination-faq-list {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    background: #fff;
}

.portugal-viator-destination-page .po-destination-faq-list details {
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #dce3ec !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.portugal-viator-destination-page .po-destination-faq-list details:last-child {
    border-bottom: 0 !important;
}

.portugal-viator-destination-page .po-destination-faq-list summary {
    position: relative;
    padding: 16px 54px 16px 18px !important;
    color: #2f76cc !important;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    text-align: left !important;
}

.portugal-viator-destination-page .po-destination-faq-list summary::-webkit-details-marker {
    display: none;
}

.portugal-viator-destination-page .po-destination-faq-list summary::marker {
    content: "";
}

.portugal-viator-destination-page .po-destination-faq-list summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    color: #2f76cc;
    font-size: 22px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
}

.portugal-viator-destination-page .po-destination-faq-list details[open] summary::after {
    content: "−";
}

.portugal-viator-destination-page .po-destination-faq-list details p {
    margin: -2px 0 0 !important;
    padding: 0 54px 17px 18px !important;
    color: #5d6671;
    font-size: 15px;
    line-height: 1.6;
    text-align: left !important;
}

/* ============================================================
 * FAQ → blue planning CTA spacing
 * The FAQ is the final block inside the shared editorial section.
 * Remove stacked bottom/top padding at that boundary.
 * ============================================================ */
.portugal-viator-destination-page .po-destination-faq {
    padding-bottom: 0 !important;
}

.portugal-viator-destination-page .po-destination-editorial-section {
    padding-bottom: 0 !important;
}

.portugal-viator-destination-page .po-tours-planning {
    padding-top: 28px !important;
}

/* Keep a little breathing room below the FAQ card itself. */
.portugal-viator-destination-page .po-destination-faq-list {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .portugal-viator-destination-page .po-destination-faq {
        padding-bottom: 0 !important;
    }

    .portugal-viator-destination-page .po-destination-editorial-section {
        padding-bottom: 0 !important;
    }

    .portugal-viator-destination-page .po-tours-planning {
        padding-top: 22px !important;
    }

    .portugal-viator-destination-page .po-destination-faq-list summary {
        padding: 15px 48px 15px 16px !important;
    }

    .portugal-viator-destination-page .po-destination-faq-list summary::after {
        right: 14px;
    }

    .portugal-viator-destination-page .po-destination-faq-list details p {
        padding: 0 16px 16px !important;
    }
}


/* ============================================================
 * PORTUGAL_VIATOR_20261007_R136
 * RELATED / PLANNING CARD SPACING
 * Give the 2x2 destination resource-card grid the same breathing room
 * as the newer editorial card systems.
 * ============================================================ */
.portugal-viator-destination-page .po-destination-related-grid {
    gap: 20px !important;
}

@media screen and (max-width: 768px) {
    .portugal-viator-destination-page .po-destination-related-grid {
        gap: 16px !important;
    }
}


/* ============================================================
 * PORTUGAL_VIATOR_20261007_R138
 * CONSOLIDATED DESTINATION VERTICAL-RHYTHM SYSTEM
 *
 * Shared by Lisbon, Porto, Central Portugal, Alentejo, Algarve,
 * Madeira and Azores. This replaces page-by-page spacing fixes.
 * ============================================================ */

/* Consistent spacing between editorial headings and their cards. */
.portugal-viator-destination-page .po-tours-advice-heading,
.portugal-viator-destination-page .po-destination-section-heading {
    margin-bottom: 24px !important;
}

.portugal-viator-destination-page .po-tours-advice-heading h2,
.portugal-viator-destination-page .po-destination-section-heading h2 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

/* Keep the editorial card grids visually related without crowding them. */
.portugal-viator-destination-page .po-tours-advice-grid {
    gap: 20px !important;
}

.portugal-viator-destination-page .po-destination-related-grid {
    gap: 20px !important;
}

/* Normalize the repeated advice sections added to the SEO/LLM pages. */
.portugal-viator-destination-page .po-destination-advice {
    padding-top: 36px !important;
}

.portugal-viator-destination-page .po-destination-advice + .po-destination-advice {
    padding-top: 32px !important;
}

/* IMPORTANT:
   Create an actual white breathing gap between the final advice cards
   and the gray Travel Guides & Vacation Ideas panel. Previously the
   gray section background started on the exact same pixel as the cards. */
.portugal-viator-destination-page .po-destination-advice + .po-destination-related {
    margin-top: 28px !important;
}

/* Related resources panel: enough internal breathing room, but no huge band. */
.portugal-viator-destination-page .po-destination-related {
    padding-top: 38px !important;
    padding-bottom: 40px !important;
}

/* Resources -> FAQ transition. Keep sections distinct without a large void. */
.portugal-viator-destination-page .po-destination-related + .po-destination-faq {
    padding-top: 36px !important;
}

.portugal-viator-destination-page .po-destination-faq {
    padding-bottom: 0 !important;
}

/* The entire WordPress editorial wrapper should end with the FAQ,
   not add another large blank band before the shared planning CTA. */
.portugal-viator-destination-page .po-destination-editorial-section {
    padding-bottom: 0 !important;
}

.portugal-viator-destination-page .po-tours-planning {
    padding-top: 24px !important;
}

/* Keep the disclosure attached to the planning CTA. */
.portugal-viator-destination-page .po-tours-disclosure-section {
    padding-top: 0 !important;
}

@media screen and (max-width: 768px) {
    .portugal-viator-destination-page .po-tours-advice-heading,
    .portugal-viator-destination-page .po-destination-section-heading {
        margin-bottom: 20px !important;
    }

    .portugal-viator-destination-page .po-tours-advice-grid,
    .portugal-viator-destination-page .po-destination-related-grid {
        gap: 16px !important;
    }

    .portugal-viator-destination-page .po-destination-advice {
        padding-top: 30px !important;
    }

    .portugal-viator-destination-page .po-destination-advice + .po-destination-advice {
        padding-top: 26px !important;
    }

    .portugal-viator-destination-page .po-destination-advice + .po-destination-related {
        margin-top: 22px !important;
    }

    .portugal-viator-destination-page .po-destination-related {
        padding-top: 32px !important;
        padding-bottom: 34px !important;
    }

    .portugal-viator-destination-page .po-destination-related + .po-destination-faq {
        padding-top: 30px !important;
    }

    .portugal-viator-destination-page .po-tours-planning {
        padding-top: 20px !important;
    }
}
