/*
 * Autocomplétion de ville (js/showcase/city-autocomplete.js)
 * Le conteneur de l'input doit être en position relative.
 */

.city-autocomplete {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1000;
    min-width: 280px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid #e3eeee;
    border-radius: 16px;
    background: var(--pure-white);
    box-shadow: 0 18px 40px rgba(31, 35, 65, 0.16);
    text-align: left;
}

.city-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.city-autocomplete-item[aria-selected="true"] {
    background: #eef8f8;
}

.city-autocomplete-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(122, 224, 229, 0.35);
    color: var(--wizi-blue);
    font-size: 15px;
}

.city-autocomplete-item[aria-selected="true"] .city-autocomplete-icon {
    background: var(--wizi-blue);
    color: var(--pure-white);
}

.city-autocomplete-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.city-autocomplete-name {
    overflow: hidden;
    color: var(--deep-blue);
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city-autocomplete-name mark {
    background: none;
    color: var(--wizi-blue);
    font-weight: 700;
}

.city-autocomplete-details {
    overflow: hidden;
    color: var(--carbon-grey);
    font-size: 13px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city-autocomplete-empty {
    padding: 14px 12px;
    color: var(--carbon-grey);
    font-size: 14px;
}
