/* ==========================================================================
   VVLY 공통 네비게이션 (클린 화이트 시안)
   대상: .topbar / nav.main-nav / .mobile-drawer / .hamburger
   폰트: 한글 = Pretendard Variable, 영문/숫자/언어/라벨 = Montserrat
   ========================================================================== */

/* ─────────── 상단 정보바 ─────────── */
.topbar {
  background: #f5f2ec;
  border-bottom: 0.5px solid #e6e1d8;
  color: #7a756c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 5%;
  font-family: 'Montserrat', 'Pretendard Variable', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.topbar-info {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-info strong { font-weight: 600; color: #7a756c; }
.topbar-info .divider { margin: 0 10px; opacity: 0.6; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

/* 언어 스위처 (정보바 우측) */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Montserrat', 'Pretendard Variable', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.nav-lang a { color: #8a857c; text-decoration: none; transition: color 0.2s ease; }
.nav-lang a:hover { color: #FF6900; }
.nav-lang a.active { color: #FF6900; font-weight: 700; }
.nav-lang span { color: #d3cdc1; }
.nav-lang a.lang-inactive { opacity: 0.45; cursor: not-allowed; }
.nav-lang a.lang-inactive:hover { color: #8a857c; opacity: 0.55; }

/* 로그인 / 회원가입 (정보바 우측) */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', 'Pretendard Variable', sans-serif;
  font-size: 11px;
  font-weight: 500;
}
.nav-auth a { color: #7a756c; text-decoration: none; transition: color 0.2s ease; }
.nav-auth a:hover { color: #FF6900; }
.nav-auth span { color: #d3cdc1; }

/* ─────────── 메인 네비게이션 바 ─────────── */
nav.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fdfcfa;
  border-bottom: 0.5px solid #ece7de;
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* 로고 */
.logo { display: flex; align-items: center; text-decoration: none; transition: opacity 0.2s ease; }
.logo:hover { opacity: 0.85; }
.logo img { height: 42px; width: auto; display: block; }

/* 메뉴 */
.nav-links { display: flex; align-items: center; gap: 52px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2c2c2a;
  text-decoration: none;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
  transition: color 0.25s ease;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1.5px;
  background: #FF6900;
  transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav-links > li > a:hover { color: #FF6900; }
.nav-links > li > a:hover::after { width: 100%; }
.dropdown-icon { font-size: 9px; color: #bcb3a6; transition: transform 0.25s ease; }
.has-dropdown:hover .dropdown-icon { transform: rotate(180deg); color: #FF6900; }

/* 드롭다운 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  margin-top: 16px;
  background: #ffffff;
  border: 0.5px solid #ece7de;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  min-width: 212px;
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 110;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li { margin: 0; }
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 20px;
  color: #2c2c2a;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}
.dropdown a:hover {
  color: #FF6900;
  border-left-color: #FF6900;
  background: rgba(255, 105, 0, 0.04);
  padding-left: 24px;
}
.dropdown a em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted, #b0a99c);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.dropdown a:hover em { color: #e6a878; }

/* 예약 상담 버튼 */
.nav-cta {
  background: #FF6900;
  color: #ffffff;
  border: none;
  padding: 14px 29px;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease;
}
.nav-cta:hover { background: #e65f00; }

/* 햄버거 */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  padding: 0;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #2c2c2a;
  margin: 5px auto;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────── 모바일 드로어 ─────────── */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: #ffffff;
  z-index: 150;
  overflow-y: auto;
  padding: 90px 28px 40px;
  border-left: 0.5px solid #ece7de;
  transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.mobile-drawer.open { right: 0; }
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.mobile-drawer-overlay.show { opacity: 1; visibility: visible; }

.mobile-drawer-section { padding: 16px 0; border-bottom: 0.5px solid #ece7de; }
.mobile-drawer-section:last-child { border-bottom: none; }

.mobile-drawer ul.menu { list-style: none; padding: 0; }
.mobile-drawer ul.menu > li > a,
.mobile-drawer ul.menu > li > button.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 2px;
  color: #2c2c2a;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid #f2eee6;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 105, 0, 0.15);
}
.mobile-drawer ul.menu > li > a .arrow,
.mobile-drawer ul.menu > li > button.menu-toggle .arrow {
  color: #FF6900;
  font-size: 13px;
  transition: transform 0.3s ease;
}
.mobile-drawer ul.menu > li.expanded > a .arrow,
.mobile-drawer ul.menu > li.expanded > button.menu-toggle .arrow { transform: rotate(180deg); }
.mobile-drawer ul.submenu {
  list-style: none;
  padding: 4px 0 10px 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-drawer ul.menu > li.expanded ul.submenu { max-height: 500px; }
.mobile-drawer ul.submenu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 10px;
  color: #5c584f;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: rgba(255, 105, 0, 0.15);
}
.mobile-drawer ul.submenu li a:hover,
.mobile-drawer ul.submenu li a:active {
  color: #FF6900;
  border-left-color: #FF6900;
  background: rgba(255, 105, 0, 0.05);
}
.mobile-drawer ul.submenu li a em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: #bcb3a6;
}

/* 드로어 - 로그인/회원가입 */
.mobile-drawer-auth { display: flex; gap: 10px; margin-bottom: 2px; }
.mobile-drawer-auth a {
  flex: 1;
  text-align: center;
  padding: 13px;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.25s ease;
}
.mobile-drawer-auth .login { background: transparent; color: #2c2c2a; border: 1px solid #e6e1d8; }
.mobile-drawer-auth .login:active { border-color: #FF6900; }
.mobile-drawer-auth .signup { background: #FF6900; color: #ffffff; }

/* 드로어 - 예약 상담 CTA */
.mobile-drawer-cta {
  display: block;
  background: #FF6900;
  color: #ffffff;
  text-align: center;
  padding: 15px;
  margin-bottom: 16px;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.25s ease;
}
.mobile-drawer-cta:hover { background: #e65f00; }

/* 드로어 - 언어 */
.mobile-drawer-lang-title {
  font-family: 'Montserrat', sans-serif;
  color: #bcb3a6;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.mobile-drawer-lang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mobile-drawer-lang a {
  text-align: center;
  padding: 13px 6px;
  border: 1px solid #e6e1d8;
  color: #2c2c2a;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  text-decoration: none;
  transition: all 0.25s ease;
}
.mobile-drawer-lang a strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  color: #FF6900;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.mobile-drawer-lang a.active { background: #FF6900; color: #ffffff; border-color: #FF6900; }
.mobile-drawer-lang a.active strong { color: #ffffff; }
.mobile-drawer-lang a.lang-inactive { opacity: 0.45; cursor: not-allowed; }

/* ─────────── 언어 "준비중" 토스트 (JS가 동적으로 붙임, 기능 그대로 유지) ─────────── */
.lang-coming-toast {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  padding: 24px 36px;
  border-radius: 6px;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  z-index: 999999;
  text-align: center;
  pointer-events: none;
  animation: langToast 2.5s ease forwards;
  max-width: 320px;
  line-height: 1.6;
}
.lang-coming-toast strong {
  color: #FF6900;
  font-weight: 700;
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
@keyframes langToast {
  0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  85% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* ==========================================================================
   반응형 — 기존 사이트 브레이크포인트 유지 (900px 기준 데스크톱/모바일 전환)
   ========================================================================== */
@media (max-width: 900px) {
  .topbar-right { display: none; }
  .topbar { justify-content: center; }
  .topbar-info { white-space: normal; text-align: center; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }

  nav.main-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 5%;
  }
  .logo { grid-column: 2; justify-self: center; }
  .logo img { height: 40px; }
  .hamburger { grid-column: 1; justify-self: start; }
}

@media (max-width: 450px) {
  .topbar { padding: 8px 5%; font-size: 10.5px; }
  .topbar-info .divider { margin: 0 6px; }
  nav.main-nav { padding: 12px 4%; }
  .logo img { height: 36px; }
}
