/* Lands Page Specific Styles */
.lands-page {
    padding-top: 80px;
    min-height: 100vh;
    background-color: var(--light-gray);
}

/* Filter Section */
.filter-section {
    background-color: white;
    padding: 2rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.filter-group select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
}

.apply-filter {
    align-self: flex-end;
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-filter:hover {
    background-color: #2980b9;
}

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

.land-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.land-card:hover {
    transform: translateY(-5px);
}

.land-image {
    position: relative;
    height: 200px;
}

.land-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-tag.premium {
    background-color: #f1c40f;
}

.category-tag.agricultural {
    background-color: #27ae60;
}

.category-tag.commercial {
    background-color: #e74c3c;
}

.category-tag.residential {
    background-color: #3498db;
}

.land-details {
    padding: 1.5rem;
}

.land-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.location i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.specs i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.view-details {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-details:hover {
    background-color: #2980b9;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--secondary-color);
    background-color: white;
    color: var(--secondary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn.active,
.page-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .apply-filter {
        width: 100%;
        margin-top: 1rem;
    }

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