/*******************************************************
* Formatação dos cartões/cards
*******************************************************/
.row-equal .card { width: 100%; }
.row.row-equal { width: 100%; }
.row-equal > div[class*='col-'] { 
    display: flex; 
    flex: 1 0 auto; 
    align-items: stretch;
}

/*******************************************************
* Card
*******************************************************/
.card {
    max-width: 345px;
    height: 100%;
    margin: auto;

    -webkit-box-shadow: 0px 0px 39px 0px rgba(0, 0, 0, 0.16);
    -moz-box-shadow: 0px 0px 39px 0px rgba(0, 0, 0, 0.16);
    box-shadow: 0px 0px 39px 0px rgba(0, 0, 0, 0.16);

    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.card:hover { background-color: #fff; border: 1px solid; }

.card p { margin: 0 }

/*.card-body { padding: 30px 30px; width: 100%; }*/
.card-body.row { margin: 0 }
.card-imovel .card-body,
.card-empreendimento .card-body { padding-bottom: 10px }

.card .icon-part-text {
    vertical-align: text-top;
    text-align: left;
    margin-right: 3px;
    margin-left: 5px;
}

.card-imovel .icon-part-text { font-size: 13px; }

@media (max-width: 1550px) {
    .card-body { padding: 30px 30px }
    .text-container .card-icon { width: 25px; font-size: 22px; }
}
@media (max-width: 1369px) and (min-width: 1241px) {
    .card-body { padding: 20px 25px }
    .card .card-imovel .icon-part-text { margin-left: 5px; }
}
@media (max-width: 1240px) and (min-width: 992px) {
    .card-body { padding: 20px 17px }
    .text-container .card-icon { width: 20px; font-size: 18px; }
}
@media (max-height:900px) {
    .card-body { padding: 25px 20px }
}

@media (max-width:390px) {
    .card-imovel .card-body { padding: 20px 15px; }
}
.show-on-card-grid-item.card-ref { display: inline-block; }

/* card photo */
.card-photo {
    position: relative;
    height: 260px;
    width: 100%;
    /*background-size: cover;
    background-position: center;*/
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
}
.card-loja .card-photo {
    background-size: contain;
}

.card-membro-equipa .card-photo {
    background-size: cover !important;
    background-position: center !important;
}




@media (max-height: 900px) {
    .card-photo { height: 220px }
}
@media (max-height: 800px) {
    .card-photo { height: 180px }
}
@media (max-width:1550px) and (min-width:992px) {
    .card-photo { height: 220px; }
}

/* card title */
h3.card-title {
    text-align: left;
    font-size: 24px;
    margin-bottom: 5px;
}

@media (max-height: 900px) {
    h3.card-title { font-size: 22px }
}
@media (max-height: 800px) {
    .card-imovel h3.card-title { font-size: 18px !important }
}
@media (max-width:1550px) and (min-width:992px) {
    h3.card-title { font-size: 22px; }
}

/* card price */
.card-price { text-align: right; font-size: 20px; }

@media (max-height: 900px) {
    .card-price { font-size: 18px }
}
@media (max-height: 845px) {
    .card-price { font-size: 16px }
}
@media (max-width: 1550px) and (min-width: 992px) {
    .card-price { font-size: 18px; }
}


.pointer { cursor: pointer }

.card-container {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

/* Dentro do slider de desktop o tamanho do card é controlado pelo slider */
.slide-imoveis-desktop .card-container {
    width: auto;
}

.card-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#resultados .card-wrapper {
    margin-left: 10px;
    margin-right: 10px;
}

.card-ref-fav-container {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: left;
}


@media (max-height:900px) {
    .card-ref-fav-container { padding-top: 20px; padding-bottom: 30px; }
}
@media (max-height:845px) {
    .card-ref-fav-container { padding-bottom: 20px }
}


.card-location,
.card-ref {
    text-align: left;
    font-size: 18px;
}

.card-ref,
.card-fav {
    display: inline-block
}

.card-fav { font-size: 30px }

.card-ref { vertical-align: text-top }

.card-icon-wrapper {
    display: inherit;
    height: 50px;
}

.card .icon-part {
    display: inline-block;
    vertical-align: text-top;
}

.card-icon {
    height: auto;
    width: 27px;
    font-size: 25px;
}

.card-icon.cert-energetico-icon {
    height: 28px;
    width: 31px;
}

/* flags */
.card-top-flag,
.card-bottom-flag {
    min-width: 200px;
    display: inline-block;
    text-align: left;
    padding: 7px 40px;
    position: absolute;
    left: -30px;
    font-weight: 700;
    font-size: 18px;

    -webkit-box-shadow: 0px 6px 39px -6px rgba(0, 0, 0, 0.53);
    -moz-box-shadow: 0px 6px 39px -6px rgba(0, 0, 0, 0.53);
    box-shadow: 0px 6px 39px -6px rgba(0, 0, 0, 0.53);
}

.card-top-flag {
    top: 15px
}

.card-bottom-flag {
    bottom: 15px
}

/* colocar cartoes mais pequenos para se ver o titulo tudo no mesmo ecra */
@media (max-height: 900px) {
    .card-icon-container {
        padding-top: 10px
    }

    .card-location,
    .card-ref {
        font-size: 16px
    }

    .card-fav {
        font-size: 26px
    }

    /* flags */
    .card-top-flag,
    .card-bottom-flag {
        min-width: 150px;
        padding: 5px 30px;
        left: -20px;
        font-size: 16px;
    }
}

@media (max-height:845px) {
    .card-location,
    .card-ref { font-size: 14px !important }
    /*.card-fav { font-size: 18px !important }*/
    .card-icon-wrapper { height: 40px !important }

    /* flags */
    .card-top-flag,
    .card-bottom-flag {
        padding: 5px 20px !important;
        font-size: 14px !important;
    }
}

/* telemoveis */
@media (max-width:450px) {
    .card {
        -webkit-box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.23);
        -moz-box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.23);
        box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.23);
    }

    /* flags */
    .card-top-flag,
    .card-bottom-flag {
        min-width: 150px;
        left: -10px;
        font-weight: 500;
        font-size: 16px;        /* diminuir sombra à volta */
        -webkit-box-shadow: 0px 0px 16px -2px rgba(0, 0, 0, 0.63);
        -moz-box-shadow: 0px 0px 16px -2px rgba(0, 0, 0, 0.63);
        box-shadow: 0px 0px 16px -2px rgba(0, 0, 0, 0.63);
    }

}

