/* Cards de Imóveis */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

/* Padronização das imagens dos cards */
.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.card .btn-primary,
.card .btn-outline-success {
    border-radius: 50px;
    padding: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.card .btn-primary {
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,123,255,0.3);
}

.card .btn-outline-success {
    border-width: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card .btn-outline-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.2);
}

.card .btn-outline-success::before {
    content: "\F618";
    font-family: "bootstrap-icons";
    font-size: 1.1em;
}

/* Card Lateral de Preços */
.card-preco {
    border-radius: 15px;
    border: none;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.card-preco .preco-item {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    background-color: rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.card-preco .preco-item:hover {
    background-color: rgba(0,0,0,0.04);
}

.card-preco .preco-destaque {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}

.card-preco .btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 1.5rem 0;
}

.card-preco .btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,211,102,0.2);
}

.card-preco .btn-whatsapp::before {
    content: "\F618";
    font-family: "bootstrap-icons";
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: -2px;
}

.card-preco .info-corretor {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.2rem;
    margin-top: 0.5rem;
}

.card-preco .info-corretor .creci {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.card-preco .info-corretor .telefone {
    color: #007bff;
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.modal-header {
    border-radius: 15px 15px 0 0;
}
.form-control {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}
.btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
}
.alert {
    border-radius: 8px;
}
#btnWhatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
#btnWhatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: scale(1.05);
    color: white;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}
.was-validated .form-check-input:invalid ~ .invalid-feedback,
.form-check-input.is-invalid ~ .invalid-feedback {
    display: block;
}
.btn-info-imovel {
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}
.btn-info-imovel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
    background: linear-gradient(45deg, #0a58ca, #084298);
}
.btn-info-imovel:active {
    transform: translateY(0);
}
.btn-info-imovel i {
    font-size: 1.1em;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    height: 100%;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    color: white;
    z-index: 1;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e9ecef;
}

.timeline-marker.concluido {
    background-color: #28a745;
}

.timeline-marker.em_andamento {
    background-color: #ffc107;
}

.timeline-marker.pendente {
    background-color: #dc3545;
}

.timeline-marker.planejado {
    background-color: #17a2b8;
}

.timeline-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    padding-right: 130px;
}

.timeline-content h5 {
    color: #2c3e50;
    margin: 0;
}

.timeline-content p {
    margin: 5px 0;
    color: #6c757d;
}

.timeline-content small {
    font-size: 0.85em;
}

.timeline-content img {
    position: absolute;
    top: 16px;
    right: 16px;
    max-height: 90px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    margin: 0;
    transition: transform 0.3s ease;
}

.timeline-content img:hover {
    transform: scale(1.02);
}

.timeline-content .img-fluid {
    display: inline-block;
    margin: 0;
}

/* Estilos do Carrossel de Imagens */
#imovelCarousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#imovelCarousel .carousel-item {
    height: 400px; /* Altura fixa para todas as imagens */
}

#imovelCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#imovelCarousel .carousel-item img:hover {
    transform: scale(1.02);
}

/* Estilos do Modal de Imagem */
.modal-imagem .modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

.modal-imagem .modal-content {
    background-color: transparent;
    border: none;
}

.modal-imagem .modal-body {
    padding: 0;
    position: relative;
}

.modal-imagem .modal-body img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-imagem .btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    background-color: white;
    opacity: 1;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.modal-imagem .btn-close:hover {
    background-color: #f8f9fa;
    transform: scale(1.1);
}