/* ==========================================
   FILTER PAGE — NigerAnnonce
   ========================================== */

.fltr-page-section { padding: 14px 0 60px; }

/* -------- SIDEBAR CARD -------- */
.category-sidebar {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e6eaef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
    padding: 0 !important;
}
.category-sidebar::-webkit-scrollbar { width: 4px; }
.category-sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.fltr-sidebar-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f2f5;
    background: #fafbfc;
    font-size: 13px;
    font-weight: 700;
    color: #111;
}
.fltr-sidebar-head i { color: #009eff; font-size: 14px; }

/* Widgets */
.fltr-widget {
    padding: 13px 18px;
    border-bottom: 1px solid #f4f5f7;
}
.fltr-widget:last-child { border-bottom: none; }

.fltr-widget-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #bbb;
    margin-bottom: 9px;
}

/* Search */
.fltr-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.fltr-search-wrap > i {
    position: absolute;
    left: 11px;
    color: #bbb;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}
.fltr-search-input {
    width: 100%;
    height: 40px;
    border: 1.5px solid #e4eaf3;
    border-radius: 10px;
    padding: 0 42px 0 12px;
    font-size: 13px;
    color: #333;
    outline: none;
    background: #fafbff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.fltr-search-input:focus { border-color: #009eff; background: #fff; box-shadow: 0 0 0 3px rgba(0,158,255,0.08); }
.fltr-search-btn {
    position: absolute;
    right: 7px;
    background: #009eff;
    border: none;
    border-radius: 7px;
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.fltr-search-btn:hover { background: #0083dd; }

/* Select */
.fltr-select {
    width: 100%;
    height: 40px;
    border: 1.5px solid #e4eaf3 !important;
    border-radius: 10px !important;
    padding: 0 32px 0 12px !important;
    font-size: 13px !important;
    color: #333 !important;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background: #fafbff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center !important;
    cursor: pointer;
    transition: border-color 0.2s;
    box-shadow: none !important;
}
.fltr-select:focus { border-color: #009eff !important; background-color: #fff !important; }

/* Number inputs */
.fltr-num {
    width: 100%;
    height: 38px;
    border: 1.5px solid #e4eaf3;
    border-radius: 9px;
    padding: 0 10px;
    font-size: 13px;
    color: #333;
    outline: none;
    background: #fafbff;
    transition: border-color 0.2s;
    box-shadow: none;
}
.fltr-num:focus { border-color: #009eff; background: #fff; }
.fltr-num-label {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
}

/* Price row */
.fltr-price-row { display: flex; align-items: center; gap: 7px; }
.fltr-price-row .fltr-num { flex: 1; }
.fltr-price-sep { color: #ccc; font-size: 13px; flex-shrink: 0; font-weight: 300; }

/* Text input (marque) */
.fltr-text-input {
    width: 100%;
    height: 38px;
    border: 1.5px solid #e4eaf3;
    border-radius: 9px;
    padding: 0 10px;
    font-size: 13px;
    color: #333;
    outline: none;
    background: #fafbff;
    transition: border-color 0.2s;
}
.fltr-text-input:focus { border-color: #009eff; background: #fff; }

/* Radio pills (location/vente) */
.fltr-radio-row { display: flex; gap: 7px; flex-wrap: wrap; }
.fltr-radio-pill {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1.5px solid #e4eaf3;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12.5px;
    color: #555;
    transition: all 0.15s;
    user-select: none;
    background: #fafbff;
}
.fltr-radio-pill input[type="radio"] { display: none; }
.fltr-radio-pill:has(input:checked) { background: #009eff; border-color: #009eff; color: #fff; }
.fltr-radio-pill:hover:not(:has(input:checked)) { border-color: #009eff88; }
.fltr-radio-pill i { font-size: 12px; }

/* Toggle switches */
.fltr-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    cursor: pointer;
    border-bottom: 1px solid #f7f8fa;
}
.fltr-toggle-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.fltr-toggle-label {
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 7px;
}
.fltr-toggle-label i { color: #009eff; font-size: 12.5px; }
.fltr-switch {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
}
.fltr-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.fltr-switch-knob {
    position: absolute;
    inset: 0;
    background: #e0e4ea;
    border-radius: 20px;
    transition: background 0.2s;
}
.fltr-switch-knob::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.fltr-switch input:checked ~ .fltr-switch-knob { background: #009eff; }
.fltr-switch input:checked ~ .fltr-switch-knob::after { transform: translateX(16px); }

/* Équipement chips */
.fltr-equip-grid { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.fltr-equip-chip {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid #e4eaf3;
    border-radius: 20px;
    padding: 4px 11px;
    font-size: 12px;
    color: #666;
    transition: all 0.15s;
    user-select: none;
    background: #fafbff;
}
.fltr-equip-chip input { display: none; }
.fltr-equip-chip:has(input:checked) { background: #e8f5ff; border-color: #009eff; color: #0070cc; font-weight: 600; }
.fltr-equip-chip:hover:not(:has(input:checked)) { border-color: #009eff66; }

.fltr-equip-subtitle {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ccc;
    margin: 10px 0 6px;
    display: block;
}

/* Apply button */
.fltr-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 36px);
    margin: 6px 18px 18px;
    background: linear-gradient(135deg, #009eff, #0078d4);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 0.2px;
    box-shadow: 0 3px 10px rgba(0,158,255,0.3);
}
.fltr-apply-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.fltr-apply-btn:active { transform: translateY(0); }

/* -------- RESULTS AREA -------- */
.fltr-results-title-block { margin-bottom: 14px; }
.fltr-results-h1 {
    font-size: 21px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
    line-height: 1.3;
}
.fltr-results-desc {
    font-size: 13px;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

/* Active filter chips */
.fltr-active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fltr-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8f5ff;
    border: 1px solid #b3d9ff;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: #0068cc;
    font-weight: 500;
    white-space: nowrap;
}
.fltr-active-chip i { font-size: 11px; }

/* Topbar */
.fltr-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e6eaef;
    padding: 10px 16px;
    margin-bottom: 16px;
    gap: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.fltr-count-info { font-size: 13px; color: #777; }
.fltr-count-info strong { color: #111; font-weight: 700; }
.fltr-view-toggle { display: flex; gap: 5px; }
.fltr-view-btn {
    width: 34px;
    height: 34px;
    border: 1.5px solid #e4eaf3;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #bbb;
    font-size: 15px;
    transition: all 0.15s;
}
.fltr-view-btn.active,
.fltr-view-btn:hover { background: #009eff; border-color: #009eff; color: #fff; }

/* Grid cards improvement */
.single-item-grid {
    border-radius: 12px !important;
    border: 1px solid #eaecf0 !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05) !important;
    margin-top: 0 !important;
    margin-bottom: 14px;
    transition: box-shadow 0.2s, transform 0.15s !important;
    overflow: hidden;
}
.single-item-grid:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}
/* .single-item-grid .image img { height: 150px !important; } */
.single-item-grid .content { padding: 10px 12px 12px; }
.single-item-grid .content .tag {
    font-size: 11px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 4px;
}
.single-item-grid .content .title { margin-bottom: 4px; }
.single-item-grid .content .location {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0 6px;
    font-style: normal;
}
.single-item-grid .content .location i { color: #009eff; font-size: 11px; }
.single-item-grid .content .info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f2f5;
    padding-top: 8px;
    margin-top: 6px;
}
.single-item-grid .content .info .price {
    font-size: 14px;
    font-weight: 800;
    color: #009eff;
}
.single-item-grid .content .info .like {
    background: none;
    border: 1.5px solid #e4eaf3;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    transition: all 0.2s;
}
.single-item-grid .content .info .like:hover { border-color: #f55; color: #f55; }

/* Input label */
.fltr-input-label {
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}


/* List cards */
.fltr-list-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eaecf0;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 1px 5px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: row;
}
.fltr-list-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
    transform: translateY(-1px);
}
.fltr-list-card--premium { background: #f0f9ff; }
.fltr-list-img-wrap {
    flex: 0 0 220px;
    position: relative;
    overflow: hidden;
    display: block;
}
.fltr-list-img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.fltr-list-card:hover .fltr-list-img { transform: scale(1.04); }
.fltr-list-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}
.fltr-list-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: #aaa;
    margin-bottom: 6px;
}
.fltr-list-meta i { color: #009eff; font-size: 11px; }
.fltr-list-time {
    font-size: 11px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
}
.fltr-list-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.35;
    text-decoration: none;
    display: block;
}
.fltr-list-title a { color: inherit; text-decoration: none; }
.fltr-list-title a:hover { color: #009eff; }
.fltr-list-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.fltr-list-chip-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #f4f7fb;
    border-radius: 10px;
    padding: 3px 8px;
    font-size: 11px;
    color: #666;
}
.fltr-list-chip-item img { width: 11px; height: 11px; opacity: 0.6; }
.fltr-list-location {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    font-style: normal;
}
.fltr-list-location i { color: #009eff; font-size: 11.5px; }
.fltr-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f2f5;
    padding-top: 10px;
    margin-top: auto;
}
.fltr-list-price { font-size: 17px; font-weight: 800; color: #009eff; }
.fltr-list-price-na { font-size: 13px; color: #bbb; font-style: italic; }
.fltr-list-heart {
    background: none;
    border: 1.5px solid #e4eaf3;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.fltr-list-heart:hover { border-color: #f55; color: #f55; }

@media (max-width: 575px) {
    .fltr-list-card { flex-direction: column; }
    .fltr-list-img-wrap { flex: none; height: 160px; }
    .fltr-list-img { min-height: 160px; height: 160px; }
}

/* Empty state */
.fltr-empty { text-align: center; padding: 50px 20px; }
.fltr-empty img { max-height: 180px; opacity: 0.55; margin-bottom: 18px; }
.fltr-empty h3 { font-size: 17px; color: #666; margin-bottom: 6px; font-weight: 600; }
.fltr-empty p { font-size: 13px; color: #aaa; }

/* Photo count badge — override main.css fixed width */
.nombre-pic-badge-filter {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: auto !important;
    height: 22px !important;
    padding: 0 7px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #fff !important;
    border-radius: 5px !important;
    background: rgba(0, 0, 0, 0.62) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: absolute !important;
    bottom: 6px !important;
    left: 8px !important;
}
.nombre-pic-badge-filter img { flex-shrink: 0; }

/* Video badge on cards — always bottom-right, photo badge stays bottom-left */
.card-video-badge {
    position: absolute;
    bottom: 6px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 2;
}

/* 2-column grid inside mobile filter */
.fltr-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Mobile panel — override sticky/scroll so it flows inside navbar collapse */
.fltr-mobile-panel {
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Responsive */
@media (max-width: 991px) {
    .category-sidebar { position: static; max-height: none; border-radius: 12px; }
    .fltr-results-h1 { font-size: 18px; }
}
@media (max-width: 575px) {
    .fltr-topbar { padding: 9px 12px; }
    .fltr-count-info { font-size: 12px; }
    /* .single-item-grid .image img { height: 120px !important; } */
    .fltr-2col { grid-template-columns: 1fr 1fr; }
}
