/* =========================================================
   GUDYWOOD — Sanal Sergi
   Tam ekran tur görünümü. Palet ana siteyle aynı.
   ========================================================= */
:root {
  --lav: #ffc845;
  --mauve: #ff8a3d;
  --taupe: #2f8a5b;
  --wood: #e8590c;
  --ink: #1c2541;
  --night: #0f1626;
  --glass: rgba(18, 26, 46, 0.72);
  --glass-2: rgba(18, 26, 46, 0.88);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7f8fc;
  --muted: #c8cede;
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--night); color: var(--text);
  font: 400 15px/1.55 var(--f-body);
  overflow: hidden; -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; border-radius: 10px; }

.tour { position: fixed; inset: 0; overflow: hidden; }

/* ---------- Sahne ---------- */
.stage { position: absolute; inset: 0; display: grid; place-items: center; touch-action: pan-y; user-select: none; }
.backdrop {
  position: absolute; inset: -60px; background-size: cover; background-position: center;
  filter: blur(38px) saturate(1.25) brightness(0.55); transform: scale(1.1);
  transition: background-image 0.6s, opacity 0.6s;
}
.backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 35%, rgba(10, 15, 28, 0.7) 100%); }
.frame {
  position: relative; z-index: 1;
  border-radius: 18px; overflow: visible;
  transition: transform 0.9s var(--ease), opacity 0.5s, filter 0.6s;
  will-change: transform;
}
.frame img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 18px;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.85);
}
.frame.is-leaving { transform: scale(1.18) translateY(4%); opacity: 0; filter: blur(6px); }
.frame.is-entering { transform: scale(0.94); opacity: 0; }
.frame.is-back { transform: scale(0.86) translateY(-2%); opacity: 0; filter: blur(6px); }

/* ---------- İşaretler ---------- */
.hotspots { position: absolute; inset: 0; }
.hs {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
  background: transparent; display: grid; place-items: center;
  animation: hsIn 0.6s var(--spring) both; animation-delay: var(--d, 0s);
}
@keyframes hsIn { from { transform: translate(-50%, -50%) scale(0); } }
.hs__dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 7px solid var(--wood);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--spring), border-color 0.3s;
}
.hs::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  border: 2px solid #fff; opacity: 0.8; animation: ping 2.4s ease-out infinite;
}
@keyframes ping { from { transform: scale(0.7); opacity: 0.85; } to { transform: scale(1.8); opacity: 0; } }
.hs:hover .hs__dot, .hs:focus-visible .hs__dot, .hs.is-active .hs__dot { transform: scale(1.25); border-color: var(--lav); }
.hs__label {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 6px);
  white-space: nowrap; font-weight: 800; font-size: 12.5px; letter-spacing: 0.01em;
  background: var(--glass-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 6px 11px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.3s var(--ease);
}
.hs:hover .hs__label, .hs:focus-visible .hs__label { opacity: 1; transform: translate(-50%, 0); }

/* yürüme halkası (yerde elips) */
.walk {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 96px; height: 34px; border-radius: 50%; border: 0; padding: 0; background: transparent;
}
.walk::before, .walk::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95); box-shadow: 0 0 22px rgba(255, 255, 255, 0.35);
}
.walk::after { inset: 9px 26px; background: rgba(255, 255, 255, 0.25); border-width: 2px; animation: walkPulse 1.8s ease-in-out infinite; }
@keyframes walkPulse { 50% { transform: scale(1.4); opacity: 0.4; } }
.walk:hover::before { border-color: var(--lav); }
.walk__tag {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  white-space: nowrap; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--glass-2); padding: 6px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px; opacity: 0; transition: opacity 0.25s, transform 0.3s var(--ease);
}
.walk:hover .walk__tag, .walk:focus-visible .walk__tag { opacity: 1; transform: translate(-50%, 0); }
.walk__tag svg { width: 14px; height: 14px; }

