/* === GENERAL === */
#vehicle-collection-page {
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 1240px;
}

#vehicle-collection-page .appearance-none {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
}

#vehicle-collection-page #vehicle-loading {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    background-color: rgba(255,255,255,0.5);
}

#vehicle-collection-page #vehicle-loading .loading-text {
	position: fixed;
    width: 300px;
    height: 150px;
    left: calc(50% - 150px);
    top: calc(50% - 75px);
	background-color: white;
	border: 1px solid black;
	padding: 30px;
}

/* === FILTERS === */
#vehicle-collection-page .filter-header {
  margin-top: 32px;
  margin-bottom: 32px;
  color: black;
  font-size: 28px;
  font-weight: 600; /* semi-bold */
  font-family: var(--sb-heading-font-family, 'Sans-Serif');
  text-transform: uppercase;
}

#vehicle-collection-page .filter-header span {
  color: var(--color-primary);
  font-weight: bold;
}


@media(max-width:1185px) {
  #vehicle-collection-page .filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    column-gap: 10px;
    row-gap: 20px;
    width: 100%;
  }
}
@media(min-width:1185px) {
  #vehicle-collection-page .filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    column-gap: 10px;
    row-gap: 20px;
    width: 100%;
  }
}

#vehicle-collection-page .filters .valueFilter {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  background-color: #232323;
  color: #ffffff;
}

#vehicle-collection-page .filters .valueFilter:disabled {
  background-color: #999999;
}

#vehicle-collection-page .filters .filter-slider {
	position: relative;
	top: -22px;
}

#vehicle-collection-page .filters .filter-slider .title {
	color: #777777;
	font-size: 13px;
	font-weight: 400; /* regular */
	text-transform: uppercase;
}

#vehicle-collection-page .filters .filter-slider .scale {
	display: flex;
  color: black;
	justify-content: space-between;
	margin-bottom: 10px;
}

#vehicle-collection-page .filters .filter-slider .slider-wrapper {
	padding: 0 10px;
}

#vehicle-collection-page .filters .filter-slider .noUi-target {
	height: 2px;
	background: black;
	border: none;
	box-shadow: none;
	cursor: pointer;
}

#vehicle-collection-page .filters .filter-slider .noUi-connect {
	background: black;
}

#vehicle-collection-page .filters .filter-slider .noUi-handle {
	right: -6px;
	top: -6px;
	width: 12px;
	height: 12px;
	border-radius: 9999px;
	border: none;
	background: black;
	box-shadow: none;
	cursor: pointer;
}

#vehicle-collection-page .filters .filter-slider .noUi-handle:before,
#vehicle-collection-page .filters .filter-slider .noUi-handle:after {
	display: none;
}

/* === CAR === */
#vehicle-collection-page .car_overview {
  margin-left: -20px;
  margin-right: -20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

#vehicle-collection-page .car {
  background-color: #1f2841;
  color: #ffffff;
  float: left;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 80px
}

#vehicle-collection-page .car:hover {
	opacity: 0.8;
}

#vehicle-collection-page .car.animate {
  animation-name: carAnimate;
  animation-duration: 0.5s;
}

@keyframes carAnimate {
  0% {transform:scale(1);}
  50% {transform:scale(1.1);}
  100% {transform:scale(1);}
}


#vehicle-collection-page .images {
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--color-primary);
  width: 100%;
  height: auto;
  aspect-ratio: 3/1.9;
}

#vehicle-collection-page .images img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* @media(max-width:766px) {
  #vehicle-collection-page .images {
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
  }

  #vehicle-collection-page .images img { 
    text-align: center;
    scroll-snap-align: center;
  }
} */


#vehicle-collection-page .car .info {
  padding: 30px;
}

#vehicle-collection-page .car .info .brand_model {
  font-size: 22px;
  font-weight: bold;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-family: var(--sb-heading-font-family, 'Sans-Serif');
}

#vehicle-collection-page .car .info .type {
  margin-top: 12px;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden
}

#vehicle-collection-page .car .info .stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

#vehicle-collection-page .car .info .stats h2 {
  float:left;
  font-size: 14px;
  text-transform: uppercase;
  width: calc(33.33% - 10px );
  padding: 6px;
  text-align: center;
  border: 1px solid var(--color-primary);
}

/* #vehicle-collection-page .car .info .stats .square {
  width: 10px;
  height: 10px;
  background: white;
} */

#vehicle-collection-page .car .info .prices {
  display: flex;
  justify-content: space-between;
}

#vehicle-collection-page .car .info .price {
  font-size: 21px;
  font-weight: bold;
  margin: 10px 0;
}

#vehicle-collection-page .car .button {
  background-color: var(--color-primary);
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 500;
  display: inline-block;
  width: 100%;
  line-height: 44px;
}

#vehicle-collection-page .car .button:hover {
  background-color: #ad8647;
  color: #ffffff;
  text-decoration: none;
}

@media(max-width:992px) {
  #vehicle-collection-page .filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #vehicle-collection-page .filters .filter-slider {
    grid-column: span 2 / span 2;
    top: 0;
  }
}

@media(max-width:768px) {
  #vehicle-collection-page .filters {
    display: block;
  }

  #vehicle-collection-page .filters > * {
    margin-bottom: 10px;
  }
}