/*
 * Günerler performans katmanı
 * Görsel tasarımı değiştirmeden ilk çizim, CLS ve ana iş parçacığı yükünü azaltır.
 */

/* Çerez bileşeni artık cache'lenebilir ortak CSS içindedir. */
.cerez-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 9999;
  background: #1D1D1F;
  color: #fff;
  padding: 20px 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .15);
}
.cerez-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cerez-text { flex: 1; min-width: 280px; }
.cerez-text p {
  margin: 0;
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  line-height: 1.6;
}
.cerez-link {
  display: inline-block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
  text-decoration: underline;
}
.cerez-link:hover { color: #fff; }
.cerez-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cerez-btn {
  min-height: 42px;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  font: 600 13px/1.2 inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.cerez-btn-ghost {
  color: rgba(255, 255, 255, .7);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
}
.cerez-btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cerez-btn-primary { color: #1D1D1F; background: #fff; }
.cerez-btn-primary:hover { background: #E8E8ED; }

/* Görseller için kararlı kutu ve daha ucuz çizim. */
img {
  max-width: 100%;
  height: auto;
}
.model-card-img,
.arac-img,
.arac-gorsel,
.kmp-kart-img {
  contain: layout paint;
}

/* İlk ekranın altında kalan büyük blokları görünene kadar çizme. */
@supports (content-visibility: auto) {
  #niyet,
  #kampanya-section,
  #modeller,
  #firsat,
  #apple-cards-section,
  #servis-kalite,
  #hakkimizda,
  .marka-group,
  .kmp-section,
  .faq-section,
  footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 760px;
  }
}

/* Kullanıcı hareket azaltma tercihi ve düşük güçlü mobil cihazlar. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 600px) {
  .cerez-bar { padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .cerez-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cerez-text { min-width: 0; }
  .cerez-text p,
  .cerez-link { font-size: 12px; }
  .cerez-actions { flex-direction: column; }
  .cerez-btn { width: 100%; padding: 10px 12px; text-align: center; }
}

/* İkon fontu asenkron gelirken ligature metninin genişlik değiştirmesini önler. */
.material-symbols-outlined {
  display: inline-block;
  inline-size: 1em;
  block-size: 1em;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1;
  flex: 0 0 auto;
  vertical-align: -0.125em;
}

/* Kırık dış kaynak görselleri için kart ölçüsünü koruyan son fallback. */
img.gnr-image-fallback {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    padding: 0 !important;
    background: #f5f5f7 !important;
}
