/* BẢN ĐÔ VIỆT NAM */
#vietnam-map {
  display: block; max-width: 100%; height: auto;
}

#dots-layer {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
}
.table-map {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 200px;
}
.province-dot.province-dot-hover {
  background: #ffc107;
  box-shadow: 0 0 16px 6px #ffe066, 0 0 6px #0006;
}

.province-label.province-label-hover {
  color: #ffc107;
  font-weight: bold;
  background: none;
  cursor: pointer;
}

.arrow-group {
  position: absolute;
  left: 40%; 
  top: 20%;
  display: flex;
  align-items: center;
  gap: 30px; 
  z-index: 10;
  pointer-events: none;
}

.arrow-icon {
  width: 100px;
}

.arrow-rotate {
  animation: arrow-swing  1.6s infinite ease-in-out;
  transform-origin: 30% 50%;
  position: relative;
  top: 50px;
  left: 50px;
}

@keyframes arrow-swing {
  0%   { transform: rotate(-18deg);}
  50%  { transform: rotate(10deg);}
  100% { transform: rotate(-18deg);}
}

/* POPUP KHI CLICK VÀO TỈNH */
.province-popup {
display: none;
position: fixed;
z-index: 2000;
left: 0; top: 0;
width: 100vw; height: 100vh;
background: rgba(0,0,0,0.2);
}
.popup-content, .popup-columns {
overflow: visible;
position: relative;
}
.popup-content {
position: absolute;
left: 50%; top: 50%;
transform: translate(-50%, -50%);
background: #175c63;
color: #fff;
border-radius: 16px;
padding: 32px;
min-width: 800px;
min-height: 340px;
box-shadow: 0 4px 32px #0008;
}
.popup-close {
  position: absolute;
  right: 40px;
  top: 70px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border-radius: 5%;
   background-image: url('/wp-content/uploads/2025/07/close.png');
  animation: close-expand-smooth 1.8s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}
@keyframes close-expand-smooth {
  0%   { transform: scaleX(1) translateY(-50%); }
  50%  { transform: scaleX(1.15) translateY(-50%); }
  100% { transform: scaleX(1) translateY(-50%); }
}
.popup-columns {
display: flex;
align-items: flex-start;
position: relative;
}
.popup-info {
flex: 1 1 400px;
min-width: 320px;
}
.popup-info-inner {
display: flex;
gap: 32px;
}
.popup-info-besttime {
flex: 1 1 200px;
min-width: 200px;
}
.popup-info-activities {
flex: 2 1 340px;
min-width: 300px;
}
.popup-carousel {
flex: 0 0 300px;
min-width: 260px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
margin-top: 80px;
position: relative;
top: 65px;
}
/* .popup-carousel img {
width: 300px;
height: 300px;
border-radius: 12px;
transition: transform 0.3s;
background: #fff;
object-fit: cover;
cursor: pointer;
margin-bottom: 8px;
position: relative;
left: 101px;
background-image: url(Vector.png);
background-size: cover;
background-position: center;

} */
@media (max-width: 900px) {
.popup-content { min-width: 320px; }
.popup-columns { flex-direction: column; }
.popup-carousel { margin-top: 300px; }
}

.carousel-stack .carousel-img {
opacity: 1;
transition: opacity 0.5s;
}
.carousel-stack .carousel-img.fade-out {
opacity: 0;
}


/*  CAROUSEL KHI CLICK VÀO TỈNH */

.carousel-container {
  position: relative;
  min-width: 420px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-stack {
  position: relative;
  z-index: 2;
}
.carousel-stack .carousel-img {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  background: #fff;
  transition: transform 0.3s;
  margin-bottom: 8px;
  cursor: pointer;
}
.carousel-bg-layer {
  position: absolute;
  left: 15%;
  top: 8px;
  width: 300px;
  height: 310px;
  border-radius: 50px;
  background-image: url(/wp-content/uploads/2025/07/background-sec5.png);
  background-size: cover;
  background-position: center;
  z-index: 1;
  cursor: pointer;
}

.carousel-stack {
  position: relative;
  width: 260px;
  height: 310px;
}

.carousel-stack .carousel-img {
  position: absolute;
  top: 0; left: 0;
  opacity: 1;
  transition: opacity 0.8s ease;
  z-index: 1;
  width: 300px;
  height: 300px;
  rotate: 8deg;
}

.carousel-stack .carousel-img.active {
  opacity: 1;
  z-index: 2;
  box-shadow: 0 0 0 4px #00b6ad;
  rotate: 0deg;
}
.carousel-img,
.carousel-bg-layer {
  animation: gentle-swing 4s infinite ease-in-out;
  transform-origin: center;
}
@keyframes gentle-swing {
  0%   { transform: rotate(-2deg); }
  50%  { transform: rotate(2deg); }
  100% { transform: rotate(-2deg); }
}

@media (max-width: 900px) {
  .section-expertise {
    flex-direction: column-reverse;
    gap: 32px;
    padding: 0 10px;
  }
  .carousel-container, .carousel-img, .carousel-bg-layer {
    min-width: 260px;
    width: 100%;
    height: 220px;
    max-width: 100vw;
  }
}
.click-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15px;
  font-weight: 100;
  color: white;
  background: rgba(176, 174, 174, 0.4);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeInOut 3s ease-in-out infinite;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
}
.popup-info-activities li{
    list-style-type: disc;
}

@keyframes fadeInOut {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  50%  { opacity: 0.4; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

.carousel-img {
  cursor: pointer;
}

/* ------------------------- */
@media (max-width: 767px) {
  .popup-content {
    min-width: auto;
    width: 92vw;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px 20px;
    border-radius: 12px;
  }

  .popup-columns {
    flex-direction: column;
    align-items: center;
  }

  .popup-info {
    flex: none;
    width: 100%;
    margin-top: 20px;
  }

  .popup-info-inner {
    flex-direction: column;
    gap: 16px;
  }

  .popup-info-besttime,
  .popup-info-activities {
    min-width: unset;
    width: 100%;
  }

  .popup-carousel {
    flex: none;
    width: 100%;
    margin-top: 16px;
    top: 0;
  }

  .popup-close {
    top: 40px;
    right: 30px;
    width: 36px;
    height: 36px;
  }

  #popup-title {
    font-size: 18px;
  }

  #popup-description,
  .popup-info-besttime div,
  .popup-info-activities div {
    font-size: 14px;
  }

  .click-overlay {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  #vietnam-map {
        margin: 0px -150px 0px 0px !important;
  }

  #dots-layer {
    /* top: 62px !important; */
    top: -70px !important;
  }
}
@media screen and (max-width: 420px) {
  #dots-layer {
    /* top: 62px !important; */
    top: 318px !important;
  }
}
@media screen and (max-width: 534px) {
  #dots-layer {
            top: 172px !important;
        left: 15% !important;
  }
}
@media screen and (max-width: 391px) {
  #dots-layer {
        top: 135px !important;
        left: 16% !important;
  }
}

@media screen and (max-width: 376px) {
  #dots-layer {
        top: 127px !important;
        left: 16% !important;
  }
}

