/* Listings Section */
.listings {
    padding: 4rem 5%;
    background: var(--light);
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-options {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.view-option {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.view-option.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.listings-container {
    width: 100%;
}

.listings-view {
    width: 100%;
    display: none;
}

.listings-view.active {
    display: block;
}

.map-view {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: none;
}

.map-view.active {
    display: block;
}

#map {
    width: 100%;
    height: 100%;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.listings-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.listing-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.listing-card:hover {
    transform: translateY(-5px);
}

.listing-card.list-view {
    display: flex;
    height: 200px;
}

.listing-card.list-view .listing-img {
    width: 300px;
    height: 100%;
    flex-shrink: 0;
}

.listing-card.list-view .listing-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.listing-card.list-view .listing-features {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.listing-img {
    height: 200px;
    background: var(--light);
    position: relative;
}

.listing-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.listing-content {
    padding: 1.5rem;
}

.listing-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.listing-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.listing-address {
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-value {
    font-weight: bold;
    color: var(--primary);
}

.feature-label {
    font-size: 0.8rem;
    color: #666;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listing-date {
    font-size: 0.8rem;
    color: #999;
}