/* ==========================================
   LUX EMPIRE — FILTERS MODAL + RESULTS
   ========================================== */

.hf-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.hf-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.hf-modal.is-open {
    display: block;
}

.hf-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.6);
}

.hf-modal-box {
    position: relative;
    max-width: 520px;
    margin: 6vh auto;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--lux-modal-bg);
    border: 1px solid var(--lux-modal-border);
    border-radius: 12px;
    padding: 28px;
}

.hf-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
}

.hf-field {
    margin-bottom: 20px;
}

.hf-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--gray);
}

.hf-field select,
.hf-field input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--lux-card-border);
    background: var(--glass);
    color: var(--white);
}

.hf-field select:disabled,
.hf-field input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* --- dual-handle price slider --- */
.hf-price-slider {
    position: relative;
    height: 32px;
}

.hf-price-slider input[type="range"] {
    position: absolute;
    width: 100%;
    top: 12px;
    height: 4px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.hf-price-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #D4AF37;
    cursor: pointer;
}

.hf-price-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #D4AF37;
    cursor: pointer;
    border: none;
}

.hf-price-track {
    position: absolute;
    top: 14px;
    height: 4px;
    border-radius: 2px;
    background: var(--lux-card-border);
    width: 100%;
}

.hf-price-track-fill {
    position: absolute;
    top: 14px;
    height: 4px;
    border-radius: 2px;
    background: #D4AF37;
}

.hf-price-readout {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: var(--gold);
}

.hf-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.hf-modal-actions .lux-btn {
    flex: 1;
}

/* --- results banner (broad match explanation) --- */
.hf-broad-banner {
    grid-column: 1 / -1;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 14px;
}

.hf-load-more-wrap {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.hf-results-loading,
.hf-results-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: var(--gray);
}

/* --- listing type toggle (Any / For Rent / For Sale) --- */
.hf-toggle-row {
    display: flex;
    gap: 8px;
}

.hf-toggle-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid var(--lux-card-border);
    background: var(--glass);
    color: var(--gray);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.hf-toggle-btn.is-active {
    background: linear-gradient(135deg, var(--gold), var(--gold-secondary));
    color: var(--black);
    border-color: transparent;
}

/* --- amenity checkboxes --- */
.hf-checkbox-row {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.hf-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.hf-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #D4AF37;
    cursor: pointer;
}

/* --- listing badge on results cards (rendered by house-filters.js) --- */
.lux-listing-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    z-index: 3;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.lux-listing-badge.is-sale {
    background: rgba(0, 200, 120, 0.85);
    color: #04140c;
}

.lux-listing-badge.is-rent {
    background: rgba(47, 111, 168, 0.85);
    color: #ffffff;
}

/* --- near a place --- */
.hf-near-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hf-near-btn {
    background: transparent;
    border: 1px solid var(--lux-card-border);
    color: var(--white);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}

.hf-near-btn:hover {
    background: rgba(212, 175, 55, 0.12);
}

/* --- active filters bar --- */
.hf-active-bar {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.08);
    color: var(--white);
    font-size: 14px;
}

.hf-active-clear {
    background: transparent;
    border: 1px solid var(--lux-card-border);
    color: var(--white);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}

.hf-active-clear:hover {
    background: rgba(212, 175, 55, 0.18);
}
