/* ===========================
   VEHICLE DETAIL PAGE - ARAÇ DETAY
   Uses variables from custom.css
   =========================== */

/* ===========================
   1. HERO SECTION
   =========================== */

.detail-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  background-image: url('../../../assets/img/bg.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  padding: 2rem 0;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(45, 45, 45, 0.7) 50%, rgba(26, 26, 26, 0.85) 100%);
  z-index: 1;
}

.detail-hero .container {
  position: relative;
  z-index: 2;
}

.detail-breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 400;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin: 0 0.75rem;
  color: #cccccc;
  font-size: 1rem;
  font-weight: 300;
}

.breadcrumb-link {
  color: #cccccc;
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0.25rem 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.breadcrumb-link:hover {
  color: var(--brand-orange);
  text-decoration: none;
}

.breadcrumb-item--active .breadcrumb-text {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.detail-header {
  margin-top: 1rem;
}

.detail-title {
  font-family: var(--font-family);
 font-size: 27px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  color: #cccccc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.detail-separator {
  color: #a0aec0;
}

/* ===========================
   2. MAIN CONTENT
   =========================== */

.detail-content {
  padding: 3rem 0;
  background-color: var(--bg);
}

/* ===========================
   3. IMAGE GALLERY
   =========================== */

.detail-gallery {
  background-color: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
}

.gallery-main {
  position: relative;
  /* height: 400px; */
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-fullscreen {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-fullscreen:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.gallery-thumbnails {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--surface);
  overflow-x: auto;
  scrollbar-width: thin;
}

.thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.thumbnail.active {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.2);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.thumbnail:hover img {
  transform: scale(1.1);
}

/* ===========================
   4. FEATURES SECTION
   =========================== */

.detail-features {
  background-color: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
}

.section-title {
  font-family: var(--font-family);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brand-orange);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--surface);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
}

.feature-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #e2e8f0;
  color: #4a5568;
  border-radius: 10px;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.feature-content {
  flex: 1;
}

.feature-label {
  display: block;
  font-family: var(--font-family);
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.feature-value {
  display: block;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

/* ===========================
   5. DESCRIPTION SECTION
   =========================== */

.detail-description {
  background-color: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
}

.description-content {
  font-family: var(--font-family);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
}

.description-content p {
  margin-bottom: 1rem;
}

.description-content p:last-child {
  margin-bottom: 0;
}

/* ===========================
   6. SIDEBAR
   =========================== */

.detail-sidebar {
  position: sticky;
  top: 2rem;
}

/* Price Card */
.price-card {
  background-color: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-light);
}

.price-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.price-label {
  display: block;
  font-family: var(--font-family);
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.price-value {
  font-family: var(--font-family);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-orange);
  letter-spacing: -0.02em;
}

.price-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background-color: var(--brand-orange);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition-fast);
  border: 2px solid var(--brand-orange);
}

.btn-primary:hover {
  background-color: #ffffff;
  color: var(--brand-orange);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.25);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background-color: #f7fafc;
  color: #4a5568;
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition-fast);
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background-color: #edf2f7;
  border-color: #cbd5e0;
  color: #2d3748;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Dealer Card */
.dealer-card {
  background-color: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-light);
}

.dealer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dealer-logo {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dealer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dealer-info {
  flex: 1;
}

.dealer-name {
  font-family: var(--font-family);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.dealer-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-family);
  font-size: 0.875rem;
  color: var(--muted);
}

.dealer-location i {
  color: var(--brand-orange);
  font-size: 0.75rem;
}

.dealer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition-fast);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
  background-color: #f1f5f9;
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}

.contact-item.whatsapp:hover {
  background-color: #dcfce7;
  color: #16a34a;
}

.contact-item i {
  color: var(--brand-orange);
  font-size: 1rem;
}

.contact-item.whatsapp i {
  color: #25d366;
}

/* Location Card */
.location-card {
  background-color: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
}

.card-title {
  font-family: var(--font-family);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem 0;
}

