.adsi-freguesias-container {
    padding: 50px 0;
}
.adsi-freguesias-back {
    margin: 20px 0 0;
    padding: 15px 20px;
    background: #f4f4f4;
}
.adsi-freguesias-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: inherit; /* confirmar contraste da cor de link do tema sobre #f4f4f4 */
    font-weight: bold;
}
.adsi-freguesias-back a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}
.adsi-freguesias-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.adsi-freguesias-row {
    padding: 15px;
    background: #f6f6f6;
    margin-bottom: 10px;
}
.adsi-freguesias-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
}
.adsi-freguesias-thumb {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 4px;
}
.adsi-freguesias-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9e9e9;
    color: #b5b5b5;
}
.adsi-freguesias-thumb-placeholder svg {
    width: 55%;
    height: 55%;
}
.adsi-freguesias-body {
    flex: 1 1 auto;
    min-width: 0;
}
.adsi-freguesias-body h2 {
    margin-top: 0;
}
.adsi-freguesias-body h2 a,
.adsi-freguesias-body h2 a:visited {
    color: inherit;
}
@media (max-width: 767px) {
    .adsi-freguesias-item {
        flex-direction: column;
    }
    .adsi-freguesias-thumb {
        width: 100%;
        height: auto;
        max-width: 180px;
    }
}
.adsi-freguesias-single {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.adsi-freguesias-single-left {
    flex: 1 1 40%;
    max-width: 40%;
    min-width: 0;
}
.adsi-freguesias-single-right {
    flex: 1 1 60%;
    max-width: 60%;
    min-width: 0;
}
.adsi-freguesias-brasao {
    margin: 0 0 20px;
    padding: 20px;
    background: #f1f1f1;
    border: 1px solid #f4f4f4;
}
.adsi-freguesias-single-brasao {
    display: block;
    width: 100%;
    height: auto;
    max-width: 300px;
    margin: 0 auto;
    object-fit: contain;
}
@media (max-width: 767px) {
    .adsi-freguesias-single {
        flex-direction: column;
        align-items: stretch;
    }
    .adsi-freguesias-single-left,
    .adsi-freguesias-single-right {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
.aif-como-chegar {
    margin-top: 15px;
}
.adsi-freguesias-single-right .aif-como-chegar .acf-map {
	width: 100%;
	height: 300px;
	border: #ccc solid 1px;
	margin: 20px 0 2px 0;
}
.aif-btn {
    padding: 5px;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;
    text-align: center;
    color: inherit
}

.adsi-top-bar-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

/* Texto só para leitores de ecrã (visualmente oculto). O tema/child theme
   ativo não define esta classe globalmente no frontend, por isso fica
   definida aqui, no CSS do plugin (já é carregado em todo o site). */
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


.acf-map img {
   max-width: inherit !important;
}
    .af-junta-de-freguesia-presidente-inner {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    .af-junta-de-freguesia-presidente-photo {
        flex: 0 0 auto;
    }
    .af-junta-de-freguesia-presidente-photo img,
    .af-junta-de-freguesia-presidente-photo-placeholder {
        display: flex;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
    }
    .af-junta-de-freguesia-presidente-photo-placeholder {
        align-items: center;
        justify-content: center;
        background: #e9e9e9;
        color: #b5b5b5;
    }
    .af-junta-de-freguesia-presidente-photo-placeholder svg {
        width: 55%;
        height: 55%;
    }
    .af-junta-de-freguesia-presidente-info {
        flex: 1 1 auto;
        min-width: 0;
    }
    .adsi-freguesias-info,
    .af-junta-de-freguesia-contactos,
    .af-junta-de-freguesia-presidente {
        margin-top: 20px;
        padding: 20px;
        background: #f1f1f1;
    }
    .adsi-freguesias-info p,
    .af-junta-de-freguesia-contactos p {
        margin: 0 0 10px;
    }
    .adsi-freguesias-info p:last-child,
    .af-junta-de-freguesia-contactos p:last-child {
        margin-bottom: 0;
    }

    #db_adsi_freguesias {
        margin: 0 !important;
    }
    
    
     .adsi-freguesias-container {
        padding: 50px 0;
    }
 

 

  


