/* Оверлей 3D-тура Asyl Qala: карточка товара при наведении на маркер.
   Подключается из /tour/index.htm; данные — /api/tour-products (см. overlay.js). */

/* Нативные тултипы 3DVista глушим на уровне CSS: set('toolTip','') не покрывает
   оверлеи, пересозданные плеером при загрузке панорам — местами «проступали». */
div.ToolTip, [data-name="ToolTip"] { display: none !important; }
.aqov {
  position: fixed; left: 18px; bottom: 18px; z-index: 999999;
  width: min(390px, calc(100vw - 36px));
  background: rgba(18, 20, 15, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px; color: #fff;
  font: 14px/1.45 -apple-system, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
  overflow: hidden;
}
.aqov.is-on { opacity: 1; transform: none; pointer-events: auto; }
.aqov__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 0; }
.aqov__eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #98C21D; }
.aqov__close { display: none; border: 0; background: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: .7; padding: 2px 6px; }
.aqov__close:hover { opacity: 1; }
.aqov__item { display: flex; gap: 12px; padding: 12px 14px; align-items: center; }
.aqov__item + .aqov__item { border-top: 1px solid rgba(255, 255, 255, .08); }
.aqov__img { flex: 0 0 86px; width: 86px; height: 64px; object-fit: cover; border-radius: 8px; background: #2a2d24; }
.aqov__body { min-width: 0; flex: 1; }
.aqov__name { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.aqov__price { margin-top: 2px; font-weight: 700; color: #B5E03A; font-variant-numeric: tabular-nums; }
.aqov__price small { font-weight: 500; color: rgba(255, 255, 255, .55); }
.aqov__colors { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.aqov__sw { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .75); }
.aqov__sw i { width: 32px; height: 32px; border-radius: 7px; overflow: hidden; display: block; border: 1px solid rgba(255, 255, 255, .25); background-size: cover; background-position: center; }
.aqov__cta {
  display: block; text-align: center; margin: 4px 14px 13px; padding: 10px 12px;
  background: #98C21D; color: #1f3d0a; font-weight: 700; font-size: 14px;
  border-radius: 9px; text-decoration: none; transition: filter .15s;
}
.aqov__cta:hover { filter: brightness(1.07); }
@media (max-width: 640px) {
  .aqov { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .aqov__close { display: block; }
}

/* ── БОЛЬШОЙ инфо-оверлей (клик/тап по маркеру «где стоим») ── */
.aqbig {
  position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(10, 12, 8, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.aqbig.is-on { opacity: 1; pointer-events: auto; }
.aqbig__card {
  position: relative; width: min(720px, 100%); max-height: min(86vh, 900px);
  overflow: auto; background: #16180f; color: #fff; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  font: 15px/1.5 -apple-system, 'Segoe UI', Roboto, sans-serif;
  transform: translateY(16px) scale(.98); transition: transform .25s ease;
}
.aqbig.is-on .aqbig__card { transform: none; }
.aqbig__close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 24px; line-height: 1;
  cursor: pointer;
}
.aqbig__close:hover { background: rgba(0, 0, 0, .8); }
.aqbig__photo { width: 100%; aspect-ratio: 16/9; background: #23261c; }
.aqbig__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aqbig__body { padding: 20px 24px 24px; }
.aqbig__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #98C21D; margin-bottom: 6px; }
.aqbig__name { font-size: 26px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.aqbig__price { margin-top: 8px; font-size: 21px; font-weight: 800; color: #B5E03A; font-variant-numeric: tabular-nums; }
.aqbig__price small { font-weight: 500; font-size: 14px; color: rgba(255, 255, 255, .55); }
.aqbig__colors { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.aqbig__sw { display: inline-flex; align-items: center; gap: 9px; }
.aqbig__sw i { width: 46px; height: 46px; border-radius: 10px; display: block; border: 1px solid rgba(255, 255, 255, .25); background-size: cover; background-position: center; }
.aqbig__sw b { display: block; font-size: 13px; }
.aqbig__sw small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .6); margin-top: 1px; }
.aqbig__sw b, .aqbig__sw small { line-height: 1.25; }
.aqbig__sw { flex-direction: row; }
.aqbig__sw > b, .aqbig__sw > small { display: inline; }
.aqbig__specs { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.aqbig__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.aqbig__specs span { color: rgba(255, 255, 255, .6); }
.aqbig__extra { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 10px 14px; background: rgba(255, 255, 255, .06); border-radius: 10px; font-size: 14px; }
.aqbig__extra b { color: #B5E03A; }
.aqbig__cta {
  display: block; text-align: center; margin-top: 20px; padding: 14px 16px;
  background: #98C21D; color: #1f3d0a; font-weight: 800; font-size: 16px;
  border-radius: 12px; text-decoration: none; transition: filter .15s;
}
.aqbig__cta:hover { filter: brightness(1.07); }
@media (max-width: 640px) {
  .aqbig { padding: 0; align-items: flex-end; }
  .aqbig__card { width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0; }
  .aqbig__photo { aspect-ratio: 4/3; }
  .aqbig__name { font-size: 22px; }
}

/* ── кнопка выхода из тура на сайт ── */
.aqexit {
  position: fixed; top: calc(10px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right));
  z-index: 999998; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 99px;
  background: rgba(18, 20, 15, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; text-decoration: none;
  font: 600 13px/1 -apple-system, 'Segoe UI', Roboto, sans-serif;
  transition: background .15s ease;
}
.aqexit:hover { background: rgba(18, 20, 15, .95); }
.aqexit img { height: 16px; width: auto; display: block; }
@media (max-width: 640px) {
  .aqexit span { display: none; }
  .aqexit { padding: 9px 11px; }
}