@media (max-width:1550px) and (min-width:992px) {
    .text-container .card-ref-fav-container {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .text-container .card-icon-container {
        padding-top: 10px;
    }

    .text-container .card-location,
    .text-container .card-ref {
        font-size: 16px;
    }

    .text-container .card-fav {
        font-size: 26px;
    }

    /* flags */
    .text-container .card-top-flag,
    .text-container .card-bottom-flag {
        min-width: 150px;
        padding: 5px 30px;
        left: -20px;
        font-size: 16px;
    }

    .text-container .card-container {
        padding: 0 7px;
    }

}

@media (max-width:1200px) and (min-width:992px) {

    /* flags */
    .text-container .card-top-flag,
    .text-container .card-bottom-flag {
        min-width: 150px;
        padding: 5px 30px;
        left: -5px;
        font-size: 16px;
    }
}

.card-empreendimento .card-icon-wrapper {
    height: auto !important;
    display: flex !important;
    margin-bottom: 20px;
}

.card-fav { margin: 0 !important }

.info-col-1,
.info-col-2 { padding: 0; margin: 0; }

#card-acima-resultados-container .card { width: 100%; }

/*******************************************************
* Cards em Lista e Grelha
*******************************************************/
.show-on-card-list-item { display: none }
.show-on-card-grid-item { display: block }
.card-item-lista .show-on-card-list-item { display: block }
.card-item-lista .show-on-card-grid-item { display: none }

/*******************************************************
* Cards em Lista
*******************************************************/
.card-item-lista { max-width: none }

.card-item-lista .card-photo { padding: 0; }

.card-imovel.card-item-lista { height: auto !important; min-height: 200px; }
.card-loja.card-item-lista { height: auto !important; min-height: 200px; }
.card-empreendimento.card-item-lista { height: auto !important; min-height: 200px; }

.card-item-lista .info-container { position: inherit; top: 50%; /* transform: translateY(-50%); */ }

.card-item-lista .card-price,
.card-item-lista .card-location,
.card-item-lista .card-ref,
.card-item-lista .info-col-1,
.card-item-lista .info-col-2,
.card-item-lista .card-title,
.card-item-lista .card-ref-fav-container { text-align: center !important; }

.card-item-lista .card-body { padding: 20px 17px; }

.card-item-lista .info-col-1,
.card-item-lista .info-col-2 { padding: 0 15px }

.card-item-lista .card-ref-fav-container { padding: 20px }
.card-item-lista .card-fav { float: inherit !important }
.card-item-lista .card-icon-container { margin-bottom: 10px }
.card-item-lista .card-icon-wrapper { margin-bottom: 0; display: inline-block !important; }

@media (max-width:850px) and (min-width: 767px) {
    .card-empreendimento.card-item-lista .info-col-2 { padding: 0 5px; }
    .card-empreendimento.card-item-lista .info-col-1 { padding: 0; }
}
@media (max-width: 370px) {
    #resultados { padding: 0; }
    .text-container { margin-top: 40px; }
    .text-container .section-heading { margin-bottom: 30px; }
}
@media (max-width: 330px) {
    .card-empreendimento .card-container {
        margin-top: 0;
        margin-bottom: 0;
    }
    #resultados .card-wrapper {
        margin-left: 0;
        margin-right: 0;
    }
    
    .card-empreendimento .card-body {
        padding: 15px;
    }
}
/*******************************************************
* Card em Lista acima dos Resultados
*******************************************************/
.card-acima-resultados { margin-bottom: 100px; }
.card-acima-resultados .card-body { padding: 10px 15px; }
@media (max-height: 900px) {
    .card-acima-resultados { margin-bottom: 50px; }
    .card-acima-resultados .card-photo { min-height: 150px; }
    .card-acima-resultados .card-title { font-size: 16px }
    /*.card-acima-resultados p { font-size: 13px } */
}



