/* AGS AUTO — ortak stiller (Borusan Next kart düzeni, kırmızı-turuncu skala) */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Kırmızı-turuncu skala */
  --brand: #ff5a36;          /* ana vurgu (koyu yazıyla) */
  --brand-hover: #ff4a22;
  --red: #e11d2e;
  --orange: #ff8a1f;
  --stamp: #d4202a;

  --ink: rgba(0, 0, 0, 0.85);
  --ink-strong: #171720;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f8fa;
  --chip: #f4f5f7;
  --white: #fff;

  /* Ekspertiz durumları */
  --s-orijinal: #dfe3e9;
  --s-lokal: #ff9a3d;
  --s-boyali: #4f93ee;
  --s-degisen: #e5383b;

  --radius-btn: 14px;
  --radius-card: 16px;
  --header-h: 80px;
  --container: 1240px;
}

:where(*, *::before, *::after) { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink-strong); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Başlık ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
}
.site-header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-strong); font-size: 1.75rem; line-height: 1; letter-spacing: -0.02em; }
.logo b { font-weight: 800; }
.logo__sub { font-weight: 400; font-size: 1.05rem; letter-spacing: 0.3em; }
.logo__marks { display: inline-flex; gap: 5px; }
.logo__mark { width: 10px; height: 28px; border-radius: 2px; transform: skewX(-14deg); background: linear-gradient(180deg, var(--red), var(--orange)); }

