<main class="css-1f7uoeb eyxgv8w0" data-testid="">
    <div class="css-0" data-testid="announcement-bar">
    </div>
    

    <style>
        .css-1mqvim4 {
            width: 100%;
            z-index: 100;
            position: fixed;
            left: 0px;
            top: 0px;
            will-change: transform;
            transition: transform 0.2s linear;
            border-top: 1px solid rgb(215, 225, 239);
        }
        .css-1gxooyo {
            position: relative;
            z-index: 1;
            padding: 0.8rem 0px 0.8rem 1.6rem;
            background-color: rgb(255, 255, 255);
            border-bottom: 1px solid rgb(215, 225, 239);
        }
        @media (max-width: 991px) {
            .css-1gxooyo {
                transition: border 0.2s;
            }
        }

        @media (min-width: 768px) {
            .css-1mqvim4 {
                display: none;
            }
        }
        .css-qyhzsh {
            display: -webkit-box;
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            -webkit-flex-direction: column;
            -ms-flex-direction: column;
            flex-direction: column;
        }
        .css-18jo1cl {
            display: -webkit-box;
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            width: auto;
        }
        .css-tgpajw {
            display: -webkit-box;
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            -webkit-flex-direction: column;
            -ms-flex-direction: column;
            flex-direction: column;
            gap: 0.5rem;
            width: 100%;
        }
        .css-1bsy9v7 {
            display: inline-flex;
            width: 100%;
        }
        .css-1a1h6i5 {
            width: 100%;
        }
        .css-1q7b0pd {
            display: flex;
            flex-wrap: nowrap;
            flex: 1 1 auto;
            width: 100%;
            visibility: visible;
        }
        .css-132sicw {
            display: inline-flex;
            appearance: none;
            -webkit-box-align: center;
            align-items: center;
            -webkit-box-pack: center;
            justify-content: center;
            user-select: none;
            position: relative;
            white-space: nowrap;
            vertical-align: middle;
            outline: transparent solid 2px;
            outline-offset: 2px;
            border-radius: var(--chakra-radii-base);
            font-weight: var(--chakra-fontWeights-semibold);
            transition: none;
            height: var(--chakra-sizes-8);
            min-width: var(--chakra-sizes-8);
            padding-inline-start: var(--chakra-space-3);
            padding-inline-end: var(--chakra-space-3);
            background-image: linear-gradient(to right, var(--chakra-colors-blue-500), var(--chakra-colors-blue-700));
            color: var(--chakra-colors-white);
            box-shadow: var(--chakra-shadows-accent-bottom-md);
            align-self: center;
            padding: 0px 1.2rem;
            margin: 0.3rem 0.8rem 0.3rem 0rem;
            font-size: 1.4rem;
            line-height: 1.6rem;
            flex-shrink: 0;
        }
        .css-1a1h6i5 .swiper {
            width: auto;
            margin-left: var(--chakra-space-0);
        }

        .swiper-horizontal {
            touch-action: pan-y;
        }
        .swiper {
            margin-left: auto;
            margin-right: auto;
            position: relative;
            overflow: hidden;
            list-style: none;
            padding: 0;
            z-index: 1;
            display: block;
        }
        .css-1tdxxk7 {
            margin-bottom: 3.2rem;
        }
    </style>

    <div class="css-1mqvim4 e1g32p7t1" style="transform: translateY(64px);">
        <div id="active-filters" class="css-1gxooyo e1g32p7t2">
            <div class="css-qyhzsh e1g32p7t3">
                <div class="css-18jo1cl">
                    <div class="css-1bjvy2c">
                        <p class="css-1cmpz0s e1iaf3nh0"></p>
                        <div class="css-1guylju"></div>
                    </div>
                </div>
                <div class="chakra-stack css-tgpajw">
                    <div class="css-1bsy9v7">
                        <div class="css-1a1h6i5">
                            <div class="css-1q7b0pd e1g32p7t4">
                                <button type="button" class="chakra-button css-132sicw" id="filter-btn">
                                    <span class="chakra-button__icon css-17y1tdh">
                                        <svg viewBox="0 0 16 16" aria-hidden="true" focusable="false" data-icon-id="sliders16" class="css-gdat5j">
                                            <use href="/_next/static/media/Sliders16.b0056910.svg#icon"></use>
                                        </svg>
                                    </span>
                                    Filter
                                </button>
                                <div class="swiper swiper-initialized swiper-horizontal">
                                    <div class="swiper-wrapper" style="transition-duration: 0ms; transition-delay: 0ms;"></div>
                                </div>
                                <div class="css-1tdxxk7"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <style data-emotion="css gs6l9g">
        .css-gs6l9g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-align-items:start;-webkit-box-align:start;-ms-flex-align:start;align-items:start;margin:5.4rem 0 0;width:auto;}@media screen and (min-width: 1200px){.css-gs6l9g{margin:var(--chakra-space-0);}}@media screen and (min-width: 1400px){.css-gs6l9g{margin:auto;width:136.8rem;}}
    </style>
    <div class="css-gs6l9g">
        <style data-emotion="css vchsvd">
            .css-vchsvd{position:fixed;top:var(--chakra-space-0);left:var(--chakra-space-0);width:100vw;height:100vh;background-color:rgba(31, 43, 89, 0.5);display:none;z-index:106;}@media screen and (min-width: 1200px){.css-vchsvd{display:none;}}
        </style>
        <div class="css-vchsvd">
        </div>


        <style data-emotion="css 1yrmv8u">
            .css-1yrmv8u{background:#EDF1F8;}@media (max-width:1199px){.css-1yrmv8u{position:fixed;top:0;left:-100%;width:100%;z-index:106;-webkit-transition:left 0.2s ease;transition:left 0.2s ease;max-width:375px;height:100%;overflow-y:scroll;}}@media (max-width:421px){.css-1yrmv8u{min-width:100vw;}}@media (min-width:1200px){.css-1yrmv8u{min-width:280px;max-width:280px;}}@media (min-width:1400px){.css-1yrmv8u{min-width:312px;max-width:312px;margin-top:3.2rem;}}
        </style>
        <div class="css-1yrmv8u e12aw6cx0">
            <style data-emotion="css fknjl4">
                .css-fknjl4{position:relative;background-color:#ffffff;box-shadow:0px 4px 16px rgba(72,88,133,0.12);min-height:100%;}@media (min-width:1400px){.css-fknjl4{border-radius:0.8rem;border:1px solid #D7E1EF;}}
            </style>
            <div class="css-fknjl4 e12aw6cx1">
                <style data-emotion="css ifh247">
                    .css-ifh247{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;border-bottom:1px solid #D7E1EF;position:-webkit-sticky;position:sticky;top:var(--chakra-space-0);overflow:hidden;z-index:20;background:#ffffff;box-shadow:0px 8px 16px rgba(72, 88, 133, 0.12);border-top-left-radius:0.8rem;border-top-right-radius:0.8rem;}@media screen and (min-width: 1200px){.css-ifh247{top:unset;}}
                </style>
                <div class="css-ifh247" id="active-filters-sidebar-id">
                    <style data-emotion="css rla1tp">
                        .css-rla1tp{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0.8rem 0.6rem 0.8rem 1.6rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;}@media screen and (min-width: 1200px){.css-rla1tp{padding:0.8rem 0.4rem 0 1.6rem;}}
                    </style>
                    <div class="css-rla1tp">
                        <style data-emotion="css oguws3">
                            .css-oguws3{font-family:EuclidCircularB,sans-serif;font-style:normal;margin:var(--chakra-space-0);font-weight:800;font-size:2rem;line-height:2.8rem;letter-spacing:-0.02rem;color:#1F2B59;padding-top:1rem;padding-bottom:1rem;}@media screen and (min-width: 992px){.css-oguws3{line-height:3.6rem;letter-spacing:-0.05rem;}}
                        </style>
                        <h4 class="chakra-heading css-oguws3" role="heading">
                            Filter
                        </h4>
                    </div>
                </div>


                <div class="css-j7qwjs">
                    <div class="css-0">

                        <form wire:submit.prevent="detailedSearch" role="form">
                            <div class="form-group mt-2 px-4 py-2">
                                <label class="fs-5 fw-bold">Make</label>
                                <select class="form-select form-control p-4" wire:model="make">
                                    <option value="">Select</option>
                                    @foreach($allMake as $make)
                                        <option value="{{ $make->id }}">{{ $make->name }}</option>
                                    @endforeach
                                </select>
                            </div>
                            <div class="form-group px-4 py-2">
                                <label class="fs-5 fw-bold">Price($)</label>
                                <select class="form-select form-control p-4" wire:model.lazy="price">
                                    <option value="">Select</option>
                                    <option value="5000">1,000 - 5,000 USD</option>
                                    <option value="15000">5,000 - 15,0000 USD</option>
                                    <option value="50000">15,000 - 50,0000 USD</option>
                                    <option value="1000000">50,0000 USD - above</option>
                                </select>
                            </div>
                            <div class="form-group px-4 py-2">
                                <label class="fs-5 fw-bold">Transmission</label>
                                <select class="form-select form-control p-4" wire:model.lazy="transmission">
                                    <option value="">Select</option>
                                    <option value="automatic">Automatic</option>
                                    <option value="manual">Manual</option>
                                </select>
                            </div>
                            <div class="form-group px-4 py-2 mb-5">
                                <label class="fs-5 fw-bold">Fuel</label>
                                <select class="form-select form-control p-4" wire:model.lazy="fuel">
                                    <option value="">Select</option>
                                    <option value="petrol">Petrol</option>
                                    <option value="diesel">Diesel</option>
                                    <option value="electric">Electric</option>
                                    <option value="hybrid">Hybrid</option>
                                </select>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        
        <style data-emotion="css 15v40cj">
            .css-15v40cj{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding:2.4rem 1.6rem;overflow:hidden;}@media screen and (min-width: 768px){.css-15v40cj{padding:4rem 2rem;}}@media screen and (min-width: 1400px){.css-15v40cj{padding:3.2rem 0 3.2rem 3.2rem;}}
        </style>
        <div class="css-15v40cj">
            <style data-emotion="css 1y4w3v9">
                .css-1y4w3v9{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;}@media screen and (min-width: 768px){.css-1y4w3v9{max-width:101.2rem;}}@media screen and (min-width: 992px){.css-1y4w3v9{max-width:100%;}}
            </style>

            <div class="css-1y4w3v9">

                <div class="css-0">
                    <style data-emotion="css qxgxwk">
                        .css-qxgxwk{width:100%;margin-bottom:2.4rem;position:relative;box-shadow:0px 4px 16px rgba(72, 88, 133, 0.12);background:#ffffff;border-radius:0.8rem;-webkit-transition:box-shadow 0.1s ease;transition:box-shadow 0.1s ease;display:block;}.css-qxgxwk:hover,.css-qxgxwk[data-hover]{box-shadow:0px 8px 16px rgba(72, 88, 133, 0.16);}
                    </style>


                    <div class="css-qxgxwk">
                        <style data-emotion="css 1ib98kk">
                            .css-1ib98kk{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:5.6rem;width:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;}
                        </style>
                        <div class="css-1ib98kk">
                            <style data-emotion="css 2th0lb">
                                .css-2th0lb{margin-right:0.8rem;height:5.6rem;border-radius:0.8rem 0 0 0.8rem;overflow:hidden;}
                            </style>
                            <div class="css-2th0lb">
                                <img alt="Banner Collapsed" data-nimg="1" decoding="async" height="56" loading="lazy" src="{{ asset('assets/images/banner_collapsed.webp') }}" style="color:transparent" width="84"/>
                            </div>
                            <style data-emotion="css 6em8ov">
                                .css-6em8ov{font-size:1.4rem;font-weight:700;line-height:2rem;letter-spacing:-0.02rem;max-width:55%;}@media screen and (min-width: 768px){.css-6em8ov{font-size:1.6rem;line-height:2.4rem;}}
                            </style>
                            <div class="css-6em8ov">
                                How to buy a car online
                            </div>
                        </div>
                        <style data-emotion="css 17bfqw5">
                            .css-17bfqw5{position:absolute;top:0.8rem;right:1.2rem;}@media screen and (min-width: 421px){.css-17bfqw5{right:1.6rem;}}
                        </style>
                        <div class="css-17bfqw5">
                            <style data-emotion="css vurrro">
                                .css-vurrro{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;white-space:nowrap;z-index:1;height:4rem;}
                            </style>
                            <div class="css-vurrro">
                                <button class="chakra-button css-fa6903" role="group" type="button">
                                    <style data-emotion="css ldchtt">
                                        .css-ldchtt{display:none;}@media screen and (min-width: 640px){.css-ldchtt{display:block;}}
                                    </style>
                                    <div class="css-ldchtt">
                                        Find out more
                                    </div>
                                    <style data-emotion="css e7cq1y">
                                        .css-e7cq1y{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-margin-start:var(--chakra-space-0);margin-inline-start:var(--chakra-space-0);}@media screen and (min-width: 640px){.css-e7cq1y{-webkit-margin-start:var(--chakra-space-4);margin-inline-start:var(--chakra-space-4);}}
                                    </style>
                                    <span class="chakra-button__icon css-e7cq1y">
                                        <style data-emotion="css 1kzkxk2">
                                            .css-1kzkxk2{width:1em;height:1em;display:inline-block;line-height:1em;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;color:#3E47DD;vertical-align:middle;}[role=group]:hover .css-1kzkxk2,[role=group][data-hover] .css-1kzkxk2,[data-group]:hover .css-1kzkxk2,[data-group][data-hover] .css-1kzkxk2,.group:hover .css-1kzkxk2,.group[data-hover] .css-1kzkxk2{color:#3E27C4;}
                                        </style>
                                        <svg aria-hidden="true" class="chakra-icon css-1kzkxk2" focusable="false" viewbox="0 0 16 16">
                                            <path clip-rule="evenodd" d="M1.29289 4.29289C1.68342 3.90237 2.31658 3.90237 2.70711 4.29289L8 9.58579L13.2929 4.29289C13.6834 3.90237 14.3166 3.90237 14.7071 4.29289C15.0976 4.68342 15.0976 5.31658 14.7071 5.70711L8.70711 11.7071C8.31658 12.0976 7.68342 12.0976 7.29289 11.7071L1.29289 5.70711C0.902369 5.31658 0.902369 4.68342 1.29289 4.29289Z" fill="currentColor" fill-rule="evenodd">
                                            </path>
                                        </svg>
                                    </span>
                                </button>
                            </div>
                        </div>
                    </div>

                    <div class="row p-2 mb-4">
                        <span class="fw-bold mx-3">{{ $carCount }} result{{ $carCount == 1 ? '' : 's' }}</span>
                    </div>
                </div>

                <style data-emotion="css 1l6amd2">
                    .css-1l6amd2{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex-wrap:wrap;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;gap:1.6rem;}
                </style>
                <div class="css-1l6amd2" data-testid="page.search_car.result_list">
                    <style data-emotion="css 5kv5sp">
                        .css-5kv5sp{width:100%;-webkit-order:1;-ms-flex-order:1;order:1;}@media screen and (min-width: 768px){.css-5kv5sp{width:calc(50% - 0.8rem);}}@media screen and (min-width: 992px){.css-5kv5sp{width:100%;}}
                    </style>

                    <!-- car div to loop -->
                    @foreach ($cars as $car)
                        <div class="css-5kv5sp" data-testid="feature.car.card">
                            <style data-emotion="css 2acrqc">
                                .css-2acrqc{position:relative;box-shadow:0px 4px 8px rgba(72, 88, 133, 0.08);-webkit-transition:box-shadow 250ms ease;transition:box-shadow 250ms ease;border-radius:0.8rem;background:var(--chakra-colors-white);color:var(--chakra-colors-gray-800);}.css-2acrqc:hover,.css-2acrqc[data-hover]{box-shadow:0px 8px 16px rgba(72, 88, 133, 0.16);}
                            </style>
                            <div class="css-2acrqc" role="group">
                                <style data-emotion="css 1ux7p7m">
                                    .css-1ux7p7m{-webkit-text-decoration:none;text-decoration:none;width:100%;margin-bottom:2.4rem;}@media screen and (min-width: 768px){.css-1ux7p7m{width:calc(50% - 0.8rem);margin-bottom:1.6rem;}}@media screen and (min-width: 992px){.css-1ux7p7m{width:100%;}}
                                </style>
                                <a class="gtm-element-visibility-impressions-list css-1ux7p7m" href="{{ route('car-detail', $car->id) }}">
                                    <style data-emotion="css wf7tda">
                                        @media screen and (min-width: 992px){.css-wf7tda{display:grid;grid-template-columns:27.7rem minmax(27.7rem, 1fr);grid-template-rows:minmax(20.8rem, 1fr);}}
                                    </style>
                                    <div class="css-wf7tda">
                                        <style data-emotion="css 178hvjl">
                                            .css-178hvjl{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--chakra-space-4);-webkit-align-self:flex-start;-ms-flex-item-align:flex-start;align-self:flex-start;}
                                        </style>
                                        <div class="chakra-stack css-178hvjl">
                                            <div class="css-79elbk">
                                                <style data-emotion="css 1wj7m3u">
                                                    .css-1wj7m3u{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;aspect-ratio:1.3333333333333333;overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:0.6rem 0.6rem 0 0;}@media screen and (min-width: 992px){.css-1wj7m3u{border-radius:0.6rem 0 0 0.6rem;}}.css-1wj7m3u:hover [role=button],.css-1wj7m3u[data-hover] [role=button]{opacity:1;}.css-1wj7m3u [role=button]{opacity:0;}
                                                </style>
                                                <div class="chakra-carousel css-1wj7m3u">
                                                    <style data-emotion="css 1mxdn2f">
                                                        .css-1mxdn2f{position:relative;overflow:hidden;width:100%;min-height:100%;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;background-image:url(/_next/static/media/Car24.44ffa1fd.svg);background-repeat:no-repeat;-webkit-background-position:center center;background-position:center center;aspect-ratio:1.3333333333333333;}
                                                    </style>
                                                    <div class="chakra-carousel__slide css-1mxdn2f">
                                                        <style data-emotion="css 14nefjg">
                                                            .css-14nefjg{aspect-ratio:1.3333333333333333;max-width:100%;}.car-img{object-fit:cover;padding:5px 5px 0px 5px;border-radius:10px}
                                                        </style>
                                                        <img alt="Volkswagen Polo 1.0 59 kW image number 1" class="chakra-image css-14nefjg car-img" decoding="async" loading="eager" width="100%" src="{{ asset($car->images[0]) }}"/>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <style data-emotion="css hy3pkv">
                                            .css-hy3pkv{position:relative;padding:1.2rem;opacity:1;height:auto;overflow:hidden;}@media screen and (min-width: 992px){.css-hy3pkv{padding:1.6rem 1.2rem 1.2rem 1.2rem;height:100%;overflow:auto;}}
                                        </style>
                                        <div class="css-hy3pkv">
                                            <style data-emotion="css 1a4fuv6">
                                                .css-1a4fuv6{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-ms-flex-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;padding:0.4rem 0.4rem 0;}@media screen and (min-width: 992px){.css-1a4fuv6{}}
                                            </style>
                                            <div class="css-1a4fuv6">
                                                <style data-emotion="css 1dtn3dh">
                                                    .css-1dtn3dh{font-family:EuclidCircularB,sans-serif;color:#1F2B59;font-style:normal;margin:var(--chakra-space-0);font-weight:800;font-size:2rem;line-height:2.8rem;letter-spacing:-0.02rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}[role=group]:hover .css-1dtn3dh,[role=group][data-hover] .css-1dtn3dh,[data-group]:hover .css-1dtn3dh,[data-group][data-hover] .css-1dtn3dh,.group:hover .css-1dtn3dh,.group[data-hover] .css-1dtn3dh{color:#3E47DD;}
                                                </style>
                                                <h4 class="chakra-heading css-1dtn3dh" data-testid="feature.car.card_serp_row_title" role="heading">
                                                    {{ $car->title }}
                                                </h4>
                                            </div>
                                            <style data-emotion="css 19xsw90">
                                                .css-19xsw90{padding:1rem 0 1.4rem;display:grid;max-width:40rem;gap:8px 0px;grid-template-columns:repeat(3, 1fr);}@media screen and (min-width: 992px){.css-19xsw90{padding:1.6rem 0 0.2rem 0;}}@media screen and (min-width: 1024px){.css-19xsw90{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;max-width:none;gap:16px;grid-template-columns:unset;}}
                                            </style>
                                            <div class="css-19xsw90">
                                                <style data-emotion="css 15rm72b">
                                                    .css-15rm72b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}@media screen and (min-width: 1024px){.css-15rm72b{-webkit-order:-1;-ms-flex-order:-1;order:-1;}}
                                                </style>
                                                <div class="css-15rm72b" data-testid="desc-power">
                                                    <style data-emotion="css 1igo49k">
                                                        .css-1igo49k{width:1.8rem;height:1.8rem;-webkit-transition:color 200ms;transition:color 200ms;color:#485885;}
                                                    </style>
                                                    <style data-emotion="css xhpksi">
                                                        .css-xhpksi{font-family:EuclidCircularB,sans-serif;font-style:normal;font-size:var(--chakra-fontSizes-75);line-height:1.6rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--chakra-line-clamp);--chakra-line-clamp:1;font-weight:var(--chakra-fontWeights-semibold);color:#31406F;}
                                                    </style>
                                                    <p class="chakra-text css-xhpksi">
                                                        <style data-emotion="css orrtjp">
                                                            .css-orrtjp{display:block;}@media screen and (min-width: 768px){.css-orrtjp{display:none;}}
                                                        </style>
                                                        <span class="css-orrtjp">
                                                            <i class="fa-solid fa-bolt"></i>
                                                            {{ hpToKw($car->car_detail->power) }} kW
                                                        </span>
                                                        <style data-emotion="css 16lafvh">
                                                            .css-16lafvh{display:none;}@media screen and (min-width: 768px){.css-16lafvh{display:block;}}
                                                        </style>
                                                        <span class="css-16lafvh" data-testid="desc-power-value">
                                                            <i class="fa-solid fa-bolt"></i>
                                                            {{ hpToKw($car->car_detail->power) }} kW ({{ $car->car_detail->power }} hp)
                                                        </span>
                                                    </p>
                                                </div>
                                                <style data-emotion="css 1qopl4t">
                                                    .css-1qopl4t{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}@media screen and (min-width: 1024px){.css-1qopl4t{-webkit-order:-2;-ms-flex-order:-2;order:-2;}}
                                                </style>
                                                <div class="css-1qopl4t" data-testid="desc-registration-date">
                                                    <p class="chakra-text css-xhpksi">
                                                        <i class="fa-solid fa-clock"></i>
                                                        {{ date('m/Y', strtotime($car->car_detail->first_registration)) }}
                                                    </p>
                                                </div>
                                                <style data-emotion="css 609l9">
                                                    .css-609l9{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}@media screen and (min-width: 1024px){.css-609l9{-webkit-order:-3;-ms-flex-order:-3;order:-3;}}
                                                </style>
                                                <div class="css-609l9" data-testid="desc-mileage">
                                                    <p class="chakra-text css-xhpksi">
                                                        <i class="fa-solid fa-gauge"></i>
                                                        {{ $car->car_detail->mileage }} km
                                                    </p>
                                                </div>
                                                <style data-emotion="css 1wcsshc">
                                                    .css-1wcsshc{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
                                                </style>
                                                <div class="css-1wcsshc">
                                                    <p class="chakra-text css-xhpksi">
                                                        <i class="fa-solid fa-gear"></i>
                                                        {{ $car->car_detail->transmission }}
                                                    </p>
                                                </div>
                                                <div class="css-1wcsshc" data-testid="desc-fuel-type">
                                                    <p class="chakra-text css-xhpksi">
                                                        <i class="fa-solid fa-gas-pump"></i>
                                                        {{ $car->car_detail->fuel }}
                                                    </p>
                                                </div>
                                            </div>
                                            <style data-emotion="css 1f7pwkr">
                                                .css-1f7pwkr{padding:0 0 0.8rem;min-height:5.6rem;}@media screen and (min-width: 992px){.css-1f7pwkr{padding:1.2rem 0 0.4rem 0;min-height:2.4rem;}}
                                            </style>
                                            <div class="css-1f7pwkr">
                                                <style data-emotion="css 1dc8cah">
                                                    .css-1dc8cah{position:relative;max-height:4.8rem;}@media screen and (min-width: 992px){.css-1dc8cah{max-height:2.4rem;}}
                                                </style>
                                                <div class="css-1dc8cah" role="group">
                                                    <style data-emotion="css 11p90fi">
                                                        .css-11p90fi{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:0.8rem;-webkit-box-flex-wrap:wrap;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-height:4.8rem;overflow:visible;}@media screen and (min-width: 992px){.css-11p90fi{max-height:2.4rem;}}
                                                    </style>
                                                    <div class="css-11p90fi">
                                                        <style data-emotion="css 1pm5upt">
                                                            .css-1pm5upt{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:var(--chakra-colors-blue-100);border-radius:var(--chakra-radii-base);-webkit-padding-start:0.4rem;padding-inline-start:0.4rem;-webkit-padding-end:0.4rem;padding-inline-end:0.4rem;max-width:100%;color:var(--chakra-colors-blue-700);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-transition:0.2s ease;transition:0.2s ease;cursor:pointer;}@media screen and (min-width: 0em) and (max-width: 991.98px){.css-1pm5upt{height:2rem;}.css-1pm5upt>svg{width:1.4rem;height:1.4rem;padding:var(--chakra-space-0);}}@media screen and (min-width: 992px){.css-1pm5upt{height:2.4rem;}.css-1pm5upt>svg{width:1.6rem;height:1.6rem;padding:0.2rem;}}
                                                        </style>

                                                        <style data-emotion="css 1jqfiqr">
                                                            .css-1jqfiqr{font-family:EuclidCircularB,sans-serif;font-style:normal;font-weight:600;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-padding-start:0.4rem;padding-inline-start:0.4rem;-webkit-padding-end:0.4rem;padding-inline-end:0.4rem;line-height:1.6rem;font-size:var(--chakra-fontSizes-75);}
                                                        </style>
                                                        @foreach (json_decode($car->features) as $index => $feature)
                                                            @if ($index > 3)
                                                                @break
                                                            @endif
                                                            <div class="css-1pm5upt">
                                                                <span class="chakra-text css-1jqfiqr">
                                                                    {{ $feature }}
                                                                </span>
                                                            </div>
                                                        @endforeach
                                                    </div>
                                                </div>
                                            </div>
                                            <style data-emotion="css 1fnfjg1">
                                                .css-1fnfjg1{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}@media screen and (min-width: 992px){.css-1fnfjg1{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;height:7.6rem;padding-top:0.8rem;}}
                                            </style>
                                            <div class="css-1fnfjg1">
                                                <style data-emotion="css cyilet">
                                                    .css-cyilet{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;padding:0.2rem 0;height:3.6rem;}@media screen and (min-width: 992px){.css-cyilet{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;gap:0.8rem;padding:0.8rem 0 0;height:6.8rem;}}
                                                </style>
                                                <div class="css-cyilet">
                                                </div>
                                                <style data-emotion="css 19h6fup">
                                                    .css-19h6fup{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;width:100%;height:0.5rem;padding:0.2rem 0;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}@media screen and (min-width: 992px){.css-19h6fup{width:1.7rem;height:100%;padding:0.8rem;}}
                                                </style>
                                                <div class="css-19h6fup">
                                                    <style data-emotion="css v4sy6o">
                                                        .css-v4sy6o{opacity:0.6;border:0;border-color:inherit;border-style:solid;border-bottom-width:1px;width:100%;}@media screen and (min-width: 992px){.css-v4sy6o{width:0.1rem;height:5.2rem;}}
                                                    </style>
                                                    <hr aria-orientation="horizontal" class="chakra-divider css-v4sy6o"/>
                                                </div>
                                                <style data-emotion="css qxjueq">
                                                    .css-qxjueq{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;padding:0.6rem 0 0;}@media screen and (min-width: 992px){.css-qxjueq{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;width:50%;height:6.4rem;padding:var(--chakra-space-0);}}
                                                </style>
                                                <div class="css-qxjueq">
                                                    <style data-emotion="css hboir5">
                                                        .css-hboir5{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;}
                                                    </style>
                                                    <div class="css-hboir5">
                                                        <style data-emotion="css k8pdt6">
                                                            .css-k8pdt6{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-align-items:baseline;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
                                                        </style>
                                                        <div class="css-k8pdt6">
                                                            <style data-emotion="css 1aglhhc">
                                                                .css-1aglhhc{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;min-width:30rem;}@media screen and (min-width: 992px){.css-1aglhhc{gap:3rem;}}@media screen and (min-width: 1200px){.css-1aglhhc{gap:var(--chakra-space-0);}}
                                                            </style>
                                                            <div class="css-1aglhhc">
                                                                <style data-emotion="css 1xh5apb">
                                                                    .css-1xh5apb{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;background:transparent;-webkit-box-pack:start;-ms-flex-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;gap:0.7rem;}
                                                                </style>
                                                                <div class="css-1xh5apb e1vkzwd0" type="textBottom">
                                                                    <style data-emotion="css 1jnz86y">
                                                                        .css-1jnz86y{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:0;}.css-1jnz86y >p{margin:0;}.css-1jnz86y >span{margin-left:0.8rem;}
                                                                    </style>
                                                                    <div class="css-1jnz86y e1vkzwd1" type="textBottom">
                                                                        <style data-emotion="css ibn9o7">
                                                                            .css-ibn9o7{color:#175808;white-space:nowrap;font-size:1.2rem;line-height:2rem;}
                                                                        </style>
                                                                        <div class="css-ibn9o7 e1vkzwd2" type="textBottom">
                                                                            <style data-emotion="css 120a3oc">
                                                                                .css-120a3oc{font-family:EuclidCircularB,sans-serif;font-style:normal;color:inherit;font-size:1.2rem;line-height:2rem;font-weight:600;}
                                                                            </style>
                                                                            <p class="chakra-text css-120a3oc">
                                                                                Top offer
                                                                            </p>
                                                                        </div>
                                                                    </div>
                                                                    <style data-emotion="css ivf718">
                                                                        .css-ivf718{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}
                                                                    </style>
                                                                    <div class="css-ivf718 e1vkzwd3" type="textBottom">
                                                                        <style data-emotion="css g676ha">
                                                                            .css-g676ha{width:1.3rem;height:0.8rem;border-radius:10rem;background-color:#378517;margin-right:0.2rem;}.css-g676ha:last-child{margin-right:0;}
                                                                        </style>
                                                                        <div class="css-g676ha e1vkzwd4">
                                                                        </div>
                                                                        <div class="css-g676ha e1vkzwd4">
                                                                        </div>
                                                                        <div class="css-g676ha e1vkzwd4">
                                                                        </div>
                                                                        <div class="css-g676ha e1vkzwd4">
                                                                        </div>
                                                                        <div class="css-g676ha e1vkzwd4">
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <style data-emotion="css pc8kt4">
                                                                    .css-pc8kt4{display:block;width:100%;-webkit-align-self:flex-end;-ms-flex-item-align:flex-end;align-self:flex-end;text-align:end;}@media (min-width:992px){.css-pc8kt4{-webkit-align-self:flex-end;-ms-flex-item-align:flex-end;align-self:flex-end;display:block;text-align:end;}}
                                                                </style>
                                                                <div class="css-pc8kt4 e16y9auy0">
                                                                    <div>
                                                                        <style data-emotion="css ybv1ny">
                                                                            .css-ybv1ny{font-family:EuclidCircularB,sans-serif;color:#1F2B59;font-style:normal;margin:var(--chakra-space-0);font-weight:800;font-size:2rem;line-height:2.8rem;letter-spacing:-0.02rem;white-space:nowrap;overflow:hidden;}
                                                                        </style>
                                                                        <h4 class="chakra-heading css-ybv1ny" data-testid="feature.serp_car_card.price" role="heading">
                                                                            ${{ number_format($car->price) }}
                                                                        </h4>
                                                                        <style data-emotion="css 10uoocr">
                                                                            .css-10uoocr{white-space:nowrap;color:var(--chakra-colors-gray-600);}
                                                                        </style>
                                                                        <div class="css-10uoocr" data-testid="feature.serp_car_card.price_without_tax">
                                                                            <style data-emotion="css cyz8zv">
                                                                                .css-cyz8zv{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:0.4rem;-webkit-box-pack:end;-ms-flex-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;white-space:nowrap;color:var(--chakra-colors-gray-600);}
                                                                            </style>
                                                                            <div class="css-cyz8zv">
                                                                                <style data-emotion="css 1jgrumb">
                                                                                    .css-1jgrumb{font-family:EuclidCircularB,sans-serif;font-style:normal;color:#485885;font-size:1.2rem;line-height:2rem;font-weight:500;}
                                                                                </style>
                                                                                <p class="chakra-text css-1jgrumb">
                                                                                    No VAT included
                                                                                </p>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </a>
                            </div>
                        </div>
                    @endforeach
                    <!-- car div to loop ends -->
                </div>

                <div class="py-4">
                    {{ $cars->links('pagination::bootstrap-4') }}
                </div>
            </div>
        </div>
    </div>

    <script>
        //css-1yrmv8u
        let filterDiv = document.getElementsByClassName('css-1yrmv8u')[0];

        let filterBtn = document.getElementById('filter-btn');
        let dismissFilterBtn = document.getElementById('dismiss-filter-btn');

        let showFilter = () => {
            filterDiv.style.left = "0";
        }
        filterBtn.addEventListener('click', showFilter);
    </script>
</main>
