/* =========================================================
   PRECISION — Filo sayfası (main.css üzerine)
   WordPress'te "page-filo" şablonuna taşınacak.
   ========================================================= */

/* ---------- Sahne ---------- */
.fleet { position: relative; z-index: 1; height: 1600vh; }
.fleet__stage {
  background: linear-gradient(180deg, #d5dade 0%, #cdd3d8 60%, #dde1e5 100%);
  transform-origin: 50% 0;
}
.fleet__canvas-wrap { position: absolute; inset: 0; will-change: transform, filter; }
.fleet__veil {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(238, 241, 244, 0) 25%, rgba(238, 241, 244, .62) 100%);
}
/* Tünel zeminindeki HUD grafiklerinin alt kenarını yumuşatır */
.fleet__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 9%; pointer-events: none; z-index: 1;
  background: linear-gradient(0deg, rgba(226, 230, 233, .9) 10%, rgba(226, 230, 233, 0));
}
.fleet__intro { opacity: 1; }

/* ---------- X-Ray noktaları (konum JS ile, karedeki gerçek parçaya göre) ---------- */
.hotspots { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hs {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 12.5px/1 var(--font); color: var(--ink);
  transform: translate(-11px, -50%);
  opacity: 0; pointer-events: none;
}
.fleet__stage.hs-on .hs { pointer-events: auto; }
/* Dokunma alanı 44×44 px (görünen nokta 22 px) */
.hs::after { content: ""; position: absolute; left: -11px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; }
.hs i {
  position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 14px rgba(20, 23, 28, .28);
}
.hs i::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--red); }
.hs i::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(224, 38, 45, .55); animation: hsPulse 2.2s var(--ease) infinite;
}
@keyframes hsPulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.hs span {
  padding: 8px 12px; border-radius: 99px; white-space: nowrap;
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px -10px rgba(20, 23, 28, .3);
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.hs:hover span, .hs.is-active span { background: var(--ink); color: #fff; transform: translateX(3px); }
.hs.is-off { display: none; }

.fleet__hint {
  position: absolute; left: var(--gutter); bottom: 9vh; z-index: 4;
  display: flex; gap: 16px; align-items: center;
  padding: 16px 22px 16px 18px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 20px; opacity: 0; visibility: hidden;
}
.fleet__hint-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(224, 38, 45, .18); }
.fleet__hint strong { font-size: 16px; }
.fleet__hint p { font-size: 13px; color: var(--ink-2); }

/* Nokta kartı */
.hs-pop {
  position: absolute; z-index: 6; width: 320px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .95);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-radius: 22px; box-shadow: 0 30px 60px -25px rgba(20, 23, 28, .42);
  opacity: 0; visibility: hidden;
}
.hs-pop__x {
  position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(20, 23, 28, .06); font: 400 20px/1 var(--font); cursor: pointer; color: var(--ink-2);
}
.hs-pop__x:hover { background: var(--ink); color: #fff; }
.hs-pop__tag { display: inline-block; font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red-ink); padding: 6px 10px; border-radius: 99px; background: rgba(224, 38, 45, .1); }
.hs-pop h3 { font-size: 21px; letter-spacing: -.02em; margin: 12px 0 6px; line-height: 1.15; padding-right: 24px; }
.hs-pop p { font-size: 14px; color: var(--ink-2); }
.hs-pop__go {
  margin-top: 16px; display: inline-flex; gap: 8px; align-items: center;
  font: 600 14px/1 var(--font); color: #fff; background: var(--ink);
  padding: 12px 18px; border-radius: 99px; border: 0; cursor: pointer; transition: background .3s;
}
.hs-pop__go span { transition: transform .4s var(--ease); }
.hs-pop__go:hover { background: var(--red); }
.hs-pop__go:hover span { transform: translateX(4px); }

.hs-chips { display: none; }

