/* Aslıhan Yaşam Evleri — Dijital Satış Ofisi (SURUM 39)
   Hassas alet dili: grafit stüdyo, tek renk (beyaz ışık), Archivo — başlıklar geniş kesim, arayüz normal kesim.
   Rengi yalnız 3B sahnedeki ışık taşır; arayüz siyah-beyazdır. */
:root {
  --zemin: #08090b;
  --cam: rgba(18, 20, 24, 0.7);
  --cam-koyu: rgba(12, 13, 16, 0.86);
  --cizgi: rgba(255, 255, 255, 0.1);
  --cizgi2: rgba(255, 255, 255, 0.2);
  --yazi: #f7f8fa;
  --soluk: rgba(247, 248, 250, 0.68);
  --silik: rgba(247, 248, 250, 0.44);
  --isik: #ffffff;
  --isik-k: rgba(255, 255, 255, 0.1);
  --koyu-yazi: #0a0b0d;
  --satildi: #ef6a5b;
  --hazir: #6fdba5;
  /* Eski adlar: tek renge bağlanır */
  --altin: var(--isik);
  --altin2: var(--isik);
  --altin-k: var(--isik-k);
  --f: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: var(--f);
  --sans: var(--f);
  --genis: 125%;
  --egri: cubic-bezier(0.22, 1, 0.36, 1);
  --sert: cubic-bezier(0.76, 0, 0.24, 1);
  --golge: 0 24px 60px rgba(0, 0, 0, 0.5);
  --ust-g: max(22px, env(safe-area-inset-top));
  --alt-g: max(20px, env(safe-area-inset-bottom));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--zemin); color: var(--yazi); font-family: var(--f); font-size: 14px; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
