/* Loader Style from PHP Core */
.loader-scroll { text-align: center; padding: 20px; display: none; width: 100%; clear: both; }

.widget-box { border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; overflow: hidden; margin-bottom: 20px; }
.widget-search-box { padding: 10px; border-bottom: 1px solid #f3f4f6; background: #f9fafb; }
.widget-search-box input { font-size: 13px; height: 35px; width: 100%; border: 1px solid #ddd; padding: 0 10px; border-radius: 4px; }
.widget-scroll-container { max-height: 300px; overflow-y: auto; background: #fff; overscroll-behavior: contain; }
.widget-scroll-container::-webkit-scrollbar { width: 5px; }
.widget-scroll-container::-webkit-scrollbar-track { background: #f1f1f1; }
.widget-scroll-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 5px; }
.widget-scroll-container::-webkit-scrollbar-thumb:hover { background: #888; }

.group-header { position: relative; padding: 10px; background: #fff; border-bottom: 1px solid #f3f4f6; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.group-header i { position: absolute; right: 5px; }

.sticky-container-row { align-items: flex-start; }


.badge-filter { position: absolute; background: #14304B; color: #fff; padding: 1px 10px; font-size: 13px; border-radius: 6px; top: 8px; right: 15px; z-index: 2; }
.badge-discount { position: absolute; background: #28a745; color: #fff; padding: 1px 10px; font-size: 12px; font-weight: bold; border-radius: 6px; top: 8px; left: 15px; z-index: 2; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }

.widget-group input[type="checkbox"] { width: 15px; height: 15px !important; cursor: pointer; }
.list-body { padding: 0px 25px; }

.filter-item-row { padding: 6px; display: flex; align-items: center; font-size: 13px; color: #4b5563; cursor: pointer; width: 100%; border-bottom: 1px dashed #f3f4f6; }
.filter-item-row:hover { background: #f3f4f6; color: #111; }
.item-count { margin-left: auto; font-size: 10px; background: #e5e7eb; padding: 2px 6px; border-radius: 4px; }

/* Color & Seat Box Styles */
.color-box { border: 1px solid #eee; border-radius: 6px; padding: 10px; text-align: center; background: #fff; transition: 0.2s; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 85px; }
.seat-filter-item input:checked+.color-box { border-color: #14304B; background: #f0f7ff; }
.color-box span { font-size: 13px; font-weight: 600; color: #333; line-height: 1.2; }
.color-box small { font-size: 10px; background: #e5e7eb; padding: 2px 6px; border-radius: 4px; margin-top: 4px; }

.grid-container-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.seat-filter-item { cursor: pointer; position: relative; width: 100%; }
.seat-filter-item input { display: none; }
.seat-box { border: 1px solid #eee; border-radius: 6px; padding: 10px; text-align: center; background: #fff; transition: 0.2s; width: 100%; }
.seat-box span { font-size: 13px; font-weight: 600; display: block; color: #333; }
.seat-box small { font-size: 10px; background: #e5e7eb; padding: 2px 6px; border-radius: 4px; }
.seat-info, .color-info { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 3px; }
.seat-filter-item input:checked+.seat-box { border-color: #14304B; background: #f0f7ff; }

/* sticky */
.sticky-column { position: -webkit-sticky; position: sticky; top: 0px; z-index: 10; height: fit-content; }

.btn-reset-icon { border: 1px solid #dc3545; color: #dc3545; background: transparent; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0; transition: all 0.3s; }
.btn-reset-icon:hover { background: #dc3545; color: #fff; transform: rotate(180deg); }

/* slider */
.price-slider-wrapper { padding: 30px 15px 10px; }
.noUi-target { height: 6px; border: none; box-shadow: none; background: #e5e7eb; border-radius: 10px; }
.noUi-connect { background: #14304B; border-radius: 10px; }
.noUi-handle { width: 18px !important; height: 18px !important; border-radius: 50%; background: #fff; border: 2px solid #14304B; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); right: -9px !important; top: -7px !important; cursor: pointer; }
.noUi-handle:before, .noUi-handle:after { display: none; }
.noUi-tooltip { background: #14304B; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; border: none; bottom: 120%; }
.range-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #6c757d; font-weight: 600; }


.price-strike { text-decoration: line-through; color: #999; font-size: 14px; margin-right: 6px; font-weight: 500; }
.price-final { color: #14304B; font-weight: 700; font-size: 18px; }

/* CAR CARD STYLES - EXACT FROM PHP CORE style.css */
.car-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1); border: 1px solid #e3e3e3b5; margin: 20px auto; transition: .3s ease; }
.car-card:hover { transform: translateY(-4px); box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15); }
.car-img-box { position: relative; }
.car-img-box img { width: 100%; object-fit: cover; }
.gallery-count { position: absolute; bottom: 3px; left: 3px; background: #000000c0; color: #fff; padding: 3px 10px; border-radius: 6px; font-size: 13px; display: flex; align-items: center; gap: 5px; }
.car-info { padding: 15px 18px 25px; position: relative; height: 180px; }
.car-small-title { color: #fff !important; position: absolute; top: -22px; right: 0; width: 50%; padding: 0px 15px; background: #fff; color: #142F4A !important; font-size: 12px; font-weight: 600; border-radius: 30% 0% 0 0 / 110% 82% 0 0; display: flex; justify-content: end; align-items: center; gap: 2px; }
.price-container { display: flex; flex-direction: column-reverse; }
.cer-verfy { width: 20px !important; height: 20px !important; }
.verify-logo { width: 55% !important; }
.car-title { font-size: 16px; font-weight: 700; color: #000; margin-bottom: 5px; }
.footer-rto { position: absolute; bottom: 0px; left: 0; background: #162F4B; border-radius: 0 0 6px 6px; width: 100%; padding: 4px 18px; color: #fff; display: flex; align-items: center; justify-content: space-between; }
.car-price { color: #14304B; font-size: 18px; font-weight: 700; text-align: end; }
.owner-price { display: flex; justify-content: space-between; align-items: center; }
.car-ownership { font-size: 14px; color: #132F4A; font-weight: 600; }
.car-specs { display: flex; justify-content: space-between; margin-bottom: 14px; }
.spec-item { display: flex; align-items: center; gap: 5px; color: #444; font-size: 13px; }
.car-status { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }

/* Mobile */
@media (max-width: 991px) {
    .inventory-sidebar { position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; background: white; z-index: 9999; overflow-y: auto; transition: left 0.3s ease-in-out; padding-bottom: 80px; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); }
    .inventory-sidebar.open { left: 0; }
    .sticky-column { position: static; }
    .mobile-filter-trigger { display: flex !important; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; background: #14304B; color: white; padding: 12px 30px; border-radius: 50px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); font-weight: 600; align-items: center; gap: 10px; cursor: pointer; border: none; width: auto; min-width: 160px; justify-content: center; }
    .mobile-close-filter { display: block !important; }
    .filter-backdrop { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 9998; }
    .filter-backdrop.show { display: block; }
}
@media (min-width: 992px) {
    .mobile-filter-trigger { display: none !important; }
    .mobile-close-filter { display: none !important; }
    .filter-backdrop { display: none !important; }
}
