/* CAR ARCHIVE CSS - LIST LAYOUT DESIGN */
/* FIX HORIZONTAL SCROLLING */


/* MAIN GRID WRAPPER */
.sr-archive {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 30px !important;
    margin: 30px auto !important;
    max-width: 1400px !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* LEFT SIDEBAR FILTERS */
.sr-left-filters {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.sr-filter-block {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sr-filter-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sr-filter-block h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter lists */
.sr-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.sr-filter-list li {
    margin-bottom: 8px;
}

.sr-filter-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    padding: 4px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.sr-filter-list label:hover {
    background: #f8f9fa;
}

.sr-filter-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #ff0055;
}

/* Price buttons */
.sr-price-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sr-price-btn {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #555;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: all 0.2s ease;
}

.sr-price-btn:hover {
    background: #e9ecef;
    border-color: #ff0055;
}

.sr-price-btn.active {
    background: #ff0055;
    color: white;
    border-color: #ff0055;
}

/* Sort dropdown */
#sr-sort {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

#sr-sort:focus {
    outline: none;
    border-color: #ff0055;
}

/* RESULTS AREA */
.sr-results-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* CAR LIST - LIST LAYOUT (not grid) */
.sr-cars-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Override any Elementor grid/flexbox */
.elementor-section .sr-cars-list,
.elementor-container .sr-cars-list,
.elementor-column .sr-cars-list,
.elementor-widget-wrap .sr-cars-list,
.elementor-widget .sr-cars-list,
.elementor-element .sr-cars-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* CAR CARD - LIST LAYOUT - FIXED HEIGHT MATCHING */
.sr-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: 1px solid #f0f0f0;
    display: flex;
    min-height: 240px; /* Minimum card height */
}

.sr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color:black;
}

.sr-card-image {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    align-items: stretch; /* Make image match content height */
}

.sr-card-image img {
    width: 100%;
    height: 100%; /* Fill container height */
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.sr-card:hover .sr-card-image img {
    transform: scale(1.05);
    
}

.sr-card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 100%; /* Ensure content fills card height */
}

/* Card Header - Title + Price */
.sr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sr-card-title-section {
    flex: 1;
}

.sr-card-brand {
    display: block;
    font-size: 12px;
    color: black;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.sr-card-title {
    font-size: 18px; /* Changed from 20px */
    font-weight: 700;
    color: #222;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.sr-card-type {
    font-size: 14px;
    color: #666;
    display: inline-block;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
}

.sr-card-price-section {
    text-align: right;
    min-width: 180px;
}

.sr-card-price {
    font-size: 20px; /* Changed from 28px */
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
    line-height: 1;
}

.sr-price-amount {
    font-size: 28px; /* Changed from 32px */
    font-weight: 800;
}

.sr-price-amount {
    font-size: 32px;
    font-weight: 800;
}

.sr-per {
    font-size: 16px;
    color: #666;
    font-weight: normal;
    margin-left: 3px;
}

/* REMOVED: Min rental text */

/* ACF SPECS WITH SVG ICONS - 2 ROWS */
.sr-acf-specs {
    margin-bottom: 20px;
    flex-grow: 1;
}

.sr-specs-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.sr-specs-row:last-child {
    margin-bottom: 0;
}

.sr-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 5px;
}
.sr-spec-icon {
    width: 15px; /* Changed from 24px */
    height: 15px; /* Changed from 24px */
    margin-bottom: 6px;
    fill: #000000; /* Changed from #ff0055 to black */
}

.sr-spec-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sr-spec-value {
    font-size: 13px;
    font-weight: 500;
    color: #222;
}

/* Action buttons - ONLY WHATSAPP AND DETAILS */
.sr-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto; /* Push buttons to bottom */
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.sr-btn-whatsapp {
    flex: 1;
    background: #000000; /* Changed from #25D366 to black */
    color: white;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: block;
}

.sr-btn-whatsapp:hover {
    background: #333333; /* Darker black on hover */
    color:white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Changed from green shadow */
}