/* dar tamanho max ao texto no titulo e na localizacao do card dos imoveis */
.card-title,
.card-location {
    -webkit-line-clamp: 2;
    overflow: hidden;
    
    /*display: -webkit-box;*/

    display: -moz-box;
    display: -webkit-box;

    -moz-box-orient: vertical;
    -webkit-box-orient: vertical;  
}

.card-title a:hover,
.card-title a:link,
.card-title a:focus,
.card-title a:active {
    text-decoration: unset;
}









/* resoluções das fotos */
.card-membro-equipa .card-photo { 
    max-width: 345px;
}

/* ========================================
   TEAM CARD - DESIGN PROFISSIONAL E ATRATIVO
   ======================================== */

/* Grid centralizado - 3 cards por linha */
#resultados .row-equal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}

#resultados .row-equal > .card-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

/* Responsivo - 2 cards por linha em tablets */
@media (max-width: 991px) {
    #resultados .row-equal > .card-container {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Responsivo - 1 card por linha em mobile */
@media (max-width: 767px) {
    #resultados .row-equal > .card-container {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

#resultados .row-equal > .card-container > .card-wrapper {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    min-height: 100%;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #e8edf2;
    flex: 1;
}

/* Garantir que team-card sempre fica vertical, mesmo com card-item-lista */
.team-card.card-item-lista,
.team-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Sobrescrever qualquer regra genérica de card-item-lista para team-cards */
.team-card.card-item-lista .team-card-link,
.team-card .team-card-link {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
}

.team-card.card-item-lista .team-content,
.team-card .team-content {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Garantir que foto e conteúdo sempre ficam empilhados verticalmente */
.team-card.card-item-lista .team-photo-wrapper,
.team-card .team-photo-wrapper {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    flex-shrink: 0 !important;
}

.team-card.card-item-lista .team-content,
.team-card .team-content {
    order: 2 !important;
    width: 100% !important;
}

.team-card.card-item-lista .team-footer,
.team-card .team-footer {
    order: 3 !important;
    width: 100% !important;
}

.team-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.team-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0;
    min-width: 0;
}

/* Foto com overlay - ALTURA FIXA */
.team-photo-wrapper {
    position: relative;
    width: 100% !important;
    height: 280px;
    overflow: hidden;
    background: #e8edf2;
    flex-shrink: 0;
}

/* Garantir que foto sempre fica no topo, mesmo com card-item-lista */
.team-card.card-item-lista .team-photo-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

.team-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.05);
}