/* ---------- Filo paneli ---------- */
.fpanel {
  --w: min(1180px, 90vw, 150vh);
  position: absolute; left: 50%; bottom: 5vh; z-index: 5;
  width: var(--w); aspect-ratio: 1.85;
  margin-left: calc(var(--w) / -2);
  container-type: inline-size;
  display: grid; grid-template-columns: 19cqw 1fr;
  background: linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(236, 239, 242, .5));
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 3cqw;
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 40px 80px -30px rgba(40, 50, 60, .38), inset 0 1px 0 rgba(255, 255, 255, .9);
  transform-origin: 50% 100%;
  opacity: 0; visibility: hidden;
  will-change: transform, opacity;
}
.fpanel__side { display: flex; flex-direction: column; gap: 2cqw; padding: 2.4cqw 1.4cqw 2.2cqw 2cqw; min-height: 0; }
.fpanel__brand { display: flex; align-items: center; gap: 1cqw; font-size: 1.5cqw; letter-spacing: -.01em; }
.fpanel__brand .fpanel__logo { width: 2.8cqw; height: 2.8cqw; object-fit: contain; }
.fpanel__tabs { display: grid; gap: .5cqw; }
.vtab {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 1cqw; align-items: baseline;
  text-align: left; cursor: pointer;
  padding: 1cqw 1.2cqw; border: 0; border-radius: 1.2cqw; background: transparent;
  font: 600 max(11px, 1.2cqw)/1.25 var(--font); color: var(--ink-2);
  transition: background .35s, color .35s, box-shadow .35s;
}
.vtab b { font: 600 .8em/1 var(--mono); color: rgba(20, 23, 28, .38); letter-spacing: .06em; }
.vtab small { grid-column: 2; font: 500 .74em/1.2 var(--mono); color: var(--muted); margin-top: .3cqw; letter-spacing: .04em; }
.vtab:hover { background: rgba(255, 255, 255, .6); color: var(--ink); }
.vtab.is-active { background: #fff; color: var(--ink); box-shadow: 0 4px 16px -6px rgba(0, 0, 0, .12); }
.vtab.is-active b { color: var(--red-ink); }
.vtab.is-active::before { content: ""; position: absolute; left: -1.2cqw; top: 26%; bottom: 26%; width: .28cqw; border-radius: 2px; background: var(--red); }
.fpanel__total { margin-top: auto; padding: 1.2cqw; border-radius: 1.2cqw; background: rgba(255, 255, 255, .55); }
.fpanel__total small { display: block; font: 500 max(10px, .9cqw)/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fpanel__total b { font-size: 1.9cqw; letter-spacing: -.02em; }

.fpanel__main { display: grid; grid-template-rows: auto 1fr auto auto; gap: 1.4cqw; padding: 2.2cqw 2.4cqw 2cqw .4cqw; min-height: 0; }
.fpanel__top { display: flex; align-items: center; justify-content: space-between; }
.fpanel__live { display: flex; gap: .6cqw; font: 500 max(10.5px, 1cqw)/1 var(--mono); color: var(--ink-2); }
.fpanel__live span { display: inline-flex; align-items: center; gap: .6cqw; padding: .7cqw 1.1cqw; border-radius: 99px; background: rgba(255, 255, 255, .72); }
.fpanel__live b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dot { width: .75cqw; height: .75cqw; min-width: 7px; min-height: 7px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--green); box-shadow: 0 0 0 .3cqw rgba(47, 163, 122, .18); }
.dot--amber { background: #e3a21a; }
.dot--gray { background: #a3a9b1; }
.fpanel__nav { display: flex; align-items: center; gap: .8cqw; }
.fpanel__count { font: 500 max(11px, 1.1cqw)/1 var(--mono); color: var(--muted); margin-right: .6cqw; font-variant-numeric: tabular-nums; }
.fpanel__count b { color: var(--ink); }
.fpanel__arrow {
  width: 3.2cqw; height: 3.2cqw; min-width: 30px; min-height: 30px; border-radius: 50%;
  border: 1px solid rgba(20, 23, 28, .1); background: rgba(255, 255, 255, .82); cursor: pointer;
  font: 600 max(13px, 1.3cqw)/1 var(--font); color: var(--ink); transition: background .3s, color .3s;
}
.fpanel__arrow:hover { background: var(--ink); color: #fff; }

.fpanel__show { display: grid; grid-template-columns: 34% 1fr; gap: 2cqw; min-height: 0; }
.fpanel__copy { align-self: center; }
.fpanel__kicker { display: inline-block; font: 600 max(10px, .92cqw)/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red-ink); }
.fpanel__copy h2 { font-size: 3.4cqw; line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: .8cqw 0 1cqw; }
.fpanel__copy p { font-size: max(12px, 1.12cqw); color: var(--ink-2); line-height: 1.5; }
.fpanel__tags { display: flex; flex-wrap: wrap; gap: .5cqw; margin-top: 1.3cqw; }
.fpanel__tags span { font: 500 max(10px, .86cqw)/1.2 var(--mono); padding: .5cqw .9cqw; border-radius: 99px; background: rgba(255, 255, 255, .88); color: var(--ink-2); border: 1px solid rgba(20, 23, 28, .06); }
.fpanel__cta.btn { margin-top: 1.8cqw; font-size: max(12px, 1.1cqw); padding: 1cqw 1.7cqw; }

.fpanel__stage {
  position: relative; overflow: hidden; min-height: 0;
  border-radius: 2cqw; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 23, 28, .04), 0 10px 30px -18px rgba(0, 0, 0, .2);
}
.fpanel__stage.viewfinder::before { --c: rgba(20, 23, 28, .35); inset: 1.2cqw; opacity: 1; transform: none; }
.fpanel__ghost {
  position: absolute; left: 3cqw; top: 1.4cqw; white-space: nowrap;
  font-size: 7.5cqw; font-weight: 800; letter-spacing: -.05em; line-height: 1;
  color: rgba(20, 23, 28, .05); pointer-events: none;
}
.fpanel__imgs { position: absolute; inset: 0; }
.fpanel__imgs img {
  position: absolute; left: 4%; top: 6%; width: 92%; height: 92%;
  object-fit: contain; object-position: 50% 70%;
  opacity: 0; will-change: transform, opacity;
}
.fpanel__specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1cqw; }
.spec { background: rgba(255, 255, 255, .9); border-radius: 1.4cqw; padding: 1.2cqw 1.5cqw; box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .15); }
.spec small { display: block; font: 500 max(10px, .88cqw)/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec b { display: block; margin-top: .4cqw; font-size: 2.3cqw; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec b em { font-style: normal; font-size: .5em; font-weight: 600; color: var(--ink-2); margin-left: .25em; letter-spacing: 0; }
.fpanel__progress { height: .3cqw; min-height: 3px; border-radius: 3px; background: rgba(20, 23, 28, .07); overflow: hidden; }
.fpanel__progress span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Filo standartları ---------- */
.fleet-std {
  z-index: 3; margin-top: -100vh;
  background: var(--bg-2);
  border-radius: 48px 48px 0 0;
  box-shadow: 0 -30px 80px -40px rgba(20, 23, 28, .35);
}
.std-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1400px; }
.std {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 34px; transition: box-shadow .6s var(--ease);
}
.std:hover { box-shadow: 0 30px 60px -30px rgba(20, 23, 28, .3); }
.std__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(224, 38, 45, .09); color: var(--red); }
.std__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.std__k { display: block; margin-top: 24px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.std h3 { font-size: 21px; letter-spacing: -.02em; margin: 10px 0 10px; }
.std p { font-size: 15px; color: var(--ink-2); }
.std-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(60px, 10vh, 110px); }

