/* css/main.css - ESTILOS GERAIS DO SITE WEBER LESSA */

/* ========== VARIÁVEIS GLOBAIS ========== */
:root {
    --primary: #1a5276;
    --secondary: #2980b9;
    --accent: #3498db;
    --gold: #f39c12;
    --green: #27ae60;
    --text: #2c3e50;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
}

/* ========== RESET E ESTILOS GERAIS ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    min-height: 100vh;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(rgba(26, 82, 118, 0.8), rgba(41, 128, 185, 0.8)), 
                url('https://wlimoveis.github.io/imoveis-maceio/assets/praia02.webp');
    background-size: cover;
    background-position: center 40%;
    color: white;
    text-align: center;
    padding: 4rem 1rem;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    background: var(--gold);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

/* ========== SERVIÇOS SECTION ========== */
.services {
    background: white;
    padding: 3rem 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.section-title p {
    color: var(--dark);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ========== GRID DE SERVIÇOS - 3 CARDS POR LINHA ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--light);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--primary);
}

.service-card p {
    color: var(--dark);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Responsividade: 2 colunas em tablets */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Responsividade: 1 coluna em mobile */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-icon {
        font-size: 1.8rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
}

/* ========== IMÓVEIS SECTION ========== */
.properties {
    padding: 4rem 1rem;
    background: #f8f9fa;
}

.filters {
    background: white;
    padding: 1.5rem;
    margin: 0 auto 2rem;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ========== ESTILOS DOS BOTÕES DE FILTRO CORRIGIDOS ========== */
.filter-btn {
    background: white !important;
    border: 2px solid #d1d8dd !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 30px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
    position: relative !important;
}

/* ========== TOOLTIP NOS BOTÕES DE FILTRO ========== */
/* Tooltip que aparece ao passar o mouse */
.filter-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
    font-weight: normal;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Seta do tooltip */
.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.filter-btn:hover::before,
.filter-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Tooltip para botões ativos */
.filter-btn.active::before {
    background: #d4af37;
    color: #1a5276;
}

.filter-btn.active::after {
    border-color: #d4af37 transparent transparent transparent;
}

/* Responsividade: esconder tooltips em mobile */
@media (max-width: 768px) {
    .filter-btn::before,
    .filter-btn::after {
        display: none;
    }
}

/* ESTILO PARA BOTÃO ATIVO (CLICADO) */
.filter-btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(26, 82, 118, 0.3) !important;
    transform: scale(1.02) !important;
}

/* ESTILO PARA BOTÃO INATIVO COM HOVER */
.filter-btn:not(.active):hover {
    background: #e8f4f8 !important;
    border-color: var(--accent) !important;
    color: var(--primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2) !important;
}

/* ESTILO PARA BOTÃO ATIVO COM HOVER */
.filter-btn.active:hover {
    background: #0e3d5c !important;
    border-color: #0e3d5c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(26, 82, 118, 0.4) !important;
}

/* Indicador de dropdown (seta) */
.filter-btn.has-dropdown::after {
    content: "▼" !important;
    font-size: 0.6rem !important;
    margin-left: 8px !important;
    opacity: 0.7 !important;
    transition: transform 0.2s ease !important;
    display: inline-block !important;
}

.filter-btn.has-dropdown:hover::after {
    transform: rotate(180deg) !important;
    opacity: 1 !important;
}

/* Botão ativo com seta */
.filter-btn.active.has-dropdown::after {
    color: white !important;
    opacity: 1 !important;
}

/* ========== ESTILOS PARA DROPDOWN ========== */
.filter-dropdown {
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-dropdown::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Mobile para dropdown */
@media (max-width: 768px) {
    .filter-dropdown {
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 280px !important;
    }
    
    @keyframes dropdownFadeIn {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
}

/* ========== PROPERTY GRID ========== */
/* ALTERADO: auto-fit -> auto-fill, minmax(350px,1fr) -> minmax(320px,380px), adicionado justify-content:center */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 380px));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* ========== DESTAQUE DO CARD EM EDIÇÃO ========== */
@keyframes editPulse {
    0% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(243, 156, 18, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
}

.property-card.editing-highlight {
    animation: editPulse 1s ease;
    border-left: 4px solid #f39c12;
}

/* ========== ANIMAÇÃO PULSE PARA BADGE "NOVO" ========== */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

.property-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, var(--accent), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.rural-image {
    background: linear-gradient(45deg, var(--green), #2ecc71);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.rural-badge {
    background: var(--green);
}

.property-content {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.property-location {
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* ========== ESTILOS PARA FEATURES COM ALTO CONTRASTE ========== */
.feature-tag {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    background: #f0f4f8;
    border: 1px solid #e0e6ed;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem !important;
    color: var(--primary) !important;
    font-weight: 600;
}

.feature-tag i {
    font-size: 3.2rem !important;
    color: #000000 !important;
    font-weight: bold !important;
    transition: transform 0.2s ease;
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    background: #e8f0fe;
    border-color: var(--accent);
}

.feature-tag:hover i {
    transform: scale(1.1);
}

/* Ajuste para dispositivos móveis */
@media (max-width: 768px) {
    .feature-tag {
        padding: 0.5rem 1rem;
        gap: 10px;
        font-size: 1rem !important;
    }
    
    .feature-tag i {
        font-size: 1.8rem !important;
    }
}

/* Estilo para tags rurais */
.rural-tag {
    background: #e8f5e9;
    border-color: #c8e6c9;
    color: #2e7d32 !important;
}

.rural-tag:hover {
    background: #c8e6c9;
    border-color: #81c784;
}

/* Estilo para tags de destaque */
.feature-tag.highlight {
    background: #fff8e1;
    border-color: #ffe082;
    color: #f57c00 !important;
}

.feature-tag.highlight:hover {
    background: #ffecb3;
    border-color: #ffb74d;
}

/* Responsividade para features */
@media (max-width: 480px) {
    .feature-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem !important;
        gap: 8px;
    }
    
    .feature-tag i {
        font-size: 1.3rem !important;
    }
}

/* ========== BOTÃO WHATSAPP COM EFEITO PULSANTE ========== */
@keyframes whatsappPulse {
    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);
    }
}

.contact-btn {
    background: #128C7E;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: whatsappPulse 2s infinite;
}

.contact-btn:hover {
    background: #20B038;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
    animation: none;
}

.contact-btn:active {
    transform: scale(0.98);
}

/* ========== ANIMAÇÕES DO SISTEMA ========== */
@keyframes highlightUpdate {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

.property-card.highlighted {
    animation: highlightUpdate 1s ease;
}

[data-title-field], [data-price-field], [data-location-field], 
[data-description-field], [data-features-field] {
    transition: all 0.3s ease;
}

/* ========== SOBRE SECTION COM OVERLAY E CAPTION ========== */
.about {
    background: white;
    padding: 4rem 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Container da imagem com overlay */
.about-image {
    background: linear-gradient(45deg, var(--accent), var(--secondary));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* OVERLAY SOBRE A IMAGEM (ESTATÍSTICAS) */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.6), transparent);
    padding: 20px 15px 12px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    backdrop-filter: blur(5px);
}

.overlay-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.15);
    padding: 5px 12px;
    border-radius: 25px;
    backdrop-filter: blur(4px);
}

