.listings-section {
    width: 100%;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.listings-header h2 {
    font-size: 1.5rem;
}

.sort-dropdown select {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    font-family: inherit;
    color: var(--text-muted);
}

/* Grid Layout */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));


    @media (max-width: 480px) {
        .listings-grid {
            grid-template-columns: 1fr;
            /* Full width on mobile */
            gap: 20px;
        }
    }

    gap: 24px;
}

/* Card Component */
.room-card {
    background: var(--surface-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 200px;
    width: 100%;
    position: relative;
}

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

.badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.verified {
    background-color: var(--white);
    color: var(--success);
}

.badge.superhost {
    background-color: var(--white);
    color: var(--warning);
}

.card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.room-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
}

.fa-star {
    color: var(--warning);
}

.room-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.room-amenities {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}