/* === SECCION MIS_ANUNCIOS === */
/* Solo mantenemos estilos que no se pueden lograr con Bootstrap */

/* 
   Altura mínima para estabilizar el paginado en escritorio (2 filas aprox) 
   Solo aplica si la pantalla es mayor a 992px (Laptop/Desktop)
*/
@media (min-width: 992px) {
    .anuncios-grid-wrapper {
        min-height: 450px;
    }
}

.anuncio-card {
    width: 150px;
    flex: 0 0 150px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.anuncio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.anuncio-card .anuncio-img-wrapper {
    height: 100px;
    overflow: hidden;
    border-radius: 3px;
    margin: 0.3rem;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anuncio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Título */
.card-title {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.3em;
    height: 2.6em;
}

/* --- Estilos para filtros y acciones --- */

/* Contenedor para el input de búsqueda con botón de limpiar */
.input-wrapper {
    position: relative;
    display: inline-block;
}

/* Botón 'x' para limpiar el input de búsqueda */
.limpiar-input-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    color: #6c757d;
    display: none;
}

.limpiar-input-btn:hover {
    color: #212529;
}

/* Asegura que la tarjeta que contiene el dropdown activo se ponga por encima de las demás */
.card:has(.dropdown-menu.show) {
    z-index: 10;
}