.cta__form select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .6) 50%), linear-gradient(135deg, rgba(255, 255, 255, .6) 50%, transparent 50%);
  background-position: calc(100% - 26px) 50%, calc(100% - 20px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.cta__form select option { color: var(--ink); }
.cta__ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); flex: 0 1 auto !important; }
@media (hover: hover) { .cta__ghost:hover { background: rgba(255, 255, 255, .12); } }

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
  .std-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .fpanel { --w: calc(100vw - 2 * var(--gutter)); aspect-ratio: auto; bottom: 2.5vh; grid-template-columns: minmax(0, 1fr); border-radius: 24px; }
  .fpanel__side, .fpanel__main, .fpanel__show, .fpanel__copy { min-width: 0; }
  .fpanel__show { grid-template-columns: minmax(0, 1fr) !important; gap: 12px; }
  .fpanel__side { padding: 12px 12px 0; gap: 0; }
  .fpanel__brand, .fpanel__total { display: none; }
  .fpanel__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .fpanel__tabs::-webkit-scrollbar { display: none; }
  .vtab { flex: none; display: flex; gap: 6px; font-size: 13px; padding: 9px 13px; border-radius: 99px; white-space: nowrap; }
  .vtab small { display: none; }
  .vtab.is-active::before { display: none; }
  .fpanel__main { padding: 12px 14px 14px; gap: 12px; }
  .fpanel__top { display: none; }
  .fpanel__stage { order: -1; aspect-ratio: 16 / 8.4; max-height: 28vh; border-radius: 18px; }
  .fpanel__ghost { display: none; }
  .fpanel__copy h2 { font-size: 24px; margin: 4px 0 6px; }
  .fpanel__copy p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fpanel__tags { display: none; }
  .fpanel__cta.btn { margin-top: 10px; font-size: 13px; padding: 10px 16px; }
  .fpanel__specs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .spec { padding: 10px 12px; border-radius: 14px; }
  .spec small { font-size: 10px; }
  .spec b { font-size: 20px; }
}
@media (max-width: 760px) {
  /* Etiket görsel olarak gizlenir ama ekran okuyucu düğmenin adını okumaya devam eder */
  .hs span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .fleet__hint { left: var(--gutter); right: var(--gutter); bottom: calc(4vh + 64px); padding: 12px 16px; gap: 12px; }
  .fleet__hint strong { font-size: 14px; }
  .fleet__hint p { font-size: 12.5px; }
  .hs-chips {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    position: absolute; left: 0; right: 0; bottom: 4vh; padding: 0 var(--gutter); z-index: 5;
    opacity: 0; visibility: hidden;
  }
  .hs-chips::-webkit-scrollbar { display: none; }
  .hs-chips button {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    font: 600 13px/1 var(--font); color: var(--ink);
    padding: 12px 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); cursor: pointer;
  }
  .hs-chips button[aria-pressed="true"] { background: var(--ink); color: #fff; }
  .hs-chips button i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
  .hs-pop { left: var(--gutter) !important; right: var(--gutter); top: auto !important; bottom: calc(4vh + 62px); width: auto; }
  .fleet-std { border-radius: 30px 30px 0 0; }
  .std-grid { grid-template-columns: 1fr; }
  .std-stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hs i::after { animation: none; }
}

/* ---------- Yedek görünüm (JS kapalı / animasyon kitaplıkları yüklenemedi) ---------- */
html:not(.js) .hotspots,
html:not(.js) .fleet__hint,
html:not(.js) .hs-pop,
html:not(.js) .hs-chips,
html:not(.js) .fpanel,
html:not(.js) .fleet__veil { display: none !important; }
html:not(.js) .fleet__stage { background: #d5dade url("../seq/part3/d/001.webp") 50% 50% / cover no-repeat; }
html:not(.js) .fleet-std { margin-top: 0; }
@media (max-aspect-ratio: 39/50) {
  html:not(.js) .fleet__stage { background-image: url("../seq/part3/m/001.webp"); }
}
