/* Özaltın Turizm · Araç kiralama v2 "Teslim" (önek af-)
   Tek odak: teslime gelen araç. Araç rengini peşinden getirir, zemine oturur.
   Süzgeç çubuğu sahne ile park yerlerinin birleştiği çizgide durur; liste park yerleridir.
   Önceki sürüm: _yedek/arac-v1-plaka-20261122-111600/ */

.af-simgeler { position: absolute; width: 0; height: 0; overflow: hidden; }
.oz-ust-beyaz .oz-menu a[aria-current="page"] { color: #fff; font-weight: 700; }

/* ---------- Sahne ---------- */
.af {
  --cubuk: clamp(76px, 3.9vw, 100px);
  position: relative;
  overflow: hidden; overflow: clip;
  padding: var(--icerik-ust) 0 calc(var(--cubuk) / 2 + 22px);
  color: #fff;
}
.af-renkler { position: absolute; inset: 0; pointer-events: none; }
.af-renkler span {
  position: absolute; inset: 0;
  transform: scaleX(0);
  will-change: transform;
}

.af-giris { position: relative; z-index: 3; padding: 0 20px; text-align: center; }
.af-giris h1 {
  font-size: clamp(27px, 1.8vw, 46px); line-height: 1.1; letter-spacing: -.03em;
  font-weight: 700; text-wrap: balance;
}
.af-giris p { margin-top: 10px; font-size: clamp(14px, .8vw, 18px); line-height: 1.5; color: rgba(255, 255, 255, .68); }

.af-sahne {
  --sh: clamp(350px, calc(100svh - 620px), 700px);
  --g: min(41vw, 1020px, calc(var(--sh) * 1.5));
  position: relative;
  height: var(--sh);
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) 56px var(--g) 56px minmax(0, 1fr);
  column-gap: clamp(8px, 1.1vw, 28px);
  padding: 0 clamp(20px, 3vw, 80px);
  touch-action: pan-y;
  outline: none;
}
.af-sahne:focus-visible .af-ok { outline: 2px solid var(--altin); outline-offset: 3px; }

/* Zemin: ufuk aracın arkasından geçer, tekerlekler zemine basar */
.af-zemin {
  position: absolute; left: 0; right: 0;
  top: calc(var(--sh) - var(--g) * .2); height: 200vh;
  background: rgba(0, 0, 0, .15);
  pointer-events: none;
}
.af-yol {
  position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: var(--sh);
  user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.af-yol:active { cursor: grabbing; }
.af-oto {
  --w: calc(var(--g) * var(--boy, 1));
  position: absolute; left: 50%; bottom: calc(var(--g) * .015);
  width: var(--w); margin-left: calc(var(--w) / -2);
  visibility: hidden;
  will-change: transform, opacity;
}
.af-oto.is-on { visibility: visible; }
html.js .af:not(.is-hazir) .af-oto { opacity: 0; }
.af-oto-duz img { border-radius: 18px; } /* panelden arka planlı fotoğraf gelirse */
.af-oto img { width: 100%; height: auto; transform-origin: 50% 94%; -webkit-user-drag: none; }

/* Aracın adı (solda) ve bilgileri (sağda) */
.af-adlar, .af-yan { position: relative; z-index: 2; min-width: 0; width: 100%; max-width: 430px; pointer-events: none; }
.af-adlar { grid-column: 1; justify-self: end; display: grid; }
.af-yan { grid-column: 5; justify-self: start; }

.af-ad, .af-oz {
  grid-area: 1 / 1; min-width: 0;
  opacity: 0; visibility: hidden; transform: translate3d(0, 14px, 0);
  transition: opacity .4s ease, transform .55s var(--e), visibility 0s linear .55s;
}
.af-ad.is-on, .af-oz.is-on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .7s var(--e) .4s, transform .8s var(--e) .4s, visibility 0s;
}
.af-marka { font-size: clamp(16px, 1vw, 24px); font-weight: 500; color: rgba(255, 255, 255, .72); }
.af-ad h2 {
  margin-top: 6px;
  font-size: clamp(32px, 2.35vw, 60px); line-height: 1.02; letter-spacing: -.035em;
  font-weight: 800; text-wrap: balance;
}
.af-ad-bos h2 { font-size: clamp(26px, 1.7vw, 44px); line-height: 1.1; }
.af-benzer { margin-top: 12px; font-size: clamp(14px, .75vw, 17px); line-height: 1.5; color: rgba(255, 255, 255, .62); }

