/* ============================================================
   Header + Hamburger Drawer
   Mobile-first: mặc định = giao diện SP (logo + JP + đặt phòng + hamburger).
   Từ 1024px trở lên = giao diện PC (nav đầy đủ).
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__inner {
  height: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ---- Logo (chữ) ---- */
.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.logo__aso {
  color: var(--color-green);
}

/* ---- Nav PC (ẩn trên SP) ---- */
.nav-pc {
  display: none;
}

/* ---- Actions bên phải ---- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-contact {
  display: none; /* chỉ hiện trên PC */
}

/* ---- Language switch ---- */
.lang {
  position: relative;
}
.lang__toggle {
  font-size: 12px;
  gap: 6px;
  padding: 6px 8px;
}
.lang__caret {
  font-family: var(--font-latin);
  font-size: 9px;
  line-height: 1;
}
.lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  background: var(--color-white);
  border: 1px solid var(--color-line-divider);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 1;
}
.lang__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
}
.lang__item.is-active {
  background: var(--color-bg);
  color: var(--color-navy);
  font-weight: 600;
}
.lang__item:disabled {
  color: #aaa;
  cursor: not-allowed;
}

/* ---- Nút đặt phòng (header) ---- */
.btn-reserve {
  font-size: 12px;
  padding: 8px 10px;
  white-space: nowrap;
}

/* ---- Hamburger (SP) ---- */
.hamburger {
  width: 30px;
  height: 30px;
  border: 1px solid #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #000;
}

/* ============================================================
   Drawer (menu hamburger trượt xuống) — SP
   ============================================================ */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
}
.drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 60px 20px 50px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer.is-open .drawer__panel {
  transform: translateX(0);
}
/* Nút đóng ✕ canh đúng vị trí nút hamburger (sát lề phải) */
.drawer__close {
  position: absolute;
  top: 10px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: 1px solid #000;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.drawer__nav ul {
  display: flex;
  flex-direction: column;
}
.drawer__nav li {
  border-bottom: 1px solid var(--color-line-divider);
}
.drawer__nav li:last-child {
  border-bottom: none;
}
.drawer__nav a {
  display: block;
  padding: 16px 10px;
  text-align: center;
  font-size: 15px;
  color: var(--color-text);
}
.drawer__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.drawer__actions .btn {
  width: 300px;
  max-width: 100%;
}

/* ============================================================
   PC ( >= 1024px )
   ============================================================ */
/* ---- PC: từ 1024px (iPad ngang) — bản gọn, chống xuống dòng ---- */
@media (min-width: 1024px) {
  .site-header {
    background: rgba(245, 249, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  .site-header__inner {
    padding-inline: 24px;
    gap: 14px;
  }
  .logo {
    font-size: 18px;
  }
  .nav-pc {
    display: block;
  }
  .nav-pc__list {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .nav-pc__list a {
    font-size: 13px;
    white-space: nowrap;
    color: var(--color-text);
    transition: color 0.2s ease;
  }
  .nav-pc__list a:hover {
    color: var(--color-navy);
  }
  .header-actions {
    gap: 10px;
  }
  .header-contact {
    display: inline-flex;
  }
  .lang__toggle {
    font-size: 14px;
  }
  .btn-reserve {
    font-size: 13px;
    padding: 8px 10px;
  }
  .hamburger {
    display: none;
  }
  .drawer {
    display: none !important;
  }
}

/* ---- 1280px ---- */
@media (min-width: 1280px) {
  .site-header__inner {
    padding-inline: 30px;
    gap: 20px;
  }
  .logo {
    font-size: 20px;
  }
  .nav-pc__list {
    gap: 30px;
  }
  .nav-pc__list a {
    font-size: 15px;
  }
  .header-actions {
    gap: 16px;
  }
  .lang__toggle {
    font-size: 15px;
  }
  .btn-reserve {
    font-size: 15px;
  }
}

/* ---- 1440px (đúng thiết kế gốc) ---- */
@media (min-width: 1440px) {
  .logo {
    font-size: 22px;
  }
  .nav-pc__list {
    gap: 38px;
  }
  .nav-pc__list a {
    font-size: 16px;
  }
  .header-actions {
    gap: 20px;
  }
  .lang__toggle {
    font-size: 16px;
  }
  .btn-reserve {
    font-size: 16px;
    padding: 8px 11px;
  }
}
