
.mls-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    & a {
        & h3 {
            font-family: "Inter Tight", sans-serif;
            font-weight: 600;
            font-size: 1.125rem;
        }
    }
}

/* Dropdown */
.mls-dropdown {
    position: absolute;
    z-index: 10;
    margin-top: 6px;
    width: 280px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
}
.mls-dropdown ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}
.mls-dropdown ul li {
    padding: 0 !important;
    margin: 0 !important;
}
.mls-dropdown ul li::before {
    display: none !important;
}
.mls-dropdown ul li label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #262966;
    transition: background 0.15s;
}
.mls-dropdown ul li label:hover {
    background: #F0F2FF;
}
.mls-dropdown ul li label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #C9D2FD;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
    background: #fff;
}
.mls-dropdown ul li label input[type="checkbox"]:checked {
    background: #726BEA;
    border-color: #726BEA;
}
.mls-dropdown ul li label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Custom scrollbar */
.mls-dropdown ul::-webkit-scrollbar {
    width: 6px;
}
.mls-dropdown ul::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}
.mls-dropdown ul::-webkit-scrollbar-thumb {
    background: #C9D2FD;
    border-radius: 3px;
}
.mls-dropdown ul::-webkit-scrollbar-thumb:hover {
    background: #A5B4FC;
}

/* Search input wrapper — border lives on wrapper so clear btn sits inside */
.mls-input-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #E5E7EB !important;
    border-radius: 0.25rem;
    background: #fff;
}
.mls-input-wrapper .mls-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding-right: 4px;
}
.mls-input-wrapper:focus-within {
    border-color: #726BEA;
    box-shadow: 0 0 0 1px #726BEA;
}
.mls-clear-btn {
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 8px;
    flex-shrink: 0;
    transition: color 0.15s;
}
.mls-clear-btn:hover {
    color: #262966;
}

/* Search button — match input wrapper height */
.mls-search-btn.sg-cta {
    height: auto;
    padding: 0 1.25rem;
    font-size: 0.875rem;
    align-self: stretch;
}

/* Pills */
.mls-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E9ECFF;
    color: #262966;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
}
.mls-pill button {
    background: none;
    border: none;
    color: #726BEA;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-weight: 600;
    transition: color 0.15s;
}
.mls-pill button:hover {
    color: #262966;
}
