#property-search-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.search-sidebar {
    flex: 0 0 25%;
    max-width: 25%;
    background: #f9f9f9;
    padding: 20px;
    padding-top: 30px;
    padding-bottom: 12px;
    box-sizing: border-box;
    border-radius: 4px;
}

.filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.filter-group:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.filter-group h4.filter-header {
    font-family: 'Spartan-Bold', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #333;
    
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 5px; 
    user-select: none;
}

.disclosure-arrow {
    font-size: 10px;
    line-height: 1;
    transition: transform 0.2s ease-in-out;
}

.filter-header.active .disclosure-arrow {
    transform: rotate(180deg);
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
    margin-bottom: 5px;
}

.checkbox-item:hover {
    color: #000;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #000;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.search-results {
    flex: 1;
    min-width: 0;
}

.floorplans-grid {
    display: grid;
    /* Cap at 3 columns: floor each track at max(280px, 1/3 of the row) so auto-fill can't fit a 4th. */
    grid-template-columns: repeat(auto-fill, minmax(max(280px, (100% - 60px) / 3), 1fr));
    grid-gap: 30px;
}

/* Scoped to the search widget only — other widgets that reuse .floorplan-card-img keep their natural sizing. */
.search-results .floorplan-card-img {
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.search-results .floorplan-card-img img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

#no-results-msg {
    width: 100%;
    padding: 40px;
    text-align: center;
    color: #666;
    font-style: italic;
    background: #fff;
    border: 1px solid #eee;
}


.checkbox-item.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
    color: #999;
}

.checkbox-item.disabled input {
    cursor: not-allowed;
}


@media screen and (max-width: 900px) {
    .search-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .floorplans-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .checkbox-list {
        gap: 12px;
    }
}
