/* 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: 300px;
    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(36,48,64,0.2);
}

.card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(36,48,64,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, #243040, #1e2a38);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(36,48,64,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: #243040;
    box-shadow: 0 0 0 0.2rem rgba(36,48,64,.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, #243040, #1e2a38);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(36, 48, 64, 0.2);
}
.btn-info-imovel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 48, 64, 0.3);
    background: linear-gradient(45deg, #1e2a38, #18222d);
}
.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: 500px; /* 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);
}

/* Estilos do Botão de Compartilhamento */
.btn-outline-primary.share-main-btn {
    border: 2px solid #243040;
    color: #243040;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-primary.share-main-btn:hover {
    background-color: #243040;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(36, 48, 64, 0.2);
}

.btn-outline-primary.share-main-btn:active {
    transform: translateY(0);
}

.btn-outline-primary.share-main-btn i {
    font-size: 1.1em;
    animation: sharePulse 2s infinite;
}

@keyframes sharePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Estilos do Modal de Compartilhamento */
#shareModal .modal-content {
    border-radius: 20px;
    overflow: hidden;
}

#shareModal .modal-header {
    background: linear-gradient(45deg, #243040, #1e2a38);
    border: none;
    padding: 1.5rem;
}

#shareModal .modal-title {
    font-weight: 700;
    font-size: 1.3rem;
}

#shareModal .modal-body {
    padding: 2rem;
}

/* Botões de Compartilhamento */
.share-btn {
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.share-btn:active {
    transform: translateY(-1px);
}

/* Cores específicas para cada plataforma */
.share-btn[data-platform="whatsapp"] {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    border-color: #25D366;
}

.share-btn[data-platform="whatsapp"]:hover {
    background: linear-gradient(45deg, #128C7E, #0d6b5a);
    color: white;
}

.share-btn[data-platform="instagram"] {
    background: linear-gradient(45deg, #E4405F, #C13584);
    color: white;
    border-color: #E4405F;
}

.share-btn[data-platform="instagram"]:hover {
    background: linear-gradient(45deg, #C13584, #8a2a5a);
    color: white;
}

.share-btn[data-platform="facebook"] {
    background: linear-gradient(45deg, #1877F2, #0d5bb8);
    color: white;
    border-color: #1877F2;
}

.share-btn[data-platform="facebook"]:hover {
    background: linear-gradient(45deg, #0d5bb8, #0a4a96);
    color: white;
}

.share-btn[data-platform="twitter"] {
    background: linear-gradient(45deg, #1DA1F2, #0d8bd9);
    color: white;
    border-color: #1DA1F2;
}

.share-btn[data-platform="twitter"]:hover {
    background: linear-gradient(45deg, #0d8bd9, #0a6bb3);
    color: white;
}


.share-btn[data-platform="copy"] {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
    border-color: #6c757d;
}

.share-btn[data-platform="copy"]:hover {
    background: linear-gradient(45deg, #495057, #343a40);
    color: white;
}

/* Efeito de ripple nos botões */
.share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.share-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Campo de URL */
#shareUrl {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

#shareUrl:focus {
    background-color: white;
    border-color: #243040;
    box-shadow: 0 0 0 0.2rem rgba(36, 48, 64, 0.25);
}

/* Botão de copiar URL */
#copyUrlBtn {
    border-radius: 0 8px 8px 0;
    border-left: none;
    transition: all 0.3s ease;
}

#copyUrlBtn:hover {
    background-color: #243040;
    color: white;
    transform: scale(1.05);
}

#copyUrlBtn.btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* Campo de texto personalizado */
#shareText {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

#shareText:focus {
    border-color: #243040;
    box-shadow: 0 0 0 0.2rem rgba(36, 48, 64, 0.25);
    background-color: #f8f9fa;
}

/* Responsividade */
@media (max-width: 768px) {
    .share-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    #shareModal .modal-body {
        padding: 1.5rem;
    }
    
    .share-btn i {
        font-size: 1.2em;
    }
}

/* Animação de entrada do modal */
#shareModal .modal-content {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}