.overlay-content i {
    color: var(--gold);
    font-size: 0.8rem;
}

.overlay-content i:first-child {
    color: #FFD700;
}

.overlay-content i:last-child {
    color: var(--accent);
}

/* CAPTION ABAIXO DA FOTO */
.image-caption {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 12px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    border-radius: 0 0 15px 15px;
}

.image-caption i {
    color: var(--gold);
    font-size: 0.9rem;
    opacity: 0.8;
}

.image-caption p {
    margin: 0;
    font-size: 0.85rem;
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.image-caption strong {
    color: var(--gold);
    font-weight: 700;
}

/* Fallback */
.image-fallback {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    color: white;
}

.image-fallback i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.image-fallback p {
    font-size: 1rem;
    margin: 0.3rem 0;
}

.image-fallback .subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Responsividade */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .image-overlay {
        padding: 12px 10px 8px;
        gap: 8px;
    }
    
    .overlay-content {
        font-size: 0.65rem;
        padding: 3px 8px;
        gap: 4px;
    }
    
    .overlay-content i {
        font-size: 0.65rem;
    }
    
    .image-caption p {
        font-size: 0.7rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .about-text p {
        font-size: 0.95rem;
        text-align: center;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.footer-section p, .footer-section a {
    color: #bbb;
    margin-bottom: 0.8rem;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* ========== ESTILOS PARA PDFs ========== */
.pdf-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.pdf-file-item:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#pdfUploadArea * {
    pointer-events: none;
}

#pdfUploadArea {
    pointer-events: auto;
}

.delete-image-btn {
    pointer-events: auto;
}

.image-preview-container {
    pointer-events: auto;
}

/* ========== RESPONSIVIDADE GERAL ========== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100% !important;
        max-width: 250px !important;
        text-align: center !important;
    }
    
    .property-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ========== CORREÇÃO DEFINITIVA DOS FILTROS ========== */
.filter-btn[style*="color:"] {
    color: #2c3e50 !important;
}

.filter-btn.active[style*="color:"] {
    color: white !important;
}

.filter-btn {
    color: #2c3e50 !important;
}

.filter-btn.active {
    color: white !important;
}

.filter-btn.active {
    opacity: 1 !important;
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    .filter-btn.active {
        -webkit-text-fill-color: white !important;
        text-fill-color: white !important;
    }
}

/* ========== BOTÃO VOLTAR AO TOPO - LIQUID GLASS ========== */
#backToTopBtn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0.85;
}

#backToTopBtn i {
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#backToTopBtn:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    #backToTopBtn {
        bottom: 70px;
        right: 15px;
        width: 36px;
        height: 36px;
        border-radius: 18px;
    }
    
    #backToTopBtn i {
        font-size: 0.8rem;
    }
}

