/* Filtro Imobiliário Personalizado - Estilos */

.filtro-imobiliario-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fip-titulo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.4;
}

.fip-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.fip-field {
    display: flex;
    flex-direction: column;
}

.fip-field label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.fip-field select,
.fip-field input[type="text"] {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

.fip-field select:focus,
.fip-field input[type="text"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.fip-field select:hover,
.fip-field input[type="text"]:hover {
    border-color: #bbb;
}

.fip-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.fip-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.fip-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fip-btn-buscar {
    background-color: #007cba;
    color: white;
}

.fip-btn-buscar:hover {
    background-color: #005a87;
}

.fip-btn-extra {
    background-color: #6c757d;
    color: white;
}

.fip-btn-extra:hover {
    background-color: #5a6268;
    color: white;
    text-decoration: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .filtro-imobiliario-container {
        margin: 10px;
        padding: 20px;
    }
    
    .fip-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .fip-titulo {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .fip-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .fip-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .filtro-imobiliario-container {
        padding: 15px;
    }
    
    .fip-titulo {
        font-size: 18px;
    }
    
    .fip-field select,
    .fip-field input[type="text"] {
        padding: 10px;
        font-size: 16px; /* Evita zoom no iOS */
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filtro-imobiliario-container {
    animation: fadeIn 0.5s ease-out;
}

/* Estados de loading */
.fip-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.fip-btn.loading::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);
    }
    40% {
        color: white;
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);
    }
    60% {
        text-shadow: .25em 0 0 white, .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
        text-shadow: .25em 0 0 white, .5em 0 0 white;
    }
}