/* Conteúdo */
.team-content {
    padding: 28px 20px 24px;
    background: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-width: 0;
    min-height: 0;
    justify-content: flex-start;
}

/* Nome */
.team-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 6px 0;
    text-align: center;
    line-height: 1.3;
}

/* Cor de destaque no nome quando aplicada */
.team-name.cor-destaque {
    color: inherit;
}

/* Cargo */
.team-role {
    font-size: 13px;
    color: #718096;
    text-align: center;
    margin: 0 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    position: relative;
    padding: 0 20px;
    min-height: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Espaço reservado quando não há cargo - mantém alinhamento */
.team-role-empty {
    visibility: hidden;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    display: block;
}

/* Barras coloridas removidas */
.team-role::before,
.team-role::after {
    display: none;
}

/* Idiomas */
.team-languages {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8edf2;
    min-height: 76px; /* Altura fixa: 58px conteúdo + 18px margin */
    height: 76px;
    align-items: center;
    box-sizing: border-box;
}

.team-languages img {
    width: 32px;
    height: 22px;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #e8edf2;
    transition: all 0.2s ease;
}

.team-languages img:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Contatos - ALINHADOS - Cada contacto numa linha própria */
.team-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    margin-top: 0;
    padding-top: 0;
    min-height: 0;
    flex-shrink: 0;
}

/* Garantir que o conteúdo sempre tenha o mesmo espaçamento */
.team-card .team-content {
    padding-bottom: 12px;
}

.team-contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
    padding: 0 20px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    margin-bottom: 0;
}

/* Específico para item de email - layout melhorado */
.team-contact-item:has(.email) {
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.team-contact-item:has(.email) i {
    margin-top: 0;
}

.team-contact-item i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5a6c7d;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-right: 0;
}

.team-contact-item span,
.team-contact-item a {
    text-align: left;
    flex: 1;
    color: #1a202c;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: calc(100% - 50px);
    width: auto;
    display: block;
    min-width: 0;
    line-height: 1.5;
    white-space: normal;
    overflow: visible;
    font-size: 14px;
    font-weight: 500;
}

/* Melhorar apresentação do email nos cards da equipa - tentar manter na mesma linha */
.team-contact-item a.email {
    display: inline-block;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: none;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    white-space: normal;
}

.team-contact-item a.email:not(.cor-destaque) {
    color: #1a1a1a !important;
}

.team-contact-item a.email:hover {
    text-decoration: underline;
}

/* Quando há email, o item ocupa toda a largura disponível */
.team-contact-item:has(.email) {
    width: 100%;
}

.team-contact-item:has(.email) a.email {
    flex-basis: calc(100% - 36px);
    max-width: calc(100% - 36px);
}

.team-contact-item a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Remover negrito do texto "(Chamada para a rede fixa nacional)" */
.team-contact-item small {
    font-weight: normal !important;
    font-size: 0.8em;
    color: #718096;
    display: block;
    margin-top: 4px;
    line-height: 1.4;
}


/* Ajustar emails - melhor alinhamento e quebra de linha */
.team-contact-item span.notranslate {
    word-break: break-word;
    line-height: 1.4;
}

/* Footer com Ver Imóveis e Redes Sociais */
.team-footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    align-items: stretch;
    min-height: 120px; /* Altura mínima para botão + redes sociais */
    flex-shrink: 0;
}

