/* 모바일 화면에서의 메가메뉴 스타일 개선 */
@media (max-width: 991.98px) {
  .mega-menu.show {
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background-color: rgba(0, 0, 0, 0.02);
  }
  
  .mega-menu .menu-title {
    font-size: 1rem;
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
  }
  
  .mega-menu .list-unstyled li {
    padding: 0.2rem 0;
  }
  
  .mega-menu .list-unstyled li a {
    font-size: 0.9rem;
    padding: 0.2rem 0;
    display: block;
  }
  
  .mega-menu .row {
    margin-left: -5px;
    margin-right: -5px;
  }
  
  .mega-menu .row > [class^="col-"] {
    padding-left: 5px;
    padding-right: 5px;
  }
  
  .mega-menu img.img-fluid {
    display: none; /* 모바일에서는 배너 이미지 숨김 */
  }
}/* 메가메뉴 */
.mega-menu {
  position: absolute;
  width: 100%;
  left: 0;
  display: none;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* PC에서는 호버로 메가메뉴 표시 */
@media (min-width: 992px) {
  .nav-item.position-static:hover .mega-menu {
    display: block !important;
  }
}

/* 모바일에서는 클릭으로 메가메뉴 표시 */
@media (max-width: 991.98px) {
  .mega-menu.show {
    display: block;
  }
}

.mega-menu-content {
  padding: 20px;
}

.menu-title {
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 2px solid #f60;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.mega-menu .list-unstyled li {
  padding: 3px 0;
}

.mega-menu .list-unstyled li a {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
}

.mega-menu .list-unstyled li a:hover {
  color: #f60;
}/*
 * 파일명: fullscreen-menu.css
 * 위치: /var/www/html/travel/assets/css/fullscreen-menu.css
 * 기능: 모바일 전체화면 메뉴 스타일
 * 작성일: 2025-05-21
 */

/* ===================================
 * 전체화면 모바일 메뉴 스타일
 * ===================================
 */

/* 메뉴 토글 버튼 */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: none;
  z-index: 2000;
  position: relative;
}

/* 모바일에서만 표시, PC에서는 항상 숨김 */
@media (max-width: 991.98px) {
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .fullscreen-menu {
    display: none !important;
  }
}

/* 햄버거 아이콘 */
.hamburger-icon {
  width: 24px;
  height: 20px;
  position: relative;
  margin: 0;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  cursor: pointer;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2),
.hamburger-icon span:nth-child(3) {
  top: 8px;
}

.hamburger-icon span:nth-child(4) {
  top: 16px;
}

/* 닫기 아이콘 변환 애니메이션 */
.hamburger-icon.open span:nth-child(1) {
  top: 8px;
  width: 0%;
  left: 50%;
}

.hamburger-icon.open span:nth-child(2) {
  transform: rotate(45deg);
}

.hamburger-icon.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.hamburger-icon.open span:nth-child(4) {
  top: 8px;
  width: 0%;
  left: 50%;
}

/* 전체화면 메뉴 컨테이너 */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999; /* 상단에 표시되도록 z-index 높임 */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition: transform 0.3s ease, opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.fullscreen-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* 메뉴 헤더 */
.fullscreen-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--orange-primary, #f60);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.fullscreen-menu-header .site-logo {
  font-size: 1.5rem;
  font-weight: 700;
}

/* 닫기 버튼 */
.fullscreen-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.fullscreen-menu-close:hover {
  transform: rotate(90deg);
}

/* 메뉴 콘텐츠 */
.fullscreen-menu-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

/* 메뉴 카테고리 */
.fullscreen-menu-category {
  margin-bottom: 1.5rem;
}

.fullscreen-menu-category h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-text, #333);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

/* 메뉴 항목 */
.fullscreen-menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fullscreen-menu-item {
  margin-bottom: 0.5rem;
}

