﻿section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    margin-top: 30px;
}

#Vehicle {
    width: 100%;
    overflow: hidden;
}

    #Vehicle > a {
        height: 120px;
        display: block;
        overflow: hidden;
        margin: 0 0 2rem 0;
    }

        #Vehicle > a > img {
            height: 100%;
            width: 100%;
            object-fit: contain;
        }
/*#region Filter */


#Filter > div {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 1rem;
}

    #Filter > div > div {
        width: 100%;
    }

    #Filter > div > h1 {
        height: 98px;
        font-size: 55px;
        color: var(--saa-blue);
        font-weight: 800;
    }

        #Filter > div > h1 > span {
            font-size: 25px;
            display: block;
            line-height: 0.3;
        }

    #Filter > div > h2 {
        display: none;
        color: var(--saa-blue);
        font-size: 35px;
        margin-top: 20px;
    }

	#Filter > div > div > p {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px 15px;
		border: 1px solid #c5c5c5;
		font-size: 14px;
		cursor: pointer;
		background: var(--saa-lightBlue);
		border-top-right-radius: 10px;
		border-top-left-radius: 10px;
	}

        #Filter > div > div > p > i {
            transition: 300ms;
        }

            #Filter > div > div > p > i.rotate {
                transform: rotate(180deg);
            }

	#Filter > div > .filterBox > div {
		border: 1px solid #c5c5c5;
		border-top: none;
		border-bottom-right-radius: 10px;
		border-bottom-left-radius: 10px;
		overflow: hidden;
	}

#FilterBtn {
	position: sticky;
	bottom: 15px;
	padding: 8px 35px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	transition: 300ms;
	z-index: 99;
	width: 300px;
	background: var(--saa-yellow);
	text-align: center;
	border: 1px solid var(--saa-yellow);
	cursor: pointer;
	color: var(--saa-blue);
	border-radius:10px;
}

/*#endregion */

/*#region filterBox1 */
#Filter > div > .filterBox:first-of-type > div {
    display: grid;
    grid-template-columns: repeat(auto-fill, 74.5px);
}

    #Filter > div > .filterBox:first-of-type > div > div > :is(label,span) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: var(--saa-blue);
        border: 1px solid #cccccc54;
        padding: 10px;
        cursor: pointer;
        text-align: center;
        height: 58px;
    }

    #Filter > div > .filterBox:first-of-type > div > p {
        position: relative;
        height: 77px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5px;
        border: 1px solid #f7f7f7;
        text-align: center;
        font-size: 11px;
        color: #666666;
    }

        #Filter > div > .filterBox:first-of-type > div > p > i {
            position: absolute;
            right: 5px;
            top: 5px;
            font-size: 15px;
            color: var(--saa-blue);
            display: none;
            animation: scaleEffect 0.2s ease-in-out forwards;
        }

@keyframes scaleEffect {
    0% {
        transform: scale(0.6);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


#Filter > div > .filterBox:first-of-type > div > p > img {
    margin-bottom: 5px;
    height: 30px;
}

#Filter > div > .filterBox:first-of-type > div > p > input {
    display: none;
}

#Filter > div > .filterBox:first-of-type > div > p > label {
    cursor: pointer;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
}

#Filter > div > .filterBox:first-of-type > div > p > input:checked + i {
    display: block;
}

#Filter > div > .filterBox:first-of-type > div > p > input:checked + label {
    background: #0000000a;
}

#Filter > div > .filterBox:first-of-type > div > span {
    position: relative;
    cursor: pointer;
    font-size: 13px;
    justify-content: center;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #Filter > div > .filterBox:first-of-type > div > span > i {
        font-size: 22px;
        background: #15365521;
        border-radius: 2px;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--saa-blue);
        position: relative;
        right: -1px;
    }




.hidden {
    display: none;
}
/*background: #80808026;*/
/*#endregion  */

/*#region filterBoxCheckbox*/

#Filter > div > .filterBoxCheckbox > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 20px 0 20px 14px;
}


    #Filter > div > .filterBoxCheckbox > div > label {
        position: relative;
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 14px;
        font-weight: 100;
        cursor: pointer;
        color: #666666;
    }

/*#endregion */
/*#region Search*/
#Search > h1 {
    height: 120px;
    font-size: 55px;
    color: var(--saa-blue);
    font-weight: 800;
    display: none;
}

    #Search > h1 > span {
        font-size: 25px;
        display: block;
        line-height: 0.3;
    }

