/* Icon container */
#mba-search-icon svg {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease-in-out;
}

#mba-search-icon:hover svg {
    transform: scale(1.1);
}

/* The Modal (background) */
.mba-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Semi-transparent background */
}

/* Modal Content */
.mba-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Close button */
.mba-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.mba-close:hover,
.mba-close:focus {
    color: black;
    text-decoration: none;
}

/* Search field */
#mba-search-field {
    width: 100%;
    padding: 12px;
    font-size: 1.2em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Resultados de búsqueda */
#mba-search-results ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

/* *** INICIO DE LA MODIFICACIÓN *** */
#mba-search-results li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex; /* Usar flexbox para alinear imagen y texto */
    align-items: center; /* Centrar verticalmente */
}

#mba-search-results li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: flex; /* Convertir el enlace en un contenedor flex */
    align-items: center;
    width: 100%; /* El enlace ocupa todo el espacio */
}

#mba-search-results li img {
    width: 60px; /* Ancho fijo para la miniatura */
    height: 60px; /* Alto fijo para la miniatura */
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
    border-radius: 5px;
    margin-right: 15px; /* Espacio entre la imagen y el título */
}
/* *** FIN DE LA MODIFICACIÓN *** */

#mba-search-results li:hover {
    background-color: #f2f2f2;
}

/* Pagination */
#mba-pagination {
    margin-top: 20px;
    text-align: center;
}

#mba-pagination a {
    color: #0073aa;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #ddd;
    margin: 0 2px;
    cursor: pointer;
}

#mba-pagination a.active {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

#mba-pagination a:hover:not(.active) {
    background-color: #ddd;
}