/*============================================================================================*/
/* Saikaew Resort — custom overrides (loads after theme) */
/*============================================================================================*/

/* Desktop language switcher */
header .desktop-lang-switch {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  margin-left: 8px !important;
}

header .desktop-lang-switch button {
  border: 0;
  background: none;
  padding: 4px 6px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
}

header .desktop-lang-switch button.is-active {
  color: #d4aa63;
}

header.fixed_header.sticky .desktop-lang-switch button {
  color: rgba(31, 33, 39, 0.55);
}

header.fixed_header.sticky .desktop-lang-switch button.is-active {
  color: #b98942;
}

header .desktop-lang-switch span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

header.fixed_header.sticky .desktop-lang-switch span {
  color: rgba(31, 33, 39, 0.28);
}

@media (max-width: 991px) {
  .main-menu.desktop-nav {
    display: none !important;
  }

  .hamburger_2 {
    border: 0;
    background: transparent;
    padding: 0;
  }
}

@media (min-width: 992px) {
  .site-drawer-backdrop,
  .site-mobile-drawer {
    display: none !important;
  }
}

/* Mobile drawer — portaled to body, no theme nav selectors */
.site-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(12, 18, 14, 0.52);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.site-drawer-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  width: min(100vw, 320px);
  max-width: 100%;
  background: #fff;
  box-shadow: -16px 0 48px rgba(8, 14, 10, 0.22);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden;
}

.site-mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.site-mobile-drawer:not(.is-open) {
  visibility: hidden;
  pointer-events: none;
}

.site-mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  min-height: 64px;
  padding: 14px 18px;
  border-bottom: 1px solid #ebe6dc;
}

.site-mobile-drawer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.site-mobile-drawer__brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.site-mobile-drawer__brand span {
  color: #1f2127;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.site-mobile-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #e4ded4;
  border-radius: 999px;
  background: #faf8f5;
  color: #1f2127;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  box-shadow: none;
}

.site-mobile-drawer__close i {
  font-size: 1.1rem;
  line-height: 1;
}

.site-mobile-drawer__links {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0;
}

.site-mobile-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  color: #1f2a24;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1.35;
  border-bottom: 1px solid #f2ede6;
  background: transparent;
  box-sizing: border-box;
}

.site-mobile-drawer__link i {
  font-size: 0.78rem;
  color: #c5bdb0;
}

.site-mobile-drawer__link:hover,
.site-mobile-drawer__link.is-active {
  color: #b98942;
  background: #faf8f4;
}

.site-mobile-drawer__foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #ebe6dc;
  background: #faf8f5;
}

.site-mobile-drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: #b98942;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-sizing: border-box;
}

.site-mobile-drawer__cta:hover {
  background: #a67a38;
  color: #fff;
}

.site-mobile-drawer__lang {
  display: flex;
  align-self: center;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #e8e2d8;
  gap: 2px;
}

.site-mobile-drawer__lang button {
  border: 0;
  background: transparent;
  min-width: 52px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #7a8078;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  text-transform: uppercase;
}

.site-mobile-drawer__lang button.is-active {
  background: #fff;
  color: #b98942;
  box-shadow: 0 1px 5px rgba(20, 24, 21, 0.1);
}