#Search > div:first-of-type {
    display: flex;
    align-items: center;
    width: 100%;
}

    #Search > div:first-of-type > div:first-of-type {
        position: relative;
        width: 75%;
        margin-right: 22px;
    }

        #Search > div:first-of-type > div:first-of-type > input {
            width: calc(100% - 30px);
            border-radius: 30px;
            border: 1px solid var(--saa-blue);
            padding: 10px;
            outline: none;
            font-size: 15px;
            padding-right: 30px;
        }

        #Search > div:first-of-type > div:first-of-type > i {
            position: absolute;
            top: 10px;
            right: 1px;
            cursor: pointer;
        }

    #Search > div:first-of-type > img {
        padding: 5px;
        cursor: pointer;
        height: 22px;
    }

        #Search > div:first-of-type > img.active {
            filter: invert(69%) sepia(59%) saturate(512%) hue-rotate(355deg) brightness(103%) contrast(91%);
        }

    #Search > div:first-of-type > select {
        margin-left: 13px;
        border-radius: 30px;
        font-size: 14px;
        border: 1px solid var(--saa-blue);
        padding: 6px 10px;
        outline: none;
        margin-left: 4px;
    }

#Search > div:last-of-type {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 20px 0;
}

    #Search > div:last-of-type > p {
        padding: 7px 20px;
        border-radius: 30px;
        font-size: 15px;
        font-weight: 500;
        color: var(--saa-blue);
    }

    #Search > div:last-of-type > p {
        background: #e8f1f8;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 12px;
        padding: 5px 11px;
    }

        #Search > div:last-of-type > p > i {
            font-size: 15px;
            cursor: pointer;
            color: var(--saa-blue);
        }

        #Search > div:last-of-type > p:first-of-type {
            background: #15365514;
        }

            #Search > div:last-of-type > p:first-of-type > span {
                font-weight: 800;
            }

/*#endregion */

/*#region paging*/
#Paging {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

    #Paging > a,
    #Paging > span {
        color: var(--saa-blue);
        font-size: 16px;
        font-weight: bold;
    }

        #Paging > a.active {
            background: var(--saa-blue);
            border-radius: 50%;
            height: 32px;
            width: 33px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
        }
/*#endregion*/

/*#region CarDetail */
#CarDetail > a > div:nth-of-type(2) > div:first-of-type {
    width: 300px !important;
}

    #CarDetail > a > div:nth-of-type(2) > div:first-of-type > p {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

        #CarDetail > a > div:nth-of-type(2) > div:first-of-type > p > span {
            height: 20px;
            width: 20px;
            border-radius: 50px;
            background: var(--car-color);
            cursor: pointer;
        }
/*#endregion*/

.double-slider-box {
    height: 50px;
    padding: 14px 25px;
    display: flex;
    align-items: start;
    justify-content: center;
}

    .double-slider-box > span {
        position: absolute;
        top: -21px;
        color: var(--saa-blue);
        font-size: 14px;
        font-weight: 500;
    }
/*
.range-slider {
	position: relative;
	width: 100%;
	height: 5px;
	background-color: #e2e2e2;
}

.slider-track {
	height: 100%;
	position: absolute;
	background-color: var(--saa-blue);
}

.range-slider input {
	position: absolute;
	width: 100%;
	background: none;
	pointer-events: none;
	top: 50%;
	transform: translateY(-50%);
	appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
	height: 20px;
	width: 20px;
	border-radius: 50%;
	border: 6px solid var(--saa-blue);
	background: #fff;
	pointer-events: auto;
	appearance: none;
	cursor: pointer;
	box-shadow: 0 .125rem .5625rem -0.125rem rgba(0, 0, 0, .25);
}

input[type="range"]::-moz-range-thumb {
	height: 20px;
	width: 20px;
	border-radius: 50%;
	border: 3px solid #fff;
	background: #fff;
	pointer-events: auto;
	-moz-appearance: none;
	cursor: pointer;
	box-shadow: 0 .125rem .5625rem -0.125rem rgba(0, 0, 0, .25);
}


.input-box {
	display: none;
}

.min-box,
.max-box {
	width: 50%;
}

.min-box {
	padding-right: .5rem;
	margin-right: .5rem;
}

.input-wrap {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	width: 100%;
	display: none;
}

.tooltip {
	padding: .25rem .5rem;
	border: 0;
	background: var(--saa-blue);
	color: #fff;
	font-size: .75rem;
	line-height: 1.2rem;
	border-radius: .25rem;
	top: 55px;
	display: block;
	position: absolute;
	text-align: center;
	white-space: nowrap;
}

.min-tooltip {
	left: 50%;
	transform: translateX(-50%) translateY(-100%);
}

.max-tooltip {
	right: 50%;
	transform: translateX(50%) translateY(-100%);
}

.input-addon {
	display: flex;
	align-items: center;
	padding: .625rem 1rem;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.5;
	color: black;
	text-align: center;
	white-space: nowrap;
	background: #fff;
	border: 1px solid #d4d7e5;
	border-radius: .25rem;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}*/