/* ========== ESTILOS DO DROPDOWN DE FILTROS (extraídos do FilterManager.js) ========== */

/* Container do dropdown */
.filter-dropdown {
    position: absolute;
    z-index: 10000;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    min-width: 220px;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    top: 100%;
    left: 0;
    margin-top: 5px;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cabeçalho do dropdown */
.filter-dropdown-header {
    padding: 10px 12px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.filter-dropdown-header i {
    margin-right: 6px;
}

.filter-dropdown-close {
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.filter-dropdown-close:hover {
    transform: scale(1.1);
}

/* Opção "Todos os bairros" */
.filter-dropdown-all {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #eee;
    font-weight: normal;
    background: white;
    color: #333;
}

.filter-dropdown-all.active {
    font-weight: bold;
    background: #e8f4fd;
    color: var(--primary);
}

.filter-dropdown-all:hover {
    background: #f0f7ff;
}

.filter-dropdown-all i {
    margin-right: 8px;
    color: var(--accent);
}

/* Opção de bairro individual */
.filter-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-weight: normal;
    background: white;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-dropdown-item.active {
    font-weight: bold;
    background: #e8f4fd;
    color: var(--primary);
}

.filter-dropdown-item:hover {
    background: #f0f7ff;
}

.filter-dropdown-item i {
    color: var(--accent);
    width: 16px;
}

/* Footer do dropdown */
.filter-dropdown-footer {
    padding: 8px 12px;
    background: #f8f9fa;
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    border-top: 1px solid #eee;
    border-radius: 0 0 6px 6px;
    position: sticky;
    bottom: 0;
}

.filter-dropdown-footer i {
    margin-right: 4px;
}

/* Scrollbar do dropdown */
.filter-dropdown::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.filter-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Mobile para dropdown */
@media (max-width: 768px) {
    .filter-dropdown {
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 280px !important;
    }
    
    @keyframes dropdownFadeInMobile {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
    
    .filter-dropdown {
        animation: dropdownFadeInMobile 0.2s ease;
    }
}
