/* Estilos base do card */
.card-imovel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.card-imovel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Container da imagem */
.card-imovel__imagem-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.card-imovel__imagem {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-imovel:hover .card-imovel__imagem {
    transform: scale(1.05);
}

/* Overlay que aparece no hover */
.card-imovel__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-imovel:hover .card-imovel__overlay {
    opacity: 1;
}

/* Características no overlay */
.card-imovel__caracteristicas-overlay {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.card-imovel:hover .card-imovel__caracteristicas-overlay {
    transform: translateY(0);
}

.card-imovel__caracteristicas-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.card-imovel__caracteristica-overlay {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    color: white;
    font-weight: bold;
}

.card-imovel__caracteristica-overlay svg {
    color: #4CAF50;
    width: 24px;
    height: 24px;
}

/* Tags superiores */
.card-imovel__tags-superior {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.card-imovel__tag-tipo, 
.card-imovel__tag-codigo {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.card-imovel__tag-tipo {
    background: #4CAF50;
}

.card-imovel__tag-codigo {
    background: rgba(0, 0, 0, 0.7);
}

/* Ações (favorito e compartilhar) */
.card-imovel__acoes {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.card-imovel__favorito, 
.card-imovel__compartilhar-botao {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-imovel__favorito:hover, 
.card-imovel__compartilhar-botao:hover {
    background: white;
    transform: scale(1.1);
}

.card-imovel__favorito svg, 
.card-imovel__compartilhar-botao svg {
    stroke: #333;
}

/* Opções de compartilhar */
.card-imovel__compartilhar {
    position: relative;
}

.card-imovel__opcoes-compartilhar {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    min-width: auto;
    z-index: 3;
}

.card-imovel__compartilhar:hover .card-imovel__opcoes-compartilhar {
    display: flex;
}

.card-imovel__opcoes-compartilhar a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 5px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.card-imovel__opcoes-compartilhar a:hover {
    background: #f5f5f5;
}

/* Corpo do card */
.card-imovel__corpo {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-imovel__titulo {
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.card-imovel__titulo a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.card-imovel__titulo a:hover {
    color: #4CAF50;
}

.card-imovel__localizacao {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}

/* Rodapé */
.card-imovel__rodape {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.card-imovel__preco {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
}

.card-imovel__botao {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.card-imovel__botao:hover {
    background: #3e8e41;
}

/* Estilo para a mensagem de link copiado */
.toast-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast-message.show {
    opacity: 1;
}

.toast-message__icon {
    width: 20px;
    height: 20px;
}