/* ===========================================================================
   CARTÃO DE IMÓVEL (partials/card-imovel.php): A LISTAGEM (listagem.php) E OS
   DESTAQUES DA HOME. DEPOIS DO style.css.
   =========================================================================== */

/* ---- CARTÃO DA LISTAGEM (.property-item.item-grid DO SITE ANTIGO) --------------------------
   SEM SOMBRA NEM ANIMAÇÃO: AS CLASSES shadow, p-3 E wow fadeIn DE LÁ NÃO EXISTEM NO CSS DELE
   (E O wow.js NÃO É CARREGADO). TRÊS POR LINHA; DOIS DE 768 A 991 px; UM ATÉ 767 px. */

.cartao-imovel {
    float: left;
    width: 33.33%;
    margin-bottom: 30px;
    padding: 0 4px;
}

.cartao-imovel:nth-child(3n+1) {
    clear: both;
}

/* TABLET (768 A 991): DOIS POR LINHA. TRÊS (COMO NO SITE ANTIGO) DEIXAVAM O CARTÃO COM ~240px, O
   TÍTULO QUEBRANDO EM VÁRIAS LINHAS E CONDOMÍNIO E IPTU EM DUAS. */
@media (min-width: 768px) and (max-width: 991px) {
    .cartao-imovel { width: 50%; }
    .cartao-imovel:nth-child(3n+1) { clear: none; }
    .cartao-imovel:nth-child(2n+1) { clear: both; }
}

@media (max-width: 767px) {
    .cartao-imovel { width: 100%; }
}

.cartao-imovel__caixa {
    position: relative;
    width: 100%;
    background-color: #fff;
}

.cartao-imovel__foto {
    position: relative;
    z-index: 1;
    height: 272px;
    margin: 0;
    overflow: hidden;
}

.cartao-imovel__etiquetas {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    font-size: 0;
    line-height: normal;
}

.cartao-imovel__etiqueta {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 2px;
    background-color: #777;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 11px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: top;
}

/* A FOTO PREENCHE A CAIXA DE 272 px (CORTADA AO CENTRO), SEM VÃO ATÉ O CORPO DO CARTÃO. */
.cartao-imovel__link-foto {
    display: block;
    height: 100%;
    overflow: hidden;
    color: #fff;
}

.cartao-imovel__link-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* "FOTOS EM BREVE" (samiSiteFotoIndisponivel()): A CAIXA INTEIRA DA FOTO. */
.cartao-imovel__link-foto .foto-indisponivel {
    height: 100%;
}

.cartao-imovel__corpo {
    padding: 15px;
    overflow: hidden;
    text-align: left;
    border: 1px solid #dedede;
}

.cartao-imovel__titulo {
    min-height: 40px;
    max-width: 380px;
    margin: 0 0 7px;
    overflow: hidden;
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 23px;
    text-overflow: ellipsis;
    white-space: normal;
}

@media (max-width: 1199px) {
    .cartao-imovel__titulo { max-width: 260px; }
}

/* COM DOIS POR LINHA (OU UM), O TÍTULO USA A LARGURA DO CARTÃO. */
@media (max-width: 991px) {
    .cartao-imovel__titulo { max-width: 100%; }
}

@media (max-width: 767px) {
    .cartao-imovel__titulo { max-width: 100%; font-size: 14px; }
}

.cartao-imovel__titulo a {
    color: black;
}

.cartao-imovel__local {
    max-width: 265px;
    margin: 0;
    overflow: hidden;
    color: #9b9b9b;
    font-family: inherit;
    font-size: 13px;
    font-weight: 300;
    line-height: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .cartao-imovel__local { display: none; }
}

.cartao-imovel__valor {
    margin: 10px 0;
    color: inherit;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
}

.cartao-imovel__taxa {
    font-size: small;
}

.cartao-imovel__taxa + .cartao-imovel__taxa {
    margin-left: 10px;
}

.cartao-imovel__total {
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
}

.cartao-imovel__divisa {
    box-sizing: content-box;
    height: 0;
    margin: 10px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.cartao-imovel__numeros {
    margin: 0 0 0 -5px;
    padding-left: 0;
    list-style: none;
}

.cartao-imovel__numeros li {
    display: inline-block;
    padding: 0 5px;
    text-align: center;
}

.cartao-imovel__numeros small {
    font-size: small;
}
