/**
 * Property Listing Block Styling
 */

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Property Card */
.property-card {
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.property-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-details {
    padding: 20px;
}

.property-title {
    font-size: 18px;
    margin: 0 0 10px;
    font-weight: 600;
}

.property-meta {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
}

/* Block title */
.property-listing-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* Filters Section */
.property-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 5px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Search input styling */
.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Pagination */
.aaa-property-pagination {
    margin: 30px 0;
    text-align: center;
    clear: both;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-number,
.pagination-prev,
.pagination-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-number.current {
    background-color: #0073aa;
    border-color: #0073aa;
    color: white;
    font-weight: 600;
}

.pagination-number:hover:not(.current),
.pagination-prev:hover:not(.disabled),
.pagination-next:hover:not(.disabled) {
    background-color: #f5f5f5;
    border-color: #aaa;
}

.pagination-dots {
    display: inline-block;
    padding: 0 5px;
}

.pagination-prev.disabled,
.pagination-next.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

/* Loading state */
.property-grid.loading {
    position: relative;
    min-height: 200px;
    opacity: 0.6;
}

.loading-overlay {
    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: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    margin-bottom: 10px;
    animation: aaa-spin 1s linear infinite;
}

.loading-text {
    font-weight: bold;
}

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

/* No results */
.no-properties {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: #777;
}