/* autocomplete.js — estilos del dropdown (desktop) y de la lista (modal mobile) */

.ac-field {
    position: relative;
}

/* Dropdown flotante (desktop, debajo del input) */
.ac-results {
    list-style: none;
    margin: 6px 0 0;
    padding: 6px;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1080;
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(22, 33, 62, .14);
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.ac-results.is-open {
    display: block;
}

.ac-item {
    padding: 11px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    color: #374151;
    line-height: 1.3;
}

.ac-item:hover,
.ac-item.is-active {
    background: #eef4fc;
    color: #1f4e8f;
}

.ac-empty {
    padding: 12px;
    color: #9aa3b2;
    font-size: 14px;
    text-align: center;
}

/* Variante dentro del modal full-screen (mobile): lista estática a todo el ancho */
.ac-results--modal {
    position: static;
    margin-top: 12px;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
}

.ac-results--modal .ac-item {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f3f7;
    border-radius: 0;
    font-size: 16px;
}

.ac-results--modal .ac-item:last-child {
    border-bottom: none;
}
