/* ============================================================
   Front Page Property Filter – Checkbox UI & Grid Utilities
   ============================================================ */

/* Filter Bar */
.pxp-filter-bar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.pxp-filter-bar-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 10px;
}

.pxp-filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pxp-filter-checkbox-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    user-select: none;
    margin: 0;
}

.pxp-filter-checkbox-label:hover {
    border-color: #333;
    color: #333;
}

.pxp-filter-checkbox-label input[type="checkbox"] {
    display: none;
}

.pxp-filter-checkbox-label.active {
    background: #333;
    border-color: #333;
    color: #fff;
}

.pxp-filter-count {
    display: inline-block;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 1px 8px;
    font-size: 0.75rem;
    margin-left: 6px;
    line-height: 1.4;
}

.pxp-filter-checkbox-label.active .pxp-filter-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Filter actions */
.pxp-filter-actions {
    display: flex;
    gap: 15px;
    margin-top: 12px;
}

.pxp-filter-actions a {
    font-size: 0.8rem;
    color: #6c757d;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.pxp-filter-actions a:hover {
    color: #333;
    text-decoration: underline;
}

/* Results info */
.pxp-filter-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#pxp-filter-count {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Grid Loading State */
#pxp-properties-grid {
    transition: opacity 0.3s ease;
    min-height: 200px;
}

#pxp-properties-grid.pxp-loading {
    opacity: 0.35;
    pointer-events: none;
}

/* Loader Spinner */
#pxp-filter-loader {
    display: none;
    text-align: center;
    padding: 30px 0;
}

.pxp-loader-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top-color: #333;
    border-radius: 50%;
    animation: pxp-spin 0.8s linear infinite;
}

@keyframes pxp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pagination */
#pxp-filter-pagination {
    margin-top: 30px;
    margin-bottom: 20px;
}

#pxp-filter-pagination .pagination .page-item.active .page-link {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

#pxp-filter-pagination .pagination .page-link {
    color: #333;
    border-radius: 8px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    padding: 8px 14px;
    transition: all 0.2s ease;
}

#pxp-filter-pagination .pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #333;
}

#pxp-filter-pagination .pagination .page-item.disabled .page-link {
    color: #adb5bd;
}

/* No results */
.pxp-no-results {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 767px) {
    .pxp-filter-checkboxes {
        gap: 6px;
    }

    .pxp-filter-checkbox-label {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .pxp-filter-bar {
        padding: 15px 18px;
    }

    .pxp-filter-actions {
        gap: 10px;
    }
}