/* ---------- Düğmeler ve form alanları ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 4px 20px;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  font-size: 1rem; font-weight: 700; line-height: 1; cursor: pointer; text-decoration: none;
}
.btn--primary { background: var(--brand); color: var(--ink); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: var(--white); border-color: var(--line); }
.btn--ghost:hover { background: var(--chip); }
.btn--icon { width: 48px; padding: 0; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.select, .input {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  background-color: var(--white); font-size: 0.875rem;
}
.select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23171720' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center;
}
.select:disabled, .input:disabled { background-color: #fafafa; color: #9ca3af; cursor: not-allowed; }

/* ---------- Arama kutusu ---------- */
.search {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 880px; margin: 32px auto 0; padding: 12px;
  background: var(--white); border-radius: 20px;
}
.search .select { flex: 1 1 180px; width: auto; }
.search .btn--primary { flex: 1 1 140px; max-width: 160px; }
.search .btn--icon { flex: 0 0 48px; }
.search .select--sort { flex: 0 0 210px; }
@media (max-width: 640px) {
  .search .select { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .search .btn--primary { flex: 1 1 calc(100% - 56px); max-width: none; }
  .search .select--sort { flex: 1 1 100%; }
}

/* ---------- Büyük sekme kutuları ve başlık ---------- */
/* ---------- Vitrin (hero): kaydırmalı görseller ---------- */
.hero { margin-top: 24px; }
.hero + .squares { margin-top: 8px; }
.hero__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; border-radius: 24px;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.hero__track.is-dragging { cursor: grabbing; }
.hero__track.no-snap { scroll-snap-type: none; }
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px;
  min-height: 260px; padding: 28px 48px;
}
.hero__slide--red { background: var(--red); color: var(--white); }
.hero__slide--orange { background: var(--orange); color: var(--ink-strong); }
.hero__slide--coral { background: var(--brand); color: var(--ink-strong); }
.hero__title { font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.hero__tag { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 18px; background: #fff; color: var(--red); font-size: 1rem; font-weight: 800; }
.hero__art { display: flex; align-items: center; justify-content: center; gap: 2%; height: 200px; min-width: 0; }
.hero__art > img { width: 100%; max-height: 100%; object-fit: contain; }
.hero__art > svg { height: 100%; width: auto; max-width: 100%; }
.hero__art--swap > img { width: 41%; }
.hero__art--swap > svg { width: 15%; height: auto; flex: none; }
.hero__dots { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
.hero__dot { width: 24px; height: 24px; padding: 8px; border: 0; border-radius: 50%; background: #d3d7de; background-clip: content-box; cursor: pointer; }
.hero__dot[aria-current="true"] { background-color: var(--brand); }

/* İlanlar sayfası: Güncel / Satılan anahtarı */
.switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.switch__btn {
  height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: var(--white); color: var(--ink-strong); font-weight: 600; cursor: pointer;
}
.switch__btn span { margin-left: 6px; font-weight: 500; opacity: 0.7; }
.switch__btn[aria-pressed="true"] { border-color: transparent; background: linear-gradient(110deg, var(--red), var(--orange)); color: #fff; }
.switch__btn[aria-pressed="true"] span { opacity: 0.85; }

/* Ana sayfa: iki büyük kare */
.squares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.sq {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  padding: 36px; border: 1px solid var(--line); border-radius: 24px; text-decoration: none;
}
.sq--current { border-color: transparent; background: linear-gradient(110deg, var(--red), var(--orange)); color: #fff; }
.sq--sold { background: #eceef1; border-color: #dcdfe4; color: #6b7280; }
.sq__text { display: flex; flex-direction: column; gap: 8px; }
.sq__title { font-size: clamp(1.75rem, 4vw, 3.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }
.sq--sold .sq__title { color: #4b5563; }
.sq__count { font-size: clamp(1rem, 1.6vw, 1.375rem); font-weight: 500; opacity: 0.85; }
.sq__art { position: relative; display: flex; justify-content: center; }
.sq__art img { width: 100%; max-width: 480px; height: auto; }
.sq__stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-14deg);
  padding: 4px 18px; border: 3px solid var(--stamp); outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.9); color: var(--stamp);
  font-size: clamp(1rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: 0.14em; line-height: 1.2; white-space: nowrap;
}

/* Ana sayfa: Biz Kimiz */
.about {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 48px; margin-top: 32px; padding: 40px;
  border: 1px solid var(--line); border-radius: 24px; background: var(--white);
}
.about h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-strong); }
.about__main p { margin-top: 12px; font-size: 1.0625rem; line-height: 1.6; color: #4b5563; }
.about__main .about__motto { font-size: 1.25rem; font-weight: 800; color: var(--red); }
.about__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; align-content: start; }
.about__list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 14px; background: var(--chip); }
.about__list b { font-size: 1.0625rem; color: var(--ink-strong); }
.about__list span { color: #4b5563; }
.about__contact { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
.about__contact h3 { font-size: 1.125rem; color: var(--ink-strong); }
.about__contact dl { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 12px 0 0; }
.about__contact dt { font-size: 0.75rem; color: var(--muted); }
.about__contact dd { margin: 0; font-weight: 600; color: var(--ink-strong); }

/* Ana sayfa: fırsat araçları */
.deals { margin-top: 32px; }
.deals .list-head { margin-top: 0; }
.deals .list-head h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-strong); }
.deals__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Fırsat kartı: çerçeve ve canlı parıltı */
@property --deal-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.car-card.is-deal {
  border: 3px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    conic-gradient(from var(--deal-angle), var(--red) 0deg, var(--orange) 90deg, #ffe7b3 140deg, var(--orange) 190deg, var(--red) 270deg, var(--red) 360deg) border-box;
  animation: deal-spin 3s linear infinite, deal-glow 2.4s ease-in-out infinite;
}
@keyframes deal-spin { to { --deal-angle: 360deg; } }
@keyframes deal-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 90, 54, 0.35); }
  50% { box-shadow: 0 0 24px rgba(255, 138, 31, 0.7); }
}
.car-card__deal {
  position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 12px; background: var(--red); color: #fff; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.08em; pointer-events: none;
}

.search { margin-top: 24px; }

.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 20px 0 14px; }
.list-head h1 { font-size: 1.375rem; font-weight: 700; color: var(--ink-strong); letter-spacing: -0.01em; }
.list-head p { font-size: 0.875rem; color: var(--muted); }

/* ---------- Araç kartları ---------- */
.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .cars { grid-template-columns: 1fr; } }

