.vehicle-viewer {
  width: 100%;
}

.vehicle-viewer__container {
  height: 100vh;
  padding: 48px 16px;
  box-sizing: border-box;
  position: relative;
}

.vehicle-viewer__swiper-container {
  height: 100%;
  background: #f0f0f0;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.vehicle-viewer__panel {
  width: 100%;
  height: 100%;
}

.vehicle-viewer__panel[hidden] {
  display: none;
}

.vehicle-viewer__slide {
  width: 100%;
  height: 100%;
}

.vehicle-viewer__slide img {
  width: 100%;
  height: auto;
  border-radius: 32px;
}

/* Kích thước: hình vẽ leaflet, hiển thị nguyên tỷ lệ, căn giữa, không zoom */
.vehicle-viewer__slide--contain {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-viewer__slide--contain img {
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 0;
}

/* Màu sắc: chip màu + tên, không có ảnh xe đổi màu */
.vehicle-viewer__panel--colors {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  box-sizing: border-box;
}

.vehicle-viewer__colors-row {
  text-align: center;
}

.vehicle-viewer__colors-heading {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1b;
}

.vehicle-viewer__colors-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vehicle-viewer__colors-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vehicle-viewer__colors-label {
  font-size: 13px;
  color: #1d1d1b;
}

.vehicle-viewer__colors-note {
  margin: 0;
  font-size: 12px;
  color: #5c606a;
  text-align: center;
}

.vehicle-viewer__color-inner {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.vehicle-viewer__color-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Góc nhìn: swiper 3 ảnh studio + pill điều hướng */
.vehicle-viewer__panel--views {
  position: relative;
}

.vehicle-viewer__views-swiper,
.vehicle-viewer__views-swiper .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.vehicle-viewer__views-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.vehicle-viewer__views-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}

.vehicle-viewer__pagination {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.6588235294);
  left: 50%;
  transform: translateX(-50%);
  bottom: 64px;
  border-radius: 38px;
}

.vehicle-viewer__operator-wrapper {
  display: flex;
  justify-content: center;
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
}

.vehicle-viewer__operator-item {
  cursor: pointer;
  line-height: 40px;
  padding: 0 16px;
  border-radius: 36px;
  white-space: nowrap;
  background: none;
  border: 0;
  font: inherit;
  color: #1d1d1b;
}

.vehicle-viewer__operator-item--active {
  background: #dbdbdb;
  border-radius: 18px;
}

.vehicle-viewer__top-navigation {
  z-index: 10;
  position: absolute;
  top: 70px;
  right: 56px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 16px;
}

.vehicle-viewer__nav-item {
  transition: 0.3s ease-in-out;
  border-radius: 18px;
  color: #1d1d1b;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  background: #fff;
  border: 0;
  font-family: inherit;
}

.vehicle-viewer__nav-item--active {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843);
}

@media (max-width: 767px) {
  .vehicle-viewer__container {
    width: 100%;
    height: auto;
    padding: 42px 20px 40px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
  }

  .vehicle-viewer__swiper-container {
    height: 544px;
    background: #f0f0f0;
    border-radius: 32px;
  }

  .vehicle-viewer__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
  }

  .vehicle-viewer__slide--contain img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 70%;
    object-fit: contain;
  }

  .vehicle-viewer__panel--colors {
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
  }

  .vehicle-viewer__colors-list {
    gap: 16px;
  }

  .vehicle-viewer__pagination {
    border-top: 1px solid #f3f4f6;
    background: rgba(255, 255, 255, 0.66);
    width: calc(100% - 16px);
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    border-radius: 38px;
    z-index: 10;
  }

  .vehicle-viewer__operator-wrapper {
    padding-bottom: 16px;
  }

  .vehicle-viewer__top-navigation {
    top: 16px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}
