/* Narvan Virtual Tour System */
@font-face {
  font-family: "Yekan Bakh";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/web/idx3/fonts/Yekan_Bakh_Fanum_Regular.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}

@font-face {
  font-family: "Yekan Bakh";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/web/idx3/fonts/Yekan_Bakh_Fanum_Medium.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}

@font-face {
  font-family: "Yekan Bakh";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/web/idx3/fonts/Yekan_Bakh_Fanum_Bold.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}

@font-face {
  font-family: "Calibri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/web/idx3/fonts/calibri/Calibri-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Calibri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/web/idx3/fonts/calibri/Calibri-Bold.woff2") format("woff2");
}

:root {
  --tour-side-w: 300px;
  --tour-side-bg: rgba(13, 71, 161, 0.42);
  --tour-side-text: #fff;
  --tour-side-muted: rgba(255, 255, 255, 0.86);
  --tour-side-line: rgba(255, 255, 255, 0.22);
  --tour-accent: #fff;
  --tour-accent-soft: rgba(255, 255, 255, 0.16);
  --tour-modal-bg: rgba(8, 18, 40, 0.28);
  --tour-font: "Yekan Bakh", "Calibri", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #111;
  color: var(--tour-side-text);
  font-family: var(--tour-font);
}

.tour-intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(25, 118, 210, 0.38), transparent 58%),
    linear-gradient(180deg, #07224f 0%, #0d47a1 55%, #06152e 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.tour-intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tour-intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  max-width: 420px;
}

.tour-intro-logo {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
  padding: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(8, 18, 40, 0.28);
}

.tour-intro-name {
  margin: 0;
  font-size: clamp(18px, 3.2vw, 26px);
  font-weight: 700;
  line-height: 1.55;
  color: #fff;
}

.tour-intro-start {
  appearance: none;
  border: 0;
  margin-top: 8px;
  padding: 14px 22px;
  background: #fff;
  color: #0d47a1;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(8, 18, 40, 0.22);
}

.tour-intro-start:hover {
  background: #eef4ff;
}

#tour-intro-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.tour-app {
  position: relative;
  height: 100%;
  width: 100%;
}

.tour-stage,
#tour-viewer,
#tour-viewer .pnlm-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tour-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  width: var(--tour-side-w);
  height: 100%;
  background: var(--tour-side-bg);
  color: var(--tour-side-text);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color-scheme: dark;
}

.tour-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px 14px;
}

.tour-brand-logo {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  padding: 8px;
  background: #fff;
  border-radius: 50%;
}

.pnlm-container {
  contain: none !important;
}

.pnlm-hotspot-base.tour-hs-mark {
  width: 72px;
  height: 72px;
  background: transparent !important;
  background-image: none !important;
  cursor: url("/360/vendor/narvancms-narvani/cursors/FS.cur"), pointer;
}

.pnlm-hotspot-base.tour-hs-mark .tour-hs-arrow,
.pnlm-hotspot-base.tour-hs-mark .tour-hs-arrow-img {
  visibility: visible !important;
}

.tour-hs-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  pointer-events: none;
}

.tour-hs-arrow-img {
  display: block;
  width: 48px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px #111) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
  animation: tour-hs-flow 1.35s ease-in-out infinite;
}

.tour-hs-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  max-width: 200px;
  padding: 5px 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.pnlm-hotspot-base.tour-hs-mark:hover .tour-hs-tip {
  opacity: 1;
}

@keyframes tour-hs-flow {
  0%,
  100% {
    transform: translateY(6px);
    opacity: 0.7;
  }
  45% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-hs-arrow-img {
    animation: none;
  }
}

.pnlm-hotspot-base.tour-nadir {
  width: 160px;
  height: 160px;
  pointer-events: none;
  background: transparent;
  cursor: default;
  z-index: 3;
}

.tour-nadir-logo {
  display: block;
  box-sizing: border-box;
  width: 160px;
  height: 160px;
  object-fit: contain;
  padding: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(8, 18, 40, 0.35);
}

.tour-brand-name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.55;
  color: #fff;
  text-align: center;
}

.tour-menu {
  flex: 1;
  overflow: auto;
  padding: 4px 0 8px;
}

.tour-places,
.tour-nav-link {
  border: 0;
  border-top: 1px solid var(--tour-side-line);
  background: transparent;
}

.tour-places-toggle,
.tour-nav-link {
  appearance: none;
  display: block;
  width: 100%;
  cursor: pointer;
  padding: 13px 22px;
  font: inherit;
  font-size: 14px;
  color: var(--tour-side-muted);
  background: transparent;
  text-align: right;
}

.tour-places-toggle {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 12px 22px;
}

.tour-places-label {
  font-size: 14px;
  color: inherit;
}

