
/* ===== MAIN CONTAINER ===== */
    .quick-search-container {
        padding-top: 175px;
        min-height: 100vh;
    }
    
    /* ===== SEARCH HERO SECTION ===== */
    .search-hero {
        border-radius: 20px;
        padding: 40px 50px 30px;
        margin-bottom: 30px;
        box-shadow: 0 20px 60px rgba(32, 172, 165, 0.25);
        position: relative;
        overflow: hidden;
    }
    
    .search-hero::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
        background-size: 30px 30px;
        opacity: 0.3;
        z-index: 1;
    }
    
    .hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
    }
    
    /* ===== SEARCH BAR WITH FILTERS CONTAINER ===== */
    .search-filter-container {
        background: white;
        border-radius: 16px;
        padding: 30px;
        box-shadow: 0 15px 50px rgba(0,0,0,0.1);
        margin-bottom: 30px;
        position: relative;
        z-index: 2;
    }
    
    /* Title Styling */
    .hero-title {
        margin-bottom: 25px;
    }
    
    .hero-title h1 {
        font-size: 48px;
        color: white;
        margin-bottom: 10px;
        font-weight: 800;
        text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .hero-title p {
        color: rgba(255,255,255,0.9);
        font-size: 18px;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }
    
    /* ===== ENHANCED SEARCH BOX ===== */
    .search-input-container {
        position: relative;
        margin-bottom: 30px;
    }
    
    .search-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: inherit;
}

    .search-icon {
        position: absolute;
        left: 20px;
        color: #30aca5;
        font-size: 20px;
        z-index: 2;
    }
    
    .enhanced-search-input {
        width: 100%;
        height: 65px;
        border: none;
        border-radius: 12px;
        padding: 0 70px 0 55px;
        font-size: 17px;
        color: #333;
        background: #f8f9fa;
        transition: all 0.3s ease;
        box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .enhanced-search-input:focus {
        outline: none;
        background: white;
        box-shadow: inset 0 2px 15px rgba(48, 172, 165, 0.2), 0 5px 20px rgba(48, 172, 165, 0.15);
    }
    
    .enhanced-search-button {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background-color: #30aca5;
        color: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        box-shadow: 0 5px 15px rgba(48, 172, 165, 0.3);
    }
    
    .enhanced-search-button:hover {
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 7px 20px rgba(48, 172, 165, 0.4);
    }
    
    /* ===== FILTERS SECTION - SINGLE LINE LAYOUT ===== */
    .filters-section-inline {
        margin-top: 30px;
    }
    
    /* Filter Row Container */
    .filter-row-container {
        width: 100%;
        margin-bottom: 25px;
    }
    
    /* Filter Category Title - ABOVE the filters */
    .filter-category-title {
        font-size: 18px;
        color: #333;
        margin-bottom: 25px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
       
    }
    
    .filter-category-title i {
        color: #30aca5;
        font-size: 18px;
    }
    
    
    /* Filter Content Container - REMOVED background and padding */
    .filter-content-container {
        width: 100%;
        position: relative;
    }
    
    /* Filter Tags Scrollable Container - DRAGGABLE */
    .filter-tags-scroll {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-behavior: smooth;
        flex-wrap: nowrap;
        width: 100%;
        padding: 15px 5px;
        cursor: grab;
        user-select: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-tags-scroll:active {
        cursor: grabbing;
    }
    
    .filter-tags-scroll::-webkit-scrollbar {
        height: 6px;
    }
    
    .filter-tags-scroll::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .filter-tags-scroll::-webkit-scrollbar-thumb {
        background: #30aca5;
        border-radius: 10px;
    }
    
    .filter-tags-scroll::-webkit-scrollbar-thumb:hover {
        background: #1e7d77;
    }
    
    /* Enhanced Filter Tags */
    .enhanced-filter-tag {
        background: white;
        border: 2px solid #e8f0fe;
        border-radius: 25px;
        padding: 10px 22px;
        font-size: 15px;
        color: #555;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: 500;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .enhanced-filter-tag:hover {
        background: linear-gradient(135deg, #30aca5 0%, #1e7d77 100%);
        color: white;
        border-color: #30aca5;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(48, 172, 165, 0.3);
    }
    
    .enhanced-filter-tag.active {
        background: linear-gradient(135deg, #30aca5 0%, #1e7d77 100%);
        color: white;
        border-color: #30aca5;
        box-shadow: 0 6px 20px rgba(48, 172, 165, 0.3);
    }
    
    /* Hide scroll buttons since we're using drag */
    .scroll-nav-btn {
        display: none;
    }
    
    /* ===== QUERY DISPLAY ===== */
    .query-display-enhanced {
        display: none !important;

        text-align: center;
        margin: 20px 0;
        font-size: 16px;
        color: #666;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 10px;
        border-left: 4px solid #30aca5;
        }
    
    .query-display-enhanced strong {
        color: #D01818;
    }
    
    /* ===== RESULTS SECTION ===== */
    .results-section-enhanced {
        margin-top: 40px;
        animation: fadeIn 0.5s ease;
        display: none;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .results-header-enhanced {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding: 25px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.06);
        border: 1px solid #eef2f7;
    }
    
    .results-count-enhanced {
        color: #444;
        font-size: 18px;
        font-weight: 600;
    }
    
    .results-count-enhanced strong {
        color: #D01818;
        font-weight: 700;
    }
    
    .clear-search-enhanced {
        color: white;
        text-decoration: none;
        font-size: 15px;
        cursor: pointer;
        padding: 12px 25px;
        border-radius: 10px;
        background: linear-gradient(135deg, #30aca5 0%, #1e7d77 100%);
        border: none;
        transition: all 0.3s ease;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 5px 15px rgba(48, 172, 165, 0.3);
    }
    
    .clear-search-enhanced:hover {
        background: linear-gradient(135deg, #D01818 0%, #b31515 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(208, 24, 24, 0.3);
        text-decoration: none;
        color: white;
    }
    
    /* ===== LOADING STATE ===== */
    .loading-enhanced {
        display: none;
        text-align: center;
        padding: 60px 20px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        margin: 20px 0;
    }
    
    .loading-spinner-enhanced {
        width: 60px;
        height: 60px;
        margin: 0 auto 20px;
        border: 4px solid #f3f3f3;
        border-top: 4px solid #30aca5;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        position: relative;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* ===== INITIAL STATE ===== */
    .initial-state-enhanced {
        text-align: center;
        padding: 80px 20px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        margin: 20px 0;
        display: block;
    }
    
    .car-illustration {
        font-size: 80px;
        margin-bottom: 25px;
        background: linear-gradient(135deg, #30aca5, #D01818);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .initial-state-enhanced h3 {
        color: #333;
        margin-bottom: 15px;
        font-size: 28px;
        font-weight: 700;
    }
    
    .initial-state-enhanced p {
        color: #666;
        font-size: 16px;
        margin-bottom: 30px;
        line-height: 1.6;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .browse-all-btn {
        background: linear-gradient(135deg, #30aca5 0%, #1e7d77 100%);
        color: white;
        border: none;
        padding: 15px 35px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 5px 15px rgba(48, 172, 165, 0.3);
    }
    
    .browse-all-btn:hover {
        background: linear-gradient(135deg, #D01818 0%, #b31515 100%);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(208, 24, 24, 0.3);
    }
    
    /* ===== SEARCH RESULTS GRID ===== */
    .search-results-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
        margin-bottom: 40px;
    }
    
    /* ===== CAR CARD STYLING (PRESERVED) ===== */
    .car-card {
        border-radius: 10px;
        overflow: hidden;
        background-color: white;
        box-shadow: 0px 6px 27px 0px rgba(0, 0, 0, 0.07);
        border: 1px solid #E9E9E9;
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .car-card:hover {
        transform: translateY(-5px);
        box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    .car-image {
        position: relative;
        overflow: hidden;
        height: 180px;
        background: #f5f5f5;
        cursor: pointer;
    }
    
    .car-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .car-card:hover .car-image img {
        transform: scale(1.05);
    }
    
    .condition-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background: #D01818;
        color: white;
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
        text-transform: uppercase;
        z-index: 1;
    }
    
    .car-details {
        padding: 16px 20px 20px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .car-title {
        font-size: 18px;
        font-weight: 700;
        color: #0D1637;
        margin-bottom: 15px;
        line-height: 1.3;
        min-height: 46px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .car-specs {
        padding: 0;
        margin-bottom: 15px;
    }
    
    .car-specs ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .car-specs ul li {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
        flex: 1;
        padding: 0 5px;
    }
    
    .car-specs ul li i {
        color: #000000;
        font-size: 20px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 24px;
    }
    
    .spec-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .spec-inner span {
        font-size: 11px;
        font-weight: 400;
        color: #86898E;
        line-height: 14px;
        margin-bottom: 2px;
        text-transform: uppercase;
        white-space: nowrap;
    }
    
    .spec-inner p {
        font-size: 13px;
        font-weight: 600;
        color: #000000;
        line-height: 16px;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .car-price {
        font-size: 20px;
        font-weight: 700;
        color: #D01818;
        margin: 10px 0 15px;
        text-align: center;
    }
    
    .view-details-btn {
        background: #30aca5;
        color: white;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 10px 15px;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        display: block;
        width: 100%;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .view-details-btn:hover {
        background: #258a84;
        color: white;
        border-color: #30aca5;
        transform: translateY(-2px);
    }
    
    .car-actions {
        display: flex;
        gap: 8px;
        margin-top: auto;
        min-height: 38px;
    }
    
    .car-actions > * {
        flex: 1;
        min-width: 0;
    }
    
    .enquire-btn, .whatsapp-btn, .finance-btn {
        padding: 10px 12px;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        border: none;
        transition: all 0.3s ease;
        flex: 1;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        height: 38px;
    }
    
    .enquire-btn {
        background: #4c5550;
        color: white;
    }
    
    .enquire-btn:hover {
        background: #72757a;
        color: white;
        transform: translateY(-2px);
    }
    
    .whatsapp-btn {
        background: #25D366;
        color: white;
        font-size: 0;
        padding: 0;
    }
    
    .whatsapp-btn i {
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    
    .whatsapp-btn:hover {
        background: #128C7E;
        transform: translateY(-2px);
    }
    
    .finance-btn {
        background: #30aca5;
        color: white;
        border: 1px solid #ddd;
    }
    
    .finance-btn:hover {
        background: #258a84;
        color: white;
        border-color: #ccc;
        transform: translateY(-2px);
    }
    
    /* ===== EMPTY STATE ===== */
    .empty-state-enhanced {
        grid-column: 1/-1;
        text-align: center;
        padding: 80px 20px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
    
    .empty-state-enhanced .car-illustration {
        font-size: 70px;
    }
    
    .empty-state-enhanced h3 {
        color: #333;
        margin-bottom: 15px;
        font-size: 24px;
    }
    
    .empty-state-enhanced p {
        color: #666;
        font-size: 16px;
        margin-bottom: 25px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .try-again-btn-enhanced {
        background: linear-gradient(135deg, #30aca5 0%, #1e7d77 100%);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 15px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    
    .try-again-btn-enhanced:hover {
        background: linear-gradient(135deg, #D01818 0%, #b31515 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(208, 24, 24, 0.3);
    }
    
    /* ===== LISTING SECTION ===== */
    .listing-section-enhanced {
        background: white;
        padding: 40px 0;
        margin-top: 0;
        display: none;
    }
    
    .listing-container-enhanced {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .listing-header-enhanced {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
    
    .listing-header-enhanced h2 {
        font-size: 24px;
        color: #333;
        margin: 0;
    }
    
    .listing-count-enhanced {
        color: #666;
        font-size: 14px;
    }
    
    .listing-grid-enhanced {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
        margin-bottom: 40px;
    }
    
    /* ===== RESPONSIVE DESIGN ===== */
    @media (max-width: 1200px) {
        .filter-row-container {
            gap: 20px;
        }
    }
    
    @media (max-width: 992px) {
        .search-hero {
            padding: 35px 30px 25px;
        }
        
        .hero-title h1 {
            font-size: 36px;
        }
        
        .search-filter-container {
            padding: 25px;
        }
        
        .enhanced-search-input {
            height: 60px;
            font-size: 16px;
        }
        
        .enhanced-filter-tag {
            padding: 9px 20px;
            font-size: 14px;
        }
    }
    
    @media (max-width: 768px) {
        .quick-search-container {
            padding: 100px 0 30px;
        }
        
        .search-hero {
            padding: 30px 20px 20px;
            border-radius: 15px;
            margin-bottom: 20px;
        }
        
        .hero-title h1 {
            font-size: 28px;
        }
        
        .hero-title p {
            font-size: 16px;
        }
        
        .search-filter-container {
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .enhanced-search-input {
            height: 55px;
            padding: 0 60px 0 50px;
            font-size: 15px;
        }
        
        .search-icon {
            left: 15px;
            font-size: 18px;
        }
        
        .enhanced-search-button {
            width: 45px;
            height: 45px;
        }
        
        .filter-category-title {
            font-size: 16px;
        }
        
        .enhanced-filter-tag {
            padding: 8px 18px;
            font-size: 13px;
        }
        
        .results-header-enhanced {
            flex-direction: column;
            gap: 20px;
            text-align: center;
            padding: 20px;
        }
        
        .clear-search-enhanced {
            width: 100%;
            justify-content: center;
        }
        
        .search-results-grid {
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 20px;
        }
        
        .car-actions {
            gap: 6px;
        }
        
        .enquire-btn, .whatsapp-btn, .finance-btn, .view-details-btn {
            font-size: 12px;
            padding: 9px 8px;
            height: 36px;
        }
    }
    
    @media (max-width: 576px) {
        .search-hero {
            padding: 25px 15px 15px;
        }
        
        .hero-title h1 {
            font-size: 24px;
        }
        
        .enhanced-filter-tag {
            padding: 7px 16px;
            font-size: 12px;
        }
        
        .filter-category-title {
            font-size: 15px;
        }
        
        .search-results-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }
        
        .car-actions {
            gap: 5px;
        }
        
        .enquire-btn, .whatsapp-btn, .finance-btn {
            font-size: 11px;
            padding: 8px 6px;
            height: 34px;
            letter-spacing: 0.02em;
        }
        
        .view-details-btn {
            height: 34px;
            font-size: 11px;
            padding: 8px 6px;
        }
        
        .car-price {
            font-size: 18px;
        }
        
        .car-title {
            font-size: 16px;
            min-height: 40px;
        }
    }