/* Fixed-size movement markers. The hotspot's transform belongs to krpano. */
.floor-sticker {
  width: 84px;
  height: 74px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none !important;
  color: #fff;
  touch-action: manipulation;
}

.floor-sticker .floor-face {
  position: absolute;
  left: 12px;
  top: 16px;
  width: 60px;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: none !important;
  box-shadow: none;
  text-shadow: none;
  animation: none;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px #17171790);
  transition: filter .2s ease;
}

.floor-sticker .floor-face::before,
.floor-sticker .floor-face::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 60px;
  height: 24px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24'%3E%3Cpath d='M8 18 30 6 52 18' fill='none' stroke='%230d2834' stroke-opacity='.72' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 18 30 6 52 18' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: none;
  opacity: .94;
  animation: movement-chevron 3.2s ease-in-out infinite;
  animation-delay: .12s;
  pointer-events: none;
}

.floor-sticker .floor-face::after {
  top: 14px;
  opacity: .7;
  animation-delay: 0s;
}

.floor-caption {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 128px;
  padding: 2px 7px;
  border: 1px solid #ffffff38;
  border-radius: 6px;
  background: #1c1c1cbc;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 15px;
  white-space: nowrap;
  text-shadow: 0 1px 2px #0005;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  transition: background-color .2s ease, border-color .2s ease;
}

.floor-sticker:focus-visible {
  outline: 2px solid #f4f4f4;
  outline-offset: 5px;
}

.floor-sticker:focus-visible .floor-face {
  filter: drop-shadow(0 2px 4px #171717b0) drop-shadow(0 0 5px #f6f6f666);
}

.floor-sticker:focus-visible .floor-caption {
  background: #333333ed;
  border-color: #f8f8f8aa;
}

.floor-sticker:hover .floor-face { border: 0; box-shadow: none; }
.floor-sticker:hover .floor-face::after { animation-duration: 3.2s; }

@media (hover: hover) {
  .floor-sticker:hover .floor-face {
    filter: drop-shadow(0 2px 4px #171717b0) drop-shadow(0 0 5px #f6f6f666);
  }
  .floor-sticker:hover .floor-caption {
    background: #333333ed;
    border-color: #f8f8f8aa;
  }
}

.floor-sticker:active .floor-face { filter: drop-shadow(0 1px 2px #17171790); }
.floor-sticker:active .floor-caption { background: #4b4b4bef; }

/* Authored building/room signs keep their names, distinct from floor steps. */
.hotspot.navigation-sign {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 180px;
  height: auto;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #ffffff77;
  background: linear-gradient(135deg,#424242e8,#262626de) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 14px #0f0f0f33;
}
.navigation-sign .floor-face {
  position: relative;
  left: auto;
  top: auto;
  flex: none;
  width: 30px;
  height: 32px;
  margin: -5px;
  transform: rotate(90deg) scale(.55);
  transform-origin: center;
}
.navigation-sign .floor-face::before,
.navigation-sign .floor-face::after { left: -15px; }
.navigation-sign .floor-caption {
  position: static;
  transform: none;
  flex: 1;
  min-width: 0;
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
  text-align: left;
  white-space: normal;
  font-size: 12px;
  line-height: 1.3;
}
.navigation-sign:hover .floor-caption,
.navigation-sign:focus-visible .floor-caption { background: none; }

@keyframes movement-chevron {
  0%, 32%, 100% { transform: translateY(0); }
  17% { transform: translateY(-3px); }
}

@media (pointer: coarse) {
  .floor-caption { font-size: 12px; line-height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .floor-sticker .floor-face,
  .floor-sticker .floor-face::before,
  .floor-sticker .floor-face::after { animation: none; transform: none; }
  .floor-sticker.navigation-sign .floor-face { transform: rotate(90deg) scale(.55); }
  .floor-sticker .floor-face::before { opacity: .94; }
  .floor-sticker .floor-face::after { opacity: .7; }
}
