/* ===================================================================
   Home Auto Filter – Shortcode Styles
   =================================================================== */

.haf-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    background: #ffffff;
    border-radius: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- Field -------------------------------------------------------- */

.haf-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 220px;
    min-width: 200px;
}

.haf-field label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat';
}

/* ---- Select ------------------------------------------------------- */

.haf-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 12px 40px 12px 14px;
    font-size: 15px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background-color: #f9fafb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%23667085' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    color: #344054;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Montserrat';
    font-size: 14px;
}

.haf-select:hover {
    border-color: #98a2b3;
}

.haf-select:focus {
    outline: none;
    border-color: #1570ef;
    box-shadow: 0 0 0 3px rgba(21, 112, 239, 0.15);
}

.haf-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ---- Price slider ------------------------------------------------- */

.haf-price-field {
    flex: 1 1 280px;
}

.haf-price-slider-wrapper {
    padding-top: 4px;
}

.haf-price-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-family: 'Montserrat';
}

/* Track + fill */
.haf-range-track {
    position: relative;
    height: 6px;
    background: #e4e7ec;
    border-radius: 3px;
    margin: 18px 0 8px;
}

.haf-range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: #00000000;
    border-radius: 3px;
    pointer-events: none;
    z-index: 1;
}

/* Range inputs stacked inside the track */
.haf-range-input {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
    z-index: 2;
    height: 22px;
}

.haf-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FF6711;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: auto;
}

.haf-range-input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FF6711;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: auto;
}

/* ---- Submit button ------------------------------------------------ */

.haf-submit-field {
    flex: 1 1 280px;
}

.haf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #FF6711;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    font-family: "Montserrat", sans-serif;
}

.haf-button:hover {
    background: #1258b8;
}

.haf-button:active {
    background: #0e4a9e;
}

/* ---- Responsive --------------------------------------------------- */

@media (max-width: 768px) {
    .haf-wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .haf-field {
        flex: 1 1 100%;
        min-width: 0;
		width: 100%;
    }
}
