@keyframes pulse-chevron {
  0%   { transform: rotate(var(--r, 0deg)) translateY(0px)  scale(1);    }
  40%  { transform: rotate(var(--r, 0deg)) translateY(-4px) scale(1.12); }
  60%  { transform: rotate(var(--r, 0deg)) translateY(-5px) scale(1.14); }
  100% { transform: rotate(var(--r, 0deg)) translateY(0px)  scale(1);    }
}

.chevron-svg {
  font-size: 20px;
  animation: pulse-chevron 1.2s ease-in-out infinite;
  animation-play-state: paused;
  will-change: transform;
}

.chevron-svg.is-idle {
  animation-play-state: running;
}

.chevron-svg.is-open {
  --r: 180deg;
}

.right-widget {
  position: fixed;
  right: 32px;
  bottom: 0px;
  z-index: 300000;
}

.list-of-sights {
  -webkit-box-shadow: 0px -8px 17px 2px rgba(34, 60, 80, 0.2);
  -moz-box-shadow: 0px -8px 17px 2px rgba(34, 60, 80, 0.2);
  box-shadow: 0px -8px 17px 2px rgba(34, 60, 80, 0.2);
  width: 550px;
  border-radius: 10px 10px 0px 0px;
  background:
    linear-gradient(
      114deg,
      rgba(255, 255, 255, 0) 8.71%,
      rgba(255, 255, 255, 0.16) 69.69%
    ),
    var(--carrier-right, #806C59);
  color: white;

  max-height: 68px;
  transition: max-height 0.15s ease;
  overflow: hidden;
}

.list-of-sights.is-open {
  max-height: 890px;
}

.list-of-sights:not(.is-open) .sights-line {
  height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.list-of-sights-control {
  position: relative;
  width: 100%;
  display: inline-flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 24px;
  height: 68px;
  flex-shrink: 0;

  user-select: none;
}

.list-of-sights-control::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);

  top: 0;
  height: 10px;
  border-radius: 10px;
  width: 128px;

  background-color: color-mix(
    in srgb,
    var(--carrier-right, #806C59) 80%,
    black
  );
}

.list-of-sights-title {
  font-family: "Roboto";
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  color: white;
}

.list-of-sights-content {
  margin-right: 12px;
  overflow-x: visible;
  height: 700px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out 0.15s;

  overscroll-behavior: contain;
  touch-action: pan-y;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.list-of-sights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  padding: 20px 13px 30px 13px;
  align-content: start;
}

.list-of-sights-content.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sight-component {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  text-align: center;
  touch-action: pan-y;
  position: relative;
  z-index: 1;
  scroll-margin-top: 15px;
}

.sight-component.sight-highlighted {
  z-index: 10;
}

.sight-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 96px;
  height: 96px;
  border-radius: 100%;
  background-color: #fff;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}

.sight-title {
  margin-top: 8px;
  text-align: center;
  font-family: "Roboto";
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.32px;
  word-break: break-word;
  overflow-wrap: break-word;
  color: white;
  overflow: hidden;
  max-height: 2.8em;
  position: relative;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.sight-image-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.no-image-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 100%;
  background-color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666;
  font-size: 12px;
  text-align: center;
}

.sights-line {
  height: 1px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  margin-bottom: 14px;
}

.sight-frame {
  z-index: -1;
  position: absolute;
  bottom: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  width: 550px;
  border-radius: 10px;
  background:
    linear-gradient(
      114deg,
      rgba(255, 255, 255, 0) 8.71%,
      rgba(255, 255, 255, 0.16) 69.69%
    ),
    var(--carrier-right, #806C59);
  max-height: calc(100vh - 128px);
}

.sight-frame-image {
  margin-top: 2px;
  width: 546px;
  height: 342px;
  border-radius: 8px 8px 0px 0px;
  background: #d9d9d9;
  object-fit: contain;
}

.sight-frame-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
}

.sight-frame-get-back-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sight-frame-title {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  width: 100%;
  text-align: left;
  font-family: "Roboto";
  font-size: 24px;
  font-weight: 600;
  line-height: 120%;
  border-bottom: 1px solid var(--Glass-stroke, rgba(255, 255, 255, 0.8));
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.04) 100%
    ),
    rgba(var(--carrier-right-rgb, 128, 108, 89), 0.72);
  box-shadow: 4px 4px 12px 0px rgba(255, 255, 255, 0.12) inset;
  box-sizing: border-box;
  color: white;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.sight-frame-title:not(.intro-title) {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    rgba(var(--carrier-right-menu-rgb, 179, 165, 152), 0.4);
}