body { overscroll-behavior: none; touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible { outline: 1.5px solid var(--isik); outline-offset: 3px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
/* Geniş kesim başlık yazısı */
.marka-ad, .yan-baslik, .sayilar dd, .gs-saat, .kart-baslik, .pin-etiket b, .giris-ad, .perde-baslik, .yukleme-yuzde { font-stretch: var(--genis); }

/* ── Katmanlar ───────────────────────────────────────────────────────────── */
.katman { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; transform-origin: 50% 50%; transition: opacity 0.9s var(--egri), visibility 0.9s, transform 1.2s var(--sert), filter 1.2s var(--sert), background 1s; }
#maket { cursor: grab; background: radial-gradient(56% 50% at 42% 60%, #2a2d33 0%, #15171b 50%, #08090b 100%); }
#maket:active { cursor: grabbing; }
#kroki { background: radial-gradient(70% 60% at 46% 50%, #262930 0%, #121418 55%, #08090b 100%); opacity: 0; visibility: hidden; cursor: grab; }
#sahne { opacity: 0; visibility: hidden; background: #000; }
body[data-mod="kroki"] #maket, body[data-mod="serbest"] #maket, body[data-mod="drone"] #maket { opacity: 0; visibility: hidden; }
body[data-mod="kroki"] #kroki { opacity: 1; visibility: visible; }
body[data-mod="serbest"] #sahne, body[data-mod="drone"] #sahne { opacity: 1; visibility: visible; }
body.gece #maket { background: radial-gradient(56% 50% at 42% 60%, #1a2030 0%, #0d1018 55%, #06070a 100%); }
.vinyet { position: fixed; inset: 0; pointer-events: none; background:
  radial-gradient(130% 100% at 50% 50%, transparent 58%, rgba(4, 5, 6, 0.5) 100%),
  linear-gradient(180deg, rgba(6, 7, 9, 0.5) 0%, transparent 16%, transparent 80%, rgba(6, 7, 9, 0.55) 100%); }
body[data-mod="serbest"] .vinyet, body[data-mod="drone"] .vinyet { opacity: 0.5; }

/* Arayüz girişi: açılıştan sonra tek seferde belirir */
.ust, .yan, .sekmeler, .pusula, .durum3b { opacity: 0; transform: translateY(8px); transition: opacity 1s var(--egri), transform 1s var(--egri); }
body.acik .ust, body.acik .yan, body.acik .sekmeler, body.acik .pusula, body.acik .durum3b { opacity: 1; transform: none; }
body.acik .yan { transition-delay: 0.2s; }
body.acik .sekmeler { transition-delay: 0.35s; }
body.acik .pusula, body.acik .durum3b { transition-delay: 0.5s; }

/* Ortak cam yüzey */
.ikon-btn, .gunsaat, .segment, .hud .zaman, .yan, .sekmeler, .kart, .pusula-halka, .durum3b, .ipucu, .sinematik {
  background: var(--cam); border: 1px solid var(--cizgi); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

/* ── Üst çubuk ───────────────────────────────────────────────────────────── */
.ust { position: fixed; top: var(--ust-g); left: 32px; right: 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 16px; pointer-events: none; z-index: 20; }
.ust > * { pointer-events: auto; }
.marka { display: grid; gap: 4px; justify-self: start; text-shadow: 0 1px 20px rgba(0, 0, 0, 0.55); }
.marka-firma { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; color: var(--soluk); }
.marka-ad { white-space: nowrap; font-size: 25px; font-weight: 300; line-height: 1.05; letter-spacing: -0.015em; }
.marka-yer { font-size: 12.5px; color: var(--silik); }
.baglam { justify-self: center; display: flex; align-items: center; gap: 10px; }
.baglam [data-baglam] { display: none; }
body[data-mod="maket"] .baglam [data-baglam~="maket"], body[data-mod="kroki"] .baglam [data-baglam~="kroki"] { display: flex; }
body[data-mod="kroki"] .gs-duraklar { display: none; }
.ust-sag { justify-self: end; display: flex; gap: 8px; }
.ikon-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transition: border-color 0.3s, background 0.3s; }
.ikon-btn:hover { border-color: var(--cizgi2); background: rgba(40, 43, 50, 0.75); }

/* Seçiciler: etkin olan beyaz */
.segment, .hud .zaman { display: flex; gap: 2px; padding: 4px; border-radius: 999px; box-shadow: var(--golge); }
.segment button, .hud .zaman button { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--soluk); transition: color 0.3s, background 0.4s var(--egri); white-space: nowrap; }
.segment button:hover, .hud .zaman button:hover { color: var(--yazi); }
.segment button[aria-checked="true"], .hud .zaman button[aria-pressed="true"] { color: var(--koyu-yazi); background: var(--isik); }

/* Günün saati: saat işaretli hassas cetvel */
.gunsaat { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 8px 0 18px; border-radius: 999px; box-shadow: var(--golge); }
.gs-ikon { position: relative; width: 18px; height: 18px; color: var(--yazi); }
.gs-ikon svg { position: absolute; inset: 0; transition: opacity 0.6s, transform 0.6s var(--egri); }
.gs-ay { opacity: 0; transform: rotate(-40deg) scale(0.7); }
body.gece .gs-gunes { opacity: 0; transform: rotate(40deg) scale(0.7); }
body.gece .gs-ay { opacity: 1; transform: none; }
.gs-saat { min-width: 64px; font-size: 19px; font-weight: 400; letter-spacing: -0.01em; color: var(--yazi); }
.gs-iz { --k: 72%; -webkit-appearance: none; appearance: none; width: 250px; height: 30px; margin: 0; cursor: pointer;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px calc((100% - 1px) / 17)) center / 100% 7px no-repeat; }
.gs-iz::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--isik) var(--k), rgba(255, 255, 255, 0.2) var(--k)); }
.gs-iz::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.gs-iz::-moz-range-progress { height: 2px; background: var(--isik); }
.gs-iz::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: var(--isik); border: 4px solid #15171b; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 18px rgba(255, 255, 255, 0.55); transition: transform 0.2s var(--egri); }
.gs-iz::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--isik); border: 4px solid #15171b; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 18px rgba(255, 255, 255, 0.55); }
.gs-iz:active::-webkit-slider-thumb { transform: scale(1.25); }
.gs-iz:focus-visible { outline: none; }
.gs-iz:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 0 18px rgba(255, 255, 255, 0.55); }
.gs-duraklar { display: flex; gap: 2px; padding-left: 8px; border-left: 1px solid var(--cizgi); }
.gs-duraklar button { height: 34px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: var(--soluk); transition: color 0.3s, background 0.3s; white-space: nowrap; }
.gs-duraklar button:hover, .gs-duraklar button:focus-visible { color: var(--yazi); background: rgba(255, 255, 255, 0.07); }

