:root {
    --primary-color: #3b82f6;
    --secondary-color: #1d4ed8;
    --background-color: #f8fafc;
    --text-color: #1f2937;
    --border-color: #e5e7eb;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header and Filters */
header {
    margin-bottom: 2rem;
}

h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: white;
    min-width: 200px;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.property-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card:hover {
    transform: translateY(-4px);
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-info {
    padding: 1rem;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.property-date {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: normal;
}

.property-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.property-address {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.property-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.property-specs span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-specs i {
    width: 1rem;
    text-align: center;
}

.property-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-top: 0.75rem;
}

.status-active {
    background-color: #10b981;  /* Green for active */
}

.status-other {
    background-color: #6366f1;  /* Purple for other statuses */
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background-color: white;
    border-radius: 0.375rem;
    cursor: pointer;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pageInfo {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }
} 