/* bhcar-slider.css */
/* Custom styles for the [bh_car_slider] slider */
/* Use @apply for Tailwind utilities if needed */

.bhcar__slider {
  max-width: 1844px;
  width: 100%;

  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding-bottom: 81px;
}
.bhcar__slider-circle {
  display: none;
}
.bhcar__slider-card {
  background-color: #ffffff44;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  max-width: 315px;
}
.bhcar__slider-card::before {
  display: none;
}
.bhcar__slider-card-wrapper {
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border-radius: 16px;
  background-color: #fff;
  overflow: hidden;
  position: relative;
}
.bhcar__slider-header {
  position: relative;
  width: 100%;
  height: auto;
}
.bhcar__slider-dealership {
  position: absolute;
  /* top: 16px; */
  top: 8px;
  /* left: 16px; */
  left: 8px;
  z-index: 3;
}
.bhcar__slider-dealership {
  display: flex;
  align-items: center;
  /* gap: 13px; */
  gap: 8px;
}
.bhcar__slider-dealer-name {
  margin: 0 0 2px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.bhcar__slider-text {
  position: relative;
  z-index: 1;
}
.bhcar__slider-position {
  display: flex;
  align-items: center;
  /* gap: 4px; */
}
.bhcar__slider-position-value {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 138%;
  letter-spacing: 0.04em;
  color: #fff;
}
.bhcar__slider-filter-red {
  position: absolute;
  border-radius: 16px 16px 0 0;
  left: 0;
  top: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(226, 36, 21, 0.1) 100%
  );
  width: 100%;
  height: 100%;
  z-index: 2;
}
.bhcar__slider-filter-black {
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 48%,
    rgba(0, 0, 0, 0.6) 100%
  );
  position: absolute;
  border-radius: 16px 16px 0 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.bhcar__slider-favorite {
  position: absolute;
  top: 20px;
  right: 16px;
  padding: 0;
  margin: 0;
  background: transparent;
  outline: none;
  border: none;
  z-index: 3;
  cursor: pointer;
}
.bhcar__slider-favorite.--favorite > svg > path {
  fill: #fff;
}
.bhcar__slider-price {
  border-radius: 20px 0 0 0;
  width: 133px;
  height: 52px;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: #0096cf;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.bhcar__slider-price-header,
.bhcar__slider-price-header > * {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: 0.03em;
  text-align: center;
  color: #fff;
}
.bhcar__slider-price-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 120%;
  letter-spacing: 0.03em;
  text-align: right;
  color: #f0f0f0;
  margin: 0;
}
.bhcar__slider-price-text > span {
  color: #ffcf32;
}
.bhcar__slider-content {
  /*    padding: 8px 16px 7px; */
  padding: 8px;
}
.bhcar__slider-car-name {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 112%;
  letter-spacing: 0.03em;
  color: #050505;
  margin: 0 0 4px;
}
.bhcar__slider-description {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 120%;
  letter-spacing: 0.03em;
  color: #414141;
  width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.bhcar__slider-features {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
}
.bhcar__slider-feature {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  width: 72px;
}
.bhcar__slider-mileage,
.bhcar__slider-mileage > span,
.bhcar__slider-year,
.bhcar__slider-fuel,
.bhcar__slider-transmission {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 175%;
  letter-spacing: -0.01em;
  text-align: center;
  color: #010101;
  text-transform: capitalize;
}
.bhcar__slider-fuel {
  white-space: nowrap;
  height: 18px;
  width: 82%;
  /* width: 66%; */
  text-overflow: ellipsis;
  overflow: hidden;
}
.bhcar__slider-mileage {
  white-space: nowrap;
}
.bhcar__slider-mileage,
.bhcar__slider-year,
.bhcar__slider-fuel,
.bhcar__slider-transmission {
  margin: 8px 0 0;
}

.bhcar__slider-thumbnail {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 100%;
}
@media (max-width: 1920px) {
  .bhcar__slider-thumbnail {
    width: 29px;
    height: 29px;
  }
}

.bhcar__slider-image {
  border-radius: 16px 16px 0 0;
  width: 100%;
  /* height: 139px; */
  /* height: 176px; */
  height: 220px;
  object-fit: cover;
  /* height: auto; */
}
@media (min-width: 1921px) {
  .bhcar__slider-image {
    height: 289px;
  }
}
.bhcar__slider-placeholder {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 8px;
  line-height: 125%;
  letter-spacing: 0.03em;
  text-align: center;
  color: #414141;
  margin: 4px 0 0;
}
.bhcar-slider-nav {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 11;
}
.bhcar-slider-button {
  background-color: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.bhcar-slider-button > svg > rect,
.bhcar-slider-button > svg > path {
  transition: 0.3s all linear;
}
.bhcar-slider-button:hover > svg > rect {
  fill: #fff;
}
.bhcar-slider-button:hover > svg > path {
  fill: #000;
}
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.6);
  width: 33px;
  height: 7px;
  border-radius: 500px;
  opacity: 1;
}
.swiper-pagination-bullet-active {
  width: 70px;
  background-color: #fff;
}