/* ── Yan panel: tanıtım kartı ────────────────────────────────────────────── */
.yan { position: fixed; right: 32px; top: 50%; translate: 0 -50%; width: 360px; max-height: calc(100vh - 180px); overflow: auto; padding: 0; border-radius: 22px; box-shadow: var(--golge); z-index: 15; scrollbar-width: none; }
.yan::-webkit-scrollbar { display: none; }
.yan-tutamak { display: none; }
.yan-bolum { display: none; }
body[data-mod="maket"] .yan-bolum[data-baglam="maket"], body[data-mod="kroki"] .yan-bolum[data-baglam="kroki"] { display: block; }
body[data-mod="serbest"] .yan, body[data-mod="drone"] .yan { opacity: 0; pointer-events: none; transform: translateX(20px); }
@keyframes belir { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.yan-kapak { position: relative; margin: 0; height: 210px; display: flex; align-items: flex-end; background: #1a1c20 center / cover no-repeat; }
.yan-kapak::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 11, 0.05) 0%, rgba(8, 9, 11, 0.25) 35%, rgba(8, 9, 11, 0.88) 100%); }
.yan-kapak figcaption { position: relative; padding: 0 24px 18px; }
.yan-ic { padding: 4px 24px 22px; }
.ust-baslik { margin: 0 0 6px; font-size: 12.5px; font-weight: 500; color: var(--soluk); }
.yan-kapak .ust-baslik { color: rgba(255, 255, 255, 0.85); }
.yan-baslik { margin: 0; font-weight: 300; font-size: 25px; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4); }
.yan-baslik .tip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; margin-left: 8px; border-radius: 999px; vertical-align: 5px; font-stretch: 100%; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--koyu-yazi); background: var(--isik); text-shadow: none; }
.sayilar { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 18px; border-bottom: 1px solid var(--cizgi); }
.sayilar div { padding: 16px 0 14px; }
.sayilar div + div { border-left: 1px solid var(--cizgi); padding-left: 16px; }
.sayilar dt { font-size: 12px; color: var(--silik); }
.sayilar dd { margin: 4px 0 0; font-size: 24px; font-weight: 300; letter-spacing: -0.02em; white-space: nowrap; }
.ozellikler { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; font-size: 13.5px; line-height: 1.4; color: var(--soluk); }
.ozellikler li { display: flex; gap: 12px; align-items: baseline; }
.ozellikler li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--isik); flex: none; translate: 0 -2px; }
.yan-ic > .ust-baslik { margin-bottom: 10px; }
.bloklar { display: flex; gap: 6px; margin-bottom: 16px; }
.bloklar button { flex: 1; height: 40px; border-radius: 12px; border: 1px solid var(--cizgi2); font-size: 13px; font-weight: 500; color: var(--soluk); transition: color 0.3s, background 0.3s, border-color 0.3s; }
.bloklar button:hover { color: var(--yazi); border-color: rgba(255, 255, 255, 0.4); }
.bloklar button[aria-pressed="true"] { color: var(--koyu-yazi); border-color: var(--isik); background: var(--isik); }
.lejant { display: flex; gap: 20px; font-size: 12.5px; color: var(--soluk); margin-bottom: 20px; }
.lejant span { display: flex; align-items: center; gap: 8px; }
.nokta { width: 8px; height: 8px; border-radius: 50%; }
.nokta.satildi { background: var(--satildi); }
.nokta.ornek { background: var(--isik); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); animation: nefes 2.6s ease-in-out infinite; }
@keyframes nefes { 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04); } }
.cta { width: 100%; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px 0 22px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--koyu-yazi); background: var(--isik); box-shadow: 0 10px 34px rgba(255, 255, 255, 0.12); transition: transform 0.35s var(--egri), box-shadow 0.35s; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(255, 255, 255, 0.2); }
.cta svg { transition: transform 0.35s var(--egri); }
.cta:hover svg { transform: translateX(4px); }
.dipnot { margin: 14px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--silik); }
.odalar { list-style: none; margin: 0 0 20px; padding: 0; display: grid; }
.odalar li { display: grid; grid-template-columns: 1fr 72px 62px; align-items: center; gap: 12px; height: 36px; padding: 0 10px; margin: 0 -10px; border-radius: 10px; font-size: 13.5px; color: var(--soluk); transition: background 0.25s, color 0.25s; cursor: default; }
.odalar li i { height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.75) calc(var(--o, 0) * 100%), rgba(255, 255, 255, 0.12) 0); }
.odalar li b { font-weight: 500; text-align: right; color: var(--yazi); }
.odalar li.secili { background: var(--isik-k); color: var(--yazi); }
.odalar li.secili i { background: var(--isik); }

/* ── Üzerine gelinen daire / oda kartı ───────────────────────────────────── */
.kart { position: fixed; z-index: 30; min-width: 230px; max-width: 290px; padding: 16px 18px 15px; border-radius: 16px; background: var(--cam-koyu); border-color: var(--cizgi2); box-shadow: var(--golge); pointer-events: none; opacity: 0; transform: translateY(4px) scale(0.98); transition: opacity 0.25s, transform 0.35s var(--egri); }
.kart.gorunur { opacity: 1; transform: none; }
.kart p { margin: 0; }
.kart-ust { font-size: 12px; color: var(--soluk); }
.kart-baslik { font-size: 24px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; margin: 5px 0 3px !important; }
.kart-alt { font-size: 13px; color: var(--soluk); }
.kart-alt i { font-style: normal; font-size: 11.5px; color: var(--silik); margin-left: 4px; }
.kart-durum { margin-top: 12px !important; padding-top: 11px; border-top: 1px solid var(--cizgi); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kart-durum::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kart[data-sinif="satildi"] .kart-durum { color: var(--satildi); }
.kart[data-sinif="ornek"] { border-color: rgba(255, 255, 255, 0.4); }
.kart[data-sinif="ornek"] .kart-durum { color: var(--yazi); }
.kart.salla { animation: salla 0.45s; }
@keyframes salla { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }
.kart.sabit { left: 50% !important; top: auto !important; bottom: calc(var(--alt-g) + 92px); transform: translateX(-50%); }
.kart.sabit.gorunur { transform: translateX(-50%); }

/* Eşyalı kroki modeli inerken düğmenin altında ince ilerleme çizgisi */
[data-kset].yukleniyor { position: relative; }
[data-kset].yukleniyor::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, currentColor calc(var(--p, 0) * 100%), rgba(255, 255, 255, 0.12) 0); }
body.kroki-yukleniyor #kroki { cursor: progress; }