.tour-places-current {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.tour-places.is-open .tour-places-toggle,
.tour-places-toggle:hover,
.tour-nav-link:hover,
.tour-nav-link.is-active {
  color: var(--tour-accent);
  background: var(--tour-accent-soft);
}

.tour-places-panel {
  display: none;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 0 10px 12px 12px;
}

.tour-places.is-open .tour-places-panel {
  display: block;
}

.tour-nav-body {
  padding: 0 10px 12px 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--tour-side-text);
  background: transparent;
}

.tour-nav-body p {
  margin: 0 0 8px;
}

.tour-nav-body a {
  color: inherit;
  text-decoration: none;
}

.tour-scene-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: transparent;
}

.tour-scene {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
  padding: 7px 12px;
  cursor: pointer;
  border-right: 3px solid transparent;
}

.tour-scene.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-right-color: #fff;
  font-weight: 700;
}

.tour-photo {
  display: block;
  width: 100%;
  border-radius: 0;
}

.tour-side-foot {
  margin-top: auto;
  padding: 12px 16px 10px;
  border-top: 1px solid var(--tour-side-line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--tour-side-muted);
}

.tour-side-foot strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 13px;
}

.tour-side-foot span {
  display: block;
}

.tour-credit {
  display: block;
  margin: 10px 0 0;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 10px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}

.tour-credit:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tour-modal {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--tour-modal-bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.tour-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tour-modal-card {
  width: min(520px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.88);
  color: #1d2433;
  border-radius: 0;
  box-shadow: 0 18px 48px rgba(8, 18, 40, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.32s ease;
}

.tour-modal.is-open .tour-modal-card {
  transform: none;
}

.tour-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
  border-bottom: 1px solid #e6e8ee;
}

.tour-modal-head h2 {
  margin: 0;
  font-size: 16px;
}

.tour-modal-close {
  appearance: none;
  border: 0;
  background: #eef3ff;
  color: #0d47a1;
  border-radius: 0;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.tour-modal-body {
  padding: 16px 18px 20px;
  font-size: 14px;
  line-height: 1.8;
}

.tour-modal-body p {
  margin: 0 0 8px;
}

.tour-modal-body a {
  color: #0d47a1;
  text-decoration: none;
}

.tour-iframe-card {
  width: min(960px, 100%);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
}

.tour-iframe-open {
  margin-inline-start: auto;
  color: #0d47a1;
  text-decoration: none;
  font-size: 12px;
}

.tour-iframe-frame {
  display: block;
  width: 100%;
  height: min(68vh, 620px);
  border: 0;
  background: #fff;
}

.tour-menu-toggle {
  display: none;
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 9;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--tour-side-text);
  font: inherit;
  font-size: 13px;
  padding: 8px 14px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.16);
  cursor: pointer;
}

.tour-empty,
.tour-empty-note {
  color: var(--tour-side-muted);
  padding: 8px 4px;
}

.tour-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #111;
}

.pnlm-container,
.pnlm-container .pnlm-ui,
.pnlm-title-box,
.pnlm-author-box,
.pnlm-panorama-info,
.pnlm-tooltip span {
  font-family: var(--tour-font) !important;
}

.pnlm-container {
  background: #111;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.pnlm-panorama-info {
  left: auto !important;
  right: 16px;
  bottom: 16px;
  border-radius: 14px;
  background: rgba(13, 71, 161, 0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px;
  direction: rtl;
  text-align: right;
  box-shadow: 0 8px 22px rgba(8, 18, 40, 0.2);
}

.pnlm-title-box {
  font-size: 14px;
  font-weight: 700;
  padding: 0;
  margin: 0;
  line-height: 1.7;
}

.pnlm-about-msg {
  font-family: var(--tour-font) !important;
  background: rgba(13, 71, 161, 0.72) !important;
  color: #fff !important;
  border-radius: 0 !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.pnlm-controls-container {
  display: none !important;
}

.tour-controls,
.tour-controls * {
  box-sizing: border-box;
}

.tour-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(13, 71, 161, 0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(8, 18, 40, 0.22);
}

.tour-controls button {
  appearance: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s ease, transform 0.18s ease;
}

.tour-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.tour-controls button:active {
  transform: scale(0.96);
}

.tour-controls svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tour-ctrl-fs-exit,
.tour-ctrl-sound-off,
.tour-controls button[data-active="1"] .tour-ctrl-fs-enter,
.tour-controls button[data-active="1"] .tour-ctrl-sound-on {
  display: none;
}

.tour-controls button[data-active="1"] .tour-ctrl-fs-exit,
.tour-controls button[data-active="1"] .tour-ctrl-sound-off {
  display: block;
}

@media (max-width: 860px) {
  .tour-menu-toggle {
    display: inline-flex;
  }

  .tour-sidebar {
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  .tour-app.is-nav-open .tour-sidebar {
    transform: none;
  }

  .tour-app.is-nav-open .tour-menu-toggle {
    left: calc(var(--tour-side-w) + 12px);
  }

  .tour-controls {
    top: 12px;
    right: 12px;
    padding: 6px;
    gap: 6px;
  }

  .tour-controls button {
    width: 40px;
    height: 40px;
  }
}