.sight-frame-title p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal !important;
  margin: 0;
  width: 100%;
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.sight-frame-get-back {
  margin-right: 12px;
}

.sight-frame-text-wrapper {
  flex-grow: 1;
  padding: 16px;
  box-sizing: border-box;
  max-height: calc(80vh - 354px);
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sight-frame-text-wrapper.scrollable-container {
  padding: 16px;
}
.sight-frame-text-wrapper .scrollable-viewport {
  flex: 1;
  min-height: 0;
}
.sight-frame-text-wrapper .scrollable {
  padding-right: 10px;
}

.sight-frame-text {
  padding-right: 10px;
  text-align: left;
  color: #fff;
  font-family: "Roboto";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin-bottom: 0;
}

.sight-frame-text::-webkit-scrollbar {
  width: 5px;
}

.sight-frame-text::-webkit-scrollbar-track {
  background: linear-gradient(
    to right,
    transparent 35%,
    color-mix(in srgb, var(--carrier-right, #806C59) 80%, black) 50%,
    transparent 65%
  );
  border-radius: 3px;
}

.sight-frame-text::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 3px;
}

.sight-frame-text {
  text-align: left;
  color: #fff;
  font-family: "Roboto";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin-bottom: 0;
}

.sight-frame-menu-wrapper {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.sight-frame-menu-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.sight-frame-menu-fade.left {
  left: 0;
  background: linear-gradient(to right, rgba(var(--carrier-right-menu-rgb, 179, 165, 152), 0.95), transparent);
  border-radius: 0 0 0 10px;
}

.sight-frame-menu-fade.right {
  right: 0;
  background: linear-gradient(to left, rgba(var(--carrier-right-menu-rgb, 179, 165, 152), 0.95), transparent);
  border-radius: 0 0 10px 0;
}

.sight-frame-menu {
  position: relative;
  padding: 7px 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  border-radius: 0px 0px 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    rgba(var(--carrier-right-menu-rgb, 179, 165, 152), 0.4);
  box-shadow: 4px 4px 12px 0px rgba(255, 255, 255, 0.12) inset;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.sight-frame-menu::-webkit-scrollbar {
  display: none;
}

.sight-frame-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.sight-frame-menu-point {
  color: #fff;
  text-align: center;
  font-family: "Roboto";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  padding: 8px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background-color 0.1s ease,
    color 0.1s ease;
}

.sight-frame-menu-point.active {
  font-weight: 600;
  border-bottom: 2px solid #fff;
}

.sight-frame-text-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  width: 4px;
}

.sight-frame-text-wrapper::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 4px;
  width: 2px;
}

.sight-frame-text-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 1px;
}

.sight-frame-text-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}
.sight-frame {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out;
}

.sight-frame.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInScale 0.6s ease-out forwards;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.sight-component {
  transition: transform 0.1s ease-in-out;
}

.sight-component.sight-highlighted .sight-image {
  animation: pulseHighlight 1.5s ease-in-out;

  animation-fill-mode: forwards;
  will-change: transform, box-shadow;
}

@keyframes pulseHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 15px 10px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transform: scale(1);
  }
}

.intro-title {
  height: 300px;
  justify-content: center;
  align-items: center;
  border-bottom: none;
  text-align: center;
  font-size: 40px;
  font-weight: 600;
  line-height: 150%;
}

