/* ==========================================================================
   360° SANAL TUR GÖRÜNTÜLEYİCİSİ (tour.js)
   ========================================================================== */
.tv360 { position: relative; width: 100%; height: 100%; overflow: hidden; background: #050506; color: #f4f1ea; user-select: none; -webkit-user-select: none; font-family: var(--font-body); }
.tv360:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.tv360__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.tv360__gl.is-grab { cursor: grabbing; }

.tv360__top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: clamp(.7rem, 1.6vw, 1.2rem); pointer-events: none; }
.tv360__top > * { pointer-events: auto; }
.tv360__title { display: grid; gap: .1rem; margin: 0; padding: .6rem .95rem; border-radius: .9rem; background: rgba(10, 10, 11, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tv360__title small { font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #ffb48a; }
.tv360__title b { font: 700 1rem/1.2 var(--font-display); }
.tv360__tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.tv360__btn {
  min-width: 2.6rem; height: 2.6rem; padding: 0 .85rem; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; background: rgba(10, 10, 11, .62);
  color: inherit; font: 600 .84rem var(--font-body); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .3s, color .3s, border-color .3s;
}
.tv360__btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tv360__btn.is-on { border-color: var(--accent); color: #ffb48a; }

.tv360__tip {
  position: absolute; z-index: 4; left: 0; top: 0; padding: .4rem .8rem; border-radius: 999px; background: rgba(10, 10, 11, .82); color: #fff; font-size: .8rem; font-weight: 600; white-space: nowrap; pointer-events: none;
}
.tv360__tip[hidden] { display: none; }

.tv360__map {
  position: absolute; z-index: 3; right: clamp(.7rem, 1.6vw, 1.2rem); bottom: 6.3rem; width: clamp(9rem, 18vw, 13.5rem); aspect-ratio: 1; padding: .35rem;
  border-radius: 1rem; background: rgba(10, 10, 11, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tv360__map.is-closed { display: none; }
.tv360__map svg { display: block; width: 100%; height: 100%; }
.tv360__map line { stroke: rgba(255, 255, 255, .22); stroke-width: .8; }
.tv360__map line.is-active { stroke: rgba(255, 255, 255, .7); stroke-width: 1.1; }
.tv360__cone { fill: rgba(255, 255, 255, .2); stroke: var(--accent); stroke-width: .6; pointer-events: none; }
.tv360__node { cursor: pointer; }
.tv360__node circle { fill: #2b2b2e; stroke: rgba(255, 255, 255, .6); stroke-width: .8; transition: fill .3s; }
.tv360__node text { fill: #fff; font: 700 4px var(--font-body); pointer-events: none; }
.tv360__node.is-linked circle { stroke: #fff; stroke-width: 1.2; }
.tv360__node.is-current circle { fill: var(--accent); stroke: #fff; }
.tv360__node:hover circle, .tv360__node:focus-visible circle { fill: #4a4a50; }
.tv360__node.is-current:hover circle { fill: var(--accent); }
.tv360__node:focus-visible { outline: none; }
.tv360__node:focus-visible circle { stroke-width: 2; }

.tv360__chips { position: absolute; z-index: 3; left: clamp(.7rem, 1.6vw, 1.2rem); bottom: 6.3rem; display: flex; flex-wrap: wrap; gap: .4rem; max-width: calc(100% - 15rem); }
.tv360__chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 0; border-radius: 999px; background: rgba(10, 10, 11, .66); color: #fff; font: 600 .84rem var(--font-body); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .3s, color .3s; }
.tv360__chip i { font-style: normal; color: #ffb48a; transition: color .3s; }
.tv360__chip:hover { background: var(--accent); color: var(--on-accent); }
.tv360__chip:hover i { color: inherit; }

.tv360__strip { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; gap: .4rem; padding: 1.4rem clamp(.7rem, 1.6vw, 1.2rem) .8rem; overflow-x: auto; background: linear-gradient(transparent, rgba(0, 0, 0, .66)); scrollbar-width: thin; }
.tv360__thumb { position: relative; flex: none; width: 5.6rem; height: 2.9rem; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: .55rem; background: #111; cursor: pointer; opacity: .75; transition: opacity .3s, border-color .3s, transform .4s var(--ease); }
.tv360__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tv360__thumb span { position: absolute; left: .25rem; top: .15rem; font: 700 .68rem var(--font-body); color: #fff; text-shadow: 0 1px 3px #000; }
.tv360__thumb:hover { opacity: 1; transform: translateY(-2px); }
.tv360__thumb.is-current { opacity: 1; border-color: var(--accent); }

.tv360__hint { position: absolute; z-index: 2; left: 50%; bottom: 5.1rem; transform: translateX(-50%); margin: 0; padding: .45rem .9rem; border-radius: 999px; background: rgba(10, 10, 11, .55); font-size: .78rem; text-align: center; white-space: nowrap; pointer-events: none; animation: tvhint 1s 6s forwards; }
@keyframes tvhint { to { opacity: 0; visibility: hidden; } }
.tv360__loading { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: .8rem; background: #050506; font-size: .9rem; color: #bdb8ae; transition: opacity .6s; }
.tv360__loading span { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.tv360__loading.is-done { opacity: 0; pointer-events: none; }

.tv360__export { position: absolute; inset: 1rem; z-index: 8; display: grid; grid-template-rows: auto 1fr auto; gap: .6rem; padding: 1rem; border-radius: 1rem; background: rgba(10, 10, 11, .94); }
.tv360__export p { margin: 0; font-size: .85rem; }
.tv360__export textarea { width: 100%; min-height: 0; padding: .6rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: .6rem; background: #111; color: #e8e4dc; font: .74rem/1.4 ui-monospace, Menlo, monospace; resize: none; }
.tv360__export button { justify-self: start; }

.tv360__pan { position: absolute; inset: 0 0 5rem 0; overflow-x: auto; overflow-y: hidden; cursor: grab; touch-action: pan-x; }
.tv360__pan img { display: block; height: 100%; width: auto; max-width: none; -webkit-user-drag: none; }

@media (max-width: 720px) {
  .tv360__map { width: 8rem; bottom: 6rem; }
  .tv360__chips { max-width: calc(100% - 9.5rem); bottom: 6rem; }
  .tv360__thumb { width: 4.6rem; height: 2.4rem; }
  /* ipucu dikey telefonda alttaki "İleri/Geri" okları ve haritanın üstüne biniyordu: üste, araç düğmelerinin altına alındı */
  .tv360__hint { white-space: normal; width: max-content; max-width: 86%; bottom: auto; top: 5.4rem; }
  .world .tv360__hint { top: 7.6rem; }
  .tv360__btn { min-width: 2.3rem; height: 2.3rem; padding: 0 .65rem; }
}
/* çok kısa ekranda (yatay SE vb.) ipucu oklara/haritaya biniyor: gizlenir */
@media (max-height: 420px) { .tv360__hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .tv360__hint { animation: none; } }
