/* ==========================================================================
   car-page.css — barcha model sahifalari uchun umumiy stillar
   (tracker, onix, cobalt, captiva, equinox, traverse, tahoe, suburban,
    labo, damas, damas-2)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Umumiy yordamchi klasslar (inline style o'rniga)
   -------------------------------------------------------------------------- */
.img-full {
  width: 100%;
}

.img-full--spaced {
  padding-bottom: 40px;
}

.info-rs--gallery {
  padding: 0;
  margin-top: 40px;
}

.cards-slider--gallery {
  margin: 0;
  padding-top: 20px;
}

.form-errors {
  color: red;
  margin-bottom: 15px;
}

.link-underline {
  text-decoration: underline;
}

/* Tracker sahifasidagi desktop/mobile almashinuvi (640px) */
.bp-640.section_desktop { display: block; }
.bp-640.section_mobile { display: none; }

@media (max-width: 640px) {
  .bp-640.section_mobile { display: block; }
  .bp-640.section_desktop { display: none; }
}

/* --------------------------------------------------------------------------
   2. Konfigurator: rang tugmalari (rang data-color orqali JS bilan beriladi)
   -------------------------------------------------------------------------- */
.color-grid .color-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   3. Offer karta / banner
   -------------------------------------------------------------------------- */
.offer-card-credit__number {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: #fff;
  display: inline-block;
}

.offer-list,
.chevy-offer-banner__specs-list {
  list-style: none;
  padding: 0;
}

.offer-list { margin: 12px 0; }
.chevy-offer-banner__specs-list { margin: 20px 0; }