/* Botão Ver Imóveis */
.team-view-properties {
    padding: 8px 16px;
    text-align: center;
    border-top: 1px solid #e8edf2;
    width: 100%;
    flex-shrink: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quando não há redes sociais, melhorar alinhamento */
.team-footer:not(:has(.team-social)) .team-view-properties {
    border-top: 1px solid #e8edf2;
    padding: 16px;
    margin: 0;
}

.team-footer .team-view-properties:only-child {
    border-top: 1px solid #e8edf2;
    padding: 16px;
    margin: 0;
}

.team-view-properties-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,123,255,0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-view-properties-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.35);
    color: #fff !important;
    text-decoration: none !important;
}

/* Redes Sociais - Sempre visíveis na parte inferior */
.team-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: #fafbfc;
    border-top: 1px solid #e8edf2;
    min-height: 60px;
    flex-shrink: 0;
}

/* Espaço vazio quando não há redes sociais - manter altura consistente */
.team-social-empty {
    display: block;
    height: 60px;
    min-height: 60px;
    padding: 0;
    margin: 0;
    background: #fff;
    border: none;
    flex-shrink: 0;
    width: 100%;
}

/* Garantir que o footer tenha altura mínima consistente */
.team-footer {
    min-height: 60px;
    flex-shrink: 0;
}

/* Quando não há redes sociais, melhorar alinhamento */
.team-footer:not(:has(.team-social)) .team-view-properties {
    border-top: 1px solid #e8edf2;
    padding: 16px;
    margin: 0;
}

/* Fallback para navegadores que não suportam :has() */
.team-footer .team-view-properties:only-child {
    border-top: 1px solid #e8edf2;
    padding: 16px;
    margin: 0;
}

.team-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none !important;
}

.team-social a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.team-social a[href*="facebook"] {
    background: #1877f2;
}

.team-social a[href*="twitter"] {
    background: #1da1f2;
}

.team-social a[href*="instagram"] {
    background: #c13584;
}

.team-social a[href*="linkedin"] {
    background: #0077b5;
}

.team-social a[href*="youtube"] {
    background: #ff0000;
}

/* ========================================
   TEAM CARD DETAIL - PÁGINA INDIVIDUAL
   ======================================== */

.team-card-detail {
    margin-bottom: 30px;
}

.team-card-detail .row {
    height: 100%;
}

.team-photo-detail {
    width: 100%;
    height: 500px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e8edf2;
}

