html,
body {
  cursor: url('../icons/click-white.svg') 4 2, auto;
  pointer-events: auto;
  margin: 0;
  height: 100%;
  overflow: auto;
  user-select: none;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
  overscroll-behavior-y: contain;
  /* Hoặc none */
  touch-action: pan-x pan-y;
  font-family: 'custom-menu';

}




#overlayBg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* nằm sau notifyBox */
}

#notifyBox {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 32px;
  
  text-align: center;
  max-width: 70%;
  z-index: 1;
}

body.active {
  cursor: grabbing;
}

#pano,
#pano canvas,
#pano:active,
#pano canvas:active {
  cursor: url('../icons/click-white.svg') 4 2, auto !important;
}

#pano {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  visibility: hidden;
  cursor: url('../icons/click-white.svg') 4 2, auto;
  pointer-events: auto;
}

#home {
  position: relative;
  width: 100vw;
  aspect-ratio: 7500 / 4219;
  /* đúng tỷ lệ ảnh gốc */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: scroll;
  overflow-x: hidden;
  overflow-y: hidden;
  touch-action: auto;
}



.overlay {
  position: relative;
  z-index: 1;
}

#container {
  width: 100%;
  height: 100%;
  position: relative;
}

#panzoom {
  width: 100%;
  height: auto;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  position: relative;

}

#pano canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated; /* hoặc 'crisp-edges', tuỳ trình duyệt */
}
#panzoom::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

#home-img {
  overflow: hidden;
}

#map {
  position: static;
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: auto;
  image-rendering: pixelated; /* hoặc 'crisp-edges', tuỳ trình duyệt */
}


#panzoom.active {
  cursor: grabbing;
}

.label {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  pointer-events: none;
}

/* Nền overlay mờ */
.guide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  /* 40% mờ nền sau */
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrat-overlay {
 position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

/* Khung hướng dẫn */
.guide-box {
  background-color: rgba(10, 8, 114, 0.507);
  /* 80% trắng, như yêu cầu */
  padding: 1.5vw;
  border-radius: 2vw;
  /* bo góc đẹp */
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border: 2px solid #f5b74b96;
  /* ⭐️ Viền vàng/cam */
}

/* Tiêu đề */
.guide-box h2 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 20px;
}

/* Nhóm icon */
.guide-box .icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.guide-box .icons img {
  width: 3vw;
}

.guide-box .icons p {
  color: white;
}

/* Mô tả */
.guide-box p {
  font-size: 14px;
  color: white;
  margin-bottom: 20px;
}

/* Nút “ĐÃ HIỂU” */
.guide-box button {
  padding: 5px 12px;
  background-color: #003c7700;
  /* xanh đậm */
  border: 2px solid #f5b84b;
  /* viền cam nhạt */
  color: white;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  transition: 0.3s;
}

.guide-box button:hover {
  background-color: #0058aa44;
}


#map-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#map-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logo + dòng chữ trên */
.branding {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 25;
}