.offer-list li,
.chevy-offer-banner__specs-list li {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 20px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

.offer-list li { margin: 6px 0; min-height: 18px; }
.chevy-offer-banner__specs-list li { margin: 8px 0; min-height: 20px; }

.offer-list li::before,
.chevy-offer-banner__specs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* --------------------------------------------------------------------------
   4. Pozitsiyalar slayderi (karta)
   -------------------------------------------------------------------------- */
.pos-slide {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 40px;
  background-color: #f7fafc;
}

.pos-figure {
  position: relative;
  margin: 0;
  padding: 0;
}

.pos-figure__bg {
  width: 100%;
  border-radius: 24px;
  display: block;
}

/* Kartadagi matn */
.pos-overlay {
  position: absolute;
  top: 20px;
  left: 25px;
  right: 25px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.pos-overlay__title {
  font-size: clamp(16px, 4.5vw, 42px);
  font-weight: 900;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.pos-overlay__price {
  font-size: clamp(12px, 2.2vw, 18px);
  font-weight: 600;
  margin: 6px 0 0 0;
}

/* Kartadagi mashina rasmi */
.pos-car {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.pos-car img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sedan / past mashinalar: Tracker, Onix, Cobalt, Captiva */
.pos-figure--sedan .pos-car {
  bottom: 50px;
  width: 110%;
}

/* Baland mashinalar: Traverse, Tahoe, Suburban, Labo, Damas */
.pos-figure--tall .pos-car {
  bottom: 20px;
  width: 95%;
}

/* Equinox: rasm biroz o'ngda */
.pos-figure--equinox .pos-car {
  bottom: 50px;
  left: 60%;
  width: 100%;
}

@media (max-width: 768px) {
  .pos-overlay { top: 12px; left: 14px; right: 14px; }
  .pos-overlay__title { font-size: 17px; line-height: 1.15; }
  .pos-overlay__price { font-size: 13px; }

  .pos-figure--sedan .pos-car { bottom: 30px; width: 100%; }
  .pos-figure--tall .pos-car { bottom: 15px; width: 90%; }
  .pos-figure--equinox .pos-car { left: 50%; bottom: 30px; }
}

@media (max-width: 480px) {
  .pos-overlay__title { font-size: 15px; }
  .pos-overlay__price { font-size: 12px; }

  .pos-figure--sedan .pos-car { width: 95%; }
  .pos-figure--tall .pos-car { bottom: 10px; width: 88%; }
  .pos-figure--equinox .pos-car { bottom: 30px; width: 95%; }
}

/* Karta pastidagi ma'lumot */
.pos-meta {
  margin-top: -20px;
  padding: 0 10px;
}

.pos-meta__title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.pos-meta__price {
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.pos-meta__list {
  margin-top: 15px;
  margin-left: 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.pos-more {
  color: #0070d2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-top: 15px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.pos-more__icon {
  margin-left: 8px;
  width: 20px;
  height: 20px;
  border: 1.5px solid #0070d2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. Galereya modali
   -------------------------------------------------------------------------- */
.gallery-modal__content {
  overflow: visible !important;
}

.gallery-modal__header {
  position: relative;
  overflow: visible !important;
  z-index: 10;
}

.gallery-modal__category {
  position: relative !important;
  overflow: visible !important;
  z-index: 10 !important;
}

.gallery-modal__header .gallery-modal__dropdown {
  margin-left: 0;
}

.gallery-modal__dropdown {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease !important;
  z-index: 99999 !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  padding: 0 !important;
  min-width: 200px !important;
  margin-top: 0 !important;
  max-height: 300px !important;
  overflow-y: auto !important;
}

.gallery-modal__dropdown.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.gallery-modal__dropdown-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  text-align: left !important;
}

.gallery-modal__dropdown-item:hover { background: #f9fafb !important; }
.gallery-modal__dropdown-item.active { background: #f3f4f6 !important; }

.gallery-modal__dropdown-text {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  justify-content: space-between !important;
  font-size: 17px !important;
  font-weight: 500 !important;
}

.gallery-modal__dropdown-text span {
  padding-left: 6px !important;
  border-left: 2px solid #fff !important;
}

.gallery-modal__dropdown-text span:first-child { font-weight: 500 !important; }

.gallery-modal__dropdown-text span:last-child {
  opacity: 0.6 !important;
  font-size: 16px !important;
}

.gallery-modal__dropdown-item:hover .gallery-modal__dropdown-text span:first-child,
.gallery-modal__dropdown-item.active .gallery-modal__dropdown-text span:first-child {
  border-left: 2px solid #0077d9 !important;
}

/* Asosiy slayder */
.gallery-modal__swiper {
  width: 100%;
  max-height: 70vh;
}

.gallery-modal__slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-modal__img {
  max-width: 80% !important;
  max-height: 70vh;
  object-fit: contain;
}

.gallery-modal__main .swiper-wrapper,
.gallery-modal__thumbnails-slider .swiper-wrapper {
  display: flex !important;
  transition: transform 0.3s ease !important;
}

.gallery-modal__thumbnails-slider .swiper-slide:not(.swiper-slide-hidden) {
  flex-shrink: 0 !important;
}

.swiper-slide-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  flex: 0 0 0 !important;
}

/* --------------------------------------------------------------------------
   6. Xavfsizlik jadvali (Suburban, Equinox)
   -------------------------------------------------------------------------- */
.safety-table { width: 100%; }
.safety-table--spaced { margin-top: 30px; }

.safety-table td {
  border-top: 1px solid #e0e0e0;
  padding: 20px 15px;
  vertical-align: middle;
}

.safety-table tr:first-child td { border-top: none; }
.safety-table__icon { width: 80px; }

.safety-table__text {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. Equinox: video slayder, video modal, split-block
   -------------------------------------------------------------------------- */
.safety-slider {
  margin: 60px 0 0 !important;
  padding: 0 !important;
}

.safety-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

.safety-modal.is-open { display: flex; }

.safety-modal__content {
  position: relative;
  max-width: 1100px;
  width: 90%;
  margin: auto;
}

.safety-modal__close {
  position: absolute;
  top: -18px;
  right: -18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  padding: 0;
  line-height: 0;
}

.safety-modal__close:hover svg circle { fill: #eee; }

.safety-modal__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: #000;
}

.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
}

.split-block--reverse .split-block__media { order: -1; }
.split-block__text p { font-size: 18px; line-height: 1.6; }
.split-block__text p:first-child { margin-top: 0; }
.split-block__text p:last-child { margin-bottom: 0; }

.split-block__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.info-design__columns2.is-2col {
  grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 768px) {
  .safety-slider { margin-top: 36px !important; }
  .split-block { grid-template-columns: 1fr; gap: 24px; }
  .split-block--reverse .split-block__media { order: 0; }
  .info-design__columns2.is-2col { grid-template-columns: 1fr !important; }
}

/* --------------------------------------------------------------------------
   8. Traverse Z71: taqqoslash bloki (faqat .page-z71 ichida)
   -------------------------------------------------------------------------- */
.page-z71 .car__tab-content {
  display: none;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-z71 .car__tab-content.is-active {
  display: flex;
  align-items: flex-end;
  min-height: 460px;
}

.page-z71 .car__tab-content p {
  margin: 0;
  padding: 22px;
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.65);
}

.page-z71 .container .mt-45 {
  margin-top: 45px;
  color: #111;
  font-size: 15px;
  line-height: 1.6;
  font-family: Arial, Helvetica, sans-serif;
}

.page-z71 .container .mt-45 strong {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.page-z71 .container .mt-45 p { margin: 0 0 10px 0; }

.page-z71 .container .mt-45 ul {
  margin-top: 6px;
  padding-left: 0;
  list-style: none;
}

.page-z71 .container .mt-45 ul li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
}

.page-z71 .container .mt-45 ul li::before {
  content: "\25CF";
  position: absolute;
  left: 16px;
  top: 0.28em;
  color: #000;
  font-size: 11px;
  line-height: 1;
}

@media (max-width: 768px) {
  .page-z71 .car__tab-content.is-active {
    position: relative;
    display: block;
    background: none !important;
    min-height: auto;
    margin-bottom: 48px;
    z-index: 1;
  }

  .page-z71 .car__tab-content.is-active::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 20px;
  }

  .page-z71 #car-tab-1.is-active::before {
    background-image: url('/assets/images/z71/technology/1-1.jpg');
  }

  .page-z71 #car-tab-2.is-active::before {
    background-image: url('/assets/images/z71/technology/1-2.jpg');
  }

  .page-z71 .car__tab-content p {
    position: relative;
    background: #fff;
    color: #111;
    padding: 18px;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 32px;
    z-index: 2;
  }

  .page-z71 .car__tab-content.is-active::after {
    content: "";
    display: block;
    clear: both;
    height: 1px;
  }
}

@media (max-width: 576px) {
  .page-z71 .container .mt-45 { font-size: 14px; }
  .page-z71 .container .mt-45 strong { font-size: 17px; }
}