.team-content-detail {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-name-role-wrapper {
    margin-bottom: 20px;
    line-height: 1.6;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.team-content-detail .team-name {
    text-align: left;
    font-size: 28px;
    margin: 0;
    display: inline-block;
    font-weight: bold !important;
}

.team-content-detail .team-role {
    text-align: left;
    margin: 0;
    display: inline-block;
    font-weight: bold !important;
    font-size: 13px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.team-content-detail .team-languages {
    justify-content: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.team-description {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8edf2;
    text-align: justify;
    font-weight: bold;
}

.team-contacts-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.team-contacts-detail .team-contact-item {
    padding: 0;
    justify-content: flex-start;
}

.team-contacts-detail .team-contact-item a {
    color: #2d3748;
    text-decoration: none;
}

.team-contacts-detail .team-contact-item a:hover {
    text-decoration: underline;
}

.team-social-detail {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.team-social-detail a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none !important;
}

.team-social-detail a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.team-social-detail a[href*="facebook"] {
    background: #1877f2;
}

.team-social-detail a[href*="twitter"] {
    background: #1da1f2;
}

.team-social-detail a[href*="instagram"] {
    background: #c13584;
}

.team-social-detail a[href*="linkedin"] {
    background: #0077b5;
}

.team-social-detail a[href*="youtube"] {
    background: #ff0000;
}

.team-social-detail a[href*="google"] {
    background: #db4437;
}

/* Responsivo */
@media (max-width: 991px) {
    .team-photo-detail {
        height: 400px;
    }
    
    .team-content-detail {
        padding: 30px;
    }
    
    .team-name-role-wrapper {
        display: flex;
        align-items: baseline;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .team-content-detail .team-name {
        font-size: 24px;
        display: inline-block;
        font-weight: bold !important;
    }
    
    .team-content-detail .team-role {
        display: inline-block;
        font-weight: bold !important;
    }
}

@media (max-width: 767px) {
    .team-photo-wrapper {
        height: 240px;
    }
    
    .team-content {
        padding: 20px 16px 18px;
    }
    
    .team-name {
        font-size: 20px;
    }
    
    .team-role {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .team-languages {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .team-languages img {
        width: 28px;
        height: 19px;
    }
    
    .team-contacts {
        gap: 10px;
    }
    
    .team-contact-item {
        font-size: 13px;
        padding: 0 10px;
    }
    
    .team-contact-item i {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .team-social {
        padding: 14px;
        gap: 6px;
    }
    
    .team-social a {
        width: 40px;
        height: 40px;
        font-size: 18px;
        text-decoration: none !important;
    }
    
    /* Ajustes de email e telefone em mobile */
    .team-contact-item {
        flex-wrap: wrap;
        min-width: 0;
    }
    
    .team-contact-item span,
    .team-contact-item a {
        width: 100%;
        margin-top: 4px;
        word-break: break-word;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .team-contact-item small {
        font-size: 0.8em;
        margin-top: 2px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* Botão Ver Imóveis em mobile */
    .team-view-properties {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .team-view-properties-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    /* Detail page mobile */
    .team-photo-detail {
        height: 300px;
    }
    
    .team-content-detail {
        padding: 24px 20px;
    }
    
    .team-name-role-wrapper {
        text-align: center;
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .team-content-detail .team-name {
        font-size: 22px;
        text-align: center;
        display: inline-block;
        font-weight: bold !important;
    }
    
    .team-content-detail .team-role {
        text-align: center;
        display: inline-block;
        font-weight: bold !important;
    }
    
    .team-content-detail .team-languages {
        justify-content: center;
    }
    
    .team-contacts-detail .team-contact-item {
        font-size: 14px;
    }
}

/* ========================================
   CARD AGENTE - DESIGN ANTIGO (BACKUP)
   ======================================== */

.agent-card-simple {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f0f0;
}

.agent-card-simple:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    transform: translateY(-8px);
    border-color: #e0e0e0;
}

/* Foto com overlay gradient */
.agent-photo-simple {
    width: 100%;
    padding-top: 110%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #f8f9fa;
    position: relative;
}

.agent-photo-simple::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
}

/* Conteúdo */
.agent-content-simple {
    padding: 28px 24px 24px;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

/* Nome */
.agent-name-simple {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    text-align: center;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

/* Cargo */
.agent-role-simple {
    font-size: 13px;
    color: #007bff;
    text-align: center;
    margin: 0 0 18px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bandeiras - mais destaque */
.agent-flags-simple {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0 0 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.agent-flags-simple img {
    width: 30px;
    height: 20px;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    border: 1.5px solid #fff;
    transition: all 0.25s ease;
}

.agent-flags-simple img:hover {
    transform: translateY(-3px) scale(1.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Contatos - ícones destacados */
.agent-contacts-simple {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.contact-row-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.contact-row-simple:last-child {
    margin-bottom: 0;
}

.contact-row-simple i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    flex-shrink: 0;
}

/* Redes Sociais - coloridas */
.agent-social-simple {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.agent-social-simple a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.agent-social-simple a:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.agent-social-simple a[href*="facebook"] {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.agent-social-simple a[href*="twitter"] {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.agent-social-simple a[href*="instagram"] {
    background: linear-gradient(135deg, #e1306c 0%, #c13584 50%, #833ab4 100%);
}

.agent-social-simple a[href*="linkedin"] {
    background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
}

.agent-social-simple a[href*="youtube"] {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

/* Botão CTA - mais destaque */
.agent-cta-simple {
    text-align: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.agent-card-simple:hover .agent-cta-simple {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
    transform: scale(1.03);
}

/* Responsivo */
@media (max-width: 991px) {
    .agent-content-simple {
        padding: 24px 20px 20px;
    }
    
    .agent-name-simple {
        font-size: 19px;
    }
}

@media (max-width: 767px) {
    .agent-content-simple {
        padding: 20px 16px 16px;
    }
    
    .agent-name-simple {
        font-size: 18px;
    }
    
    .agent-role-simple {
        font-size: 12px;
    }
    
    .agent-flags-simple img {
        width: 28px;
        height: 19px;
    }
    
    .agent-social-simple a {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .contact-row-simple {
        font-size: 12px;
    }
    
    .contact-row-simple i {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* ========================================
   MELHORIAS DE LAYOUT - CARD MEMBRO EQUIPA (ANTIGO)
   ======================================== */

/* Card wrapper - espaçamento consistente */
.card-membro-equipa.card-wrapper,
.card-wrapper {
    margin-bottom: 25px;
    height: 100%;
}

/* Card container - sombra e bordas modernas */
.card-membro-equipa {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05) !important;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-membro-equipa:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
    transform: translateY(-5px);
    border-color: rgba(0,123,255,0.1) !important;
}

/* Foto - overlay gradient para melhor legibilidade */
.card-membro-equipa .card-photo {
    position: relative;
    transition: transform 0.5s ease;
}

.card-membro-equipa:hover .card-photo {
    transform: scale(1.05);
}

.card-membro-equipa .card-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 100%);
}

/* Espaçamentos otimizados */
.card-membro-equipa .card-body {
    padding: 20px 18px 18px 18px !important;
}

.card-membro-equipa .info-container {
    padding: 0 !important;
}

/* Título - nome do agente */
.card-membro-equipa .card-title {
    margin-bottom: 6px !important;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.card-membro-equipa .card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-membro-equipa .card-title a:hover {
    color: #007bff;
}

/* Cargo */
.card-membro-equipa p {
    margin: 5px 0 !important;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.card-membro-equipa br {
    display: none;
}

/* Bandeiras - layout melhorado */
.agent-languages-compact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 8px 10px;
    border-radius: 8px;
    margin: 12px 0 !important;
    border: 1px solid #e9ecef;
}

/* Redes sociais - ícones maiores e melhor espaçamento */
.card-membro-equipa .share-print-options {
    padding: 12px 0 !important;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.card-membro-equipa .share-print-options a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 3px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.card-membro-equipa .share-print-options a:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-membro-equipa .share-print-options i {
    font-size: 1.3rem !important;
    margin: 0 !important;
}

/* Contatos - melhor hierarquia visual */
.card-membro-equipa .info-col-2 {
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    padding: 15px !important;
    border-radius: 0 0 12px 12px;
}

.card-membro-equipa .info-col-2 p {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card-membro-equipa .info-col-2 p::before {
    font-family: 'FontAwesome';
    font-size: 14px;
    color: #007bff;
}

.card-membro-equipa .info-col-2 p:first-child::before {
    content: "\f095"; /* phone icon */
}

.card-membro-equipa .info-col-2 p a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-membro-equipa .info-col-2 p a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Link Ver Imóveis - mais destaque */
.card-membro-equipa .info-col-2 p:last-child {
    margin-top: 12px !important;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.card-membro-equipa .info-col-2 p:last-child a {
    font-weight: 600;
    color: #007bff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card-membro-equipa .info-col-2 p:last-child a:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    transform: translateX(3px);
}

.card-membro-equipa .info-col-2 p:last-child a::after {
    content: '\2192'; /* arrow right */
    font-size: 16px;
    transition: transform 0.3s ease;
}

.card-membro-equipa .info-col-2 p:last-child a:hover::after {
    transform: translateX(3px);
}

/* Melhorias de tipografia e cores */
.card-membro-equipa .notranslate {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.card-membro-equipa .email {
    font-weight: 500;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Melhor contraste para acessibilidade */
.card-membro-equipa .info-col-2 {
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}

/* Loading state suave */
.card-membro-equipa .card-photo {
    background-color: #f0f0f0;
}

.card-membro-equipa .card-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Estado ativo/focado */
.card-membro-equipa:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Espaçamento entre cards no grid */
.row-equal .card-wrapper {
    padding: 10px;
}

/* Responsivo */
@media (max-width: 991px) {
    .card-membro-equipa .card-body {
        padding: 18px 15px 15px 15px !important;
    }
    
    .row-equal .card-wrapper {
        padding: 8px;
    }
}

@media (max-width: 767px) {
    .card-membro-equipa .card-title {
        font-size: 18px;
    }
    
    .card-membro-equipa .share-print-options a {
        width: 34px;
        height: 34px;
    }
    
    .row-equal .card-wrapper {
        padding: 6px;
    }
    
    .card-membro-equipa:hover {
        transform: translateY(-3px);
    }
}

/* Impressão - simplificar layout */
@media print {
    .card-membro-equipa {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .card-membro-equipa:hover {
        transform: none !important;
    }
    
    .card-membro-equipa .share-print-options {
        display: none !important;
    }
}
.card-membro-equipa.card-item-lista .card-photo { max-width: 220px !important; }
.card-loja.card-item-lista .card-photo { max-width: 280px !important; }
.card-empreendimento.card-item-lista .card-photo,
.card-imovel.card-item-lista .card-photo { max-width: 310px !important; }

.card-loja .card-photo { max-width: 345px; }
/*.card-loja.card-item-lista .card-photo { max-width: 220px !important; }*/
.card-loja.card-item-lista .card-photo { min-width: 220px !important; }


/* centrar cards */
#resultados .card-container {
    margin-left: auto;
    margin-right: auto;
}









.card-body {
    height: 100% !important;
    display: block !important;
}
.card-item-lista .card-body {
    display: flex !important;
}
.card-imovel .show-on-card-grid-item {
    text-align: right !important;
}
.card-item-lista .card-body {
    height: initial !important;
}

/* icones dos certificados energéticos carregam de um sprite */
.cert-energetico-icon {
  background-image: url('../imgs/icons/cert-energetico-sprites.png');
  background-repeat: no-repeat;
  width: 31px;
  height: 28px;
}
.cert-energetico-icon-APLUS { background-position: 0 0; }
.cert-energetico-icon-A { background-position: -31px 0; }
.cert-energetico-icon-B { background-position: -62px 0; }
.cert-energetico-icon-BMINUS { background-position: -94px 0; }
.cert-energetico-icon-C { background-position: -125px 0; }
.cert-energetico-icon-D { background-position: -156px 0; }
.cert-energetico-icon-E { background-position: -188px 0; }
.cert-energetico-icon-F { background-position: -219px 0; }
.cert-energetico-icon-G { background-position: -250px 0; }

.card-body {
    padding: 30px 30px;
    /* width: 100%; */
    align-items: center;
}

.card-item-lista .card-photo {
    padding: 0;
}

.card-imovel.card-item-lista {
    height: auto !important;
    min-height: 200px;
}

.card-loja.card-item-lista {
    height: auto !important;
    min-height: 200px;
}

.card-empreendimento.card-item-lista {
    height: auto !important;
    min-height: 200px;
}

.card-item-lista .info-container {
    position: inherit;
    top: 50%;
    /* transform: translateY(-50%); */
}

/* ========================================
   REGRA FINAL - GARANTIR TEAM-CARDS SEMPRE VERTICAIS
   ======================================== */
/* Máxima especificidade para garantir que team-cards sempre fiquem verticais */
#resultados .row-equal .card-container .card-wrapper .team-card,
#resultados .card-container .card-wrapper .team-card,
.card-container .card-wrapper .team-card,
.team-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
}

#resultados .row-equal .card-container .card-wrapper .team-card .team-card-link,
#resultados .card-container .card-wrapper .team-card .team-card-link,
.card-container .card-wrapper .team-card .team-card-link,
.team-card .team-card-link {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
}

#resultados .row-equal .card-container .card-wrapper .team-card .team-photo-wrapper,
#resultados .card-container .card-wrapper .team-card .team-photo-wrapper,
.card-container .card-wrapper .team-card .team-photo-wrapper,
.team-card .team-photo-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    flex-shrink: 0 !important;
}

#resultados .row-equal .card-container .card-wrapper .team-card .team-content,
#resultados .card-container .card-wrapper .team-card .team-content,
.card-container .card-wrapper .team-card .team-content,
.team-card .team-content {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}