/* ── Örnek daire işaretçisi (js/maket3b.js pinGuncelle) ──────────────────── */
.ornek-pin { position: fixed; left: 0; top: 0; z-index: 18; display: block; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer; transition: opacity 0.5s var(--egri); will-change: transform; }
.ornek-pin.gizli, body:not([data-mod="maket"]) .ornek-pin, body:not(.acik) .ornek-pin { opacity: 0; pointer-events: none; }
.pin-nokta { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--isik); box-shadow: 0 0 0 3px rgba(10, 11, 13, 0.6), 0 0 20px rgba(255, 255, 255, 0.9); }
.pin-nokta i { position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.9); animation: pinNabiz 2.2s cubic-bezier(0.2, 0.7, 0.3, 1) infinite; }
@keyframes pinNabiz { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.pin-cizgi { position: absolute; left: 0; top: -56px; width: 1px; height: 48px; background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)); }
.pin-etiket { position: absolute; left: 0; top: -100px; translate: -50% 0; display: grid; gap: 2px; padding: 9px 16px 10px; border-radius: 12px; white-space: nowrap; text-align: left; background: rgba(12, 13, 16, 0.78); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); transition: background 0.3s, border-color 0.3s; }
.pin-etiket b { font-weight: 400; font-size: 16px; letter-spacing: -0.01em; color: var(--yazi); }
.pin-etiket em { font-style: normal; font-size: 12px; color: var(--soluk); }
.ornek-pin:hover .pin-etiket, .ornek-pin:focus-visible .pin-etiket { background: var(--isik); border-color: var(--isik); }
.ornek-pin:hover .pin-etiket b, .ornek-pin:focus-visible .pin-etiket b, .ornek-pin:hover .pin-etiket em, .ornek-pin:focus-visible .pin-etiket em { color: var(--koyu-yazi); }
@media (max-width: 899px) { .pin-etiket { top: -84px; padding: 7px 12px 8px; } .pin-etiket b { font-size: 14px; } .pin-cizgi { top: -46px; height: 38px; } }

/* ── Pusula ve 3B durum ──────────────────────────────────────────────────── */
.pusula { position: fixed; left: 32px; bottom: calc(var(--alt-g) + 6px); display: flex; align-items: center; gap: 14px; z-index: 12; font-size: 12.5px; color: var(--silik); }
body:not([data-mod="maket"]) .pusula { opacity: 0 !important; pointer-events: none; }
.pusula-halka { --a: 0deg; position: relative; width: 52px; height: 52px; border-radius: 50%; rotate: calc(var(--a) * -1); transition: rotate 0.1s linear; }
.pusula-ok { position: absolute; left: 50%; top: 8px; width: 0; height: 0; translate: -50% 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 16px solid var(--isik); }
.pusula-ok::after { content: ''; position: absolute; left: -4px; top: 16px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 16px solid rgba(255, 255, 255, 0.22); }
.pusula-halka b { position: absolute; left: 50%; top: -19px; translate: -50% 0; font-size: 11px; font-weight: 600; color: var(--yazi); rotate: var(--a); }
.durum3b { --p: 0; position: fixed; right: 32px; bottom: calc(var(--alt-g) + 12px); z-index: 12; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px 0 13px; border-radius: 999px; font-size: 12.5px; color: var(--soluk); overflow: hidden; }
.durum3b::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p) * 100%); background: var(--isik); transition: width 0.6s var(--egri); }
.durum3b i { width: 7px; height: 7px; border-radius: 50%; background: var(--isik); animation: nefes 1.6s ease-in-out infinite; }
.durum3b.hazir { color: var(--yazi); cursor: pointer; border-color: var(--cizgi2); }
.durum3b.hazir::after { width: 100%; opacity: 0.4; }
.durum3b.hazir i { background: var(--hazir); animation: none; }
body[data-mod="serbest"] .durum3b, body[data-mod="drone"] .durum3b { display: none; }

/* ── Sekmeler ────────────────────────────────────────────────────────────── */
.sekmeler { position: fixed; left: 50%; bottom: var(--alt-g); translate: -50% 0; display: flex; gap: 4px; padding: 5px; border-radius: 999px; box-shadow: var(--golge); z-index: 25; }
.sekmeler button { position: relative; display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--soluk); transition: color 0.3s, background 0.45s var(--egri); }
.sekmeler button:hover { color: var(--yazi); }
.sekmeler button[aria-current] { color: var(--koyu-yazi); background: var(--isik); }