.bhcar-slider-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  bottom: 30px !important;
  left: 10px;
}
.swiper-pagination-bullet {
  display: block;
}

.bhcar__slider-card-link {
  text-decoration: none;
}
.bhcar__slider-circle {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  z-index: -1;
}

@media (max-width: 1080px) {
  .bhcar__slider-header {
    width: 100%;
    object-fit: cover;
    object-position: center;
  }
  .bhcar__slider-thumbnail {
    width: 40px;
    height: 40px;
  }
  .bhcar__slider-dealer-name {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .bhcar__slider-price {
    width: 136px;
    height: 48px;
  }
  .bhcar__slider-content {
    padding: 5px 16px 3px;
  }
  .bhcar__slider-car-name {
    font-size: 14px;
  }
  .bhcar__slider-car-name {
    margin-bottom: 0;
  }
  .bhcar__slider-mileage,
  .bhcar__slider-year,
  .bhcar__slider-fuel,
  .bhcar__slider-transmission {
    margin-top: 0;
  }
  /* .bhcar__slider-card {
    height: 373px;
  } */
  .bhcar__slider-features {
    margin-top: 5px;
  }
  .bhcar__slider {
    padding: 0 0px 81px;
  }
}
@media (max-width: 1050px) {
  .bhcar-swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
@media (max-width: 768px) {
  .bhcar__slider-card {
    max-width: 100%;
  }
  .swiper-pagination-bullet-active {
    width: 55px;
  }
  .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
    transform: scale(1);
  }
  .swiper-pagination-bullets-dynamic
    .swiper-pagination-bullet-active-next-next {
    transform: scale(1);
  }
  .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
    transform: scale(1);
  }
  .bhcar-slider-pagination {
    position: absolute;
    /* width: 207px; */
    width: 70% !important;
    /* height: 7px; */
    bottom: 24px !important;
    left: 10px !important;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .bhcar__slider-circle {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    right: 0;
    margin: 0;
    z-index: -1;
  }

  .swiper-horizontal
    > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
  .swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
    left: 100px;
  }
  .bhcar-slider-button > svg {
    width: 35px;
    height: 35px;
  }
  .bhcar__slider-image {
    height: 290px;
  }
  .bhcar-slider-flag {
    width: 40px;
  }
}
@media (max-width: 500px) {
  .bhcar__slider-image {
    height: 200px;
  }
}
@media (max-width: 390px) {
  /* .bhcar-slider-pagination {
    width: 107px;
  } */
  .swiper-horizontal
    > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
  .swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
    left: 70px;
  }
}

/* Loading progress bar styles */
.bhcar__slider-loader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  width: 100%;
  padding: 40px;
  gap: 24px;
}

.bhcar__slider-loader-text {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 140%;
  text-align: center;
  color: #ffffff;
  margin: 0;
}

.bhcar__slider-progress-bar {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 500px;
  overflow: hidden;
  position: relative;
}

.bhcar__slider-progress-fill {
  height: 100%;
  border-radius: 500px;
  background: linear-gradient(90deg, #e22415 0%, #0096cf 100%);
  animation: progressAnimation 1.5s ease-in-out infinite;
  transform-origin: left;
}

@keyframes progressAnimation {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  50% {
    transform: scaleX(0.7);
    transform-origin: left;
  }
  51% {
    transform: scaleX(0.7);
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}
