/* ========================================
   VitCars - Araç detay sayfası
   Renkler: #364049 koyu | #F7931E turuncu | #5E6C79 gri
   ======================================== */

/* --- Sayfa --- */
.vc-detail {
  padding: 24px 0 56px;
  background: #f0f2f5;
  min-height: 100vh;
}

/* --- Hero --- */
.vc-detail-hero {
  margin-bottom: 32px;
}

.vc-detail-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
  font-size: 14px;
  color: #5E6C79;
}

.vc-detail-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: rgba(94, 108, 121, 0.6);
}

.vc-detail-breadcrumb a {
  color: #5E6C79;
  text-decoration: none;
  transition: color 0.2s;
}

.vc-detail-breadcrumb a:hover {
  color: #F7931E;
}

.vc-detail-breadcrumb li[aria-current="page"] {
  color: #364049;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-detail-title {
  margin: 0 0 8px 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a1d21;
  line-height: 1.3;
}

.vc-detail-meta {
  margin: 0;
  font-size: 15px;
  color: #5E6C79;
}

/* --- Galeri (ana slider + thumbnails) --- */
.vc-detail-gallery {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  position: relative;
}

.vc-detail-gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.vc-detail-gallery-slider {
  position: relative;
}

.vc-detail-gallery-slider .slick-list,
.vc-detail-gallery-slider .slick-track {
  overflow: hidden;
}

.vc-detail-gallery__slide {
  position: relative;
  outline: none;
}

.vc-detail-gallery__slide .vc-detail-gallery__link {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  background: #e9ecef;
  overflow: hidden;
}

.vc-detail-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vc-detail-gallery__slide .vc-detail-gallery__link:hover .vc-detail-gallery__img {
  transform: scale(1.04);
}

/* Ana slider okları: sadece main alanında, dikey ortada, kayma yok */
.vc-detail-gallery-main .slick-prev,
.vc-detail-gallery-main .slick-next {
  width: 44px;
  height: 44px;
  z-index: 5;
  top: 50%;
  margin-top: -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
}

.vc-detail-gallery-main .slick-prev:before,
.vc-detail-gallery-main .slick-next:before {
  content: none;
  display: none;
}

.vc-detail-gallery-main .slick-prev {
  left: 12px;
}

.vc-detail-gallery-main .slick-next {
  right: 12px;
  left: auto;
}

.vc-detail-gallery-main .slick-prev:hover,
.vc-detail-gallery-main .slick-next:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.vc-detail-gallery-main .slick-prev svg,
.vc-detail-gallery-main .slick-next svg {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 auto;
  stroke: #364049;
}

/* Thumbnail strip: küçük kareler, satırda 6-7 adet */
.vc-detail-gallery-thumbs-wrap {
  padding: 10px 16px 14px;
  border-top: 1px solid #eee;
  background: #f8f9fa;
  border-radius: 0 0 16px 16px;
}

.vc-detail-gallery-thumbs {
  margin: 0;
  max-width: 100%;
}

.vc-detail-gallery-thumbs .slick-list {
  margin: 0 -4px;
}

.vc-detail-gallery-thumbs__slide {
  padding: 0 4px;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
}

.vc-detail-gallery-thumbs__slide.slick-slide {
  opacity: 0.65;
  transition: opacity 0.2s;
}

.vc-detail-gallery-thumbs__slide.slick-slide.slick-current {
  opacity: 1;
}

.vc-detail-gallery-thumbs__slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}

.vc-detail-gallery-thumbs__slide.slick-current img,
.vc-detail-gallery-thumbs__slide:hover img {
  border-color: #F7931E;
  box-shadow: 0 2px 8px rgba(247, 147, 30, 0.3);
}

/* Tek slide olduğunda dots */
.vc-detail-gallery-main .slick-dots {
  bottom: 12px;
  z-index: 4;
}

.vc-detail-gallery-main .slick-dots li button:before {
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  opacity: 1;
}

.vc-detail-gallery-main .slick-dots li.slick-active button:before {
  color: #F7931E;
  opacity: 1;
}

/* --- Özellikler --- */
.vc-detail-specs {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.vc-detail-specs__title {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 700;
  color: #364049;
}

.vc-detail-specs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}

.vc-detail-specs__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vc-detail-specs__label {
  font-size: 13px;
  color: #5E6C79;
}

.vc-detail-specs__value {
  font-size: 15px;
  font-weight: 600;
  color: #1a1d21;
}

