/* ==========================================================================
   Champ « zones géographiques d'activité »
   Saisie en badges + autocomplétion sur les régions de la base.
   Partagé par l'admin et l'espace agence — un seul fichier, pas de copie.
   ========================================================================== */

.zn {
    position: relative;
    width: 100%;
}

/* ── Boîte de saisie ──────────────────────────────────────────────────── */
.zn-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 9px 14px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    cursor: text;
    transition: border-color .18s ease;
}

.zn-box:hover {
    border-color: #d8d8d8;
}

.zn-box:focus-within {
    border-color: #3220FA;
}

/* ── Badges ───────────────────────────────────────────────────────────── */
.zn-tags {
    display: contents;
}

.zn-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 8px 7px 11px;
    background: #3220FA;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.zn-tag-rm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}

.zn-tag-rm:hover {
    background: rgba(0, 0, 0, .28);
}

/* ── Saisie libre ─────────────────────────────────────────────────────── */
.zn-typed {
    flex: 1 1 140px;
    min-width: 140px;
    padding: 6px 0;
    border: 0;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: #222;
}

.zn-typed::placeholder {
    color: #9a9a9a;
}

.zn-hint {
    margin-top: 6px;
    font-size: 11.5px;
    color: #8a8a8a;
}

/* ── Menu de suggestions ──────────────────────────────────────────────────
   Déplacé dans <body> pour échapper aux conteneurs en overflow:hidden.
   Il ne contient que des suggestions : les <input name="zones[]"> restent
   dans le formulaire, sans quoi ils ne seraient plus envoyés.               */
.zn-menu {
    position: fixed;
    z-index: 99999;
    padding: 8px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
    overflow-y: auto;
}

.zn-menu[hidden] {
    display: none;
}

.zn-group {
    padding: 9px 12px 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a08a4e;
}

.zn-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}

.zn-opt:hover,
.zn-opt.zn-active {
    background: rgba(50,32,250, .12);
}

.zn-opt mark {
    background: transparent;
    color: #1404C8;
    font-weight: 700;
}

.zn-opt-new {
    color: #1404C8;
    font-weight: 600;
}

.zn-empty {
    padding: 16px;
    font-size: 13px;
    color: #8a8a8a;
    text-align: center;
}

@media (max-width: 480px) {
    .zn-tag {
        font-size: 11px;
    }

    .zn-typed {
        flex-basis: 100%;
    }
}