@font-face {
  font-family: 'custom';
  src: url('../font/Montserrat-SemiBold.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'custom-menu';
  src: url('../font/Montserrat-SemiBold.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


.branding .slogan {
  font-family: 'custom';
  font-size: 2.4vw;
  color: white;
  z-index: 11;
  /* 👉 nằm trên logo */
  position: relative;
}

.branding .subtitle {
  font-size: 28px;
  margin: 0;
  margin-bottom: 5px;
  font-weight: 400;
}

.branding img {
  height: 4vw;
  z-index: 10;
  position: relative;
}

/* Label trên ảnh */
.map-label {
  position: absolute;
  padding: 0.25vw 0.7vw;
  font-size: 0.7vw;
  font-weight: bold;
  font-family: 'custom-menu';
  color: #1479d2;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: auto;
  z-index: 1;
  width: 12vw;
  height: 1.7vw;
  background-color: transparent;
  display: flex;
  /* 👈 Dùng flex để căn giữa */
  align-items: center;
  /* căn giữa theo chiều dọc */
  justify-content: center;
  /* căn giữa theo chiều ngang */
  text-align: center;
}

.map-label img {
  width: 2vw;
  height: 2vw;
}

/* Nền mờ bên trong */
.map-label::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(187, 187, 187, 0.842);
  /* trắng mờ 80% */
  z-index: -2;
}

/* Hover: nền đậm hơn */
.map-label:hover::after {
  background: rgba(255, 255, 255, 0.863);
}

.map-label::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(to right, white, #1479d2);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.map-label-1 {
  position: absolute;
  padding: 2px 28px;
  background-color: rgba(21, 110, 183, 0.411);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  z-index: 5;
  font-weight: bold;
  border: 1px solid white;
  pointer-events: none;
  width: 10.1vw;
  height: 1.5vw;
  display: flex;
  /* 👈 Dùng flex để căn giữa */
  align-items: center;
  /* căn giữa theo chiều dọc */
  justify-content: center;
  /* căn giữa theo chiều ngang */
  text-align: center;
}

.top-shadow {
  position: fixed;
  top: 0;
  left: 0;
  height: 12vw;
  width: 100%;
  background: linear-gradient(to bottom, rgba(14, 12, 163, 0.918), rgba(255, 255, 255, 0));
  z-index: 23;
  pointer-events: none;
}

.icon-top-right {
  position: absolute;
  top: 20px;
  right: 2%;
  display: flex;
  gap: 15px;
  z-index: 25;
  /* cao hơn shadow */
}

.icon-top-left {
  position: absolute;
  top: 60px;
  left: 2%;
  display: flex;
  gap: 15px;
  z-index: 25;
  /* cao hơn shadow */
}

.icon-top-right img {
  width: 2.4vw;
  height: 2.4vw;
}

.map-icon {
  position: absolute;
  width: 2vw;
  /* 👈 chỉnh tùy theo icon bạn muốn to/nhỏ */
  height: 2vw;
  object-fit: contain;
  pointer-events: auto;
  /* 👈 nếu không muốn hover/click */
  z-index: 10;
}

.map-icon-360 {

  width: 2vw;
  height: 2vw;
  pointer-events: auto;
  position: absolute;
}

.map-icon-360:hover {
  animation: pulse-blink 0.8s infinite ease-in-out;
}

.blink-hotspot {
  animation: pulse-blink 0.8s infinite ease-in-out;
  /* Đừng đụng vào position ở đây! */
}



@keyframes map-icon-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.blink-on-hover:hover {
  animation: map-icon-blink 1s infinite;
  transform-origin: center center;
}

.scale-on-hover:hover {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}

.map-label-gradient {
  position: absolute;
  padding: 4px 32px;
  font-family: 'custom';
  font-weight: bold;
  color: white;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: auto;
  z-index: 25;
  background: none;
  font-size: 1.6vh;
  pointer-events: none;
}

/* Viền gradient bằng ::before */
.map-label-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(to right, rgb(255, 255, 255), #1479d2);
  z-index: -1;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Dải nền gradient mờ trắng → xanh bên trong */
.map-label-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(43, 231, 99, 0.438), rgba(20, 121, 210, 0.7));
  z-index: -2;
}

.map-label-gradient-2 {
  position: absolute;
  padding: 4px 32px;
  font-family: 'custom';
  font-weight: bold;
  height: 2vw;
  color: white;
  border-radius: 999px;
  white-space: nowrap;
  text-align: center;
  z-index: 25;
  background: none;
  pointer-events: none;
  padding-left: 2.4vw;
  align-items: center;
  font-size: 1.5vh;           /* Căn giữa theo chiều dọc */
  justify-content: center;       /* Căn giữa theo chiều ngang */
}

/* Viền gradient bằng ::before */
.map-label-gradient-2::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1px;
  text-align: center;
  background: linear-gradient(to right, rgb(255, 255, 255), #1479d2);
  z-index: -1;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Dải nền gradient mờ trắng → xanh bên trong */
.map-label-gradient-2::after {
  content: "";
  position: absolute;
  text-align: center;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(43, 231, 99, 0.438), rgba(20, 121, 210, 0.7));
  z-index: -2;
}


.map-label-gradient-360 {
  position: absolute;
  padding: 4px 32px;
  font-size: 0.5vw;
  font-weight: bold;
  color: white;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: auto;
  z-index: 30;
  background: none;
}

/* Viền gradient bằng ::before */
.map-label-gradient-360::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(to right, white, #1479d2);
  z-index: -1;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Dải nền gradient mờ trắng → xanh bên trong */
.map-label-gradient-360::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(248, 248, 248, 0.445), rgba(20, 121, 210, 0.7));
  z-index: -2;
}




.label-group {
  position: absolute;
  display: inline-block;
  width: 12vw;
  height: 4vh;
  display: flex;
  flex-direction: column;
  /* 👈 xếp dọc */
  align-items: center;
  /* 👈 căn giữa ngang */
  gap: 0.3vw;
  /* 👈 khoảng cách giữa các phần tử */

}

