#results {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    z-index: 1000;
    width: 100%; /* Ancho máximo igual al input */
    background-color: #fff;
    border: 1px solid #ddd;
    top: calc(100% + 2px); /* Aparece justo debajo del input */
    left: 0; /* Alineamos con el borde izquierdo del input */
    box-sizing: border-box; /* Incluir el borde en el cálculo del ancho */
    max-height: 80vh; /* Limitar al 80% del viewport height */
    overflow-y: auto; /* Habilitar scroll vertical cuando sea necesario */
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    scrollbar-width: thin; /* Scrollbar delgada en Firefox */
    scrollbar-color: rgba(0,0,0,0.3) transparent; /* Color de scrollbar en Firefox */
}

/* Estilos del scrollbar para navegadores webkit */
#results::-webkit-scrollbar {
    width: 6px;
}

#results::-webkit-scrollbar-track {
    background: transparent;
}

#results::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.3);
    border-radius: 3px;
}

#results li {
    width: 100%; /* Ocupa el ancho completo */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    outline: none;
}

#results li img {
    width: 70px;
    height: auto;
    object-fit: cover;
    margin-right: 10px;
}

#results li:hover, #results li.focused {
    background-color: #f0f0f0;
}

#results .event-details {
    display: flex;
    align-items: center;
}

#results .event-title {
    font-weight: bold;
}

#results .event-date {
    font-size: 0.9em;
    color: #666;
}
