/* css/autocomplete.css — style jvnvjo */

/* ── Wrapper position ── */
.input-ac-wrapper {
    position: relative;
}

/* ── Conteneur dropdown ── */
.suggestions-container {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 320px;
    background: white;
    border: 1px solid #e8edf2;
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.13);
    z-index: 9999;
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px 0;
    animation: acFadeIn 0.15s ease;
}

.suggestions-container.hidden {
    display: none;
}

@keyframes acFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Scrollbar fine ── */
.suggestions-container::-webkit-scrollbar { width: 4px; }
.suggestions-container::-webkit-scrollbar-track { background: transparent; }
.suggestions-container::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }
.suggestions-container::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* ── Ligne résultat : Nom en gras + Pays en gris ── */
.ac-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.1s;
}

.ac-row:hover,
.ac-row.ac-active {
    background: #f8fafc;
}

.ac-row-name {
    font-size: 15px;
    font-weight: 700;
    color: #1A2B3C;
    white-space: nowrap;
}

.ac-row-country {
    font-size: 14px;
    font-weight: 400;
    color: #94a3b8;
    white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .suggestions-container {
        min-width: 260px;
        max-height: 260px;
    }
    .ac-row {
        padding: 10px 16px;
    }
    .ac-row-name {
        font-size: 14px;
    }
}