/* BẢN ĐÔ VIỆT NAM */
#vietnam-map {
  display: block;
  max-width: 100%;
  height: auto;
}
#vietnam-map-MB {
  display: block;
  max-width: 100%;
  height: auto;
}
/* .table-map #dots-layer{
	background-image: url('/wp-content/uploads/2025/07/Map-3.png');
	position: relative !important; width: 100%; height: 100%;
	background-repeat: no-repeat;
} */
.table-map #dots-layer-MB {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.map {
  width: 100%;
  height: 120vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.province-dot.province-dot-hover {
  background: #ffc107 !important;
  box-shadow: 0 0 16px 6px #ffe066, 0 0 6px #0006 !important;
}

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

.arrow-group {
  position: absolute;
  left: 49%;
  top: 19%;
  transform: translate(-55%, -28%);
  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: 80px;
  left: 100px;
}

@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: rgb(0 0 0 / 2%);
}
.popup-content,
.popup-columns {
  overflow: visible;
  position: relative;
}
.popup-content {
  position: relative;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #104751;
  color: #fff;
  border-radius: 16px;
  padding: 56px 64px;
  width: 1100px;
  min-height: 340px;
  box-shadow: 0 4px 32px #0008;
}
.popup-close {
  position: absolute;
  right: 32px;
  top: 80px;
  width: 70px;
  height: 56px;
  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;
}
.popup-close img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.close-x {
  position: absolute;
  font-size: 20px;
  color: white;
  pointer-events: none;
  right: 42px;
  top: 55px;
  z-index: 999;
  width: 50px;
}
@keyframes close-expand-smooth {
  0% {
    transform: scaleX(1) translateY(-50%);
  }
  50% {
    transform: scaleX(1.15) translateY(-50%);
  }
  100% {
    transform: scaleX(1) translateY(-50%);
  }
}
#popup-title {
  font-size: 38px;
  font-weight: 600;
  color: #e7bd11;
  padding-bottom: 48px;
  align-items: center;
  margin-left: -15px;
  gap: 10px;
}

#popup-title,
#info-besttime,
#info-activities {
  display: flex;
}

#info-besttime,
#info-activities {
  font-size: 18px;
  font-weight: bold;
  color: #e7bd11;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
}
#popup-besttime {
  color: #fffcf0;
  font-weight: 400;
  font-size: 16px;
  padding-left: 38px;
}
#popup-activities {
  color: #fffcf0;
  font-weight: 400;
  font-size: 16px;
  padding-left: 62px;
  padding-right: 40px;
}
#popup-description {
  font-size: 16px;
  color: #fffcf0;
  font-weight: 700;
  margin-bottom: 48px;
}
.popup-columns {
  position: relative;
  max-width: 70%;
}
.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 {
  min-width: 260px;
  text-align: center;
  display: flex;
  align-items: center;
  position: relative;
  display: inline;
  float: left;
  position: absolute;
  right: -50px;
  bottom: -30px;
  top: unset;
}
/* .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: 350px;
  height: 420px;
  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;
}

#popup-carousel .carousel-stack {
  width: auto;
  height: auto;
}

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

.carousel-stack .carousel-img.active {
  opacity: 1;
  z-index: 2;
  box-shadow: 0 0 0 4px #00b6ad;
  rotate: 0deg;
  position: relative;
}
/* .carousel-stack .carousel-img.active::before{
	position: absolute;
	content: '';
	background-image: url(/wp-content/uploads/2025/07/background-sec5.png);
	background-repeat: no-repeat;
    background-size: cover;
  	width: 398px;
  	height: 310px;
} */
.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: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeInOut 3s ease-in-out infinite;
  z-index: 3;
  border: 1px dashed #fff;
  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;
}

ul#menu-main-menu {
    justify-content: center;
}