/* --- Açıklama --- */
.vc-detail-desc {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.vc-detail-desc__title {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
  color: #364049;
}

.vc-detail-desc__content {
  font-size: 15px;
  line-height: 1.65;
  color: #364049;
}

.vc-detail-desc__content p {
  margin: 0 0 12px 0;
}

.vc-detail-desc__content p:last-child {
  margin-bottom: 0;
}

/* --- Ekspertiz (wrap + blok) --- */
.vc-detail-ekspertiz-wrap {
  margin-bottom: 24px;
}

.vc-detail-ekspertiz-wrap .vc-ekspertiz {
  margin: 0;
}

.vc-ekspertiz {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.vc-ekspertiz__title {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 700;
  color: #364049;
}

.vc-ekspertiz__diagram {
  margin-bottom: 16px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.vc-ekspertiz__diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Ekspertiz renkleri (JS ile eklenen sınıflar) */
.vc-ekspertiz__diagram .Orjinal { fill: #878787 !important; }
.vc-ekspertiz__diagram .Değişen { fill: #d71920 !important; }
.vc-ekspertiz__diagram .Boyalı { fill: #ffd800 !important; }

.vc-ekspertiz__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #5E6C79;
}

.vc-ekspertiz__legend-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

.vc-ekspertiz__legend-dot--orjinal { background: #878787; }
.vc-ekspertiz__legend-dot--degisen { background: #d71920; }
.vc-ekspertiz__legend-dot--boyali { background: #ffd800; }

.vc-ekspertiz__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.vc-ekspertiz__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 10px;
  font-size: 14px;
}

.vc-ekspertiz__list li span:first-child {
  color: #5E6C79;
}

.vc-ekspertiz__list li span:last-child {
  font-weight: 600;
  color: #364049;
}

/* --- Adres / Harita --- */
.vc-detail-location {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.vc-detail-location__title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: #364049;
}

.vc-detail-location__text {
  margin: 0 0 16px 0;
  font-size: 15px;
  color: #5E6C79;
  line-height: 1.5;
}

.vc-detail-location__map {
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
  background: #e9ecef;
}

.vc-detail-location__map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

/* --- Sidebar (tek kart, premium) --- */
.vc-detail-row {
  align-items: flex-start;
}

.vc-detail-aside {
  flex-shrink: 0;
}

.vc-detail-sidebar {
  position: sticky;
  top: 24px;
}

/* Tek premium kart: fiyat + iletişim */
.vc-detail-sidebar-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.vc-detail-sidebar-card__price-block {
  background: linear-gradient(160deg, #2d363e 0%, #1e2529 100%);
  padding: 24px 20px;
  color: #fff;
}

.vc-detail-sidebar-card__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.vc-detail-sidebar-card__price {
  margin: 0 0 20px 0;
  font-size: 24px;
  font-weight: 700;
  color: #F7931E;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.vc-detail-sidebar-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vc-detail-sidebar-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.vc-detail-sidebar-card__btn--primary {
  background: #F7931E;
  color: #fff;
}

.vc-detail-sidebar-card__btn--primary:hover {
  background: #e08518;
  color: #fff;
  transform: translateY(-1px);
}

.vc-detail-sidebar-card__btn--outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.vc-detail-sidebar-card__btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.vc-detail-sidebar-card__divider {
  height: 1px;
  background: #eee;
  margin: 0;
}

.vc-detail-sidebar-card__contact-block {
  padding: 20px;
}

.vc-detail-sidebar-card__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.vc-detail-sidebar-card__logo {
  display: block;
  max-height: 32px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.vc-detail-sidebar-card__brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #364049;
  letter-spacing: -0.02em;
}

.vc-detail-sidebar-card__phone {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #F7931E;
  text-decoration: none;
  margin-bottom: 14px;
  transition: color 0.2s;
}

.vc-detail-sidebar-card__phone:hover {
  color: #e08518;
}

.vc-detail-sidebar-card__btn--whatsapp {
  width: 100%;
  background: #25D366;
  color: #fff;
  font-size: 13px;
}

.vc-detail-sidebar-card__btn--whatsapp:hover {
  background: #20bd5a;
  color: #fff;
  transform: translateY(-1px);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .vc-detail-sidebar {
    position: static;
  }

  .vc-detail-specs__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .vc-detail {
    padding: 16px 0 40px;
  }

  .vc-detail-hero {
    margin-bottom: 24px;
  }

  .vc-detail-title {
    font-size: 20px;
  }

  .vc-detail-gallery__slide .vc-detail-gallery__link {
    aspect-ratio: 4/3;
  }

  .vc-detail-gallery-thumbs-wrap {
    padding: 12px 10px 14px;
  }

  .vc-detail-gallery-thumbs__slide img {
    border-radius: 6px;
  }

  .vc-detail-gallery-main .slick-prev,
  .vc-detail-gallery-main .slick-next {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }

  .vc-detail-gallery-main .slick-prev svg,
  .vc-detail-gallery-main .slick-next svg {
    width: 20px;
    height: 20px;
  }

  .vc-detail-gallery-main .slick-prev { left: 10px; }
  .vc-detail-gallery-main .slick-next { right: 10px; left: auto; }

  .vc-detail-specs,
  .vc-detail-desc,
  .vc-ekspertiz,
  .vc-detail-location {
    padding: 20px;
  }

  .vc-detail-sidebar-card__price-block {
    padding: 20px 18px;
  }

  .vc-detail-sidebar-card__price {
    font-size: 22px;
  }

  .vc-detail-sidebar-card__contact-block {
    padding: 18px;
  }
}
