/* Tam ekran interyer turu — core/tour.js bu qurulu yaradır. */

.tour {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--stage);
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--stage-ink);
}

.tour-bar {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: rgba(5, 15, 20, .92);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.tour-title {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 160px;
}
.tour-title span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
}
.tour-title small {
  color: var(--stage-muted);
  font-size: 12px;
}

/* mərtəbə / rejim keçidləri */
.seg {
  display: flex;
  background: rgba(255, 255, 255, .08);
  border-radius: 9px;
  padding: 3px;
  flex-wrap: wrap;
}
.seg button {
  border: 0;
  background: none;
  color: #C9D7DC;
  padding: 7px 12px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13px;
}
.seg button.on {
  background: #fff;
  color: #0A1820;
}

.tour-close {
  border: 1px solid rgba(255, 255, 255, .2);
  background: none;
  color: #fff;
  border-radius: 9px;
  padding: 7px 14px;
  font-weight: 600;
}

.tour-canvas {
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.tour-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* aşağıdaki otaq lenti */
.tour-rooms {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 6px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  overflow-x: auto;
  background: linear-gradient(transparent, rgba(5, 15, 20, .85));
}
.tour-rooms button {
  flex: none;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(5, 15, 20, .55);
  color: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
}
.tour-rooms button.on {
  background: #fff;
  color: #0A1820;
  border-color: #fff;
}

.tour-hint {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  background: rgba(5, 15, 20, .7);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: #D6E3E8;
  pointer-events: none;
  max-width: calc(100% - 32px);
  text-align: center;
}

.tour-err {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #fff;
}

/* Mini-plan: 360° gəzintidə küncdəki sxem — hansı otaqda olduğunu və hara
   baxdığını göstərir. SVG planın ÖZ metr koordinatlarındadır (viewBox
   mənzilin ölçüsüdür), ona görə heç bir piksel hesabı yoxdur. */
.tour-map {
  position: absolute;
  right: 16px;
  bottom: 68px;
  width: 190px;
  height: 150px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(8, 18, 24, .62);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.tour-map .plan rect {
  fill: rgba(255, 255, 255, .14);
  stroke: rgba(255, 255, 255, .55);
  stroke-width: .06;
  vector-effect: non-scaling-stroke;
}

.tour-map .cone {
  fill: rgba(63, 178, 195, .45);
}

.tour-map .me {
  fill: #3FB2C3;
  stroke: #fff;
  stroke-width: .08;
}

@media (max-width: 720px) {
  .tour-map { width: 128px; height: 104px; bottom: 60px; }
}

/* Ölçü etiketləri: otağın adı, eni × dərinliyi və sahəsi.
   3D-də deyil, HTML qatındadır — şrift kəskin qalır və render büdcəsinə
   təsir etmir. Mövqeyi hər kadrda proyeksiya ilə hesablanır. */
.tour-dims {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tour-dim {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .88);
  color: #0E1A1F;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.tour-dim b {
  display: block;
  font-family: var(--f-display);
  font-size: 11.5px;
}

.tour-dim span {
  font-family: var(--f-mono);
  font-size: 11px;
  color: #0B6E7F;
}

.tour-dim em {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 10.5px;
  color: #5A6A70;
  margin-left: 6px;
}

/* Ölçü düyməsi üst paneldə, rejim seçicisinin yanında. */
.tour-dimbtn {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: transparent;
  color: #D6E3E8;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.tour-dimbtn.on {
  background: #fff;
  color: #0E1A1F;
  border-color: #fff;
}

@media (max-width: 720px) {
  .tour-dim { padding: 3px 6px; }
  .tour-dim b { font-size: 10px; }
  .tour-dim span, .tour-dim em { font-size: 9.5px; }
}
