/* Tipografia */
h1, h2 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

/* Navegação */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #007bff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    position: relative;
}

.navbar-brand:hover {
    color: #007bff;
    transform: translateY(-1px);
}

/* Botões */
.btn-success,
.btn-primary {
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-weight: 600;
}

/* Botões de Filtro */
.filter-btn {
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
    border-width: 2px;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.15);
}

.filter-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-btn i {
    font-size: 1.1em;
    vertical-align: -2px;
}

/* Formulários de Busca */
#formBusca select:focus,
#formBusca input:focus,
#filtrosPrincipais select:focus,
#filtrosPrincipais input:focus {
    box-shadow: none;
    outline: none;
}

#formBusca .form-select,
#filtrosPrincipais .form-select {
    background-position: right 0.75rem center;
}

#formBusca .btn,
#filtrosPrincipais .btn {
    font-weight: 500;
}

#formBusca .btn:hover,
#filtrosPrincipais .btn:hover {
    transform: translateY(-1px);
    transition: all 0.2s;
}

/* Media Queries */
@media (min-width: 992px) {
    #formBusca .border-lg-end,
    #filtrosPrincipais .border-lg-end {
        border-right: 1px solid rgba(0, 0, 0, .1) !important;
    }

    #formBusca .border-lg-bottom-0,
    #filtrosPrincipais .border-lg-bottom-0 {
        border-bottom: 0 !important;
    }
}

@media (max-width: 991.98px) {
    #formBusca .rounded-pill,
    #filtrosPrincipais .rounded-pill {
        border-radius: 1rem !important;
    }

    .filter-btn {
        min-width: 100px;
        padding: 0.5rem 1rem;
    }
}

/* 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;
}

/* Botão Ver Mais */
.btn-ver-mais {
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border-width: 2px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ver-mais::after {
    content: "\F231";
    font-family: "bootstrap-icons";
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.btn-ver-mais:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.btn-ver-mais:hover::after {
    transform: translateX(3px);
}

/* Footer */
.footer {
    background: linear-gradient(45deg, #1a1a1a, #2c2c2c);
    color: #fff;
    padding: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(255,255,255,0.1), 
        transparent
    );
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(255,255,255,0.3));
}

.footer-social {
    margin: 1.5rem 0;
}

.footer-social a {
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-info {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #007bff;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-dev {
    background: rgba(0, 0, 0, 0.74);
    padding: 0.5rem;
    margin-top: 0 !important;
    text-align: center;
}

.footer-dev p {
    color: #fff !important;
    font-weight: 500;
}

.footer-dev img {
    width: auto;
    height: 30px;
    margin-left: 5px;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .footer-links a {
        margin: 5px 0;
    }
}

/* Header Banner */
.header-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.7)
    );
    z-index: -1;
}

.header-banner .container {
    position: relative;
    z-index: 2;
}

.header-banner h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Seção Sobre */
.sobre-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(to bottom right, #f8f9fa, #ffffff);
    overflow: hidden;
}

.sobre-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #007bff20, #00d2ff20);
    border-radius: 50%;
    top: -150px;
    left: -150px;
    z-index: 0;
}

.sobre-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #007bff15, #00d2ff15);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    z-index: 0;
}

.sobre-content {
    position: relative;
    z-index: 1;
}

.sobre-img {
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.sobre-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.sobre-text {
    padding: 2rem;
}

.sobre-text .lead {
    color: #2c2c2c;
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.sobre-text p {
    color: #6c757d;
    line-height: 1.7;
}

.sobre-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .sobre-text {
        padding: 2rem 0;
    }
    
    .sobre-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 10px;
    }
}

/* Seção Contato */
.contato-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.contato-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, #007bff10, #00d2ff10);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    z-index: 0;
}

.contato-content {
    position: relative;
    z-index: 1;
}

.contato-mapa {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
}

.contato-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contato-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contato-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contato-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #007bff, #00d2ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contato-icon i {
    font-size: 1.5rem;
    color: white;
}

.contato-card h5 {
    color: #2c2c2c;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contato-card p {
    color: #6c757d;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contato-social {
    margin-top: 1rem;
}

.contato-social a {
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
    color: #007bff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.contato-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .contato-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contato-card {
        padding: 1.5rem;
    }
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand:after {
    display: none;
}

.nav-link {
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 30px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
}

.btn-login {
    background: var(--bs-primary);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--bs-primary-dark, #0056b3);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }
    
    .nav-item {
        padding: 0.5rem 0;
    }
    
    .nav-link:after {
        display: none;
    }
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}

.whatsapp-float i {
    margin: 0;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

/* Características dos Imóveis */
.caracteristicas-imovel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

.caracteristica-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.caracteristica-item:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.caracteristica-item i {
    font-size: 1.1em;
    color: #007bff;
}

/* 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;
}

/* Status da linha do tempo */
.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;
}

/* Modal para imagem ampliada */
.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;
    text-align: center;
}

.modal-imagem .modal-body img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-imagem .btn-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background-color: white;
    opacity: 0.8;
    z-index: 1050;
}

.modal-imagem .btn-close:hover {
    opacity: 1;
}