.fullscreen-menu-item a {
  display: flex;
  align-items: center;
  color: var(--dark-text, #333);
  text-decoration: none;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.fullscreen-menu-item a:hover,
.fullscreen-menu-item a:focus {
  background-color: #f8f9fa;
  color: var(--orange-primary, #f60);
}

.fullscreen-menu-item a.active {
  background-color: var(--orange-light, #fff2e6);
  color: var(--orange-primary, #f60);
  font-weight: 500;
}

.fullscreen-menu-item i {
  margin-right: 0.75rem;
  font-size: 1.1rem;
  width: 1.2rem;
  text-align: center;
}

/* 하위 메뉴 */
.fullscreen-submenu {
  list-style: none;
  padding: 0 0 0 2.5rem;
  margin: 0;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  opacity: 0;
}

.fullscreen-menu-item.open .fullscreen-submenu {
  height: auto; /* JS에서 실제 높이로 설정됨 */
  opacity: 1;
  transition: height 0.3s ease, opacity 0.3s ease;
}

.fullscreen-submenu-item {
  margin-bottom: 0.35rem;
}

.fullscreen-submenu-item a {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}

/* 드롭다운 아이콘 */
.dropdown-icon {
  margin-left: auto;
  transition: transform 0.3s;
}

.fullscreen-menu-item.open .dropdown-icon {
  transform: rotate(180deg);
}

/* 사용자 영역 */
.fullscreen-menu-user {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-info {
  margin-left: 1rem;
}

.user-name {
  font-weight: 600;
  color: var(--dark-text, #333);
  margin-bottom: 0.25rem;
}

.user-points {
  color: var(--orange-primary, #f60);
  font-weight: 500;
  font-size: 0.9rem;
}

.user-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.user-action-btn {
  flex: 1;
  padding: 0.5rem 0;
  border-radius: 30px;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.user-action-btn.primary {
  background-color: var(--orange-primary, #f60);
  color: white;
}

.user-action-btn.primary:hover {
  background-color: var(--orange-secondary, #ff8533);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.user-action-btn.secondary {
  background-color: white;
  color: var(--dark-text, #333);
  border: 1px solid #e0e0e0;
}

.user-action-btn.secondary:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* 로그인 안 한 경우 */
.login-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* 검색 폼 */
.fullscreen-menu-search {
  margin-bottom: 1.5rem;
}

.fullscreen-menu-search .input-group {
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-radius: 50px;
  overflow: hidden;
}

.fullscreen-menu-search .form-control {
  border-radius: 50px 0 0 50px;
  padding: 0.75rem 1.25rem;
  border: 1px solid #e0e0e0;
  background-color: #f8f9fa;
}

.fullscreen-menu-search .btn {
  border-radius: 0 50px 50px 0;
  padding: 0.75rem 1.5rem;
  background-color: var(--orange-primary, #f60);
  color: white;
  border: none;
}

.fullscreen-menu-search .input-group-text {
  background-color: #f8f9fa;
  border-color: #e0e0e0;
}

/* 푸터 */
.fullscreen-menu-footer {
  padding: 1rem;
  text-align: center;
  background-color: #f8f9fa;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--light-text, #777);
  border-top: 1px solid #e0e0e0;
}

.fullscreen-menu-footer a {
  color: var(--orange-primary, #f60);
  text-decoration: none;
}

/* 인기 목적지 섹션 */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.destination-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 100px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.destination-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.destination-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.destination-item:hover img {
  transform: scale(1.05);
}

.destination-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}

.destination-title {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 스크롤바 스타일 */
.fullscreen-menu-content::-webkit-scrollbar {
  width: 6px;
}

.fullscreen-menu-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.fullscreen-menu-content::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 6px;
}

.fullscreen-menu-content::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

/* body에 메뉴 열렸을 때 스크롤 방지 */
body.menu-open {
  overflow: hidden;
}

/* 모바일에서 페이지 레이아웃 조정 */
@media (max-width: 991.98px) {
  /* 헤더 검색창 숨기기 (모바일 메뉴로 이동) */
  .search-form:not(.d-none) {
    display: none !important;
  }
  
  /* 헤더 간격 조정 */
  .header-right {
    margin-left: auto;
  }
  
  /* 모바일 메뉴 토글 버튼 간격 */
  .mobile-menu-toggle {
    margin-left: 0.5rem;
  }
}

/* 모바일 화면 최적화 */
@media (max-width: 575.98px) {
  .destination-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .destination-item {
    height: 80px;
  }
  
  .fullscreen-menu-content {
    padding: 0.75rem;
  }
  
  .fullscreen-menu-category h3 {
    font-size: 1.1rem;
  }
  
  .fullscreen-menu-item a {
    padding: 0.6rem;
  }
  
  .fullscreen-menu-header .site-logo {
    font-size: 1.3rem;
  }
}

/* 멀티 브라우저 호환성 */
@supports (-webkit-overflow-scrolling: touch) {
  /* iOS 디바이스 전용 스타일 */
  .fullscreen-menu-content {
    -webkit-overflow-scrolling: touch;
  }
}

/* 기존 스타일 호환성을 위한 추가 */
@media (max-width: 991.98px) {
  /* 기존 navbar 토글러와의 호환성 */
  .navbar-toggler {
    display: none !important;
  }
  
  /* 모바일에서 navbar 메뉴 숨김 - 메가메뉴 표시 허용 */
  .navbar-collapse {
    display: none !important;
  }
  
  /* 모바일에서 메가메뉴 호버 효과 비활성화 */
  .nav-item.position-static:hover .mega-menu {
    display: none;
  }
  
  /* 모바일에서 메가메뉴 표시는 JavaScript로 제어 */
  .nav-item.position-static .mega-menu.show {
    display: block;
    position: static;
    box-shadow: none;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }
  
  /* main 컨테이너 조정 */
  body.menu-open main.container {
    display: none;
  }
}

/* 검색창 border-radius 제거 */
.fullscreen-menu-search .form-control {
  border-radius: 0;
  padding: 0.75rem 1.25rem;
  border: 1px solid #e0e0e0;
  background-color: #f8f9fa;
}

.fullscreen-menu-search .btn {
  border-radius: 0;
  padding: 0.75rem 1.5rem;
  background-color: var(--orange-primary, #f60);
  color: white;
  border: none;
}

.fullscreen-menu-search .input-group {
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-radius: 0;
  overflow: hidden;
}

/* 사용자 정보 영역 수정 */
.fullscreen-menu-user {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.user-name {
  font-weight: 600;
  color: var(--dark-text, #333);
  font-size: 1.1rem;
}

.user-points {
  color: var(--orange-primary, #f60);
  font-weight: 500;
  font-size: 1rem;
}

/* 여행 카테고리 상단 여백 */
.fullscreen-menu-category.mt-4 {
  margin-top: 1.5rem !important;
}