/* הרקע של ה-select כשהוא סגור */
.bootstrap-select .dropdown-toggle {
    background-color: #ffffff !important; /* צבע רקע */
    border-color: #ffffff !important;        /* מסגרת אם צריך */
    color: #000000 !important;
}

/* צבע רקע של התפריט הפתוח */
.bootstrap-select .dropdown-menu {
    background-color: #fff !important;
}

/* צבע רקע של אופציות */
.bootstrap-select .dropdown-menu .dropdown-item {
    background-color: #fff !important;
}

.bootstrap-select .dropdown-menu .dropdown-item:hover,
.bootstrap-select .dropdown-menu .dropdown-item:focus {
    background-color: #ffffff !important;
}




.second-hand-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

/* מסך גדול מאוד – תמיד 6 בעמודה */
@media (min-width: 1500px) {
    .second-hand-grid-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* מסכים בינוניים */
@media (max-width: 1500px) {
    .second-hand-grid-container {
        grid-template-columns: repeat(5, 1fr);
    }
}
    
/* מסכים בינוניים */
@media (max-width: 1200px) {
    .second-hand-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* טאבלטים */
@media (max-width: 900px) {
    .second-hand-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* מובייל גדול */
@media (max-width: 700px) {
    .second-hand-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* מובייל קטן */
@media (max-width: 450px) {
    .second-hand-grid-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

.second-hand-grid-container .card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.second-hand-grid-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.second-hand-grid-container .card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.second-hand-grid-container .card-content {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.second-hand-grid-container .price {
    margin-bottom: 5px;
    font-size: 18px!important;
    font-weight: 500!important;
    color: #59585A;
}


.second-hand-grid-container .title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}
/*
.second-hand-grid-container .location {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.second-hand-grid-container .category {
    font-size: 12px;
    color: #888;
}
*/
    
.second-hand-grid-container .button-container {
    /*display: flex;*/
    gap: 10px; /* רווח קטן בין הכפתורים */
}

.second-hand-grid-container .btn {
    padding: 3px 6px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid silver;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.second-hand-grid-container .btn-model {
    background-color: #EDF2FA;
    color: #333;
    float: right;
}

.second-hand-grid-container .btn-city {
    background-color: #F9C24F;
    color: #333;
    float: left;
}

.second-hand-grid-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.second-hand-grid-container .btn-model:hover {
    background: linear-gradient(135deg, #fff, #fff);
}

.second-hand-grid-container .btn-city:hover {
    background: linear-gradient(135deg, #fff, #fff);
}





/* כפתור הפתיחה */
.second-hand-filter-btn {
    background: transparent;
    border: none;
    font-size: 14px!important;
    font-weight: 600;
}

/* פופאפ מודאל מותאם */
.second-hand-filter-popup-modal .modal-dialog {
    /*max-width: 420px;*/
}
/*
.second-hand-filter-popup-header {
    font-weight: 600;
    font-size: 16px;
    padding: 10px 7px;
    border-bottom: 1px solid #dee2e6;
}
*/
.second-hand-filter-popup-body {
    padding: 0px; /* 20px */
}

/* צ'קבוקסים מותאמים */
.second-hand-filter-popup-checkbox {
    margin-bottom: 15px;
}
.second-hand-filter-popup-checkbox label {
    font-size: 16px;
    margin-right: 35px;
    position: relative;
    cursor: pointer;
}

/* סליידרים */
.second-hand-filter-popup-range-wrapper {
    margin: 30px 0;
}
.second-hand-filter-popup-range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: bold;
}
.second-hand-filter-popup-range-values span {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
    font-size: 16px;
}
.noUi-horizontal {
    height: 8px;
}
.noUi-connect {
    background: #ff6600;
}
.noUi-handle {
    width: 24px !important;
    height: 24px !important;
    top: -8px !important;
    right: -12px !important;
    border: 3px solid #ff6600;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.noUi-handle:before, .noUi-handle:after { display: none; }

/* כפתור איפוס */
.second-hand-filter-popup-reset {
    background: transparent;
    color: #ff6600;
    border: 1px solid #ff6600;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: bold;
}

/* כפתורים תחתונים */
.second-hand-filter-popup-footer {
    display: flex;
    justify-content: space-between;
    padding: 7px 10px;
    border-top: 1px solid #dee2e6;
}
.second-hand-filter-popup-apply {
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 6px 15px;
    font-weight: bold;
    min-width: 120px;
}
.second-hand-filter-popup-close {
    background: transparent;
    color: #666;
    border: none;
    font-size: 16px;
}





 


.second-hand-filter-popup-prices-container {
width: 100%; /* 300px; */
margin: 0 auto;
position: relative;
}

.second-hand-filter-popup-prices-slider {
-webkit-appearance: none;
-moz-appearance: none;
width: 100%;
height: 8px;
border-radius: 4px;
background-color: #dee2e6; /* צבע בסיס אפור */
outline: none;
}

/* Chrome / Safari */
.second-hand-filter-popup-prices-slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: #007bff;
cursor: pointer;
margin-top: -6px;
transition: background 0.3s;
}

/* Firefox */
.second-hand-filter-popup-prices-slider::-moz-range-thumb {
width: 20px;
height: 20px;
border-radius: 50%;
background: #007bff;
border: none;
cursor: pointer;
transition: background 0.3s;
}

.second-hand-filter-popup-prices-labels {
display: flex;
justify-content: space-between;
font-size: 14px;
margin-top: 5px;
}

.second-hand-filter-popup-prices-bubble {
position: absolute;
top: -40px;
padding: 5px 10px;
color: #fff;
border-radius: 12px;
font-weight: bold;
font-size: 14px;
white-space: nowrap;
transform: translateX(-50%);
pointer-events: none;
transition: background 0.3s;
}

.second-hand-filter-popup-prices-bubble::after {
content: '';
position: absolute;
bottom: -6px;
left: 50%;
transform: translateX(-50%);
border-width: 6px 6px 0 6px;
border-style: solid;
}

.bubble-green { background-color: #28a745; }
.bubble-green::after { border-color: #28a745 transparent transparent transparent; }
.bubble-yellow { background-color: #ffc107; color: #000; }
.bubble-yellow::after { border-color: #ffc107 transparent transparent transparent; }
.bubble-red { background-color: #dc3545; }
.bubble-red::after { border-color: #dc3545 transparent transparent transparent; }



.second-hand-filter-popup-sort-section {
    background: #f7f7f7;
    padding: 15px;
    border-radius: 10px;
}

.second-hand-filter-popup-sort-title {
    font-weight: bold;
    margin-bottom: 10px;
}
.second-hand-filter-popup-grid-1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 5px;
}
.second-hand-filter-popup-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}
.second-hand-filter-popup-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

/* במובייל עמודה אחת */
@media (max-width: 600px) {
    .second-hand-filter-popup-grid-1,
    .second-hand-filter-popup-grid-2,
    .second-hand-filter-popup-grid-3 {
        grid-template-columns: 1fr;
    }
}

.second-hand-filter-popup-sort-option {
    background: white;
    padding: 5px 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: 0.2s;
}

.second-hand-filter-popup-sort-option:hover {
    border-color: #007bff;
}

.second-hand-filter-popup-sort-option input {
    margin-left: 8px;
}












/* עטיפה כללית */
.second-hand-filter-bar-wrapper {
    direction: rtl;
    width: 100%;
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    margin: 0 auto;
    box-sizing: border-box;
}

/* תיבת הפילטרים */
.second-hand-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* כפתורי בחירה */
.second-hand-filter-btn {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 25px;
    padding: 5px 12px!important;
    font-size: 14px!important;
    font-weight: 500;
    height: 45px!important;
    cursor: pointer;
    transition: 0.2s;
}

.second-hand-filter-btn:hover {
    background:#ffffff ; /* #f7f7f7 */
}

/* כפתור כתום */
.second-hand-filter-search-btn {
    background-color: #ff7700;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.second-hand-filter-search-btn:hover {
    background-color: #ff8f2c;
}