#priceFilter > div {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    #priceFilter > div > span {
        min-width: 17px;
        height: 2px;
        background: var(--saa-blue);
        display: block;
        border-radius: 10px;
    }

    #priceFilter > div > label {
        position: relative;
        flex: 1;
    }

        #priceFilter > div > label > span {
            position: absolute;
            top: 8px;
            right: 7px;
            opacity: 0.6;
        }

        #priceFilter > div > label > input {
            width: calc(100% - 30px);
            border: 1px solid gray;
            font-size: 14px;
            padding: 6px;
            border-radius: 7px;
            padding-right: 23px;
            outline: none;
            height: 20px;
        }


#FilterClose {
    display: none;
}

.disabled {
    pointer-events: none;
    color: #969ea4 !important;
}

@media(max-width:1400px) {
}

@media(max-width:1200px) {
}

@media(max-width:992px) {
    #ResponsiveFilterBtn,
    #Search > h1,
    #Filter > div > h2 {
        display: block;
    }

    #SearchCarDetailBtn,
    #SearchCarBtn,
    #Filter > div > h1 {
        display: none;
    }

    #Car {
        display: grid !important;
    }

    #CarDetail {
        display: none !important;
    }

    section {
        grid-template-columns: 1fr;
    }

    #Filter {
        width: 100vw;
        height: 100vh;
        left: 0;
        top: 0;
        position: fixed;
        z-index: 1000000;
        background: #00000061;
        display: none;
    }

        #Filter > div {
            position: absolute;
            left: -500px;
            background: #fff;
            width: 300px;
            height: 100%;
            padding: 0 20px;
            overflow: auto;
            overflow-x: hidden;
        }

    #FilterBtn {
        position: sticky;
        width: 100%;
        order: 1;
        margin-bottom: 15px;
        bottom: 14px;
    }

    #FilterClose {
        display: block;
        position: absolute;
        right: 20px;
        top: 29px;
        padding: 5px;
        cursor: pointer;
        color: #ff0000e3;
        font-size: 17px;
    }
}

@media(max-width:768px) {
    #Car > a:before {
        height: 310px;
    }
}

@media(max-width:576px) {
    #Search > div:first-of-type {
        flex-direction: column;
        align-items: end;
    }

        #Search > div:first-of-type > select,
        #Search > div:first-of-type > div:first-of-type {
            width: 100%;
            margin: 0 0 10px 0;
        }

            #Search > div:first-of-type > div:first-of-type > input {
                width: calc(100% - 44px);
            }

            #Search > div:first-of-type > div:first-of-type > i {
                right: 15px;
            }

    #Filter > div {
        width: 250px;
    }

        #Filter > div > div > p {
            font-size: 15px;
        }

        #Filter > div > .filterBox > div {
            margin-left: 0px;
        }

        #Filter > div > .filterBox:first-of-type > div {
            grid-template-columns: repeat(auto-fill, 82px);
        }

            #Filter > div > .filterBox:first-of-type > div > p {
                font-size: 12px;
            }

        #Filter > div > .filterBoxCheckbox > div {
            padding: 20px 0 20px 20px;
        }

        #Filter > div > .filterBox:nth-of-type(2) > div > div > span {
            margin: 20px 5px 0 5px;
        }

        #Filter > div > .filterBox:nth-of-type(2) > div > div > p > input {
            width: 70px;
            padding: 10px;
        }

        #Filter > div > .filterBox:nth-of-type(2) > div > div:nth-of-type(2) > div, #Filter > div > .filterBox:nth-of-type(2) > div > div:last-of-type {
            width: 230px;
        }

    #Search > div:first-of-type > select.active {
        width: 55%;
    }

    #Search {
        position: relative;
        margin-bottom: 1.5rem;
    }

        #Search > div:last-of-type.active {
            position: absolute;
            bottom: -10px;
        }
}