/* ── Açılış ──────────────────────────────────────────────────────────────── */
.giris { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 50%, rgba(8, 9, 11, 0.62), rgba(8, 9, 11, 0.92)); backdrop-filter: blur(22px) saturate(0.9); -webkit-backdrop-filter: blur(22px) saturate(0.9); transition: clip-path 1.5s var(--sert), visibility 1.5s; clip-path: inset(0 0 0 0); }
.giris::before { content: ''; position: absolute; inset: 0; background: var(--zemin); animation: sondur 1.6s ease 0.2s forwards; }
@keyframes sondur { to { opacity: 0; } }
/* Perde ortadaki çizgiye doğru kapanarak maketi açar */
.giris.bitti { clip-path: inset(50% 0 50% 0); visibility: hidden; }
.giris-ic { transition: transform 1.5s var(--sert), opacity 0.9s ease; }
.giris.bitti .giris-ic { transform: scale(0.94); opacity: 0; }
.giris-ic { position: relative; display: grid; justify-items: center; text-align: center; padding: 24px; }
.giris-cizgi { width: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--isik), transparent); animation: cizgi 1.6s var(--egri) 0.1s forwards; margin-bottom: 30px; }
@keyframes cizgi { to { width: min(360px, 60vw); } }
.giris-firma { margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.4em; color: var(--soluk); opacity: 0; animation: yuksel 1.2s var(--egri) 0.35s forwards; }
.giris-ad { margin: 0; font-weight: 200; font-size: clamp(34px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.03em; }
/* Proje adı kelime kelime maskeden yükselir */
.kelime { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.02em 0.1em; margin: -0.04em 0 -0.1em; }
.kelime > span { display: inline-block; transform: translateY(115%); animation: kelimeGel 1.3s var(--sert) forwards; }
.kelime:nth-child(1) > span { animation-delay: 0.45s; }
.kelime:nth-child(2) > span { animation-delay: 0.57s; }
.kelime:nth-child(3) > span { animation-delay: 0.69s; }
@keyframes kelimeGel { to { transform: none; } }
.giris-alt { margin: 22px 0 0; font-size: 14px; color: var(--soluk); opacity: 0; animation: yuksel 1.2s var(--egri) 1.1s forwards; }
.giris-ilerle { width: 140px; height: 1px; margin-top: 36px; background: rgba(255, 255, 255, 0.1); overflow: hidden; opacity: 0; animation: yuksel 0.8s ease 1.4s forwards; }
.giris-ilerle i { display: block; height: 100%; width: 40%; background: var(--isik); animation: kay 1.3s ease-in-out infinite; }
.giris-ilerle i.dolu { animation: none; width: 0; transition: width 0.35s ease; }
@keyframes kay { from { translate: -100% 0; } to { translate: 260% 0; } }
@keyframes yuksel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bulanikGel { from { opacity: 0; filter: blur(14px); transform: translateY(16px); letter-spacing: 0.04em; } to { opacity: 1; filter: none; transform: none; letter-spacing: -0.03em; } }

/* ── Canlı 3B yükleyici ──────────────────────────────────────────────────── */
.perde { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 45%, rgba(20, 22, 26, 0.86), rgba(6, 7, 9, 0.96)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: belir 0.6s var(--egri); }
.perde-ic { display: grid; justify-items: center; text-align: center; max-width: 420px; padding: 24px; }
.halka { --p: 0; position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin-bottom: 26px; }
.halka svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.halka circle { fill: none; stroke-width: 1.5; }
.halka .iz { stroke: rgba(255, 255, 255, 0.1); }
.halka .dolu { stroke: var(--isik); stroke-dasharray: 339.3; stroke-dashoffset: calc(339.3 * (1 - var(--p))); transition: stroke-dashoffset 0.6s var(--egri); filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)); }
.yukleme-yuzde { font-size: 30px; font-weight: 300; letter-spacing: -0.02em; }
.perde-baslik { margin: 0 0 8px; font-size: 26px; font-weight: 300; letter-spacing: -0.02em; }
.yukleme-durum { margin: 0; font-size: 13px; color: var(--soluk); }
.perde-not { margin: 16px 0 22px; font-size: 13.5px; line-height: 1.6; color: var(--soluk); }
.perde-btn { height: 48px; padding: 0 32px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--koyu-yazi); background: var(--isik); }
.perde-btn:disabled { color: var(--soluk); background: rgba(255, 255, 255, 0.07); cursor: progress; }
.perde-geri { margin-top: 14px; font-size: 13px; color: var(--soluk); text-decoration: underline; text-underline-offset: 4px; }

/* ── Canlı 3B arayüzü ────────────────────────────────────────────────────── */
.hud { position: fixed; inset: 0; pointer-events: none; z-index: 18; }
.hud > * { pointer-events: auto; }
.hud .zaman { position: absolute; top: var(--ust-g); left: 50%; translate: -50% 0; }
.hud .zaman.esya { top: calc(var(--ust-g) + 56px); }
body.drone .hud .zaman.esya { display: none !important; }
.ipucu { position: absolute; left: 50%; bottom: calc(var(--alt-g) + 78px); translate: -50% 0; margin: 0; padding: 10px 18px; border-radius: 999px; font-size: 13px; color: var(--yazi); opacity: 0; transition: opacity 0.5s; pointer-events: none; white-space: nowrap; }
.ipucu.var { opacity: 1; }
.sinematik { position: absolute; right: 32px; top: calc(var(--ust-g) + 56px); display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 13px; color: var(--soluk); }
.sinematik:hover { color: var(--yazi); border-color: var(--cizgi2); }
.mobil { display: none; }