.label-item {
  background: linear-gradient(to right, #1a90d9, #298dcb00);
  color: white;
  border-radius: 1vw;
  height: 0.4vw;
  font-weight: bold;
  text-align: center;
  width: max-content;
}

.panel-images {
  justify-content: center;
  position: absolute;
  background: rgba(27, 95, 141, 0.479);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding-top: 0.4vw;
  padding-bottom: 0.4vw;
  padding-top: 0.4vw;
  z-index: 20;
  width: 13vw;
  bottom: 100%;
  margin-bottom: 0.5vw;
  display: flex;
  flex-direction: column;
  /* 👈 xếp dọc */
  align-items: center;
  /* 👈 căn giữa ngang */
  gap: 0.4vw;
  height: auto;
}

.panel-images img {
  width: 10vw;
  /* 👈 tăng kích thước ảnh */
  height: 1.7vw;
  border-radius: 0.4vw;
  object-fit: cover;
}

.map-label-gradient-sub {
  position: relative;
  display: flex;
  align-items: center;
  /* ✅ căn giữa dọc */
  justify-content: center;
  /* ✅ căn giữa ngang */
  color: white;
  font-weight: bold;
  font-size: 0.65vw;
  padding: 0.4vw 0.8vw;
  /* 👈 padding ở đây thôi */
  border-radius: 999px;
  white-space: nowrap;
  z-index: 1;
  transition: all 0.3s ease;
  line-height: 1;
  /* 👈 đảm bảo không bị đẩy */
  height: 1.7vw;
  width: 11vw;
}

.map-label-gradient-sub::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 2px;
  /* 👈 tạo viền */
  background: linear-gradient(to right, white, #1479d2);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.map-label-gradient-sub::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(20, 121, 210, 0.2));
  z-index: -2;
  transition: background 0.3s ease;
}

/* ✅ Hover hiệu ứng */
.map-label-gradient-sub:hover::after {
  background: linear-gradient(to right, rgba(250, 250, 250, 0.89), rgb(248, 248, 248));
}

.map-label-gradient-sub:hover {
  color: rgb(24, 155, 241);
  ;
}


.loading-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  z-index: 9999;
}

.spinner {
  width: 4vw;
  height: 4vw;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


#div1 {
  display: none;
}

.wrapper {
  position: relative;
  /* ✅ bắt buộc để .absolute nằm đúng */
  display: inline-block;
}


.wrapper:hover #div1 {
  display: block;
}

@keyframes pulse-blink {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes pulse-blink-lable {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.map-icon:hover {
  animation: pulse-blink 0.8s infinite ease-in-out;
  z-index: 100;
}





.map-label-gradient-hl {
  position: absolute;
  padding: 4px 32px;
  font-size: 0.5vw;
  font-weight: bold;
  color: rgb(42, 6, 248);
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: auto;
  z-index: 10;
  background: none;
}


/* Viền gradient bằng ::before */
.map-label-gradient-hl::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(to right, white, #1479d2);
  z-index: -1;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Dải nền gradient mờ trắng → xanh bên trong */
.map-label-gradient-hl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.918), rgba(255, 255, 255, 0.7));
  z-index: -2;
}


.map-icon-sub {
  position: absolute;
  width: 8vw;
  height: auto;
  pointer-events: auto;
  z-index: 10;
  transform-origin: center bottom;
}

.map-rtg {
  position: absolute;
  filter: drop-shadow(0 0 4px rgba(20, 121, 210, 0.8));
  animation: blink-shadow 0.8s infinite;
}

@keyframes blink-shadow {

  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(0, 136, 255, 0.8));
  }

  40% {
    filter: drop-shadow(0 0 8px rgba(20, 121, 210, 0.2));
  }
}

.map-icon-sub:hover {
  animation: pulse-blink-lable 0.8s infinite ease-in-out;
}

.highlight-box {
  position: absolute;
  border: 2px solid rgba(20, 121, 210, 0.8);
  background: rgba(20, 121, 210, 0.514);
  /* nền mờ nhẹ */
  border-radius: 6px;
  display: none;
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 5;
  animation: blink-highlight 1s infinite;
}


@keyframes blink-highlight {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.blink-active {
  animation: blink-highlight 1s infinite;
}

.custom-hotspot {
  position: absolute;
  transform: translate(-50%, -100%);
  /* -50% ngang, -100% dọc => gắn chân ảnh vào đúng vị trí */
  left: 0;
  top: 0;
}