.location-address {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

.location-address i {
  color: var(--brand-orange);
  font-size: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* ===========================
   7. EXPERTIZE SECTION
   =========================== */

.detail-expertize {
  background-color: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
}

.expertize-container {
  font-family: var(--font-family);
}

/* Car Diagram */
.car-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  min-height: 320px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Legend */
.expertize-legend {
    display: flex
;
    justify-content: center;
    gap: 15px;
    padding: 1rem 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.legend-item {
  display: flex;
  align-items: center;
    gap: 0.225rem;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.legend-dot.original {
  background-color: #10b981;
}

.legend-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

/* Parts List */
.expertize-parts {
  height: 100%;
}

.parts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.375rem;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.75rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.part-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1rem;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.part-item:hover {
  background-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

.part-name {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
}

.part-status {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}

/* Status Colors - Softer */
.part-status.status-lb {
  background-color: #fffbeb;
  color: #a16207;
  border: 1px solid #fef3c7;
}

.part-status.status-b {
  background-color: #fffbeb;
  color: #a16207;
  border: 1px solid #fef3c7;
}

.part-status.status-d {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}


/* ===========================
   8. LIGHTBOX GALLERY
   =========================== */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

#lightboxImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  pointer-events: none;
}

.nav-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.nav-btn.prev {
  margin-left: -25px;
}

.nav-btn.next {
  margin-right: -25px;
}

.lightbox-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* ===========================
   8. RESPONSIVE DESIGN
   =========================== */

@media (max-width: 991.98px) {
  .detail-sidebar {
    position: static;
    margin-top: 2rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .feature-item {
    padding: 0.75rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
  
  .feature-label {
    font-size: 0.75rem;
    margin-bottom: 0.125rem;
  }
  
  .feature-value {
    font-size: 0.875rem;
  }
  
  .gallery-main {
    height: 300px;
  }
}

@media (max-width: 767.98px) {
  .detail-hero {
    padding: 1.5rem 0;
    min-height: 220px;
  }

  .breadcrumb-list
  {
    display: none !important;
  }
  
  .detail-title {
    font-size: 1.5rem;
  }
  
  .detail-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .gallery-main {
    height: 250px;
  }
  
  .gallery-thumbnails {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .thumbnail {
    width: 60px;
    height: 45px;
  }
  
  .detail-features {
    padding: 1.5rem;
  }
  
  .feature-item {
    padding: 0.875rem;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .price-actions {
    gap: 0.5rem;
  }
  
  .dealer-card {
    padding: 1.25rem;
  }
  
  .dealer-logo {
    width: 50px;
    height: 50px;
  }
  
  .expertize-legend {
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .car-diagram {
    min-height: 250px;
  }
  
  .parts-grid {
    max-height: 300px;
  }
  
  .detail-expertize {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .detail-content {
    padding: 2rem 0;
  }
  
  .breadcrumb-list {
    font-size: 0.8125rem;
  }
  
  .breadcrumb-item:not(:last-child)::after {
    margin: 0 0.5rem;
  }
  
  .detail-hero {
    min-height: 200px;
  }
  
  .detail-title {
    font-size: 1.25rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }
  
  .feature-item {
    padding: 0.625rem;
  }
  
  .feature-icon {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  
  .feature-label {
    font-size: 0.6875rem;
  }
  
  .feature-value {
    font-size: 0.8125rem;
  }
  
  .gallery-thumbnails {
    flex-wrap: wrap;
  }
  
  .lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.125rem;
  }
}

/* ===========================
   9. ACCESSIBILITY & PERFORMANCE
   =========================== */

/* Focus states */
.thumbnail:focus,
.gallery-fullscreen:focus,
.nav-btn:focus {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .feature-item:hover,
  .thumbnail:hover img,
  .main-image img {
    transform: none !important;
  }
}

/* Print styles */
@media print {
  .lightbox,
  .gallery-fullscreen,
  .lightbox-nav {
    display: none !important;
  }
  
  .detail-sidebar {
    position: static;
  }
}

/* svg .LB
{
  fill: #4caf50;
} */

svg .B
{
  fill: #ffd800;
}

svg .D
{
  fill:#d71920;
}