@font-face {
    font-family: "iransans";
    font-style: normal;
    font-weight: normal;
    src: url("/assets/fonts/IRANSans.ttf") format("truetype");
}

*{
    font-family: "iransans", serif;
    scrollbar-width: thin;   
    scrollbar-color: #888 #f1f1f1;  /* رنگ thumb و track */
}

html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: sans-serif;
  }
  #panorama {
    width: 100vw;
    height: 100vh;
  }

  .info-box {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 10;
  }


  .scene-desc {
    position: absolute;
    top: 12px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 16px;
    max-width: 320px;
    max-height: 110px; 
    overflow: hidden;
    transition: max-height 0.3s ease;
    direction: rtl;
}

.scene-desc.expanded {
    max-height: 500px; 
    
}

.toggle-desc {
    display: block;
    margin-top: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    color: #ffd27f;
}


  .btn-sound {
    position: absolute;
    bottom: 100px;
    right: 25px;
    background: #ff7a18;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
  }


  .btn-sound:hover {
    transform: scale(1.1);
  }


  .chat-btn {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: #ff7a18;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
  }

  .chat-btn:hover {
    transform: scale(1.1);
  }

  
  .chat-box {
    display: flex;
    flex-direction: column;
    height: 400px;
    overflow-y: auto;
    padding: 10px;


  }
  .chat-message {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 15px;
    margin: 10px 0;
    word-wrap: break-word;
    width: fit-content;
    max-width: 80%;
  }
  .chat-message.user {
    background:#e9ecef;
    color: #454444;
    align-self: flex-start;
    font-size: 15px;
    border-bottom-left-radius: 3px;
  }
  .chat-message.bot {
    background: #f69577;
    color: #ffffff;
    align-self: flex-end;
    font-size: 15px;
    /* border-bottom-right-radius: 3px; */
  }
  #userInput {
    resize: none;
    overflow: auto;
    padding: 12px;
    border: none;
    outline: none;
    box-shadow: none;
  }


  .scene-menu {
    position: fixed;
    top: 10px;
    left: 50px;
    z-index: 9999;
}

.menu-toggle {
    background: #ff7a18;
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
}

.menu-content {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.6);
    width: 180px;
    border-radius: 10px;
    color: white;
    box-shadow: 0 0 10px #0003;
    padding: 10px;
    display: none;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 6px;
    transition: background 0.2s;
}

.menu-item:hover {
    background: #fa832e;
}

.menu-item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    margin-left: 10px;
    margin-right: 8px;
}

.menu-item span {
    font-size: 14px;
}

#miniMap {
  position: absolute;
  bottom: 50px;
  left: 10px;
  width: 250px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7f7;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 9999;
  padding: 5px;
}

#miniMap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* marker روی مپ */
.miniMap-point {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff7a18;
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.miniMap-point:hover {
  transform: scale(1.3);
  background: #ffa94d;
}

.miniMap-point.active {
  background: red;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.tooltip-outer {
  position: absolute;
  background: #ff8965;
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transform: translateY(10px);
  z-index: 999;
  opacity: 1;
}

/* مثل ابر کوچک با فلش */
.tooltip-outer::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 90%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #ff8965 transparent transparent transparent;
}

/* وقتی موس روی دکمه میره */
/* .btn-sound:hover + .tooltip-outer,
.chat-btn:hover + .tooltip-outer {
  opacity: 1;
  transform: translateY(0);
} */


.scene-Home{
    position: fixed;
    top: 10px;
    left: 120px;
    z-index: 9999;
  }


  .back-toggle{
    background: #ff7a18;
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
  }
