/* ============================================ */
/* PÁGINA DE IMÓVEIS - MICHELLE BISPO           */
/* ============================================ */

:root {
    --primary: #B8860B; --primary-dark: #8B6508; --secondary: #D4A843;
    --dark: #2c2416; --light: #faf8f5; --white: #ffffff;
    --gray: #8a8070; --gray-light: #f0ebe3;
    --whatsapp: #25D366; --whatsapp-dark: #128C7E;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08); --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --transition: all 0.3s ease; --radius: 10px; --radius-lg: 14px; --radius-full: 50px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--light); color: var(--dark);
    -webkit-font-smoothing: antialiased; padding-top: 48px;
}

/* ============================================ */
/* HEADER FIXO                                   */
/* ============================================ */
.header-fixo {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-light);
}
.header-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 16px; max-width: 1200px; margin: 0 auto;
}
.logo-img { height: 30px; width: auto; }
.menu-toggle { display: flex; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 1001; }
.hamburger-line { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.menu-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* ============================================ */
/* MENU SANDUÍCHE                                */
/* ============================================ */
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1002; opacity: 0; visibility: hidden; transition: var(--transition); }
.menu-overlay.active { opacity: 1; visibility: visible; }
.menu-sanduiche { position: fixed; top: 0; right: -100%; width: 85%; max-width: 360px; height: 100%; background: var(--white); z-index: 1003; transition: right 0.4s ease; display: flex; flex-direction: column; box-shadow: -4px 0 20px rgba(0,0,0,0.1); }
.menu-sanduiche.active { right: 0; }
.menu-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--gray-light); }
.menu-logo { height: 28px; }
.menu-close { background: none; border: none; font-size: 20px; color: var(--dark); cursor: pointer; }
.menu-links { list-style: none; padding: 16px; flex-grow: 1; }
.menu-links li { margin-bottom: 2px; }
.menu-links a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; color: var(--gray); text-decoration: none; font-size: 14px; font-weight: 500; border-radius: var(--radius); }
.menu-links a:hover, .menu-links a.menu-ativo { background: var(--light); color: var(--primary); }
.menu-links a i { width: 20px; text-align: center; }
.menu-admin-item { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-light); }
.menu-admin-item a { font-size: 11px !important; color: #ccc !important; }
.menu-social { padding: 16px; border-top: 1px solid var(--gray-light); }
.menu-whatsapp { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 12px; background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark)); color: var(--white); text-decoration: none; border-radius: var(--radius); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.menu-redes { display: flex; justify-content: center; gap: 14px; }
.menu-redes a { width: 34px; height: 34px; border-radius: 50%; background: var(--light); display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 15px; }

