/* === SECCION MIS_ANUNCIOS === */
/* Solo mantenemos estilos que no se pueden lograr con Bootstrap */
.anuncio-card {
    flex: 0 0 150px; /* Define el ancho base de la tarjeta en el contenedor flex */    
    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 img {
    height: 100px !important;
    /*width: 95%;*/
    object-fit: contain;
    margin: 0.2vw !important;
    border-radius: 5px !important;
}

.anuncio-card:hover img, .card:focus img, .card:active img { border: none !important; outline: none !important; }

/* Limitar título a 3 líneas con ellipsis */
.text-truncate-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    height: 4.2em; /* 3 líneas x 1.4em (line-height) */
    line-height: 1.4em;
    margin: 0;
}

/* Título */
.card-title {
    /* El resto de propiedades como font-size, margin, etc. se controlan en el PHP */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
}

/* --- 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; }
