/* 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; }

.price-range-row { padding: 7px 6px; font-size: 13.5px; color: #334155; }
.price-range-row input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: #0B2C54; }
.price-range-row .item-count { background: #f1f5f9; color: #64748b; font-weight: 600; font-size: 11px; padding: 2px 8px; border-radius: 6px; }

/* 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; }
}

/* Premium SumoSelect Sort Dropdown overrides */
.inventory-top .inventory-select .SumoSelect {
    width: 240px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.2s ease-in-out !important;
    height: 46px !important;
}

@media (max-width: 767px) {
    .inventory-top .inventory-select .SumoSelect {
        width: 100% !important;
    }
}

.inventory-top .inventory-select .SumoSelect > .CaptionCont {
    background-color: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    height: 46px !important;
    line-height: 44px !important; /* height minus border */
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02) !important;
}

.inventory-top .inventory-select .SumoSelect > .CaptionCont > span {
    padding-right: 36px !important;
    color: #1e293b !important;
}

.inventory-top .inventory-select .SumoSelect > .CaptionCont > label {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 36px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transform: none !important;
}

.inventory-top .inventory-select .SumoSelect > .CaptionCont > label > i {
    position: static !important;
    background-image: none !important; /* Remove default SumoSelect png icon */
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #64748b !important;
    margin: 0 !important;
}

.inventory-top .inventory-select .SumoSelect > .CaptionCont > label > i::after {
    content: "\f123" !important; /* Ionicons chevron-down */
    font-family: "Ionicons" !important;
    font-size: 16px !important;
    display: inline-block !important;
}

/* Hover State */
.inventory-top .inventory-select .SumoSelect > .CaptionCont:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #14304B !important;
}

.inventory-top .inventory-select .SumoSelect > .CaptionCont:hover > label > i {
    color: #14304B !important;
}

/* Open/Focus State */
.inventory-top .inventory-select .SumoSelect.open > .CaptionCont {
    border-color: #14304B !important;
    box-shadow: 0 0 0 3px rgba(20, 48, 75, 0.12) !important;
    background-color: #ffffff !important;
    color: #14304B !important;
}

.inventory-top .inventory-select .SumoSelect.open > .CaptionCont > label > i {
    transform: rotate(180deg) !important;
    color: #14304B !important;
}

/* Dropdown Menu List Wrapper */
.inventory-top .inventory-select .SumoSelect .optWrapper {
    top: 52px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
    padding: 6px !important;
    background: #ffffff !important;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out !important;
    width: 100% !important;
}

@media (max-width: 767px) {
    .inventory-top .inventory-select .SumoSelect .optWrapper {
        top: 48px !important;
    }
}

.inventory-top .inventory-select .SumoSelect .optWrapper .options {
    max-height: 280px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Options */
.inventory-top .inventory-select .SumoSelect .optWrapper .options li.opt {
    padding: 10px 14px !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-bottom: none !important; /* Remove separators */
    border-radius: 6px !important;
    margin: 2px 0 !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}

/* Option Hover */
.inventory-top .inventory-select .SumoSelect .optWrapper .options li.opt:hover {
    background-color: #f1f5f9 !important;
    color: #14304B !important;
}

/* Selected Option */
.inventory-top .inventory-select .SumoSelect .optWrapper .options li.opt.sel {
    background-color: rgba(20, 48, 75, 0.08) !important;
    color: #14304B !important;
    font-weight: 600 !important;
}

/* Sticky Sidebar Scrolling overrides for Desktop */
@media (min-width: 992px) {
    .sticky-column {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 20px !important; /* sit nicely near the top of viewport */
        z-index: 10 !important;
    }

    #filter-sidebar {
        max-height: calc(100vh - 40px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-right: 15px !important;
    }

    /* Premium custom scrollbar styling for the sidebar scroll */
    #filter-sidebar::-webkit-scrollbar {
        width: 6px;
    }
    
    #filter-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }
    
    #filter-sidebar::-webkit-scrollbar-thumb {
        background: #cbd5e1; /* slate-300 */
        border-radius: 10px;
    }
    
    #filter-sidebar::-webkit-scrollbar-thumb:hover {
        background: #94a3b8; /* slate-400 */
    }
}

/* All Pagination - Modern Theme Styling */
.all-pagination {
    margin-top: 35px;
    margin-bottom: 25px;
}

.all-pagination .pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.all-pagination .pagination .page-item {
    margin: 0 !important;
}

.all-pagination .pagination .page-item .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #293957 !important;
    background-color: #f8fafc !important;
    border: 1px solid #dcdfe5 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s ease-in-out !important;
    cursor: pointer !important;
    user-select: none !important;
    line-height: 1 !important;
}

/* Hover State - FindMyCarz Theme Color */
.all-pagination .pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #14304B !important;
    border-color: #14304B !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(20, 48, 75, 0.25) !important;
}

/* Active State - Same Theme Color */
.all-pagination .pagination .page-item.active .page-link {
    background-color: #14304B !important;
    border-color: #14304B !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(20, 48, 75, 0.3) !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* Disabled State */
.all-pagination .pagination .page-item.disabled .page-link {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none !important;
}

/* Ellipsis Item */
.all-pagination .pagination .page-item.disabled .page-link:not(:has(i)) {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #64748b !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.all-pagination .pagination .page-item .page-link i {
    font-size: 13px !important;
    line-height: 1 !important;
}

@media (max-width: 576px) {
    .all-pagination .pagination {
        gap: 4px !important;
    }
    .all-pagination .pagination .page-item .page-link {
        min-width: 34px !important;
        height: 34px !important;
        padding: 0 8px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
    }
}



