html,body{height:100%;margin:0;background:#000}
#panorama{width:100%;height:100%}

/* убираем дефолтную иконку хотспота */
.pnlm-hotspot{ background:none; }

/* Кружки хотспотов */
.dot{
  width:50px;height:50px;border-radius:50%;
  background:rgba(255,255,255,.5) !important;
  box-sizing:border-box;
  transition: border-radius 0.3 ease;
}
.dot:hover{
  border-radius:60%;
}
.dot.nav{ border:6px solid #fff; cursor:pointer; }
.dot.info{ border:none; }


/* тултип на hover */
.dot.info[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  max-width: 260px;
  font: 14px/1.3 system-ui,-apple-system,Segoe UI,Roboto,Arial;
  white-space: nowrap;
  display: inline-block;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;

  opacity: 0;                  /* изначально скрыт */
  transition: opacity 0.3s ease;
}

.dot.info[data-tip]:hover::after {
  opacity: 1;                  /* плавное появление */
}


/* Левый столбик кнопок */
.scene-nav{
  position:fixed; left:10px; top:50%; transform:translateY(-50%);
  z-index:9999; display:flex; flex-direction:column; gap:10px;
}
.scene-btn{
  background:rgba(255,255,255,.3);
  color:#000;
  padding:8px 12px;
  border:none;
  cursor:pointer;
  text-align:left;
}
.scene-btn.active{
  background:rgba(255,255,255,.15);
  font-weight:bold;
}
.hotspot-box {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.hotspot-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  min-width: 250px;
  opacity: 0; 
  transition: opacity 0.3s ease;
}

.hotspot-content:hover{
  opacity: 1;
}

.hotspot-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.hotspot-btn:hover {
  background: #555;
}
.hotspot-label {
  position: absolute;                 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);   
  white-space: nowrap;
  background: rgba(255,255,255,0.7);  
  color: #000;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;     
  transition: transform 0.3s ease;          
}
.dot:hover .hotspot-label {
  transform: translate(-50%, -50%) scale(1.2);
}

@media (max-width: 768px) {
  .dot {
    width: 33px;
    height: 33px;
  }
  .dot.nav {
    border-width: 4px;
  }
  .scene-nav { top: 90%; transform:translateY(-100%);}
  
  .hotspot-label {
    font-size: 11px;
    padding: 2px 4px;
  }

  /* кнопки навигации */
  .scene-btn {
    font-size: 12px;
    padding: 6px 8px;
  }
}


.credits {
    position: fixed;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #cccccc;
    font-size: 14px;
    border-radius: 6px;
    z-index: 9999; /* чтобы поверх панорамы */
}

.credits img {
    height: 24px;
    width: auto;
    border-radius: 4px;
}

.credits a {
    color: #ffffff; /* можешь выбрать другой */
    text-decoration: none;
    font-weight: bold;
}

.credits a:hover {
    text-decoration: underline;
}