/* ------------------------- */
@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 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }
  #popup-besttime,
  #popup-activities {
    font-size: 14px;
  }
  #popup-besttime {
    padding-left: unset;
  }
  #popup-description {
    font-weight: 400;
    margin-bottom: 40px;
    border-bottom: 1px dashed #e7bd11;
    padding-bottom: 40px;
  }
  .popup-info-besttime {
    border-bottom: 1px dashed #e7bd11;
    padding-bottom: 40px;
  }
  .popup-info-activities {
    margin-bottom: 40px;
  }

  .popup-info {
    flex: none;
    width: 100%;
    margin-top: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

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

  .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: 25px;
    width: 50px;
    height: 40px;
  }

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

  .click-overlay {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }
  .popup-title img {
    width: 35px !important;
    height: 35px !important;
  }
  .info-besttime img,
  .info-activities img {
    width: 25px !important;
    height: 25px !important;
  }
  .popup-info-besttime {
    flex: 1 1 auto;
  }
  .popup-info-activities {
    flex: 2 1 auto;
  }
  #popup-title {
    padding-top: 10px;
    text-align: center;
    justify-content: center;
  }
  #popup-activities {
    list-style-position: inside;
    padding-left: unset;
    padding-right: unset;
  }
  #info-besttime,
  #info-activities {
    justify-content: center;
  }

  #vietnam-map {
    margin: 0px 0px 0px 60px !important;
  }
  #popup-title {
    font-size: 28px;
    margin-left: -5px;
  }
  .map {
    padding-top: 350px;
  }
  #dots-layer {
    background-size: cover;
    margin-left: -10px;
  }
  .arrow-group {
    left: 63%;
    top: 30%;
    transform: translate(-68%, -50%);
  }
  .arrow-icon {
    width: 90px;
  }
  .close-x {
    right: 35px;
    top: 25px;
    color: #fff;
    width: 30px;
  }
  .popup-carousel {
    right: 42%;
  }
  .click-overlay {
    width: 65px;
    height: 65px;
    font-size: 14px;
    left: 60%;
  }
  .province-container .province-label {
    font-weight: 600 !important;
  }
  .table-map {
    top: -30px;
  }
  .province-dot {
    width: 4px !important;
    height: 4px !important;
  }

  .popup-carousel {
    position: relative;
    right: unset;
    margin-top: 48px;
    margin-bottom: 48px;
  }

  .carousel-bg-layer {
    display: none;
  }
}
@media screen and (max-width: 534px, min-width: 430px) {
  #dots-layer .province-container .province-label {
    font-size: 12px;
  }
  .map {
    height: 100vh;
  }
}
@media screen and (max-width: 420px) {
  /* 	.table-map{
		padding-top:50px;
	} */
  #dots-layer {
    background-size: cover;
  }
  .province-label {
    font-size: 12px;
  }
}

@media screen and (max-width: 391px) {
  #dots-layer {
    background-size: cover;
    left: 64px;
    top: 72px;
  }
  .arrow-group {
    right: -20px;
    transform: none;
    left: unset;
    top: 30%;
  }
  .arrow-icon {
    width: 75px;
  }
  .close-x {
    color: #fff;
  }
  .popup-carousel {
    right: 48%;
  }
  .popup-info-besttime {
    flex: 1 1 auto;
  }
  .popup-info-activities {
    flex: 2 1 auto;
  }
  .province-dot {
    width: 4px !important;
    height: 4px !important;
  }
  .province-container .province-label {
    font-weight: 500 !important;
    font-size: 12px !important;
  }
  #popup-title {
    padding-top: 10px;
    text-align: center;
    justify-content: center;
  }
  #popup-activities {
    list-style-position: inside;
    padding-left: unset;
  }
  #info-besttime,
  #info-activities {
    justify-content: center;
  }
}

@media screen and (max-width: 376px) {
}
@media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) {
  height: 100vh;
}
@media screen and (min-width: 1440px) and (max-width: 1800px) and (-webkit-min-device-pixel-ratio: 2) {
  .arrow-group {
    top: 22%;
    transform: translate(-55%, -22%);
  }
}

@media screen and (min-width: 1400px) and (max-width: 1499px) {
  .arrow-group {
    top: 22%;
    transform: translate(-25%, -22%);
  }
}
