/* ================================================
   PÁGINA  DE FREGUESIA
   Escopado a .page-template-pagina-freguesias
   ================================================ */

/* BOTÃO VOLTAR */
.page-template-pagina-freguesias .button_voltar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    max-height: unset;
    line-height: unset;
}

.page-template-pagina-freguesias .button_voltar .left-icon {
    margin-top: 0;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-template-pagina-freguesias .button_voltar:hover .left-icon {
    opacity: 1;
    transform: translateX(-3px);
}

.page-template-pagina-freguesias .back_button {
    margin: 0;
    font-size: 14px;
    color: #888;
    transition: color 0.2s ease;
}

.page-template-pagina-freguesias .button_voltar:hover .back_button {
    color: #3b81c0;
}

/* TÍTULO DA FREGUESIA */
.page-template-pagina-freguesias h5.content-tts {
    font-size: 36px !important;
    color: #2a2a2a !important;
    font-family: 'Quicksand-Bold' !important;
    margin-bottom: 16px;
    line-height: 1.2 !important;
    border-left: 4px solid #3b81c0;
    padding-left: 16px;
}

/* AUDIO PLAYER */
.page-template-pagina-freguesias .player {
    width: auto;
    display: inline-flex;
    margin-bottom: 24px;
}

.page-template-pagina-freguesias .player__inner {
    background-color: #ffffff;
    border: 0.5px solid rgba(59, 129, 192, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(59, 129, 192, 0.1);
}

.page-template-pagina-freguesias .player__btns {
    border: none;
    background: transparent;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

.page-template-pagina-freguesias .player__btns:hover {
    background-color: rgba(59, 129, 192, 0.1);
    transform: scale(1.1);
}

.page-template-pagina-freguesias .audio-effect {
    align-self: center;
    margin-left: 8px;
}

/* ÁREA DE CONTEÚDO - TEXTO + MAPA */
.page-template-pagina-freguesias .page-text {
    overflow: hidden;
}

.page-template-pagina-freguesias .freguesias__map {
    float: right;
    width: 48%;
    height: 320px;
    margin: 0 0 20px 28px;
    border-radius: 16px;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(59, 129, 192, 0.12);
}

.page-template-pagina-freguesias .content-tts {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

/* CONTENT PAGE WRAPPER */
.page-template-pagina-freguesias .content_page {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 32px 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
    min-height: unset;
}

/* SECÇÃO GALERIA */
.page-template-pagina-freguesias .row.mt-3 {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.page-template-pagina-freguesias .row.mt-3 h2 {
    font-size: 22px !important;
    color: #2a2a2a !important;
    font-family: 'Quicksand-Bold' !important;
    margin: 0;
    position: relative;
    padding-bottom: 8px;
}

.page-template-pagina-freguesias .row.mt-3 h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background-color: #3b81c0;
    border-radius: 2px;
}

/* BOTÕES NAV CAROUSEL */
.page-template-pagina-freguesias #navContainer {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-template-pagina-freguesias #navContainer .button_one {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    border: 0.5px solid rgba(59, 129, 192, 0.3) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.page-template-pagina-freguesias #navContainer .button_one:hover {
    background-color: #3b81c0 !important;
    border-color: #3b81c0 !important;
}

.page-template-pagina-freguesias #navContainer .button_one:hover img {
    filter: brightness(0) invert(1);
}

.page-template-pagina-freguesias #navContainer .button_one img {
    width: 18px;
    height: 18px;
    transition: filter 0.2s ease;
}

/* GALERIA CAROUSEL */
.page-template-pagina-freguesias .layout_2 {
    border-radius: 20px;
    padding: 0 !important;
    overflow: hidden;
    margin-bottom: 32px;
}

.page-template-pagina-freguesias .box.box_freguesias {
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0 !important;
    position: relative;
    cursor: pointer;
}

.page-template-pagina-freguesias .box.box_freguesias img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.page-template-pagina-freguesias .box.box_freguesias:hover img {
    transform: scale(1.04);
}

/* MODAL */
.page-template-pagina-freguesias .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.page-template-pagina-freguesias .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-template-pagina-freguesias .modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* BOTÃO IMPRIMIR */
.page-template-pagina-freguesias .print-btn {
    margin-left: 0 !important;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 13px;
    font-family: 'Quicksand-Bold';
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.page-template-pagina-freguesias .print-btn img {
    width: 16px;
    height: 16px;
}

/* RESPONSIVO */
@media only screen and (max-width: 768px) {
    .page-template-pagina-freguesias .content_page {
        padding: 20px 16px;
    }

    .page-template-pagina-freguesias h5.content-tts {
        font-size: 26px !important;
    }

    .page-template-pagina-freguesias .freguesias__map {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
        height: 240px;
    }

    .page-template-pagina-freguesias .player {
        width: 100%;
    }

    .page-template-pagina-freguesias .player__inner {
        width: 100%;
        justify-content: space-between;
    }
}