/* tour scene (tour.js): heading and the plan in a column on the left, the big window on the right, the button under it;
   on phones the heading on top, the window across the screen with the plan in its corner, the button under it */
.scene-tour { background: var(--paper2); }
.tr { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "head frame" "plan frame" "plan foot"; column-gap: 48px; row-gap: 20px;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: calc(var(--header) + 28px) var(--gutter) 28px; }
.tr-head { grid-area: head; }
.tr-title { font: 800 var(--fs-h2, clamp(1.5rem, 1.05rem + 2.1vw, 2.75rem))/1.08 var(--sans); letter-spacing: -.018em; color: var(--ink); text-wrap: balance; }
:lang(ka) .tr-title, :lang(th) .tr-title { line-height: 1.18; letter-spacing: 0; }
.tr-text { margin-top: 12px; font-size: 1rem; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.tr-plan { grid-area: plan; position: relative; align-self: start; justify-self: start; height: 100%; max-height: 100%; aspect-ratio: 918 / 2090; min-height: 0;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1, 0 1px 2px rgba(38,41,47,.08), 0 8px 18px -10px rgba(60,50,30,.25)); }
.tr-plan img, .tr-plan svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tr-route-bg { fill: none; stroke: rgba(30, 79, 216, .16); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 26; }
.tr-route { fill: none; stroke: var(--blue); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tr-dot { fill: #fff; stroke: var(--blue); stroke-width: 8; transition: fill .3s; }
.tr-dot.is-done { fill: var(--blue); }
.tr-dot.is-other { stroke: var(--soft); stroke-width: 6; }
.tr-cone path { fill: rgba(30, 79, 216, .22); stroke: rgba(30, 79, 216, .55); stroke-width: 4; }
.tr-me { fill: var(--blue); stroke: #fff; stroke-width: 9; }

.tr-frame { grid-area: frame; position: relative; min-height: 0; overflow: hidden; background: #d9cfc0; border: 1.5px solid var(--ink); touch-action: pan-y; cursor: grab;
  box-shadow: var(--sh-2, 0 1px 2px rgba(38, 41, 47, .10), 0 6px 14px -6px rgba(60, 50, 30, .18), 0 24px 44px -20px rgba(60, 50, 30, .30)); }
.tr-frame.is-drag { cursor: grabbing; }
.tr-still, .tr-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.tr-cv { opacity: 0; transition: opacity .4s; }
.tr.is-live .tr-cv { opacity: 1; }
.tr-badge { z-index: 3; }
.tr-tag { position: absolute; z-index: 3; left: 14px; top: 14px; display: inline-flex; gap: 12px; align-items: baseline; padding: 9px 14px;
  background: rgba(38, 41, 47, .86); color: var(--sheet, #fff); font: 700 1.125rem/1.2 var(--sans); }
.tr-tag b { font-size: 12px; color: #A9C1FF; letter-spacing: .06em; }
.tr-hint { position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px;
  background: rgba(255, 255, 255, .9); color: var(--ink); font: 600 .875rem/1.2 var(--sans); white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.tr-hint svg { width: 20px; height: 20px; }
.tr.was-dragged .tr-hint { opacity: 0; }
.tr-foot { grid-area: foot; display: flex; justify-content: flex-start; }
.tr-btn { font-size: 1.0625rem; min-height: 56px; padding: 14px 26px; }
.tr-btn .ico-ext { width: 16px; height: 16px; }

/* phones */
.tr.is-m { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head" "frame" "foot";
  row-gap: 14px; padding: calc(var(--header) + 12px) 16px 16px; }
.tr.is-m .tr-text { margin-top: 8px; font-size: 1rem; }
.tr.is-m .tr-plan { position: absolute; z-index: 3; left: auto; right: 10px; bottom: 10px; top: auto; height: 46%; max-height: none; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); }
.tr.is-m .tr-tag { left: 10px; top: 10px; font-size: 1rem; padding: 7px 11px; }
.tr.is-m .tr-hint { left: 10px; right: auto; bottom: 10px; transform: none; font-size: .8125rem; }
.tr.is-m .tr-badge { right: auto; left: 10px; bottom: 52px; }
.tr.is-m .tr-btn { width: 100%; justify-content: center; }

/* drawn once (no GSAP or «reduce motion») and without JavaScript: the band with the still and the button */
.v2-still .scene-tour { height: auto; overflow: visible; }
.v2-still .scene-tour .scene-stage { display: none; }
.v2-still .scene-tour .scene-text { display: block; }
