/* Yener İncek 360° tour. Design language of the Vaziyet landing page (Refract, site/tokens.css):
   light paper, ink, one blue accent, Funnel Display and Funnel Sans, pill switch, light glass panels. */
@font-face { font-family: "Funnel Display"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("fonts/funnel-display-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Funnel Display"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("fonts/funnel-display-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Funnel Sans"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/funnel-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Funnel Sans"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/funnel-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --color-paper: oklch(98.2% 0.006 95); --color-paper-2: oklch(96.4% 0.006 95); --color-paper-3: oklch(93.6% 0.008 95);
  --color-ink: oklch(23% 0.035 245); --color-ink-2: oklch(36% 0.035 245); --color-muted: oklch(50% 0.025 240);
  --color-rule: oklch(89.5% 0.008 230);
  --color-accent: oklch(50% 0.12 234); --color-accent-hi: oklch(44% 0.12 236); --color-accent-ink: oklch(99% 0.003 95);
  --color-focus: oklch(56% 0.14 234); --color-light: oklch(99.7% 0.004 95);
  --color-stage: oklch(24% 0.012 70);
  --glass: color-mix(in oklab, var(--color-light) 88%, transparent);
  --edge-light: inset 0 1px 0 oklch(100% 0 0 / 0.9), inset 0 0 0 1px oklch(100% 0 0 / 0.55);
  --shadow-card: 18px 28px 48px -26px oklch(30% 0.05 230 / 0.45), 2px 3px 6px -2px oklch(30% 0.05 230 / 0.18);
  --font-display: "Funnel Display", ui-sans-serif, system-ui, sans-serif; --font-body: "Funnel Sans", ui-sans-serif, system-ui, sans-serif;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem;
  --radius-card: 18px; --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --dur-short: 220ms;
  --edge-t: max(12px, env(safe-area-inset-top)); --edge-b: max(10px, env(safe-area-inset-bottom));
  --edge-l: max(12px, env(safe-area-inset-left)); --edge-r: max(12px, env(safe-area-inset-right));
  --tag-h: 30px; --dock-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { overflow: hidden; overscroll-behavior: none; background: var(--color-stage); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
button, input { font: inherit; }
button, label { touch-action: manipulation; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.tour { position: fixed; inset: 0; overflow: hidden; }

/* the panorama */
.stage { position: absolute; inset: 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.stage.is-dragging { cursor: grabbing; }
.stage canvas { display: block; width: 100%; height: 100%; }
.spots { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* hotspots: a ring with an arrow and the name of the place it leads to */
.spot { position: absolute; left: 0; top: 0; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--color-ink); cursor: pointer; pointer-events: auto; will-change: transform; transition: opacity var(--dur-short) var(--ease-out); }
.spot[data-off] { opacity: 0; pointer-events: none; }
.spots.is-moving .spot { opacity: 0; pointer-events: none; transition: none; }
.spot__ring { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--color-light); background: oklch(23% 0.035 245 / 0.38); box-shadow: inset 0 0 0 2px oklch(99% 0.004 95 / 0.95), 0 8px 22px -8px oklch(15% 0.03 245 / 0.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.spot__label { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); padding: 3px 10px 4px; border-radius: var(--radius-pill); background: var(--glass); box-shadow: var(--edge-light), 0 6px 18px -8px oklch(15% 0.03 245 / 0.6); font-size: var(--text-xs); font-weight: 500; line-height: 1.3; white-space: nowrap; }
.spot[data-label="above"] .spot__label { top: auto; bottom: calc(100% + 6px); }
.spot:hover .spot__ring { background: var(--color-accent); }
.spot:active .spot__ring { transform: scale(0.94); }
.spot:focus-visible { outline: none; }
.spot:focus-visible .spot__ring { outline: 2px solid var(--color-light); outline-offset: 3px; background: var(--color-accent); }

/* glass panels */
.room, .dock, .plan, .hint, .toast, .loader, .tag { background: var(--glass); box-shadow: var(--edge-light), var(--shadow-card); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }

.room { position: absolute; top: var(--edge-t); left: var(--edge-l); max-width: calc(100% - var(--edge-l) - var(--edge-r)); padding: 9px 16px 10px; border-radius: 16px; }
.room__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.room__detail { margin-top: 2px; font-size: var(--text-xs); color: var(--color-muted); }

.dock { position: absolute; left: 50%; bottom: calc(var(--edge-b) + var(--tag-h) + 8px); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; width: max-content; max-width: calc(100% - 16px); padding: 4px; border-radius: var(--radius-pill); }
.switch { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.switch__track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 2px; border-radius: var(--radius-pill); background: var(--color-paper-3); box-shadow: inset 0 0 0 1px var(--color-rule); }
.switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.switch label { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); font-weight: 500; color: var(--color-ink-2); cursor: pointer; user-select: none; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.switch label:hover { color: var(--color-ink); background: color-mix(in oklab, var(--color-light) 70%, transparent); }
.switch input:checked + label { background: var(--color-ink); color: var(--color-paper); }
.switch input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.tool { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 48px; min-height: 48px; padding: 0 16px 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font-weight: 500; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.tool--icon { padding: 0; }
.tool:hover { background: var(--color-paper-3); }
.tool[aria-expanded="true"], .tool[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper); }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px -8px 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--color-ink-2); cursor: pointer; }
.iconbtn:hover { background: var(--color-paper-3); color: var(--color-ink); }

.tag { position: absolute; left: var(--edge-l); bottom: var(--edge-b); display: flex; align-items: center; height: var(--tag-h); padding: 0 12px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 500; color: var(--color-ink-2); white-space: nowrap; }

/* mini map */
.plan { --map-h: min(400px, calc(100dvh - var(--edge-t) - var(--edge-b) - var(--tag-h) - var(--dock-h) - 150px)); position: absolute; right: var(--edge-r); bottom: calc(var(--edge-b) + var(--tag-h) + var(--dock-h) + 18px); padding: 10px 12px 10px; border-radius: var(--radius-card); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.plan__title { font-size: var(--text-md); font-weight: 500; }
.plan__map { position: relative; height: var(--map-h); width: calc(var(--map-h) * 642 / 1188); }
.plan__map > img { display: block; width: 100%; height: 100%; border-radius: 6px; }
.plan__overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.plan__cone { fill: color-mix(in oklab, var(--color-accent) 30%, transparent); stroke: var(--color-accent); stroke-width: 3; stroke-linejoin: round; }
.plan__north { margin-top: 6px; font-size: 0.75rem; color: var(--color-muted); }
.plan__pt { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.plan__pt::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--color-ink); box-shadow: 0 0 0 2.5px var(--color-light); transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.plan__pt:hover::before { background: var(--color-accent-hi); transform: scale(1.2); }
.plan__pt[aria-current="true"]::before { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--color-accent); box-shadow: 0 0 0 3px var(--color-light), 0 0 0 4px var(--color-accent); }
.plan__pt:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; }

.hint { position: absolute; left: 50%; bottom: calc(var(--edge-b) + var(--tag-h) + var(--dock-h) + 22px); transform: translateX(-50%); width: max-content; max-width: min(340px, calc(100% - 32px)); padding: 10px 16px 11px; border-radius: 14px; font-size: var(--text-sm); line-height: 1.4; text-align: center; transition: opacity 400ms var(--ease-out); }
.hint.is-leaving { opacity: 0; }
.toast { position: absolute; left: 50%; top: calc(var(--edge-t) + 76px); transform: translateX(-50%); width: max-content; max-width: min(340px, calc(100% - 32px)); padding: 9px 16px 10px; border-radius: 14px; font-size: var(--text-sm); text-align: center; }

.loader { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.loader__spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--color-accent) 25%, transparent); border-top-color: var(--color-accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* fallback without WebGL: the panorama as a wide picture and the list of points */
.tour[data-mode="flat"] { overflow-y: auto; background: var(--color-paper); }
.tour[data-mode="flat"] .stage, .tour[data-mode="flat"] .room, .tour[data-mode="flat"] #btn-plan,
.tour[data-mode="flat"] #btn-gyro, .tour[data-mode="flat"] .plan { display: none !important; }
.flat { display: grid; gap: 14px; max-width: 960px; margin: 0 auto; padding: calc(var(--edge-t) + 8px) 16px calc(var(--edge-b) + var(--tag-h) + var(--dock-h) + 40px); }
.flat__title { font-size: 1.75rem; }
.flat__note { max-width: 60ch; font-size: var(--text-sm); color: var(--color-ink-2); }
.flat__note--nojs { position: absolute; left: 16px; right: 16px; top: 40%; padding: 16px; border-radius: 14px; background: var(--color-light); text-align: center; }
.flat__room { font-family: var(--font-display); font-size: 1.25rem; }
.flat__scroll { overflow-x: auto; border-radius: 12px; background: var(--color-paper-3); }
.flat__scroll img { display: block; width: auto; height: min(60vh, 440px); max-width: none; }
.flat__subtitle { font-size: 1.125rem; margin-top: 8px; }
.flat__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.flat__list button { width: 100%; min-height: 44px; padding: 8px 14px; border: 1px solid var(--color-muted); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); text-align: left; font-weight: 500; cursor: pointer; }
.flat__list button[aria-current="true"] { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }

@media (min-width: 48rem) {
  :root { --edge-t: 20px; --edge-b: 20px; --edge-l: 24px; --edge-r: 24px; }
  .room { padding: 12px 20px 13px; }
  .room__title { font-size: 1.5rem; }
  .room__detail { font-size: var(--text-sm); }
  .dock { bottom: var(--edge-b); }
  .plan { --map-h: min(440px, calc(100dvh - 180px)); top: var(--edge-t); bottom: auto; }
  .hint { bottom: calc(var(--edge-b) + var(--dock-h) + 20px); max-width: min(480px, calc(100% - 48px)); }
  .toast { top: calc(var(--edge-t) + 90px); }
  .flat { padding-bottom: calc(var(--edge-b) + var(--dock-h) + 40px); }
}
@media (max-height: 30rem) and (orientation: landscape) {
  .plan { --map-h: calc(100dvh - var(--edge-t) - var(--edge-b) - var(--dock-h) - 90px); top: var(--edge-t); bottom: auto; }
  .dock { bottom: var(--edge-b); }
  .hint { bottom: calc(var(--edge-b) + var(--dock-h) + 16px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .loader__spin { border-top-color: color-mix(in oklab, var(--color-accent) 25%, transparent); border-right-color: var(--color-accent); }
}
