/* ============================================================
   [voyages_filtrable] — Sidebar filtrable + grille vitrine
   Fichier : /inc/CSS/voyages-filtrable.css
   Style autonome, palette Expertours (navy / teal / ivoire).
   ============================================================ */

.vvf {
    --vvf-navy: #003850;
    --vvf-navy-deep: #002636;
    --vvf-teal: #48C9B0;
    --vvf-teal-deep: #149f98;
    --vvf-ivory: #fdfaf2;
    --vvf-ink: #1f2a30;
    --vvf-ink-soft: #6b7780;
    --vvf-line: #e6e9ea;
    --vvf-serif: 'Cormorant Garamond', Georgia, serif;
    --vvf-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
    font-family: var(--vvf-sans);
    color: var(--vvf-ink);
}

/* ---------- SIDEBAR ---------- */
.vvf-sidebar {
    position: sticky;
    top: 30px;
    background: #ffffff;
    border: 1px solid var(--vvf-line);
    border-top: 3px solid var(--vvf-teal);
    padding: 28px 24px;
}

.vvf-sidebar-title {
    font-family: var(--vvf-serif);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--vvf-navy);
    margin: 0 0 6px;
}

.vvf-sidebar-sub {
    font-size: 12px;
    line-height: 1.5;
    color: var(--vvf-ink-soft);
    margin: 0 0 22px;
}

/* ---------- GROUPES (accordéons) ---------- */
.vvf-group {
    border-top: 1px solid var(--vvf-line);
    padding: 4px 0;
}
.vvf-group:last-of-type {
    border-bottom: 1px solid var(--vvf-line);
}

.vvf-group-title {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vvf-teal-deep);
    user-select: none;
}
.vvf-group-title::-webkit-details-marker { display: none; }

/* Marqueur +/− */
.vvf-group-title::after {
    content: "+";
    font-size: 18px;
    font-weight: 400;
    color: var(--vvf-teal-deep);
    line-height: 1;
    transition: transform .2s ease;
}
.vvf-group[open] > .vvf-group-title::after {
    content: "\2212"; /* − */
}

.vvf-group-body {
    padding: 2px 2px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ---------- OPTIONS (checkboxes) ---------- */
.vvf-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 4px;
    font-size: 14px;
    color: var(--vvf-ink);
    cursor: pointer;
    border-radius: 4px;
    transition: background .15s ease;
}
.vvf-opt:hover { background: var(--vvf-ivory); }

.vvf-check {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    margin: 0;
    flex: 0 0 auto;
    border: 1.5px solid #c3ccd0;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all .15s ease;
}
.vvf-check:hover { border-color: var(--vvf-teal); }
.vvf-check:checked {
    background: var(--vvf-teal);
    border-color: var(--vvf-teal);
}
.vvf-check:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.vvf-opt-label { flex: 1 1 auto; line-height: 1.3; }

/* Option cochée mais qui ne ramène plus rien (décochable) */
.vvf-opt-zero { opacity: 0.5; }
.vvf-opt-zero .vvf-opt-count { background: #f3dede; color: #a85a5a; }

.vvf-opt-count {
    flex: 0 0 auto;
    min-width: 22px;
    text-align: center;
    font-size: 11px;
    color: var(--vvf-ink-soft);
    background: var(--vvf-ivory);
    border-radius: 11px;
    padding: 2px 7px;
}

/* ---------- BOUTON RESET + COMPTEUR ---------- */
.vvf-clear {
    width: 100%;
    margin-top: 22px;
    padding: 12px 16px;
    background: var(--vvf-teal);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-family: var(--vvf-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background .2s ease;
}
.vvf-clear:hover { background: var(--vvf-teal-deep); }

.vvf-results-count {
    margin: 16px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--vvf-ink-soft);
}
.vvf-count-total {
    font-family: var(--vvf-serif);
    font-size: 20px;
    font-style: italic;
    color: var(--vvf-navy);
    margin-right: 4px;
}

.vvf-no-facet {
    font-size: 13px;
    font-style: italic;
    color: var(--vvf-ink-soft);
}

/* ---------- ZONE RÉSULTATS ---------- */
.vvf-main { min-width: 0; } /* évite le débordement de la grille */

/* ---------- AJOUTS CARTE : catégorie + « À partir de » ---------- */
.vvf-card .vvf-card-cat {
    font-family: var(--vvf-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vvf-teal-deep);
    margin-bottom: 8px;
    line-height: 1.3;
}
.vvf-card .vvf-cat-sep {
    color: var(--vvf-teal);
    margin: 0 3px;
}
.vvf-card .vv-grid-card-price {
    text-align: right;
    line-height: 1.2;
}
.vvf-card .vvf-price-label {
    display: block;
    font-family: var(--vvf-sans);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--vvf-ink-soft);
    margin-bottom: 1px;
}

.vvf-results {
    position: relative;
    transition: opacity .25s ease;
}
.vvf-results.vvf-is-loading {
    opacity: 0.45;
    pointer-events: none;
}
.vvf-results.vvf-is-loading::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    border: 3px solid var(--vvf-line);
    border-top-color: var(--vvf-teal);
    border-radius: 50%;
    animation: vvf-spin .7s linear infinite;
}
@keyframes vvf-spin { to { transform: rotate(360deg); } }

/* ---------- ÉTAT VIDE ---------- */
.vvf-empty {
    padding: 60px 30px;
    text-align: center;
    background: var(--vvf-ivory);
    border: 1px dashed var(--vvf-line);
    border-radius: 8px;
}
.vvf-empty p {
    font-family: var(--vvf-serif);
    font-size: 20px;
    font-style: italic;
    color: var(--vvf-navy);
    margin: 0;
}
.vvf-empty-sub {
    font-family: var(--vvf-sans) !important;
    font-size: 13px !important;
    font-style: normal !important;
    color: var(--vvf-ink-soft) !important;
    margin-top: 8px !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
    .vvf {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .vvf-sidebar {
        position: static;
    }
}