/* =========================================================================
   collection-page.css — trimmed for the new (page-1) layout.
   Layout now lives in Tailwind classes in the template.
   This file only keeps page 2's fonts, font sizes/weights, colours,
   the noUiSlider styling, the loader and the card animation.
   ========================================================================= */

/* === GENERAL === */
#vehicle-collection-page {
  /* was set on .filters and .car — now on the root so everything inherits it */
  font-family: var(--sb-content-font-family, 'Sans-Serif');
}

#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;
}

/* === HEADER === */
#vehicle-collection-page .filter-header {
  color: white;
  font-weight: 600; /* semi-bold */
  font-family: var(--sb-content-font-family, 'Sans-Serif');
  text-transform: uppercase;
}

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

/* === FILTER DRAWER === */
/* Label above every filter (was the slider .title style) */
#vehicle-collection-page .filter-title {
  color: white;
  opacity: 0.75;
  font-size: 13px;
  font-weight: 400; /* regular */
  text-transform: uppercase;
}

#vehicle-collection-page .filter-slider .scale {
  color: white;
}

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

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

#vehicle-collection-page .filter-slider .noUi-connect {
  background: var(--color-primary);
}

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

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

/* === CAR === */
#vehicle-collection-page .vehicle.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 .brand_model {
  text-transform: uppercase;
  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 .type {
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

#vehicle-collection-page .price {
  font-size: 21px;
  font-weight: bold;
}
