/* Estilos para la página de listado */
.listing-page {
    padding: 40px 0;
    background-color: #f8f9fa;
}

/* Contenedor principal */
.content-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Título de sección */
.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Filtros */
.filter-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.filter-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.filter-section {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Tarjetas de coches */
.listing-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.listing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.photo {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* Aspect ratio 4:3 */
}

.photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 5px;
}

.brand a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist a {
    color: #ff4d4d;
}

.featured-text {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #ffd700;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.text {
    padding: 20px;
}

.text h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.text h3 a {
    color: #333;
    text-decoration: none;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: #ff4d4d;
    margin-bottom: 15px;
}

.listing-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.listing-details span {
    display: flex;
    align-items: center;
}

.listing-details i {
    margin-right: 5px;
}

/* Paginación */
.pagination {
    margin-top: 30px;
}

.page-link {
    color: #333;
    border: none;
    margin: 0 5px;
    border-radius: 5px;
}

.page-item.active .page-link {
    background-color: #ff4d4d;
    border-color: #ff4d4d;
}

/* Responsive */
@media (max-width: 991px) {
    .filter-section {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .listing-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .text h3 {
        font-size: 16px;
    }
    
    .price {
        font-size: 20px;
    }
}
