/* =============================================================
   CARTÃO DE IMÓVEL (HOME, LISTAGEM E SEMELHANTES) — VALORES DO SITE ANTIGO
   (css/personalizados/card.css).
   ============================================================= */

.property-card-container {
    padding: 7px;
}

.property-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    animation: cartao-sobe .5s ease-out;
}

.property-card:hover {
    border-color: transparent;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
    transform: translateY(-6px);
}

@keyframes cartao-sobe {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FOTO (4:3) */
.property-card__media {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.property-card__link {
    display: block;
}

.property-card__image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.property-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.property-card:hover .property-card__image {
    transform: scale(1.08);
}

.property-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .02) 50%, rgba(0, 0, 0, .08) 100%);
    opacity: 0;
    transition: opacity .3s ease;
}

.property-card:hover .property-card__overlay {
    opacity: 1;
}

/* COPIAR LINK E WHATSAPP: APARECEM NO HOVER (NO CELULAR, SEMPRE) */
.property-card__actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.property-card:hover .property-card__actions,
.property-card__actions:focus-within {
    opacity: 1;
    transform: translateY(0);
}

.property-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, .95);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    color: #222;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    backdrop-filter: blur(10px);
}

.property-action:hover {
    background: #fff;
    color: var(--cor-site-1);
    transform: scale(1.1);
}

.property-action--whatsapp:hover {
    color: #25d366;
}

/* CONTEÚDO */
.property-card__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 14px;
    padding: 18px;
}

.property-card__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.property-type {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    background: rgba(255, 56, 92, .08);
    border-radius: 6px;
    color: var(--cor-site-1);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    line-height: 1.5;
    text-transform: uppercase;
}

.property-title {
    margin: 0;
    color: #222;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.2px;
    line-height: 1.3;
}

.property-title a {
    color: inherit;
    transition: color .2s ease;
}

.property-title a:hover {
    color: var(--cor-site-1);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #717171;
    font-size: 14px;
    line-height: 1.4;
}

.property-location svg {
    flex-shrink: 0;
    color: #b0b0b0;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #ebebeb;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #717171;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.property-feature svg {
    flex-shrink: 0;
    fill: #222;
}

/* PREÇO E CÓDIGO */
.property-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #ebebeb;
}

.property-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.property-price__label {
    color: #b0b0b0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    line-height: 1.5;
    text-transform: uppercase;
}

.property-price__value {
    color: var(--cor-site-1);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1;
}

.property-code {
    padding: 6px 10px;
    background: #f7f7f7;
    border-radius: 6px;
    color: #b0b0b0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .property-card-container {
        padding: 8px;
    }

    .property-card__content {
        padding: 14px;
    }

    .property-title {
        font-size: 16px;
    }

    .property-price__value {
        font-size: 20px;
    }

    .property-card__actions {
        opacity: 1;
        transform: translateY(0);
    }

    .property-action {
        width: 38px;
        height: 38px;
    }
}

/* ETIQUETAS "EXCLUSIVO" E "OFERTA" DA PÁGINA DE DETALHES (O CARTÃO DA VALE NÃO AS TEM) */
.card-imovel__etiqueta-exclusivo,
.card-imovel__etiqueta-oferta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    line-height: 1;
    text-transform: uppercase;
}

.card-imovel__etiqueta-exclusivo {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-imovel__etiqueta-oferta {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* SEM JS (HOME, sciCartaoImovel() COM $adiarFoto): O QUADRO VAZIO SAI E FICA A FOTO DO <noscript>. */
@media (scripting: none) {
    .property-card__image[data-foto-src] { display: none; }
}
