.main-content {
    padding: 90px 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.search-container {
    flex-grow: 1;
    max-width: 500px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.filters-btn {
    padding: 8px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-icon {
    width: 16px;
    height: 16px;
}

.listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

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

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

.listing-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.always-open {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(71, 227, 10, 0.7);
    background-color: var(--color-primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.listing-info {
    padding: 15px;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.listing-header h3 {
    text-decoration: none;
    color: #333;

}

.listing-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-score {
    font-weight: bold;
}

.star {
    color: #ffc107;
}

.reviews {
    color: #666;
    font-size: 14px;
}

.listing-description {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
}


@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .filters-btn {
        align-self: flex-start;
    }
    
    .listings {
        grid-template-columns: 1fr;
    }
}

.listing-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Sections vides */
.empty-section {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
}

.empty-section p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.empty-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
}