.af-ozler { display: grid; }
.af-oz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.3vw, 30px) 18px; }
.af-oz dt { display: flex; align-items: center; gap: 9px; font-size: clamp(12px, .68vw, 15px); color: rgba(255, 255, 255, .64); }
.af-oz dt svg {
  flex: none; width: 20px; height: 20px;
  fill: none; stroke: var(--altin); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.af-oz dd { margin-top: 5px; padding-left: 29px; font-size: clamp(16px, .95vw, 22px); line-height: 1.2; font-weight: 600; }

.af-plan { display: grid; margin-top: clamp(18px, 1.7vw, 40px); min-height: 3em; font-size: clamp(13px, .72vw, 16px); line-height: 1.5; }
.af-plan b, .af-plan span { grid-area: 1 / 1; align-self: center; transition: opacity .55s var(--e); }
.af-plan b { opacity: 0; font-weight: 600; color: var(--altin); }
.af-plan span { color: rgba(255, 255, 255, .64); }
.af-plan.is-dolu b { opacity: 1; }
.af-plan.is-dolu span { opacity: 0; }

.af-eylem { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 12px; pointer-events: auto; }
.af-sor {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 22px; border-radius: 14px;
  background: #fff; color: var(--renk); white-space: nowrap;
  text-decoration: none; font-size: 16px; font-weight: 700;
  transition: color 1s var(--e), transform .55s var(--e);
}
.af-sor:hover { transform: translate3d(0, -2px, 0); }
.af-sor svg { width: 20px; height: 20px; fill: currentColor; }
.af-tel { color: #fff; white-space: nowrap; text-decoration: none; font-size: 16px; font-weight: 600; transition: color .5s var(--e); }
.af-tel:hover { color: var(--altin); }

.af-ok {
  position: relative; z-index: 3;
  width: 56px; height: 56px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 16px;
  background: rgba(255, 255, 255, .1); cursor: pointer;
  transition: background-color .55s var(--e), opacity .55s var(--e);
}
.af-ok-geri { grid-column: 2; }
.af-ok-ileri { grid-column: 4; }
.af-adlar, .af-yan, .af-ok { grid-row: 1; }
.af-ok:hover { background: rgba(255, 255, 255, .2); }
.af-ok:disabled { opacity: 0; pointer-events: none; }
.af-ok svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Süzgeç çubuğu: sahne ile park yerinin birleştiği çizgide ---------- */
.af-secim {
  --cubuk: clamp(76px, 3.9vw, 100px);
  position: relative; z-index: 4;
  background: #dfe6ee; color: var(--lac);
}
.af-suz {
  position: relative; top: calc(var(--cubuk) / -2);
  width: calc(100% - 2 * clamp(14px, 3vw, 80px));
  margin: 0 auto calc(var(--cubuk) / -2);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.2fr) minmax(0, 1.15fr);
  gap: 4px; padding: 7px;
  border-radius: 18px; background: #fff;
  box-shadow: 0 22px 44px -30px rgba(14, 31, 58, .5);
}
.af-alan {
  min-width: 0; height: calc(var(--cubuk) - 14px);
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 0 clamp(10px, .85vw, 22px);
  border-radius: 12px;
  transition: background-color .55s var(--e);
}
.af-alan:hover { background: #f3f6f9; }
.af-alan.is-dolu { background: #e9eff6; }
.af-alan:focus-within { background: #e9eff6; }
.af-alan > span, .af-alan > label { font-size: clamp(12px, .62vw, 14px); color: var(--soluk); }
.af-alan select, .af-alan input {
  width: 100%; min-width: 0; height: 30px; padding: 0;
  border: 0; border-radius: 4px; background-color: transparent; color: var(--lac);
  font: inherit; font-size: clamp(14px, .78vw, 18px); font-weight: 700;
}
.af-alan select {
  appearance: none; -webkit-appearance: none;
  padding-right: 22px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6577' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 17px;
}
.af-alan option { background: #fff; color: var(--lac); font-weight: 500; }
.af-gun { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: center; }
.af-gun input { text-align: center; appearance: textfield; -moz-appearance: textfield; }
.af-gun input::-webkit-inner-spin-button, .af-gun input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.af-gun input::placeholder { color: var(--lac); opacity: 1; }
.af-gun button {
  height: 30px; padding: 0; border: 0; border-radius: 8px;
  background: #eef2f6; color: var(--lac); font-size: 18px; line-height: 1; cursor: pointer;
  transition: background-color .55s var(--e);
}
.af-gun button:hover { background: #d8e1eb; }

.af-durum {
  min-height: 72px; padding: 14px clamp(20px, 3.6vw, 96px) 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.af-durum p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; font-size: 14px; line-height: 1.4; color: var(--soluk); }
.af-sayi { font-size: 18px; color: var(--lac); }
.af-temizle {
  flex: none; height: 42px; padding: 0 14px;
  border: 0; border-radius: 12px; background: transparent; color: var(--lac);
  font-size: 14px; font-weight: 600; cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .55s var(--e), background-color .55s var(--e), visibility 0s linear .55s;
}
.af-temizle.is-on { opacity: 1; visibility: visible; transition: opacity .55s var(--e), background-color .55s var(--e), visibility 0s; }
.af-temizle:hover { background: rgba(255, 255, 255, .6); }

/* ---------- Park yerleri ---------- */
.af-park {
  position: relative;
  margin: 0; padding: 0 clamp(26px, 2.2vw, 60px); list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; row-gap: 14px;
}
.af-yer {
  position: relative; flex: none;
  width: calc(100% / var(--kol, 12) - .1px);
  transition: opacity .32s ease;
}
.af-yer[hidden] { display: none; }
.af-yer.is-cikiyor { pointer-events: none; }
/* Park çizgisi */
.af-yer::before {
  content: ""; position: absolute; inset: 0 -1.5px;
  border-left: 3px solid #fff; border-right: 3px solid #fff;
  transform: skewX(-12deg);
}
/* Seçilen park yeri sahnenin rengini alır */
.af-yer::after {
  content: ""; position: absolute; inset: 0 6px;
  border-radius: 12px; background: var(--r);
  transform: skewX(-12deg); opacity: 0;
  transition: opacity .6s var(--e);
}
.af-yer.is-sec::after { opacity: 1; }
.af-yer button {
  position: relative; z-index: 1;
  width: 100%; min-width: 0; padding: 12px 0 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  border: 0; border-radius: 12px; background: none; color: var(--lac); cursor: pointer;
  transition: color .6s var(--e);
}
.af-yer.is-sec button { color: #fff; }
.af-yer-oto { width: 94%; aspect-ratio: 1.6; display: flex; align-items: flex-end; justify-content: center; }
.af-yer-oto img { width: calc(100% * var(--boy, 1)); height: auto; transition: transform .7s var(--e); }
.af-yer button:hover img { transform: scale(1.06); }
.af-yer-ad {
  max-width: 100%; padding: 0 12px;
  display: grid; gap: 3px;
  font-size: clamp(13px, .72vw, 17px); line-height: 1.15; font-weight: 700; text-align: center;
}
.af-yer-ad small { font-size: .78em; font-weight: 500; opacity: .68; }

.af-kaynak { padding: 26px clamp(20px, 3.6vw, 96px) 30px; font-size: 12px; line-height: 1.7; color: var(--soluk); }
.af-kaynak summary { width: fit-content; cursor: pointer; }
.af-kaynak p { margin-top: 10px; }
.af-kaynak ul { margin: 6px 0 0; padding: 0; list-style: none; columns: 3 300px; column-gap: 32px; }
.af-kaynak[open] > div { animation: af-belir .6s var(--e); }
@keyframes af-belir { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Ekranlar ---------- */
@media (max-width: 1640px) {
  .af-park { --kol: 6 !important; }
}
@media (max-width: 1400px) {
  .af-suz { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Dar masaüstü: yan sütun düğmeyi ve uzun sözcükleri taşıyacak kadar yer bulur */
@media (min-width: 1101px) and (max-width: 1400px) {
  .af-sahne { --g: min(37vw, calc(var(--sh) * 1.5)); column-gap: 10px; }
  .af-oz { column-gap: 8px; }
  .af-oz dd { padding-left: 0; font-size: 15px; }
  .af-sor {
    height: auto; min-height: 56px; max-width: 100%; gap: 9px; padding: 8px 16px;
    white-space: normal; line-height: 1.2; font-size: 15px;
  }
  .af-sor svg { flex: none; }
}
@media (max-width: 1100px) {
  .af { padding-top: var(--icerik-ust); }
  .af-sahne {
    --sh: min(58vw, 440px);
    --g: min(82vw, calc(var(--sh) * 1.5));
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start; column-gap: 28px; row-gap: 22px;
    padding: calc(var(--sh) + 26px) 24px 12px;
  }
  .af-adlar, .af-yan { max-width: none; justify-self: stretch; }
  .af-adlar { grid-column: 1; }
  .af-yan { grid-column: 2; }
  .af-ok { position: absolute; top: calc(var(--sh) * .5); width: 44px; height: 44px; border-radius: 13px; }
  .af-ok-geri, .af-ok-ileri { grid-area: auto; }
  .af-ok-geri { left: 10px; }
  .af-ok-ileri { right: 10px; }
}
@media (max-width: 700px) {
  .af-sahne { --sh: 66vw; --g: 88vw; grid-template-columns: minmax(0, 1fr); padding-left: 20px; padding-right: 20px; }
  .af-adlar, .af-yan { grid-column: 1; grid-row: auto; }
  .af-ad h2 { font-size: 34px; }
  .af-ok { top: calc(var(--sh) * .12); grid-row: auto; }
  .af-suz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .af-alan select, .af-alan input { font-size: 16px; }
  .af-durum { align-items: flex-start; }
  .af-park {
    flex-wrap: nowrap; justify-content: flex-start;
    padding: 0 24px; overflow-x: auto; scrollbar-width: none;
  }
  .af-park::-webkit-scrollbar { display: none; }
  .af-yer { width: 148px; }
}