.car-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 6px; display: flex; flex-direction: column;
}
.car-card__media { position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: #2f3035; }
.car-card__track {
  display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.car-card__track::-webkit-scrollbar { display: none; }
.car-card__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }

.car-card__city {
  position: absolute; right: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px;
  border-radius: 11px; background: var(--white); color: var(--ink-strong);
  font-size: 0.6875rem; font-weight: 600; pointer-events: none;
}
.car-card__dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 4px; pointer-events: none; }
.car-card__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
.car-card__dots i.on { background: #fff; }

.car-card__body { padding: 12px 8px 8px; display: flex; flex-direction: column; flex: 1; }
.car-card__title { font-size: 1rem; font-weight: 400; line-height: 1.3; color: #4b5563; }
.car-card__title b { font-weight: 600; color: var(--ink-strong); }
.car-card__trim { font-size: 0.875rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-card__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.car-card__chips span {
  display: flex; align-items: center; justify-content: center; height: 28px; padding: 0 6px;
  border-radius: 6px; background: var(--chip); font-size: 0.8125rem; color: var(--ink-strong);
}
.car-card__chips span b { font-weight: 700; margin-right: 3px; }
.car-card__price { margin-top: auto; padding-top: 12px; font-size: 1.0625rem; font-weight: 700; color: var(--ink-strong); }

/* Kart bağlantıları: fotoğraf ve gövde ilan sayfasına gider */
a.car-card__media, a.car-card__body { color: inherit; text-decoration: none; }
a.car-card__media { display: block; }

/* Satılan ilan: gri kart + kırmızı mühür */
.car-card.is-sold { background: #eceef1; border-color: #dcdfe4; }
.is-sold .car-card__track img { filter: grayscale(1); }
.is-sold .car-card__title, .is-sold .car-card__title b,
.is-sold .car-card__trim, .is-sold .car-card__price { color: #8a9099; }
.is-sold .car-card__chips span { background: #e0e3e8; color: #7b828c; }

/* Satıldı mührü */
.stamp {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  padding: 4px 18px;
  border: 3px solid var(--stamp); outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.88); color: var(--stamp);
  font-size: 1.75rem; font-weight: 800; letter-spacing: 0.14em; line-height: 1.2; white-space: nowrap;
  pointer-events: none;
}

/* ---------- Boş durum, daha fazla, alt bilgi ---------- */
.empty { padding: 56px 16px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 16px; }
.more { display: flex; justify-content: center; margin-top: 24px; }
/* Alt bilgi şeridi: sayfanın en altında. İçerik kısaysa ekranın dibinde, ilanlar uzunsa ilanlar bittikten sonra görünür. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main.container { flex: 1 0 auto; }
.site-footer {
  flex: 0 0 auto; margin-top: 56px; padding: 24px 0;
  background: var(--white); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; text-align: center;
}

/* ---------- Filtre penceresi ---------- */
dialog {
  width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 20px;
  background: var(--white); color: var(--ink);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.dlg { padding: 20px; }
.dlg__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dlg__head h2 { font-size: 1.125rem; font-weight: 700; color: var(--ink-strong); }
.dlg__x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--chip); font-size: 1.125rem; line-height: 1; cursor: pointer; }
.dlg__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dlg__grid .full { grid-column: 1 / -1; }
.dlg__actions { display: flex; gap: 8px; margin-top: 20px; }
.dlg__actions .btn--primary { flex: 1; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-strong); }

/* ---------- İlan sayfası ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 12px; font-weight: 600; color: var(--ink-strong); text-decoration: none; }
.back:hover { text-decoration: underline; }
.panel { margin-bottom: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.panel h2 { margin-bottom: 16px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink-strong); }

.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.detail > .panel { margin-bottom: 0; }

.gallery { padding: 12px; }
.gallery__stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 16px; background: #2f3035; touch-action: pan-y; }
.gallery__img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--ink-strong); cursor: pointer;
}
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__zoom {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px;
  background: var(--white); color: var(--ink-strong); cursor: pointer;
}
.gallery__thumbs { display: flex; gap: 8px; margin: 12px 0 0; padding: 0 0 6px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.gallery__thumbs li { flex: 0 0 auto; }
.gallery__thumb {
  display: block; width: 96px; aspect-ratio: 3 / 2; padding: 0; overflow: hidden;
  border: 2px solid transparent; border-radius: 10px; background: #2f3035; cursor: pointer;
}
.gallery__thumb[aria-current="true"] { border-color: var(--ink-strong); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.is-sold .gallery__img, .is-sold .gallery__thumb img { filter: grayscale(1); }

.buy { padding: 24px; }
.buy__name { font-size: 1.5rem; font-weight: 400; line-height: 1.2; color: #4b5563; }
.buy__name b { font-weight: 700; color: var(--ink-strong); }
.buy__name:focus { outline: none; }
.buy__trim { margin-top: 2px; font-size: 1rem; color: var(--muted); }
.buy__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.buy__chips span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--chip); color: var(--ink-strong); font-size: 0.875rem; }
.buy__chips b { margin-right: 3px; font-weight: 700; }
.buy__price { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.buy__label { font-size: 0.75rem; color: var(--muted); }
.buy__amount { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink-strong); }
.buy__loc { text-align: right; }
.buy__place { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 4px; font-size: 0.8125rem; color: var(--ink-strong); }
.buy__tel { margin-top: 2px; font-size: 0.8125rem; color: var(--ink-strong); }
.buy__tel a { color: inherit; text-decoration: none; }
.buy__loc svg { flex: none; color: var(--red); }
.buy__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.buy__note { margin-top: 12px; font-size: 0.8125rem; color: var(--muted); text-align: center; }
.is-sold .buy__note { margin-top: 20px; }

/* Ekspertiz krokisi */
.expert__body { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 24px 40px; align-items: start; }
.exp-svg { display: block; width: 100%; height: auto; }
.exp-part { fill: var(--s-orijinal); stroke: #a9b1bd; stroke-width: 1.2; }
.exp-part[data-s="lokal"] { fill: var(--s-lokal); }
.exp-part[data-s="boyali"] { fill: var(--s-boyali); }
.exp-part[data-s="degisen"] { fill: var(--s-degisen); }
.exp-glass { fill: var(--white); stroke: #c9ced6; stroke-width: 1; }
.exp-wheel { fill: #e4e7eb; stroke: var(--white); stroke-width: 3; }
.exp-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.exp-dot--orijinal { background: var(--s-orijinal); box-shadow: inset 0 0 0 1px #aab2be; }
.exp-dot--lokal { background: var(--s-lokal); }
.exp-dot--boyali { background: var(--s-boyali); }
.exp-dot--degisen { background: var(--s-degisen); }
.exp-sum { display: flex; flex-direction: column; gap: 16px; }
.exp-sum__h { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: var(--ink-strong); }
.exp-sum__l { margin: 6px 0 0; padding: 0 0 0 18px; list-style: none; }
.exp-sum__l li { font-size: 0.875rem; line-height: 1.75; color: #4b5563; }
.exp-sum__t { margin: 6px 0 0 18px; max-width: 34ch; color: #4b5563; }
.exp-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 0.75rem; color: var(--ink-strong); }
.exp-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tramer { margin-top: 24px; overflow: hidden; border-radius: 16px; background: #f4f6f8; }
.tramer__head, .tramer__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 14px 12px; text-align: center; }
.tramer__head { background: #e4e8ed; font-size: 0.8125rem; font-weight: 700; color: var(--ink-strong); }
.tramer__row { padding-block: 18px; font-weight: 600; color: var(--ink-strong); }

/* Genel / Özel bilgiler */
.info__list { margin: 0; padding: 0; list-style: none; }
.info__list li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.info__list li:last-child { border-bottom: 0; }
.info__list svg { color: var(--ink-strong); }
.info__v { font-weight: 700; text-align: right; color: var(--ink-strong); }

/* Büyük fotoğraf penceresi */
.lightbox { width: min(1200px, calc(100vw - 24px)); height: min(860px, calc(100dvh - 24px)); max-width: none; max-height: none; overflow: hidden; background: #101114; color: #fff; }
.lightbox[open] { display: block; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.72); }
.lightbox__stage { position: absolute; inset: 0; touch-action: pan-y; }
.lightbox__stage img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; }
.lightbox__x, .lightbox__nav {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 1.125rem; line-height: 1; cursor: pointer;
}
.lightbox__x { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__count { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 2px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.55); font-size: 0.8125rem; }

@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; }
  .expert__body { grid-template-columns: 1fr; }
  .expert__fig { width: min(300px, 100%); margin-inline: auto; }
}

/* ---------- Bildirim ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 16px);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--ink-strong); color: #fff; font-size: 0.875rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--stamp); }

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding-inline: 16px; }
  .hero { margin-top: 16px; }
  .hero__track { border-radius: 20px; }
  .hero__slide { grid-template-columns: 1fr; align-content: space-between; gap: 8px; min-height: 210px; padding: 20px 20px 14px; }
  .hero__title { font-size: 1.625rem; }
  .hero__text { gap: 10px; }
  .hero__tag { height: 30px; padding: 0 12px; border-radius: 15px; font-size: 0.875rem; }
  .hero__art { height: 92px; }
  .switch { margin-top: 16px; }
  .switch__btn { flex: 1 1 0; height: 42px; padding: 0 10px; font-size: 0.8125rem; }
  .squares { gap: 10px; }
  .sq { padding: 16px; border-radius: 20px; gap: 8px; }
  .sq__title { font-size: 1.25rem; }
  .sq__count { font-size: 0.8125rem; }
  .sq__stamp { padding: 1px 8px; border-width: 2px; outline-width: 1.5px; outline-offset: 2px; border-radius: 6px; font-size: 0.75rem; }
  .about { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; padding: 24px 20px; border-radius: 20px; }
  .about h2 { font-size: 1.5rem; }
  .about__main p { font-size: 1rem; }
  .about__contact { padding-top: 16px; }
  .deals { margin-top: 24px; }
  .deals .list-head h2 { font-size: 1.375rem; }
  .deals__grid { grid-template-columns: 1fr; gap: 16px; }
  .search { margin-top: 16px; }
  .logo { font-size: 1.5rem; }
  .back { margin-top: 14px; }
  .panel { padding: 16px; border-radius: 16px; }
  .panel h2 { margin-bottom: 8px; font-size: 1.125rem; }
  .gallery { padding: 8px; }
  .gallery__stage { border-radius: 12px; }
  .gallery__thumb { width: 72px; }
  .buy { padding: 16px; }
  .buy__name { font-size: 1.25rem; }
  .buy__amount { font-size: 1.5rem; }
  .tramer__head, .tramer__row { gap: 4px; padding-inline: 6px; }
  .tramer__head { font-size: 0.6875rem; }
  .tramer__row { font-size: 0.8125rem; }
  .lightbox { width: 100vw; height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
  .car-card.is-deal { animation: none; box-shadow: 0 0 14px rgba(255, 90, 54, 0.45); }
}


/* ---------- Karanlık mod düğmesi (başlığın en sağında) ---------- */
.theme-btn { flex: 0 0 auto; height: 44px; padding: 0 16px; font-size: 0.875rem; }
@media (max-width: 480px) { .theme-btn { width: 44px; padding: 0; } .theme-btn span { display: none; } }

/* ---------- Karanlık mod: arka plan siyah, yüzeyler koyu gri, yazılar açık ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: rgba(255, 255, 255, 0.88);
  --ink-strong: #f3f4f6;
  --muted: #9aa1ac;
  --line: #2b2d33;
  --bg: #000;
  --chip: #1d1e23;
  --white: #121316;
}
[data-theme="dark"] .btn--primary { color: rgba(0, 0, 0, 0.85); }
[data-theme="dark"] .hero__slide--red { color: #fff; }
[data-theme="dark"] .hero__slide--orange, [data-theme="dark"] .hero__slide--coral { color: #171720; }
[data-theme="dark"] .hero__dot:not([aria-current="true"]) { background-color: #3a3c43; }
[data-theme="dark"] .select, [data-theme="dark"] .input { color: var(--ink); }
[data-theme="dark"] .select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23f3f4f6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
[data-theme="dark"] .select:disabled, [data-theme="dark"] .input:disabled { background-color: #0b0c0e; color: #6b7280; }
[data-theme="dark"] .sq--sold { background: #17181c; border-color: #2b2d33; color: #9aa1ac; }
[data-theme="dark"] .sq--sold .sq__title { color: #c3c8d0; }
[data-theme="dark"] .about__main p, [data-theme="dark"] .about__list span,
[data-theme="dark"] .car-card__title, [data-theme="dark"] .buy__name,
[data-theme="dark"] .exp-sum__l li, [data-theme="dark"] .exp-sum__t { color: #b6bcc6; }
[data-theme="dark"] .car-card.is-sold { background: #17181c; border-color: #2b2d33; }
[data-theme="dark"] .is-sold .car-card__title, [data-theme="dark"] .is-sold .car-card__title b,
[data-theme="dark"] .is-sold .car-card__trim, [data-theme="dark"] .is-sold .car-card__price { color: #8a9099; }
[data-theme="dark"] .is-sold .car-card__chips span { background: #212228; color: #9aa1ac; }
[data-theme="dark"] .gallery__nav { color: #171720; }
[data-theme="dark"] .tramer { background: #1a1b1f; }
[data-theme="dark"] .tramer__head { background: #24262c; }
[data-theme="dark"] .toast { background: #2b2d33; color: #fff; }
[data-theme="dark"] .toast.is-error { background: var(--stamp); }

/* ---------- Tema geçişi: yeni görünüm düğmeden genişleyen daireyle açılır, eski görünüm derinliğe çekilir ---------- */
::view-transition { background: var(--vt-bg, transparent); }
::view-transition-group(root) { animation-duration: 0s; }
::view-transition-image-pair(root) { perspective: 1600px; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { animation: vt-recede 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
::view-transition-new(root) { animation: vt-reveal 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes vt-recede {
  from { transform: translateZ(0) rotateX(0deg); }
  to { transform: translateZ(-220px) rotateX(6deg); }
}
@keyframes vt-reveal {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 50%)); }
  to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 50%)); }
}
