/* ============================================================
   system118 — poi-card.css
   Всплывающая карточка работы при наведении на метку картины.
   Дизайн Claude Design «Тур KrPano» (раздел «метки»): белая
   стеклянная карточка с хвостиком, поля собираются из data-
   подсказки родного хотспота (название/автор/год/материал/
   собственность). Рендер и позиционирование: js/poi-card.js.
   Метки-точки и «искажения» СЮДА НЕ входят (отложены).
   ============================================================ */

@keyframes s118-card-in {
  from { opacity: 0; transform: translate(-50%, 0) translateY(-6px); }
  to   { opacity: 1; transform: translate(-50%, 0) translateY(0); }
}

/* карточка (одна на страницу; позицию считает poi-card.js) */
#s118-poi-card {
  position: fixed;
  z-index: 8900; /* под нашими панелями (9000+), над krpano-канвасом */
  left: 0;
  top: 0;
  transform: translate(-50%, 0);
  display: none;
  flex-direction: column;
  align-items: center;
  pointer-events: none; /* карточка не перехватывает мышь с хотспота */
  font-family: 'PT Sans', system-ui, sans-serif;
  user-select: none;
}
#s118-poi-card.is-on {
  display: flex;
  animation: s118-card-in 0.18s ease-out;
}
#s118-poi-card.is-above { flex-direction: column-reverse; }
/* Компактная стеклянная карточка: прозрачнее, без прочерка, минимум воздуха */
.s118-card-body {
  box-sizing: border-box;
  width: min(278px, calc(100vw - 16px));
  padding: 16px 17px;
  border-radius: 13px;
  background: rgba(249, 244, 237, 0.96);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  text-align: left;
  color: #161616;
}
.s118-card-title {
  font: 700 17px/1.18 'PT Sans', sans-serif;
  letter-spacing: -0.01em;
}
.s118-card-author {
  font: 400 12px/1.35 'PT Sans', sans-serif;
  margin-top: 3px;
  color: rgba(22, 22, 22, 0.72);
}
.s118-card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 7px;
  font: 700 11px/1.2 'PT Sans', sans-serif;
  color: rgba(22, 22, 22, 0.5);
  letter-spacing: 0.02em;
}
.s118-card-meta .s118-card-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.3);
  flex: none;
}
.s118-card-hr {
  height: 1px;
  background: rgba(20, 20, 20, 0.10);
  margin: 9px 0 7px;
}
.s118-card-owner {
  font: 400 10px/1.35 'PT Sans', sans-serif;
  color: rgba(22, 22, 22, 0.5);
}
.s118-card-tail {
  position: relative;
  width: 2px;
  height: 16px;
  flex: none;
  transform: translateX(var(--s118-tail-offset, 0px));
}
.s118-card-tail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: var(--s118-tail-length, 16px);
  background: rgba(252, 251, 249, 0.75);
  transform-origin: top center;
  transform: rotate(var(--s118-tail-angle, 0deg));
}
#s118-poi-card.is-above .s118-card-tail::before {
  top: auto;
  bottom: 0;
  transform-origin: bottom center;
}

@media (max-width: 820px) {
  .s118-card-body { width: min(278px, calc(100vw - 16px)); padding: 14px 15px; }
  .s118-card-title { font-size: 15px; }
}

/* ═══ #1 тултип стрелки-перехода («Продолжение осмотра» и т.п.) ═══
   Компактный лейбл в стиле карточки — заменяет нативный krpano hs_hint. */
#s118-nav-hint {
  position: fixed;
  z-index: 8900;
  left: 0; top: 0;
  transform: translate(-50%, -100%);
  display: none;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.82);
  color: #fff;
  font: 700 12px/1.2 'PT Sans', system-ui, sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.34);
  user-select: none;
}
#s118-nav-hint.is-on { display: block; animation: s118-card-in 0.16s ease-out; }
