/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*
 *              현재 위치로 검색 버튼
 *━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/
/* 버튼 호버 및 액티브 시 어두워지도록 설정 */
.img-btn:hover img,
.img-btn:active img {
  outline: none !important;
  border: none !important;
  filter: brightness(0.8);
  transition: filter 0.3s ease-in-out;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*
 *                  검색창 필드
 *━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/
/* 검색창 입력 필드 테두리 제거 */
.search-input {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent;
}

/* 검색창 스타일 조정 */
.search-box {
  border: 3px solid #ddb900 !important;
  background: #fefefe;
}

/* 전체 컨테이너 조정: 세로 정렬 + 가운데 배치 */
.container {
  display: flex;
  flex-direction: column;
  align-items: center; /* 가로 기준 중앙 정렬 */
  justify-content: center; /* 세로 중앙 배치 */
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*
 *                      배너
 *━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

/* 배너 컨테이너 */
.banner-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*
 *              월드컵 지역 선택 박스
 *━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

/* 월드컵 지역 선택 박스 */
.worldcup-box {
  position: relative; /* absolute 제거 */
  width: 85%;
  max-width: 950px;
  max-height: 400px; /* 너무 커지면 자동 스크롤 */
  overflow: auto; /* 필요 시 스크롤 생성 */
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 560px; /* 배너 위에 걸치도록 조정 */
}

/* 지역 선택 버튼 스타일 */
.worldcup-btn {
  background: none;
  border: none;
  padding: 0;
}

.worldcup-btn img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  transition: filter 0.3s ease-in-out;
}

/* 버튼 호버 및 클릭 효과 */
.worldcup-btn:hover img,
.worldcup-btn:active img {
  filter: brightness(0.8);
}

/* 버튼 아래 텍스트 */
.worldcup-text {
  margin-top: 5px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* 반응형 (768px 이하에서는 6개씩 3줄로 변경) */
@media (max-width: 768px) {
  .worldcup-box {
    width: 90%;
  }
  .worldcup-btn img {
    width: 60px;
    height: 60px;
  }
}

/* 이미지 컨테이너 */
.overlap-images {
  position: relative;
  width: 680px;
  height: 210px;
}

/* 개별 이미지 스타일 */
.overlap-img {
  position: absolute;
  top: 0;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
  cursor: pointer;
}

/* 기존 배치 유지 */
.overlap-img.first {
  left: 400px;
}

.overlap-img.second {
  left: 250px;
}

.overlap-img.third {
  left: 0;
}

/* 기본적으로 모든 이미지에 Dark Overlay 추가 */
.overlap-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 어두운 효과 */
  border-radius: 8px;
  transition: opacity 0.3s ease-in-out;
  opacity: 1; /* 기본적으로 어둡게 */
  z-index: 5; /* Dark Overlay가 이미지 위에 있도록 설정 */
}

/* 호버한 이미지의 오버레이만 제거 */
.overlap-img:hover::after {
  opacity: 0;
}

/* 호버한 이미지는 살짝 확대 */
.overlap-img:hover {
  transform: scale(1.05);
  z-index: 10;
}

/* 클릭한 이미지는 더 확대 + overlay 제거 */
.overlap-img.active {
  transform: scale(1.1);
  z-index: 15;
}

/* 클릭된 이미지의 Dark Overlay 제거 */
.overlap-img.active::after {
  opacity: 0;
}
