/* Realty AJAX Filter CSS */

/* Load More Button */
.load-more-wrapper {
    margin: 30px 0;
    text-align: center;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    clear: both;
}

.load-more-btn {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
    min-width: 180px;
    justify-content: center;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.load-more-btn.loading {
    background: #ccc;
    pointer-events: none;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.load-more-btn.loading i {
    animation: spin 1s linear infinite;
}

.load-more-wrapper.loading {
    opacity: 0.7;
}

/* Loading overlay */
.filter-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.filter-loading p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
.filter-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
    margin: 20px 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .load-more-btn {
        padding: 12px 25px;
        font-size: 14px;
        min-width: 160px;
    }
}