/* ============================================ */
/* BANNER CARROSSEL                              */
/* ============================================ */
.banner-carrossel { width: 100%; position: relative; }
.banner-carrossel .swiper { width: 100%; aspect-ratio: 16 / 9; max-height: 300px; }
.banner-carrossel .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-carrossel .swiper-pagination-bullet-active { background: var(--primary); }
.banner-carrossel .swiper-button-prev, .banner-carrossel .swiper-button-next { color: #fff; background: rgba(0,0,0,0.3); width: 30px; height: 30px; border-radius: 50%; }
.banner-carrossel .swiper-button-prev:after, .banner-carrossel .swiper-button-next:after { font-size: 12px; }

/* ============================================ */
/* FILTROS                                       */
/* ============================================ */
.filtros { display: flex; gap: 6px; padding: 8px 14px; overflow-x: auto; background: var(--white); position: sticky; top: 48px; z-index: 99; border-bottom: 1px solid var(--gray-light); box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.filtros::-webkit-scrollbar { display: none; }
.filtro-btn { padding: 6px 12px; border: 2px solid var(--gray-light); border-radius: var(--radius-full); background: var(--white); color: var(--gray); font-size: 11px; font-weight: 600; font-family: 'Montserrat', sans-serif; white-space: nowrap; cursor: pointer; flex-shrink: 0; }
.filtro-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ============================================ */
/* LOADING                                       */
/* ============================================ */
.loading { text-align: center; padding: 50px 20px; color: var(--gray); font-size: 14px; }
.loading i { display: block; font-size: 28px; margin-bottom: 10px; color: var(--primary); }

/* ============================================ */
/* GRID                                          */
/* ============================================ */
.imoveis-grid { padding: 12px; display: flex; flex-direction: column; gap: 16px; max-width: 600px; margin: 0 auto; }

/* ============================================ */
/* CARD                                          */
/* ============================================ */
.imovel-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; border: 1px solid var(--gray-light); transition: var(--transition); }

.card-badges { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; flex-direction: column; gap: 3px; }
.card-badge { padding: 4px 8px; border-radius: var(--radius-full); font-size: 9px; font-weight: 700; text-transform: uppercase; width: fit-content; }
.badge-lancamento { background: #FF6B35; color: #fff; }
.badge-pronto-para-morar { background: #1565C0; color: #fff; }
.badge-em-construcao { background: #F57F17; color: #fff; }
.badge-oferta { background: var(--gray); color: #fff; }
.badge-mcmv { background: #4CAF50; color: #fff; font-size: 8px; padding: 3px 7px; }

.badge-pre-lancamento-card {
    background: linear-gradient(135deg, #FF1744, #D50000) !important;
    color: #fff !important; font-size: 10px !important; font-weight: 700 !important;
    padding: 5px 10px !important; border: 2px solid #fff !important;
    text-transform: uppercase; letter-spacing: 1px;
    animation: pulse-pre-lanc 1.5s infinite;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.6);
}
@keyframes pulse-pre-lanc {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(255,23,68,0.6); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,23,68,0.9); }
}

.badge-extra { padding: 5px 10px; border-radius: var(--radius-full); font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.badge-itbi { background: #C8E6C9; color: #1B5E20; border: 1px solid #A5D6A7; }
.badge-varanda { background: #FFE0B2; color: #BF360C; border: 1px solid #FFCC80; }
.badge-suite { background: #BBDEFB; color: #0D47A1; border: 1px solid #90CAF9; }
.badge-jardim { background: #DCEDC8; color: #33691E; border: 1px solid #C5E1A5; }
.badge-fixo { background: #FFF9C4; color: #F57F17; border: 1px solid #FFF176; font-weight: 700; }

.card-slider { aspect-ratio: 4 / 5; background: var(--gray-light); overflow: hidden; }
.card-slider .swiper, .card-slider .swiper-wrapper, .card-slider .swiper-slide { height: 100%; }
.card-slider .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.card-slider .swiper-pagination-bullet { width: 5px; height: 5px; background: #fff; opacity: 0.6; }
.card-slider .swiper-pagination-bullet-active { background: var(--primary); opacity: 1; width: 16px; border-radius: 3px; }
.card-slider .swiper-button-prev, .card-slider .swiper-button-next { color: #fff; background: rgba(0,0,0,0.3); width: 26px; height: 26px; border-radius: 50%; }
.card-slider .swiper-button-prev:after, .card-slider .swiper-button-next:after { font-size: 11px; }

.card-info { padding: 12px; }
.card-localizacao { font-size: 10px; color: var(--gray); margin-bottom: 5px; display: flex; align-items: center; gap: 3px; }
.card-localizacao i { color: var(--primary); font-size: 11px; }
.card-titulo { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 5px; line-height: 1.3; }
.card-descricao { font-size: 11px; color: var(--gray); line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-preco-container { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-light); }
.card-preco-label { display: block; font-size: 9px; color: var(--gray); margin-bottom: 2px; text-transform: uppercase; }
.card-preco { font-size: 18px; font-weight: 700; color: var(--primary); }
.card-parcelamento { display: block; font-size: 10px; color: var(--gray); margin-top: 3px; }
.card-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-bottom: 10px; padding: 8px 5px; background: var(--light); border-radius: var(--radius); }
.feature { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.feature i { font-size: 14px; color: var(--primary); }
.feature span { font-size: 12px; font-weight: 700; color: var(--dark); }
.feature small { font-size: 8px; color: var(--gray); text-transform: uppercase; }
.card-extras { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 8px; }
.card-destaques { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 10px; }
.tag-destaque { padding: 3px 8px; background: var(--light); color: var(--primary); border-radius: var(--radius-full); font-size: 9px; font-weight: 600; border: 1px solid var(--gray-light); }

/* CARD ACTIONS */
.card-actions { display: flex; gap: 8px; align-items: stretch; }
.btn-whatsapp { flex: 1; padding: 10px; border: none; border-radius: var(--radius-full); font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark)); color: var(--white); box-shadow: var(--shadow-md); font-family: 'Montserrat', sans-serif; display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-whatsapp i { font-size: 16px; }
.btn-share { flex: 1; padding: 10px; border-radius: var(--radius-full); border: 2px solid var(--primary); background: var(--white); color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: var(--transition); font-family: 'Montserrat', sans-serif; }
.btn-share:hover { background: var(--primary); color: var(--white); }

/* MENSAGENS */
.sem-imoveis, .erro { text-align: center; padding: 50px 20px; color: var(--gray); font-size: 14px; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox-content { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 50px 16px; }
.lightbox-content img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.15); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.lightbox-prev { left: 12px; } .lightbox-next { right: 12px; }
.lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,0.5); padding: 5px 14px; border-radius: var(--radius-full); }

/* WHATSAPP FLUTUANTE */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 60px; height: 60px; background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 28px; text-decoration: none;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); }
@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 24px rgba(37,211,102,0.7); }
}

/* FOOTER */
.site-footer { background: var(--dark); color: var(--gray-light); padding: 24px 16px 16px; text-align: center; margin-top: 24px; }
.footer-content h2 { color: var(--white); font-size: 16px; margin-bottom: 4px; }
.footer-content h5 { color: var(--gray); font-weight: 400; font-size: 11px; max-width: 300px; margin: 0 auto 14px; }
.footer-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 14px; }
.social-link { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #d5c8b0; font-size: 14px; text-decoration: none; }
.footer-credits { font-size: 10px; color: var(--gray); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; }
.creci { color: var(--secondary); margin-top: 2px; }

/* ============================================ */
/* RESPONSIVIDADE                                */
/* ============================================ */
@media (max-width: 767px) {
    .card-slider { aspect-ratio: 1 / 1; }
    .banner-carrossel .swiper { max-height: 220px; }
    .whatsapp-float { width: 56px; height: 56px; font-size: 26px; bottom: 20px; right: 20px; }
}

@media (min-width: 768px) {
    .imoveis-grid { max-width: 720px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .card-slider { aspect-ratio: 4 / 5; }
}

@media (min-width: 1024px) {
    .imoveis-grid { max-width: 960px; grid-template-columns: repeat(3, 1fr); }
    .filtros { justify-content: center; }
}

@media (min-width: 1280px) {
    .imoveis-grid { max-width: 1200px; }
}




/* ============================================ */
/* AJUSTE EXTRA - CARDS MENORES NO MOBILE        */
/* ============================================ */
@media (max-width: 480px) {
    .imoveis-grid {
        max-width: 360px;
        gap: 10px;
        padding: 8px;
    }
    
    .card-slider {
        aspect-ratio: 1 / 1; /* Quadrado - reduz altura */
    }
    
    .card-info {
        padding: 8px;
    }
    
    .card-titulo {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .card-descricao {
        font-size: 9px;
        -webkit-line-clamp: 2;
        margin-bottom: 6px;
    }
    
    .card-preco {
        font-size: 14px;
    }
    
    .card-features {
        padding: 5px 3px;
        margin-bottom: 6px;
    }
    
    .feature i { font-size: 11px; }
    .feature span { font-size: 10px; }
    .feature small { font-size: 6px; }
    
    .card-extras, .card-destaques {
        margin-bottom: 5px;
    }
    
    .badge-extra { font-size: 8px; padding: 3px 6px; }
    .tag-destaque { font-size: 7px; padding: 2px 5px; }
    
    .btn-whatsapp, .btn-share {
        font-size: 10px;
        padding: 7px;
    }
    
    .btn-whatsapp i { font-size: 12px; }
}

/* ============================================ */
/* ANIMAÇÕES SUAVES - MOBILE                     */
/* ============================================ */

.imovel-card {
    animation: fadeInUpMobile 0.6s ease-out both;
}

@keyframes fadeInUpMobile {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.imoveis-grid .imovel-card:nth-child(1) { animation-delay: 0.05s; }
.imoveis-grid .imovel-card:nth-child(2) { animation-delay: 0.1s; }
.imoveis-grid .imovel-card:nth-child(3) { animation-delay: 0.15s; }
.imoveis-grid .imovel-card:nth-child(4) { animation-delay: 0.2s; }
.imoveis-grid .imovel-card:nth-child(5) { animation-delay: 0.25s; }
.imoveis-grid .imovel-card:nth-child(6) { animation-delay: 0.3s; }
.imoveis-grid .imovel-card:nth-child(7) { animation-delay: 0.35s; }
.imoveis-grid .imovel-card:nth-child(8) { animation-delay: 0.4s; }
.imoveis-grid .imovel-card:nth-child(9) { animation-delay: 0.45s; }
.imoveis-grid .imovel-card:nth-child(10) { animation-delay: 0.5s; }


/* ============================================ */
/* DROPDOWN ORDENAR                              */
/* ============================================ */
.ordenar-select {
    padding: 7px 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--gray);
    font-size: 11px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a8070'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.ordenar-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Badge Lotes/Terrenos */
.badge-lotes-terrenos {
    background: #795548;
    color: #fff;
}

/* ============================================ */
/* FAIXA DE SIMULAÇÃO - MOBILE                   */
/* ============================================ */
.faixa-simulacao-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f6c96d, #f3bd55);
    color: #5c4315;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 0 0 14px 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.faixa-simulacao-mobile:active {
    background: linear-gradient(135deg, #efbd50, #e8ac35);
    color: #4d370f;
}

/* ============================================ */
/* AJUSTE PARA CABER NA TELA - MOBILE            */
/* ============================================ */
@media (max-width: 480px) {
    .card-slider {
        aspect-ratio: 16 / 10; /* Imagem mais baixa */
    }
    
    .card-info {
        padding: 10px;
    }
    
    .card-titulo {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .card-localizacao {
        font-size: 9px;
        margin-bottom: 3px;
    }
    
    .card-descricao {
        font-size: 10px;
        -webkit-line-clamp: 2;
        margin-bottom: 6px;
    }
    
    .card-preco-container {
        margin-bottom: 6px;
        padding-bottom: 6px;
    }
    
    .card-preco {
        font-size: 16px;
    }
    
    .card-features {
        padding: 6px 4px;
        margin-bottom: 6px;
        gap: 2px;
    }
    
    .feature i { font-size: 12px; }
    .feature span { font-size: 10px; }
    .feature small { font-size: 7px; }
    
    .card-extras, .card-destaques {
        margin-bottom: 5px;
    }
    
    .badge-extra {
        font-size: 8px;
        padding: 3px 6px;
    }
    
    .tag-destaque {
        font-size: 8px;
        padding: 2px 6px;
    }
    
    .card-actions {
        gap: 6px;
    }
    
    .btn-whatsapp, .btn-share {
        font-size: 10px;
        padding: 8px;
    }
    
    .faixa-simulacao-mobile {
        min-height: 34px;
        padding: 8px 12px;
        font-size: 11px;
    }
}

.faixa-simulacao-mobile {
    position: relative;
    overflow: hidden;
}

.faixa-simulacao-mobile::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: brilhoFaixa 3s infinite;
}

@keyframes brilhoFaixa {
    0% { left: -100%; }
    50% { left: 150%; }
    100% { left: 150%; }
}