/* Listings Section */
.listings-section {
    background-color: #f8fafc;
    min-height: calc(100vh - var(--header-height));
}

/* Filters */
.listings-filters {
    transition: all 0.3s ease;
}

.listings-filters:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.filter-group {
    transition: all 0.3s ease;
}

.form-select,
.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background-color: #fff;
    color: #4a5568;
    transition: all 0.3s ease;
}

.form-select:hover,
.form-input:hover {
    border-color: #cbd5e0;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* Listing Cards */
.listing-card {
    transition: all 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.listing-card-image {
    position: relative;
    overflow: hidden;
}

.listing-card-image img {
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-card-image img {
    transform: scale(1.05);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-available {
    background-color: #c6f6d5;
    color: #2f855a;
}

.badge-pending {
    background-color: #fefcbf;
    color: #975a16;
}

.badge-sold {
    background-color: #fed7d7;
    color: #c53030;
}

.badge-price {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Favorite Button */
.btn-favorite {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #718096;
}

.btn-favorite:hover {
    color: #e53e3e;
    transform: scale(1.1);
}

.btn-favorite.favorited {
    color: #e53e3e;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background-color: #f7fafc;
    color: var(--primary-color);
}

.pagination-link.prev {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.pagination-link.next {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.pagination-current {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f7fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    font-weight: 500;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .filter-group {
        grid-column: span 1;
    }

    .badge {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }

    .badge-price {
        padding: 0.5rem 1rem;
    }
}

/* Loading State */
.listings-section.loading {
    position: relative;
}

.listings-section.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.listings-section.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

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