.svg-container {
  position: absolute;
  right: 20px;
  width: 60px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-of-sights-lang-open {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 18px;
  gap: 4px;
  flex-shrink: 0;
}

.list-of-sights-lang-open .active {
  fill: #fff;
}

.list-of-sights-lang-open svg {
  cursor: pointer;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.list-of-sights-lang-open svg:hover {
  opacity: 0.8;
}

.list-of-sights-lang-closed {
  position: absolute;
  left: 20px;
  top: 18px;
}

.back-to-nearest-button {
  cursor: pointer;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.back-to-nearest-button:hover {
  opacity: 0.8;
}

.alphabet {
  width: 100px;
  margin-right: 10px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  height: 650px;
  padding-bottom: 30px;
  touch-action: pan-y;
  overscroll-behavior: contain;
  scrollbar-width: none;

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20px,
    black calc(100% - 30px),
    transparent 100%
  );
}

.alphabet::-webkit-scrollbar {
  display: none;
}

.alphabet-letter {
  font-size: 16px;
  color: #cccccc;
  padding: 4px 10px;
  transition:
    color 0.1s ease,
    font-weight 0.1s ease,
    opacity 0.2s ease;
  cursor: pointer;
  user-select: none;
  min-width: 20px;
  text-align: center;
  border-radius: 4px;
  font-family: "Roboto", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.alphabet-letter[data-lang="zh"] {
  font-size: 14px;
  padding: 6px 8px;
  min-width: 24px;
}

.alphabet-disabled {
  pointer-events: none;
}

.alphabet-disabled .alphabet-letter {
  opacity: 0.4;
  cursor: default;
}

.alphabet-position {
  display: inline-flex;
  justify-content: space-between;
}

.transfer-button-container {
  position: absolute;
  left: -80px;
  bottom: 32px;
  z-index: 10000000;
  pointer-events: auto;
}

.transfer-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.transfer-widget {
  left: -495px;
  bottom: -168px;
  padding: 16px;
  box-sizing: border-box;
  width: 382px;
  min-height: 186px;

  position: absolute;
  border-radius: 10px;
  border: 1px solid var(--carrier-main, #006f3a);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    rgba(var(--carrier-main-rgb, 0, 111, 58), 0.4);

  box-shadow: 4px 4px 12px 0px rgba(255, 255, 255, 0.12) inset;
  backdrop-filter: blur(10px);
}

.transferLabel {
  font-family: "Roboto";
  font-size: 18px;
  font-weight: 600;
  line-height: 150%;
}

.transferText {
  font-family: "Roboto";
  font-size: 18px;
  font-weight: 600;
  line-height: 150%;
  letter-spacing: 0.36px;
}

.transfer-line {
  display: inline-flex;
  gap: 12px;
}

.sight-frame-media-stack {
  margin-top: 2px;
  border-radius: 10px 10px 0 0;
  position: relative;
  width: calc(100% - 4px);
  height: 300px;
  overflow: hidden;
}

.sight-frame-media-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;

  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

.sight-frame-media-item.visible {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.watermark {
  position: absolute;
  width: 51px;
  height: auto;
  left: 8px;
  top: 8px;
  z-index: 100000;
}

.transfers-body {
  font-family: "Roboto";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  color: #fff;
  overflow-y: auto;
}

.panorama-container {
  isolation: isolate;
  contain: layout style paint;
}

.panorama-container * {
  box-sizing: border-box;
}

.panorama-container .psv-container,
.panorama-container .psv-viewer,
.panorama-container .psv-canvas-container {
  isolation: isolate;
}

@supports (overscroll-behavior: contain) {
  .list-of-sights-content {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

.fullscreen-3d-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: white;
  padding: 8px;

  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.fullscreen-3d-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-3d-actions {
  position: fixed;
  display: flex;
  gap: 20px;
  padding: 22px;
  border-radius: 32px;
  right: 20px;
  bottom: 20px;
  background: var(--carrier-right, #806C59);
  z-index: 9999;
  display: flex;
}

.fullscreen-3d-actions button {
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.fullscreen-3d-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fullscreen-3d-actions button:hover:not(:disabled) {
  opacity: 0.8;
}

.fullscreen-3d-content {
  position: relative;
  width: 80vw;
  height: 80vh;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.fullscreen-3d-viewer {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.fullscreen-3d-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  border: none;
  border-radius: 6px;
  color: white;
  padding: 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.fullscreen-3d-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.sight-frame-media-stack.three-d-view {
  background-color: #111 !important;
}

.three-d-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  padding: 0 30px;
  background: rgba(64, 64, 64, 0.6);
  z-index: 10;
  pointer-events: none;
}

.three-d-controls-bar .three-d-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: min-content;

  pointer-events: auto;
  color: white;
  transition: opacity 0.2s ease;
}

.three-d-controls-bar .three-d-control-btn:hover {
  opacity: 0.85;
}

.three-d-controls-bar .three-d-control-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
