/* Listes deroulantes personnalisees (2026-11) */
.vm-select { position: relative; width: 100%; min-width: 0; }
.vm-select-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0 !important; pointer-events: none !important; }
.vm-select-button {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; min-height: 48px; padding: 0 14px 0 16px;
    border: 1px solid #dbe3ef; border-radius: 12px; background: #fff;
    font: inherit; font-size: 15px; font-weight: 600; color: #334155; text-align: start; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.vm-select.has-value .vm-select-button { color: #071224; border-color: #cbd5e1; }
.vm-select-button:hover { border-color: #94a3b8; }
.vm-select-button:focus-visible, .vm-select.is-open .vm-select-button { outline: none; border-color: #be185d; box-shadow: 0 0 0 3px rgba(190, 24, 93, .14); }
.vm-select-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vm-select-chevron {
    flex: none; width: 20px; height: 20px; border-radius: 6px; background: #f1f5f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 16px; transition: transform .2s ease, background-color .15s;
}
.vm-select.is-open .vm-select-chevron { transform: rotate(180deg); background-color: #fce7f3; }

.vm-select-panel {
    position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; right: 0; min-width: 240px;
    padding: 6px; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0;
    box-shadow: 0 18px 40px rgba(7, 18, 36, .16), 0 2px 6px rgba(7, 18, 36, .06);
    animation: vm-select-in .14s ease-out;
}
.vm-select.opens-up .vm-select-panel { top: auto; bottom: calc(100% + 6px); }
@keyframes vm-select-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.vm-select-search {
    width: 100%; min-height: 40px; margin-bottom: 6px; padding: 0 12px 0 36px;
    border: 1px solid #e2e8f0; border-radius: 10px; font: inherit; font-size: 14px; background: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='5.5'/%3E%3Cpath d='M13.5 13.5L17 17'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 11px center; background-size: 16px;
}
.vm-select-search:focus { outline: none; border-color: #be185d; background-color: #fff; }
.vm-select-list { max-height: 300px; overflow-y: auto; margin: 0; padding: 0; list-style: none; overscroll-behavior: contain; scrollbar-width: thin; }
.vm-select-option {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px 10px 34px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #1e293b; cursor: pointer;
}
.vm-select-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-select-option em { flex: none; min-width: 26px; padding: 1px 8px; border-radius: 999px; background: #f1f5f9; font-style: normal; font-size: 12px; font-weight: 800; color: #475569; text-align: center; }
.vm-select-option.is-placeholder { color: #64748b; }
.vm-select-option.is-active { background: #f8fafc; }
.vm-select-option.is-selected { background: #fdf2f8; color: #9d174d; }
.vm-select-option.is-selected em { background: #be185d; color: #fff; }
.vm-select-option.is-selected::before {
    content: ""; position: absolute; left: 11px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23be185d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat;
}

/* Couleur verte pour les filtres Decouvrir / carte */
.dq-filters .vm-select-button:focus-visible, .dq-filters .vm-select.is-open .vm-select-button,
.dq-map-filters .vm-select-button:focus-visible, .dq-map-filters .vm-select.is-open .vm-select-button { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .15); }
.dq-filters .vm-select-option.is-selected, .dq-map-filters .vm-select-option.is-selected { background: #f0fdfa; color: #115e59; }
.dq-filters .vm-select-option.is-selected em, .dq-map-filters .vm-select-option.is-selected em { background: #0f766e; }
.dq-filters .vm-select.is-open .vm-select-chevron, .dq-map-filters .vm-select.is-open .vm-select-chevron { background-color: #ccfbf1; }

/* Droite a gauche (arabe, ourdou) */
[dir="rtl"] .vm-select-option { padding: 10px 34px 10px 12px; }
[dir="rtl"] .vm-select-option.is-selected::before { left: auto; right: 11px; }
[dir="rtl"] .vm-select-search { padding: 0 36px 0 12px; background-position: calc(100% - 11px) center; }

@media (max-width: 560px) {
    .vm-select-list { max-height: 50vh; }
    .vm-select-option { padding-top: 12px; padding-bottom: 12px; }
}

/* Isoler le composant des styles des formulaires parents */
.vm-select-button span, .vm-select-option span, .vm-select-option em { text-transform: none; letter-spacing: normal; }
.vm-select-value { font-size: 15px; color: inherit; }
.vm-select-option span { font-size: 14px; color: inherit; }

/* Le CSS du site limite la largeur des boutons : forcer la pleine largeur */
.vm-select > .vm-select-button { width: 100% !important; max-width: none !important; justify-content: space-between !important; }

/* Categories with sub-categories (data-level on the native options) */
.vm-select-option.is-group { font-weight: 800; color: #071224; }
.vm-select-option.is-group:not(:first-child) { margin-top: 4px; border-top: 1px solid #f1f5f9; }
.vm-select-option.is-child { padding-left: 50px; font-weight: 500; color: #475569; }
.vm-select-option.is-child.is-selected { color: #9d174d; }