.sr-btn-details {
    flex: 1;
    border: 1px solid #222;
    color: #222;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: block;
}

.sr-btn-details:hover {
    background: #222;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* REMOVED: .sr-btn-rent styles */

/* LOADING STATES */
.sr-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #666;
}

.sr-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 16px;
    color: #666;
    margin: 20px 0;
}

/* LOAD MORE SECTION */
.sr-load-more-wrap {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    clear: both;
}

#sr-loadmore {
    background:black;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

#sr-loadmore:hover {
    background: #e0004a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 85, 0.2);
}

#sr-loadmore:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* LOADING SPINNER */
#sr-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 60px;
}

.sr-spinner-dot {
    width: 12px;
    height: 12px;
    background: #ff0055;
    border-radius: 50%;
    animation: spinner-bounce 1.4s infinite ease-in-out both;
}

.sr-spinner-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.sr-spinner-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes spinner-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* MOBILE FILTERS TOGGLE */
.sr-mobile-filters-toggle {
    display: none;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .sr-archive {
        grid-template-columns: 250px 1fr !important;
        gap: 25px !important;
    }
    
    .sr-card-image {
        width: 250px;
    }
    
    .sr-card-price {
        font-size: 24px;
    }
    
    .sr-price-amount {
        font-size: 28px;
    }
    
    .sr-card-title {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .sr-archive {
        grid-template-columns: 220px 1fr !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }
    
    .sr-card-image {
        width: 220px;
    }
    
    .sr-card-content {
        padding: 15px;
    }
    
    .sr-card-price {
        font-size: 22px;
    }
    
    .sr-price-amount {
        font-size: 26px;
    }
    
    .sr-card-title {
        font-size: 17px;
    }
    
    .sr-spec-value {
        font-size: 13px;
    }
    
    .sr-spec-label {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .sr-archive {
        grid-template-columns: 1fr !important;
        padding: 0 12px !important;
        gap: 15px !important;
        margin: 15px auto !important;
    }
    
    /* MOBILE CARD LAYOUT - STACKED WITH FULL HEIGHT IMAGE */
    .sr-card {
        flex-direction: column;
        min-height: auto; /* Remove min-height on mobile */
    }
    
    .sr-card-image {
        width: 100% !important;
        height: 220px; /* Fixed height for mobile */
        flex-shrink: 0;
    }
    
    .sr-card-image img {
        height: 100%;
        object-fit: cover; /* Maintain aspect ratio without cutting */
    }
    
    .sr-card-content {
        padding: 15px;
    }
    
    .sr-card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .sr-card-price-section {
        text-align: left;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .sr-card-price {
        font-size: 24px;
        margin-bottom: 0;
    }
    
    .sr-price-amount {
        font-size: 28px;
    }
    
    /* ACF Specs on mobile - 2 columns for each row */
    .sr-specs-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .sr-spec-item {
        padding: 0;
    }
    
    .sr-card-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    /* MOBILE FILTERS TOGGLE */
    .sr-mobile-filters-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        background: #ff0055;
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(255, 0, 85, 0.3);
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
        width: auto;
        min-width: 160px;
    }
    
    .sr-mobile-filters-toggle:before {
        content: '☰';
        font-size: 16px;
    }
    
    .sr-left-filters {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding: 70px 15px 30px;
        display: none;
        background: #fff;
        box-shadow: none;
        border: none;
    }
    
    .sr-left-filters.sr-mobile-visible {
        display: block;
        transform: translateX(0);
    }
    
    /* Mobile filter close button */
    .sr-mobile-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        z-index: 1001;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f0f0f0;
    }
    
    .sr-mobile-close:hover {
        background: #e0e0e0;
    }
    
    .sr-filter-list {
        max-height: none;
    }
    
    /* Mobile sort selector */
    .sr-mobile-sort {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        padding: 10px 12px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        font-size: 14px;
        color: #555;
        background: #fff;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 14px;
    }
    
    /* Hide desktop sort on mobile */
    #sr-sort {
        display: none;
    }
    
    /* Show mobile sort wrapper */
    .sr-mobile-sort-wrap {
        display: block;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .sr-archive {
        padding: 0 10px !important;
    }
    
    .sr-card-image {
        height: 200px;
    }
    
    .sr-card-content {
        padding: 12px;
    }
    
    .sr-card-title {
        font-size: 16px;
    }
    
    .sr-card-brand {
        font-size: 11px;
    }
    
    .sr-card-type {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .sr-card-price {
        font-size: 22px;
    }
    
    .sr-price-amount {
        font-size: 26px;
    }
    
    .sr-per {
        font-size: 14px;
    }
    
    .sr-spec-value {
        font-size: 12px;
    }
    
    .sr-spec-label {
        font-size: 9px;
    }
    
    .sr-spec-icon {
        width: 20px;
        height: 20px;
    }
    
    .sr-btn-whatsapp,
    .sr-btn-details {
        padding: 10px;
        font-size: 13px;
    }
    
    .sr-mobile-filters-toggle {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 140px;
        bottom: 15px;
    }
}

@media (max-width: 400px) {
    .sr-card-image {
        height: 180px;
    }
    
    .sr-card-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sr-specs-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

/* Mobile filter overlay */
.sr-mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sr-mobile-filter-overlay.active {
    display: block;
}

/* Apply filters button for mobile */
.sr-apply-filters {
    background: #ff0055;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    display: none;
}

@media (max-width: 768px) {
    .sr-apply-filters {
        display: block;
    }
}

/* Results count */
.sr-results-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sr-results-number {
    font-weight: 600;
    color: #ff0055;
}

/* No results state */
.sr-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.sr-no-results-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.sr-no-results-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.sr-no-results-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.sr-reset-filters-btn {
    background: #ff0055;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

/* Loading overlay */
.sr-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 10px;
}
/* FIX HORIZONTAL SCROLLING - MOBILE ONLY */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .sr-archive {
        overflow-x: hidden !important;
    }
    
    .sr-results-wrap {
        overflow-x: hidden !important;
    }
    
    /* Prevent any element from causing horizontal scroll */
    .elementor-section,
    .elementor-container,
    .elementor-column,
    .elementor-widget-wrap,
    .elementor-widget,
    .elementor-element {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Specifically fix car cards */
    .sr-card {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .sr-cars-list {
        overflow-x: hidden !important;
    }
}
/* ===========================================
/* ===========================================
   MOBILE FILTER TABS - TOP BAR (BELOW HEADER)*/



    
    .sr-mobile-tabs-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
    }
    
    .sr-mobile-tabs-inner::-webkit-scrollbar {
        display: none;
    }
    
    .sr-filter-tab {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: #f8f9fa;
        border: 1px solid #e0e0e0;
        border-radius: 20px;
        padding: 8px 14px;
        font-size: 13px;
        font-weight: 500;
        color: #333;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
        min-width: 70px;
        border: none;
        outline: none;
    }
    
    .sr-filter-tab:hover,
    .sr-filter-tab:focus {
        background: #e9ecef;
    }
    
    .sr-filter-tab.active {
        background: #000000;
        color: white;
        border-color: #000000;
    }
    
    .sr-filter-icon {
        font-size: 14px;
    }
    
    .sr-filter-text {
        font-size: 12px;
        font-weight: 500;
    }
    
    .sr-filter-tab-count {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        font-size: 10px;
        font-weight: 600;
        padding: 2px 6px;
        border-radius: 10px;
        min-width: 16px;
        text-align: center;
        display: none;
    }
    
    .sr-filter-tab.active .sr-filter-tab-count {
        display: inline-block;
        background: rgba(255, 255, 255, 0.3);
    }
    
    .sr-filter-tab:not(.active) .sr-filter-tab-count {
        background: #000000;
        color: white;
        display: inline-block;
    }
    
    /* HIDE DESKTOP FILTERS ON MOBILE */
    .sr-left-filters {
        display: none !important;
    }
    
    /* MOBILE FILTER PANEL */
    .sr-mobile-filter-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        background: #ffffff;
        display: block !important;
    }
    
    .sr-mobile-filter-panel.sr-mobile-visible {
        transform: translateX(0);
    }
    
    .sr-mobile-filter-header {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 15px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1001;
    }
    
    .sr-mobile-filter-title {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin: 0;
    }
    
    .sr-mobile-close {
        background: none;
        border: none;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        padding: 0;
        line-height: 1;
    }
    
    .sr-mobile-close:hover {
        background: #f0f0f0;
    }
    
    .sr-mobile-filter-content {
        padding: 20px 15px;
        height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Apply filters button */
    .sr-apply-filters {
        background: #000000;
        color: white;
        border: none;
        padding: 15px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        width: 100%;
        margin-top: 20px;
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1001;
    }
    
    /* Adjust archive layout */
    .sr-archive {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Body class when filters are open */
    body.sr-filters-open {
        overflow: hidden;
    }
}

/* ===========================================
   FIX ACF SPECS ICONS - 6 SPECS, 2 ROWS
   =========================================== */
.sr-acf-specs {
    margin-bottom: 20px;
    flex-grow: 1;
}

.sr-specs-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.sr-specs-row:last-child {
    margin-bottom: 0;
}

.sr-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 5px;
}

.sr-spec-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 6px;
    fill: #000000;
}

.sr-spec-value {
    font-size: 13px;
    font-weight: 500;
    color: #222;
}

@media (max-width: 768px) {
    .sr-specs-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .sr-spec-item {
        padding: 8px 5px;
        background: #f8f9fa;
        border-radius: 6px;
    }
    
    .sr-spec-icon {
        width: 16px;
        height: 16px;
    }
    
    .sr-spec-value {
        font-size: 12px;
    }
}
/* ===========================================
   FIX MOBILE FILTER TABS POSITIONING
   =========================================== */
@media (max-width: 768px) {
    /* Fix filter tabs position */
 
    
    /* Push main content down */
    .sr-archive {
        margin-top: 20px !important;
        padding-top: 0 !important;
    }
    
    /* Adjust first card spacing */
    .sr-cars-list {
        margin-top: 10px !important;
    }
    
    /* Make sure header has space */
    body:not(.admin-bar) .sr-mobile-filters-tabs {
        top: 10px !important;
    }
    
    body.admin-bar .sr-mobile-filters-tabs {
        top: 20px !important; /* Adjust if WordPress admin bar is visible */
    }
}
/* ===========================================
   FIX: HIDE MOBILE FILTERS ON DESKTOP
   =========================================== */

/* Show desktop filters, hide mobile tabs on desktop */
@media (min-width: 769px) {
    .sr-mobile-filters-tabs {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    
    .sr-mobile-filter-panel {
        display: none !important;
    }
    
    .sr-left-filters {
        display: block !important;
    }
}

/* Show mobile tabs, hide desktop filters on mobile */
@media (max-width: 768px) {
    .sr-mobile-filters-tabs {
        display: block !important;
    }
    
    .sr-left-filters {
        display: none !important;
    }
    
    .sr-mobile-filter-panel {
        display: block !important;
    }
}
/* ===========================DESIGN================
   PREMIUM MOBILE FILTER TABS - REDESINED BY ME
   =========================================== */
   
   /* ===========================================
   PREMIUM MOBILE FILTER TABS - SVG VERSION
   =========================================== */

/* Hide by default */
.sr-mobile-filters-tabs {
    display: none;
}

    
    /* Hide desktop sidebar on mobile */
    .sr-left-filters {
        display: none;
    }
    
    /* Tabs container */
    .sr-mobile-tabs-inner {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Filter header */
    .sr-filter-header {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-right: 12px;
        border-right: 1px solid #eee;
        margin-right: 5px;
        flex-shrink: 0;
        position: sticky;
    }
    
    .sr-filter-label {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        white-space: nowrap;
    }
    
    /* Filter tabs */
    .sr-filter-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: transparent;
        border: none;
        padding: 8px 10px;
        min-width: 70px;
        border-radius: 8px;
        cursor: pointer;
        flex-shrink: 0;
        position: relative;
        transition: all 0.2s ease;
    }
    
    .sr-filter-tab:hover {
        background: #f8f8f8;
    }
    
    .sr-filter-tab.active {
        background: #000000;
    }
    
    /* SVG icons */
    .sr-tab-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
    }
    
    .sr-filter-tab svg {
        width: 18px;
        height: 18px;
        transition: all 0.2s ease;
    }
    
    .sr-filter-tab:not(.active) svg {
        fill: #666;
    }
    
    .sr-filter-tab.active svg {
        fill: white;
    }
    
    /* Tab text */
    .sr-tab-text {
        font-size: 11px;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        transition: all 0.2s ease;
    }
    
    .sr-filter-tab:not(.active) .sr-tab-text {
        color: #666;
    }
    
    .sr-filter-tab.active .sr-tab-text {
        color: white;
        font-weight: 600;
    }
    
    /* Badge count */
    .sr-tab-count {
        position: absolute;
        top: 0;
        right: 0;
        background: #ff0055;
        color: white;
        font-size: 9px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        border: 2px solid white;
        transform: translate(25%, -25%);
    }
    
    .sr-filter-tab:not(.active) .sr-tab-count {
        background: #000000;
    }
    
    .sr-tab-count:not(:empty) {
        display: flex;
    }
    
    /* Adjust for admin bar */
    body.admin-bar .sr-mobile-filters-tabs {
        top: 46px;
    }


/* Desktop - hide mobile tabs */
@media (min-width: 769px) {
    .sr-mobile-filters-tabs {
        display: none;
    }
    
    .sr-left-filters {
        display: block;
    }
}
   /* FIX: Prevent mobile tabs from overlapping content */
@media (max-width: 768px) {
    .sr-mobile-filters-tabs {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: white !important;
        z-index: 999 !important;
        border-bottom: 1px solid #eee !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    
    }
    
    /* Add space below fixed tabs */
    .sr-archive {
        margin-top: 70px !important;
        padding-top: 20px !important;
    }
    
    /* Ensure car list starts below tabs */
    .sr-cars-list {
        margin-top: 0 !important;
    }
}

/* Adjust for admin bar */
@media (max-width: 768px) {
    body.admin-bar .sr-mobile-filters-tabs {
        top: 46px !important;
    }
    
    body.admin-bar .sr-archive {
        margin-top: 116px !important; /* 70 + 46 */
    }
}
/* ===========================================
   NEW MOBILE FILTER TABS DESIGN
/* ===========================================
   MINIMAL FIX FOR MOBILE FILTER TABS
/* ===========================================
   FIXED MOBILE FILTER TABS - ICONS BESIDE TEXT
/* ===========================================
   COMPLETE FIX FOR MOBILE FILTER TABS - ALL 3 ISSUES
   =========================================== */
@media (max-width: 768px) {
    /* 1. FIXED POSITIONING - Prevent scroll and overlap */
   
    
    /* 2. Hide filter tabs when filter panel is open */
    .sr-mobile-filter-panel.sr-mobile-visible ~ .sr-mobile-filters-tabs {
        display: none !important;
    }
    
    /* 3. Add body padding to prevent content overlap */
    body {
        padding-top: 60px !important;
        position: relative !important;
    }
    
    body.admin-bar {
        padding-top: 106px !important; /* 60 + 46 */
    }
    
    body.admin-bar .sr-mobile-filters-tabs {
        top: 46px !important;
    }
    
    /* 4. Fix scrollable tabs container */
    .sr-mobile-tabs-inner {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        padding: 0 15px !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        box-sizing: border-box !important;
    }
    
    .sr-mobile-tabs-inner::-webkit-scrollbar {
        display: none !important;
    }
    
    /* 5. Sticky filter header */
    .sr-filter-header {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding-right: 10px !important;
        border-right: 1px solid #e0e0e0 !important;
        margin-right: 5px !important;
        flex-shrink: 0 !important;
        position: sticky !important;
        left: 0 !important;
        background: white !important;
        z-index: 2 !important;
        height: 36px !important;
    }
    
    .sr-filter-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }
    
    .sr-filter-icon svg {
        width: 100% !important;
        height: 100% !important;
        fill: #000000 !important;
    }
    
    .sr-filter-label {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #000000 !important;
        white-space: nowrap !important;
    }
    
    /* 6. FIXED TAB STYLING - No more cut badges */
    .sr-filter-tab {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        background: #f8f9fa !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 20px !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #000000 !important;
        white-space: nowrap !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        position: relative !important;
        margin: 0 !important;
        line-height: 1 !important;
        height: 36px !important;
        box-sizing: border-box !important;
        min-width: auto !important;
    }
    
    /* 7. Tab content - icon beside text */
    .sr-tab-icon {
        display: none !important; /* Hide SVG icons in tabs - using text only */
    }
    
    .sr-tab-text {
        font-size: 11px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .sr-dropdown-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 12px !important;
        height: 12px !important;
        flex-shrink: 0 !important;
        margin-left: 2px !important;
    }
    
    .sr-dropdown-icon svg {
        width: 100% !important;
        height: 100% !important;
        fill: currentColor !important;
    }
    
    /* 8. Active tab */
    .sr-filter-tab.active {
        background: #000000 !important;
        color: white !important;
        border-color: #000000 !important;
    }
    
    /* 9. FIXED BADGE POSITIONING - No more cut badges */
    .sr-tab-count {
        position: absolute !important;
        top: -5px !important;
        right: -2px !important;
        background: #ff0055 !important;
        color: white !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        min-width: 14px !important;
        height: 14px !important;
        border-radius: 7px !important;
        display: none !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 3px !important;
        border: 1px solid white !important;
        z-index: 10 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    /* Make badge visible outside tab boundaries */
    .sr-filter-tab {
        overflow: visible !important;
    }
    
    .sr-filter-tab:not(.active) .sr-tab-count {
        background: #000000 !important;
    }
    
    .sr-tab-count:not(:empty) {
        display: flex !important;
    }
    
    /* 10. Adjust archive margin */
    .sr-archive {
        margin-top: 0 !important;
        padding-top: 10px !important;
    }
    
    /* 11. Hide desktop filters completely on mobile */
    .sr-left-filters {
        display: none !important;
    }
}

/* ===========================================
   FIX FOR FILTER PANEL - Hide tabs when panel is open
   =========================================== */
@media (max-width: 768px) {
    /* Hide tabs when filter panel is visible */
    body.sr-filters-open .sr-mobile-filters-tabs {
        display: none !important;
    }
    
    /* Ensure panel is above everything */
    .sr-mobile-filter-panel {
        z-index: 9999 !important;
    }
    
    /* Prevent body scroll when panel is open */
    body.sr-filters-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* ===========================================
   FIX FOR FILTER TAB BAR SCROLLING ISSUE ONLY

/* ===========================================
   ALTERNATIVE: Make filter bar NOT fixed (scrolls with content)
   =========================================== */
@media (max-width: 768px) {
    /* Option 1: Static positioning (scrolls with page) */
    .sr-mobile-filters-tabs {
        position: sticky !important;
        top: 40px !important; /* Stick below header when scrolling */
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
        background: white !important;
        z-index: 999 !important;
        border-bottom: 1px solid #eee !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Adjust for admin bar */
    body.admin-bar .sr-mobile-filters-tabs {
        top: 86px !important; /* 80px + 46px admin bar */
    }
    
    /* Remove body padding since it's sticky now */
    body {
        padding-top: 0 !important;
    }
    
    /* Add margin to first element after header */
    .sr-archive {
        margin-top: 0 !important;
    }
    
    /* Add space for the sticky filter bar */
    .sr-cars-list {
        padding-top: 10px !important;
    }
}
