/* Filtro archivio immobili — allineato al layout produzione */

.archive-immobili-filtro {
    max-width: var(--container, 1200px);
    margin: 0 auto;
    padding: 20px 16px 0;
    width: 100%;
}

.archive-immobili-filtro__inner {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 18px 20px;
}

.archive-immobili-filtro__form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.filtro-field {
    flex: 1 1 220px;
    min-width: 0;
}

.filtro-field input,
.filtro-field select {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid #e3e3e3;
    padding: 0 16px;
    font-size: 14px;
    line-height: 1;
    color: #222;
    background-color: #fff;
    box-shadow: none;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filtro-field input::placeholder {
    color: #8c8c8c;
}

.filtro-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 32px;
}

.filtro-field input:focus,
.filtro-field select:focus {
    border-color: #ffb300;
    box-shadow: 0 0 0 1px rgba(255, 179, 0, 0.25);
}

.filtro-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.filtro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
        box-shadow 0.15s ease, transform 0.05s ease;
}

.filtro-btn--primary {
    background-color: var(--accent);
    border: 1px solid #000;
    color: #000;
    font-family: "Segoe UI", sans-serif;
}

.filtro-btn--primary:hover {
    background-color: #ffbe2e;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.filtro-btn--primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.filtro-btn--secondary {
    background-color: #fff;
    border-color: #d3d3d3;
    color: #222;
}

.filtro-btn--secondary:hover {
    background-color: #f6f6f6;
    border-color: #bfbfbf;
}

@media (max-width: 900px) {
    .archive-immobili-filtro__form {
        flex-direction: column;
        align-items: stretch;
    }

    .filtro-actions {
        margin-left: 0;
        width: 100%;
        justify-content: stretch;
    }

    .filtro-btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .archive-immobili-filtro__inner {
        padding: 16px;
        border-radius: 18px;
    }

    .filtro-actions {
        flex-direction: column;
    }

    .filtro-btn {
        width: 100%;
    }
}