/* ---------- Barlar ---------- */
.bar { position: absolute; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar--top {
  top: 0; justify-content: space-between;
  padding: calc(14px + var(--safe-t)) max(16px, var(--safe-r)) 14px max(16px, var(--safe-l));
  background: linear-gradient(rgba(10, 15, 28, 0.65), transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand svg { width: 136px; height: 41px; color: #fff; }
.brand b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: 0.05em; line-height: 1; }
.brand small { display: block; border-left: 1px solid var(--line); padding-left: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lav); margin-top: 3px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-weight: 800; letter-spacing: 0.08em; font-size: 13px;
  transition: background 0.25s;
}
.pill:hover { background: var(--ink); }
.pill svg { width: 20px; height: 20px; }

.bar--bottom {
  bottom: 0; justify-content: space-between;
  padding: 14px max(16px, var(--safe-r)) calc(14px + var(--safe-b)) max(16px, var(--safe-l));
  background: linear-gradient(transparent, rgba(10, 15, 28, 0.75));
}
.tools { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tool {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; transition: background 0.2s, color 0.2s;
}
.tool svg { width: 20px; height: 20px; }
.tool:hover { background: rgba(255, 255, 255, 0.1); }
.tool[aria-pressed="true"] { background: var(--lav); color: var(--ink); }
.stepper { display: flex; align-items: center; gap: 10px; }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: grid; place-items: center; transition: background 0.2s, transform 0.3s var(--spring);
}
.round svg { width: 22px; height: 22px; }
.round:hover { background: var(--wood); transform: scale(1.06); }
.progress { width: clamp(80px, 14vw, 200px); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--lav); border-radius: inherit; transition: width 0.6s var(--ease); width: 0; }
.cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; background: var(--lav); color: var(--ink); text-decoration: none; font-weight: 800;
  transition: transform 0.3s var(--spring), background 0.2s;
}
.cta:hover { transform: translateY(-2px); background: #fff; }
.cta svg { width: 20px; height: 20px; }

/* ---------- Durak başlığı ---------- */
.caption {
  position: absolute; z-index: 4; left: max(18px, var(--safe-l)); bottom: calc(96px + var(--safe-b));
  max-width: min(360px, 26vw); pointer-events: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.caption__n { font-weight: 800; font-size: 12px; letter-spacing: 0.18em; color: var(--lav); }
.caption__t { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.05; margin: 6px 0 6px; letter-spacing: -0.02em; text-wrap: balance; }
.caption__d { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 46ch; }
.caption.is-swap .caption__t, .caption.is-swap .caption__d, .caption.is-swap .caption__n { animation: capIn 0.7s var(--ease) both; }
.caption.is-swap .caption__t { animation-delay: 0.05s; }
.caption.is-swap .caption__d { animation-delay: 0.1s; }
@keyframes capIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Durak şeridi ---------- */
.strip {
  position: absolute; z-index: 4; right: max(16px, var(--safe-r)); top: calc(84px + var(--safe-t));
  display: flex; flex-direction: column; gap: 8px; max-height: calc(100% - 200px - var(--safe-t) - var(--safe-b));
  overflow-y: auto; padding: 4px; scrollbar-width: none;
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-hidden { opacity: 0; transform: translateX(30px); pointer-events: none; }
.thumb {
  position: relative; flex: none; width: 74px; height: 56px; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; padding: 0; background: #000; opacity: 0.7;
  transition: opacity 0.25s, border-color 0.25s, transform 0.3s var(--spring);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb span { position: absolute; left: 5px; top: 4px; font-size: 10px; font-weight: 800; background: rgba(0, 0, 0, 0.55); border-radius: 6px; padding: 1px 5px; }
.thumb:hover { opacity: 1; transform: scale(1.05); }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--lav); }

/* ---------- Kroki ---------- */
.map {
  position: absolute; z-index: 6; left: max(16px, var(--safe-l)); top: calc(84px + var(--safe-t));
  width: min(340px, calc(100% - 32px)); padding: 14px; border-radius: 20px;
  background: var(--glass-2); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: pop 0.4s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.map__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.map__head b { font-family: var(--f-display); font-size: 18px; font-weight: 600; }
.map__svg { width: 100%; height: auto; }
.map__note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.map .pin { cursor: pointer; }
.map .pin circle { transition: r 0.25s, fill 0.25s; }
.map .pin:hover circle.c { fill: var(--lav); }
.map .pin.is-on circle.c { fill: var(--lav); }
.map .pin.is-on circle.r { animation: mapPing 1.6s ease-out infinite; }
@keyframes mapPing { from { r: 7; opacity: 0.9; } to { r: 16; opacity: 0; } }

.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; flex: none; }
.x:hover { background: rgba(255, 255, 255, 0.18); }
.x svg { width: 18px; height: 18px; }

/* ---------- Bilgi kartı ---------- */
.card {
  position: absolute; z-index: 7; width: min(360px, calc(100% - 32px));
  padding: 20px 20px 18px; border-radius: 22px;
  background: rgba(255, 251, 246, 0.98); color: var(--ink);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  animation: cardIn 0.45s var(--spring);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
.card .x { position: absolute; right: 12px; top: 12px; background: rgba(28, 37, 65, 0.08); color: var(--ink); }
.card .x:hover { background: rgba(28, 37, 65, 0.16); }
.card__k { font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wood); }
.card h2 { font-family: var(--f-display); font-weight: 600; font-size: 24px; line-height: 1.1; margin: 6px 40px 8px 0; letter-spacing: -0.015em; }
.card p { margin: 0; color: #4a5163; font-size: 14.5px; }
.card__tags { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card__tags li { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: #ffecde; }
.card__a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 999px; border: 0; background: var(--ink); color: #fff; text-decoration: none; font-weight: 800; font-size: 14px;
  transition: background 0.2s, transform 0.3s var(--spring);
}
.btn:hover { background: var(--wood); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Menü paneli ---------- */
.panel {
  position: absolute; z-index: 9; top: 0; right: 0; bottom: 0; width: min(400px, 100%);
  background: #16203a; border-left: 1px solid var(--line);
  padding: calc(16px + var(--safe-t)) max(18px, var(--safe-r)) calc(16px + var(--safe-b)) 18px;
  display: flex; flex-direction: column; gap: 14px;
  transform: translateX(105%); transition: transform 0.5s var(--ease);
}
.panel.is-open { transform: none; }
.panel__head { display: flex; justify-content: space-between; align-items: center; }
.panel__head b { font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; font-size: 13.5px; }
.tabs button[aria-selected="true"] { background: var(--lav); color: var(--ink); }
.tp { overflow-y: auto; flex: 1; margin-right: -8px; padding-right: 8px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list button {
  width: 100%; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-align: left;
  padding: 8px; border-radius: 14px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s, border-color 0.2s;
}
.list button:hover { background: rgba(255, 255, 255, 0.09); }
.list button[aria-current="true"] { border-color: var(--lav); }
.list img { width: 64px; height: 50px; object-fit: cover; border-radius: 10px; display: block; }
.list b { display: block; font-size: 14.5px; }
.list small { display: block; color: var(--muted); font-size: 12.5px; }
.list .dotn { width: 64px; height: 50px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; }
.list .dotn i { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid var(--wood); }
.info h3 { font-family: var(--f-display); font-weight: 600; font-size: 22px; margin: 4px 0 8px; }
.info h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lav); margin: 18px 0 6px; }
.info p, .info li { color: var(--muted); font-size: 14px; }
.info ul { padding-left: 18px; margin: 0; }
.info b { color: var(--text); }
.info .btn { margin-top: 18px; background: var(--lav); color: var(--ink); }
.scrim { position: absolute; inset: 0; z-index: 8; background: rgba(8, 12, 24, 0.55); animation: fade 0.3s; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Açılış ---------- */
.intro {
  position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; text-align: center;
  padding: 24px max(20px, var(--safe-r)) 24px max(20px, var(--safe-l));
  background: radial-gradient(ellipse at center, rgba(28, 37, 65, 0.75), rgba(10, 15, 28, 0.95));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.7s, visibility 0s 0.7s;
}
.intro.is-gone { opacity: 0; visibility: hidden; }
.intro__in { max-width: 520px; display: grid; justify-items: center; gap: 12px; }
.intro__logo { width: 220px; height: 66px; color: var(--lav); animation: logoIn 1s var(--spring) both; }
@keyframes logoIn { from { transform: scale(0.6) rotate(-12deg); opacity: 0; } }
.intro__k { margin: 0; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; font-size: 12px; color: var(--mauve); }
.intro h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(44px, 9vw, 84px); line-height: 0.95; letter-spacing: -0.03em; }
.intro h2 em { color: var(--lav); font-style: italic; }
.intro__d { margin: 6px 0 10px; color: var(--muted); font-size: 16px; }
.btn--big { min-height: 56px; padding: 0 28px; font-size: 16px; background: var(--lav); color: var(--ink); }
.btn--big:hover { background: #fff; color: var(--ink); }
.btn--big:disabled { opacity: 0.6; cursor: progress; }
.intro__load { width: 180px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); overflow: hidden; margin-top: 8px; }
.intro__load i { display: block; height: 100%; width: 0; background: var(--lav); transition: width 0.3s; }

/* ---------- Bildirim ---------- */
.toast {
  position: absolute; z-index: 30; left: 50%; top: calc(80px + var(--safe-t)); transform: translateX(-50%);
  background: var(--lav); color: var(--ink); font-weight: 800; padding: 10px 18px; border-radius: 999px; font-size: 14px;
  animation: pop 0.3s var(--ease);
}

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .pill span { display: none; }
  .pill { padding: 0; width: 46px; justify-content: center; }
  .bar--bottom { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .tools { order: 2; }
  .stepper { order: 1; flex: 1; justify-content: space-between; }
  .progress { flex: 1; width: auto; }
  .cta { order: 1; padding: 0 16px; }
  .tool#fullBtn { display: none; }
  .caption { bottom: calc(150px + var(--safe-b)); max-width: calc(100% - 36px); }
  .caption__d { display: none; }
  .strip {
    top: auto; right: 0; left: 0; bottom: calc(150px + var(--safe-b)); flex-direction: row; max-height: none;
    overflow-x: auto; padding: 4px 16px; display: none;
  }
  .strip.is-open-m { display: flex; }
  .card { left: 12px !important; right: 12px; top: auto !important; bottom: calc(12px + var(--safe-b)); width: auto; }
  .map { top: calc(72px + var(--safe-t)); }
  .hs { width: 40px; height: 40px; }
  .hs__dot { width: 22px; height: 22px; border-width: 6px; }
  .walk { width: 80px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* mobil: durak şeridi açıkken başlığı gizle */
@media (max-width: 760px) {
  .tour:has(.strip.is-open-m) .caption { opacity: 0; }
}

/* ana sayfaya gömülü mod: sitenin kendi logosu zaten görünüyor */
.is-embed .brand { display: none; }
.is-embed .bar--top { justify-content: flex-end; background: none; }