/* ── Mobil ───────────────────────────────────────────────────────────────── */
@media (max-width: 899px) {
  .gunsaat { justify-self: stretch; height: 44px; gap: 12px; padding: 0 16px; }
  .gs-iz { flex: 1; width: auto; min-width: 0; }
  .gs-duraklar { display: none; }
  body[data-mod="kroki"] .baglam { flex-direction: column; align-items: stretch; gap: 8px; }
  body[data-mod="kroki"] .segment { align-self: center; }
  .gs-saat { font-size: 17px; min-width: 56px; }
}
@media (max-width: 899px), (pointer: coarse) and (max-height: 520px) {
  .ust { left: 16px; right: 16px; grid-template-columns: 1fr auto; }
  .marka-ad { font-size: 20px; }
  .marka-yer { display: none; }
  .baglam { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .segment { justify-content: center; width: max-content; margin: 0 auto; }
  .yan { left: 0; right: 0; top: auto; bottom: calc(env(safe-area-inset-bottom) + 76px); translate: 0 0; width: auto; max-height: 104px; overflow: hidden; margin: 0 10px; border-radius: 20px; transition: max-height 0.6s var(--egri), opacity 0.6s, transform 0.6s; }
  body.acik.yan-acik .yan { max-height: 64vh; overflow: auto; }
  .yan-tutamak { display: block; position: absolute; z-index: 2; top: 0; left: 0; width: 100%; height: 26px; }
  .yan-tutamak i { display: block; width: 38px; height: 4px; margin: 9px auto 0; border-radius: 4px; background: rgba(255, 255, 255, 0.5); }
  .yan-kapak { height: 104px; transition: height 0.6s var(--egri); }
  body.yan-acik .yan-kapak { height: 180px; }
  .yan-kapak figcaption { padding: 0 18px 14px; }
  .yan-ic { padding: 4px 18px 18px; }
  .yan-baslik { font-size: 21px; }
  .sekmeler { left: 0; right: 0; bottom: 0; translate: 0 0; border-radius: 22px 22px 0 0; background: rgba(10, 11, 14, 0.94); padding: 6px 8px calc(env(safe-area-inset-bottom) + 6px); justify-content: space-around; border-bottom: 0; }
  .sekmeler button { flex-direction: column; gap: 3px; height: 56px; padding: 0 8px; flex: 1; font-size: 11.5px; border-radius: 14px; }
  .sekmeler button svg { width: 21px; height: 21px; }
  .pusula { left: 16px; bottom: auto; top: calc(var(--ust-g) + 112px); }
  .pusula-halka { width: 42px; height: 42px; }
  .pusula-ipucu { display: none; }
  .durum3b { right: 16px; bottom: auto; top: calc(var(--ust-g) + 116px); height: 32px; font-size: 11.5px; padding: 0 12px 0 10px; }
  .kart.sabit { bottom: calc(var(--alt-g) + 196px); min-width: 0; width: calc(100% - 32px); max-width: 360px; }
  .hud .zaman { top: calc(var(--ust-g) + 4px); left: auto; right: 16px; translate: 0 0; }
  .hud .zaman button { padding: 0 12px; }
  .hud .zaman button span { display: none; }
  .hud .zaman.esya button { padding: 0 12px; font-size: 12px; }
  .hud .zaman.esya button span { display: inline; }
  .hud .zaman.esya { top: calc(var(--ust-g) + 56px); }
  .ipucu { bottom: calc(var(--alt-g) + 210px); white-space: normal; text-align: center; width: max-content; max-width: 86vw; }
  .sinematik { right: 16px; top: calc(var(--ust-g) + 56px); }
  body[data-mod="serbest"] .ust, body[data-mod="drone"] .ust { opacity: 0; pointer-events: none; }
}
/* Dokunmatik kontroller: solda bakış halkası (göz), sağda yürüme kolu, küçük zıplama */
@media (pointer: coarse) {
  .mobil { display: block; position: absolute; inset: auto 0 calc(var(--alt-g) + 80px) 0; height: 150px; pointer-events: none; }
  .mobil > * { pointer-events: auto; position: absolute; touch-action: none; }
  .bakis { left: 22px; bottom: 6px; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 16, 19, 0.38); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color 0.3s, background 0.3s; }
  .bakis svg { width: 30px; height: 30px; color: rgba(255, 255, 255, 0.78); }
  .bakis.aktif { border-color: var(--isik); background: rgba(255, 255, 255, 0.1); }
  .kol { right: 26px; bottom: 10px; width: 96px; height: 96px; border-radius: 50%; background: rgba(15, 16, 19, 0.38); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .kol i { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--isik); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
  .zipla { right: 134px; bottom: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 16, 19, 0.45); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .zipla:active { background: var(--isik-k); border-color: var(--isik); }
  .dikey { right: 140px; bottom: 6px; display: none; flex-direction: column; gap: 8px; }
  .dikey button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 16, 19, 0.45); border: 1px solid rgba(255, 255, 255, 0.2); }
  body.drone .zipla { display: none; }
  body.drone .dikey { display: flex; }
  .pusula-ipucu { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.noscript { position: fixed; inset: 0; display: grid; place-items: center; }

/* ── Daire fotoğrafları ──────────────────────────────────────────────────── */
.kapak-foto { position: absolute; z-index: 1; top: 14px; right: 14px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--koyu-yazi); background: rgba(255, 255, 255, 0.92); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); transition: transform 0.3s var(--egri), background 0.3s; }
.kapak-foto svg { width: 16px; height: 16px; }
.kapak-foto b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--yazi); background: var(--koyu-yazi); }
.kapak-foto:hover { transform: translateY(-1px); background: #fff; }
.yan-kapak { transition: background-image 0.4s; }
.odalar li.fotolu { cursor: pointer; }
.odalar li.fotolu span { display: flex; align-items: center; gap: 8px; }
.odalar li.fotolu span svg { width: 14px; height: 14px; opacity: 0.5; transition: opacity 0.25s; }
.odalar li.fotolu:hover span svg, .odalar li.fotolu:focus-visible span svg { opacity: 1; }
.odalar li:focus-visible { outline: 1.5px solid var(--isik); outline-offset: -1px; }

.galeri { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(6, 7, 9, 0.94); backdrop-filter: blur(26px) saturate(1.1); -webkit-backdrop-filter: blur(26px) saturate(1.1); opacity: 0; transition: opacity 0.38s var(--egri); }
.galeri.acik { opacity: 1; }
.g-ust { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: var(--ust-g) 32px 18px; }
.g-kim p { margin: 0 0 4px; font-size: 12.5px; color: var(--soluk); }
.g-kim h2 { margin: 0; font-stretch: var(--genis); font-weight: 300; font-size: 28px; letter-spacing: -0.02em; line-height: 1.05; }
.g-filtre { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cam); border: 1px solid var(--cizgi); }
.g-filtre button { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--soluk); white-space: nowrap; transition: color 0.3s, background 0.35s var(--egri); }
.g-filtre button i { font-style: normal; font-size: 11.5px; color: var(--silik); }
.g-filtre button:hover { color: var(--yazi); }
.g-filtre button[aria-pressed="true"] { color: var(--koyu-yazi); background: var(--isik); }
.g-filtre button[aria-pressed="true"] i { color: rgba(10, 11, 13, 0.55); }
.g-sag { justify-self: end; display: flex; align-items: center; gap: 16px; }
.g-sayac { font-size: 13px; color: var(--soluk); }
.g-sahne { position: relative; min-height: 0; }
.g-iz { height: 100%; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x; outline: none; overscroll-behavior-x: contain; }
.g-iz::-webkit-scrollbar { display: none; }
.g-iz figure { flex: 0 0 100%; height: 100%; margin: 0; padding: 0 96px; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; }
.g-iz img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); transform: scale(0.97); transition: transform 0.6s var(--egri); }
.galeri.acik .g-iz img { transform: none; }
.g-ok { position: absolute; top: 50%; translate: 0 -50%; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--cam); border: 1px solid var(--cizgi2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background 0.3s, opacity 0.3s; }
.g-ok:hover { background: rgba(255, 255, 255, 0.14); }
.g-ok:disabled { opacity: 0.25; cursor: default; }
.g-onceki { left: 24px; } .g-sonraki { right: 24px; }
.g-serit { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 18px 32px calc(var(--alt-g) + 4px); scrollbar-width: none; touch-action: pan-x; }
.g-serit::-webkit-scrollbar { display: none; }
.g-serit button { flex: none; width: 92px; height: 58px; border-radius: 9px; overflow: hidden; opacity: 0.42; outline: 1.5px solid transparent; outline-offset: 2px; transition: opacity 0.3s, outline-color 0.3s; }
.g-serit button:hover { opacity: 0.8; }
.g-serit button[aria-current] { opacity: 1; outline-color: var(--isik); }
.g-serit img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 899px) {
  .g-ust { grid-template-columns: 1fr auto; padding: var(--ust-g) 16px 12px; gap: 12px; }
  .g-filtre { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
  .g-filtre::-webkit-scrollbar { display: none; }
  .g-kim h2 { font-size: 22px; }
  .g-iz figure { padding: 0 12px; }
  .g-iz img { border-radius: 10px; }
  .g-serit { padding: 14px 16px calc(var(--alt-g) + 4px); justify-content: flex-start; }
  .g-serit button { width: 72px; height: 46px; }
}
@media (pointer: coarse) { .g-ok { display: none; } }
@media (max-width: 899px) { .kapak-foto { top: auto; bottom: 14px; height: 34px; } }

/* ── Sinematik geçişler ──────────────────────────────────────────────────── */
/* Açılış: maket bulanık ve hafif yakın başlar, perde açılırken odağa gelir */
body:not(.acik) #maket { transform: scale(1.06); filter: blur(14px) brightness(0.75); }
body.acik #maket { transition: opacity 0.9s var(--egri), visibility 0.9s, transform 2.4s var(--sert), filter 2.4s var(--sert), background 1s; }

/* Serbest / drone'a geçerken maket ve kroki odaktan çıkarak çekilir */
body[data-mod="serbest"] #maket, body[data-mod="drone"] #maket, body[data-mod="serbest"] #kroki, body[data-mod="drone"] #kroki { transform: scale(1.1); filter: blur(12px); }
/* Canlı sahne ortadaki ışık çizgisinden göz kapağı gibi açılır */
#sahne.ac { animation: aciklik 1.5s var(--sert) both; }
@keyframes aciklik {
  0% { clip-path: inset(50% 0 50% 0); filter: brightness(1.8) blur(8px); transform: scale(1.06); }
  55% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 0); filter: none; transform: none; }
}
.gecis-cizgi { position: fixed; left: 0; right: 0; top: 50%; height: 1px; z-index: 19; pointer-events: none; background: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent); box-shadow: 0 0 24px 2px rgba(255, 255, 255, 0.7); transform: scaleX(0); opacity: 0; }
body.sahne-aciliyor .gecis-cizgi { animation: isikCizgi 1.5s var(--sert) both; }
@keyframes isikCizgi { 0% { transform: scaleX(0); opacity: 1; } 32% { transform: scaleX(1); opacity: 1; } 70% { opacity: 0; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }

/* Maket → kroki: daireye dalış */
.gecis-halka { position: fixed; left: var(--gx, 50%); top: var(--gy, 50%); width: 0; height: 0; translate: -50% -50%; z-index: 14; border-radius: 50%; pointer-events: none; border: 1.5px solid rgba(255, 255, 255, 0.95); box-shadow: 0 0 40px rgba(255, 255, 255, 0.55), inset 0 0 40px rgba(255, 255, 255, 0.35); opacity: 0; }
body.dalis #maket { transform-origin: var(--gx) var(--gy); }
body.dalis #kroki { opacity: 1; visibility: visible; transition: none; clip-path: circle(0 at var(--gx) var(--gy)); }
body.dalis-ac #maket { opacity: 1; visibility: visible; transform: scale(1.9); filter: blur(18px) brightness(1.35); transition: transform 1.3s var(--sert), filter 1.3s var(--sert); }
body.dalis-ac #kroki { clip-path: circle(150vmax at var(--gx) var(--gy)); transition: clip-path 1.3s var(--sert); }
body.dalis-ac .gecis-halka { animation: halka 1.3s var(--sert) both; }
@keyframes halka { 0% { width: 0; height: 0; opacity: 1; } 70% { opacity: 0.85; } 100% { width: 300vmax; height: 300vmax; opacity: 0; } }

/* Kroki → maket: kroki dairenin yerine küçülerek kapanır */
body.cikis #maket { transform-origin: var(--gx) var(--gy); transform: scale(1.9); filter: blur(18px) brightness(1.35); transition: none; }
body.cikis #kroki { opacity: 1 !important; visibility: visible !important; clip-path: circle(150vmax at var(--gx) var(--gy)); transition: none; }
body.cikis-ac #maket { transform: none; filter: none; transition: transform 1.1s var(--sert), filter 1.1s var(--sert); }
body.cikis-ac #kroki { clip-path: circle(0 at var(--gx) var(--gy)); transition: clip-path 1.05s var(--sert); }
body.cikis-ac .gecis-halka { animation: halka 1.05s var(--sert) reverse both; }
body.dalis .ust, body.dalis .sekmeler, body.cikis .ust { pointer-events: none; }

/* Kart: görsel yukarıdan açılır, bilgiler sırayla gelir */
body.acik .yan-kapak { animation: kapakAc 1.1s var(--sert) both; }
body.acik .yan-kapak figcaption, body.acik .yan-kapak .kapak-foto { animation: yuksel 0.9s var(--egri) 0.45s both; }
body.acik .yan-ic > * { animation: yuksel 0.8s var(--egri) both; }
body.acik .yan-ic > :nth-child(1) { animation-delay: 0.5s; }
body.acik .yan-ic > :nth-child(2) { animation-delay: 0.56s; }
body.acik .yan-ic > :nth-child(3) { animation-delay: 0.62s; }
body.acik .yan-ic > :nth-child(4) { animation-delay: 0.68s; }
body.acik .yan-ic > :nth-child(5) { animation-delay: 0.74s; }
body.acik .yan-ic > :nth-child(6) { animation-delay: 0.8s; }
body.acik .yan-ic > :nth-child(n+7) { animation-delay: 0.86s; }
@keyframes kapakAc { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* Galeri: kart görseli büyüyerek fotoğrafa dönüşür (View Transitions) */
::view-transition-group(foto) { animation-duration: 0.75s; animation-timing-function: var(--sert); }
::view-transition-old(foto), ::view-transition-new(foto) { height: 100%; object-fit: cover; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  body:not(.acik) #maket, body[data-mod="serbest"] #maket, body[data-mod="drone"] #maket, body[data-mod="serbest"] #kroki, body[data-mod="drone"] #kroki { transform: none; filter: none; }
  .kelime > span { transform: none; }
}
