:root {
  --btg-height: 68px;
  --btg-bg: #0a1524;
  --btg-panel: #101f31;
  --btg-card: rgba(18, 39, 57, .84);
  --btg-line: rgba(255, 255, 255, .16);
  --btg-text: #f7f5ef;
  --btg-muted: #b9c3cf;
  --btg-accent: #dfb72e;
  --btg-accent-soft: #f1ca45;
}

.btg-menu-input {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.btg-nav,
.btg-nav *,
.btg-mobile,
.btg-mobile * { box-sizing: border-box; }

.btg-nav {
  position: fixed;
  z-index: 2147483000;
  inset: 0 0 auto;
  height: var(--btg-height);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 max(22px, calc((100vw - 1440px) / 2));
  color: var(--btg-text);
  background: linear-gradient(180deg, rgba(7, 15, 27, .985), rgba(10, 21, 36, .965));
  border-top: 1px solid rgba(223, 183, 46, .22);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
  font-family: Inter, "Noto Sans SC", "Noto Sans", Arial, sans-serif;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.btg-nav a,
.btg-mobile a { color: inherit !important; text-decoration: none !important; }

.btg-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  height: 100%;
}

.btg-logo img {
  display: block !important;
  width: auto !important;
  height: 43px !important;
  max-width: 112px !important;
  object-fit: contain !important;
  filter: none !important;
  box-shadow: none !important;
  background: none !important;
}

.btg-logo span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
  white-space: nowrap;
  color: var(--btg-muted);
}

.btg-desktop {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  height: 100%;
  margin-left: auto;
  font-size: 12px;
  font-weight: 750;
}

.btg-desktop > a,
.btg-group > .btg-top {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 11px;
  white-space: nowrap;
  border: 0 !important;
  letter-spacing: .02em;
}

.btg-desktop > a::after,
.btg-group > .btg-top::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 14px;
  height: 2px;
  background: var(--btg-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.btg-desktop > a:hover,
.btg-group > .btg-top:hover,
.btg-desktop a:focus-visible,
.btg-desktop [aria-current="page"] { color: var(--btg-accent-soft) !important; }

.btg-desktop > a:hover::after,
.btg-group > .btg-top:hover::after,
.btg-desktop > a[aria-current="page"]::after { transform: scaleX(1); }

.btg-group { position: relative; height: 100%; }

.btg-drop {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  width: max-content;
  min-width: 238px;
  padding: 10px;
  background: rgba(10, 24, 39, .99);
  border: 1px solid rgba(223, 183, 46, .22);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .18s ease;
}

.btg-group:hover > .btg-drop,
.btg-group:focus-within > .btg-drop {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.btg-drop a {
  display: block !important;
  padding: 11px 13px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  line-height: 1.35 !important;
  white-space: nowrap;
}

.btg-drop a:last-child { border-bottom: 0 !important; }
.btg-drop a:hover { background: rgba(223, 183, 46, .09); color: var(--btg-accent-soft) !important; }

.btg-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.btg-lang,
.btg-lang-current,
.btg-lang-control {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 36px;
  padding: 0 11px !important;
  border: 1px solid rgba(255, 255, 255, .44) !important;
  border-radius: 2px !important;
  background: transparent !important;
  color: #fff !important;
  font: 750 11px/1 Inter, Arial, sans-serif !important;
  white-space: nowrap;
  cursor: pointer;
}

.btg-lang-current {
  border-color: var(--btg-accent) !important;
  background: var(--btg-accent) !important;
  color: #111827 !important;
}

.btg-lang-buttons { display: flex; gap: 4px; }
.btg-lang-buttons button { height: 34px; min-width: 36px; border: 1px solid rgba(255,255,255,.45); border-radius: 2px; background: transparent; color: #fff; cursor: pointer; }

.btg-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, .42);
  cursor: pointer;
}

.btg-toggle i { display: block; width: 20px; height: 1px; background: #fff; transition: .2s ease; }

.btg-mobile {
  display: none;
  position: fixed;
  z-index: 2147482999;
  inset: var(--btg-height) 0 0;
  width: 100vw;
  max-width: 100vw;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px max(18px, env(safe-area-inset-left)) max(44px, env(safe-area-inset-bottom));
  background:
    linear-gradient(150deg, rgba(7, 18, 31, .96), rgba(10, 29, 45, .98)),
    var(--btg-bg);
  font-family: Inter, "Noto Sans SC", "Noto Sans", Arial, sans-serif;
  isolation: isolate;
}

.btg-mobile::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: var(--btg-height) 0 0;
  pointer-events: none;
  opacity: .42;
  background-image:
    radial-gradient(circle at 15% 22%, transparent 0 48px, rgba(223,183,46,.16) 49px 50px, transparent 51px),
    radial-gradient(circle at 84% 72%, transparent 0 82px, rgba(255,255,255,.09) 83px 84px, transparent 85px),
    repeating-radial-gradient(ellipse at 96% 5%, transparent 0 17px, rgba(255,255,255,.055) 18px 19px, transparent 20px 32px),
    linear-gradient(120deg, transparent 0 38%, rgba(223,183,46,.08) 38.2% 38.45%, transparent 38.7% 100%);
  background-size: 240px 240px, 330px 330px, 260px 210px, 100% 100%;
}

.btg-mobile::after {
  content: "✦";
  position: fixed;
  z-index: -1;
  right: 8vw;
  top: calc(var(--btg-height) + 7vh);
  color: rgba(223, 183, 46, .12);
  font: 180px/1 Georgia, serif;
  transform: rotate(18deg);
  pointer-events: none;
}

.btg-mobile-inner { width: min(780px, 100%); margin: auto; }
.btg-mobile-group { margin: 0 0 24px; }

.btg-mobile-group > strong {
  display: block;
  margin: 0 0 10px;
  color: var(--btg-accent-soft);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.btg-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.btg-mobile-grid a {
  display: flex !important;
  position: relative;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 0;
  min-height: 96px;
  overflow: hidden;
  padding: 15px !important;
  background-color: #10243a;
  background-image:
    linear-gradient(180deg, rgba(4, 12, 23, .10) 0%, rgba(4, 12, 23, .38) 48%, rgba(4, 12, 23, .94) 100%),
    var(--btg-tile-image, linear-gradient(135deg, #17324b, #091725));
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, .17) !important;
  line-height: 1.3 !important;
  font-size: 14px !important;
  font-weight: 720 !important;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btg-mobile-grid a::after {
  content: "↗";
  flex: 0 0 auto;
  margin-left: 8px;
  color: var(--btg-accent-soft);
}

.btg-mobile-grid a:hover,
.btg-mobile-grid a[aria-current="page"] {
  border-color: rgba(223, 183, 46, .72) !important;
  box-shadow: inset 0 0 0 1px rgba(223, 183, 46, .22), 0 8px 24px rgba(0, 0, 0, .2);
}

/* Destination and service identity images: the v2 photo-card idea, now kept inside v5 groups. */
.btg-mobile-grid a[href="/"] { --btg-tile-image: url("https://images.unsplash.com/photo-1467269204594-9661b134dd2b?w=700&q=76"); }
.btg-mobile-grid a[href="/destinations.html"],
.btg-mobile-grid a[href="/en/destinations.html"] { --btg-tile-image: url("https://images.unsplash.com/photo-1547448415-e9f5b28e570d?w=700&q=76"); }
.btg-mobile-grid a[href="/china.html"],
.btg-mobile-grid a[href="/en/china.html"] { --btg-tile-image: url("https://images.unsplash.com/photo-1508804185872-d7badad00f7d?w=700&q=78"); }
.btg-mobile-grid a[href="/japan.html"],
.btg-mobile-grid a[href="/en/japan.html"] { --btg-tile-image: url("https://images.unsplash.com/photo-1522383225653-ed111181a951?w=700&q=76"); }
.btg-mobile-grid a[href="/russia.html"],
.btg-mobile-grid a[href="/en/russia.html"] { --btg-tile-image: url("https://www.beyondtravel.com.my/assets/tours/lake-baikal-blue-ice-9-days/baikal-homepage-hero.webp"); }
.btg-mobile-grid a[href="/asia.html"],
.btg-mobile-grid a[href="/en/asia.html"] { --btg-tile-image: url("https://images.unsplash.com/photo-1537996194471-e657df975ab4?w=700&q=76"); }
.btg-mobile-grid a[href="/europe.html"],
.btg-mobile-grid a[href="/en/europe.html"] { --btg-tile-image: url("https://images.unsplash.com/photo-1502602898657-3e91760cbb34?w=700&q=76"); }
.btg-mobile-grid a[href="/other.html"],
.btg-mobile-grid a[href="/en/other.html"] { --btg-tile-image: url("https://images.unsplash.com/photo-1503177119275-0aa32b3a9368?w=700&q=76"); }
.btg-mobile-grid a[href="/services.html"],
.btg-mobile-grid a[href="/en/services.html"] { --btg-tile-image: url("https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=700&q=76"); }
.btg-mobile-grid a[href="/private-group-tours.html"],
.btg-mobile-grid a[href="/en/private-group-tours.html"] { --btg-tile-image: url("https://www.beyondtravel.com.my/assets/services/private-group-tours/private-group-hero.webp"); }
.btg-mobile-grid a[href="/corporate-incentive-travel.html"],
.btg-mobile-grid a[href="/en/corporate-incentive-travel.html"] { --btg-tile-image: url("https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=700&q=76"); }
.btg-mobile-grid a[href="/services.html#family"],
.btg-mobile-grid a[href="/en/services.html#family"] { --btg-tile-image: url("https://images.unsplash.com/photo-1504150558240-0b4fd8946624?w=700&q=76"); }
.btg-mobile-grid a[href="/japan-charter.html"],
.btg-mobile-grid a[href="/en/japan-charter.html"] { --btg-tile-image: url("https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e?w=700&q=76"); }
.btg-mobile-grid a[href="/services.html#malaysia"],
.btg-mobile-grid a[href="/en/services.html#malaysia"] { --btg-tile-image: url("https://images.unsplash.com/photo-1596422846543-75c6fc197f07?w=700&q=76"); }
.btg-mobile-grid a[href="/services.html#transfer"],
.btg-mobile-grid a[href="/en/services.html#transfer"] { --btg-tile-image: url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=700&q=76"); }
.btg-mobile-grid a[href="/cruise/"] { --btg-tile-image: url("https://www.beyondtravel.com.my/assets/cruise/cruise-hero.jpg"); }
.btg-mobile-grid a[href="/guides.html"],
.btg-mobile-grid a[href="/en/guides.html"] { --btg-tile-image: url("https://www.beyondtravel.com.my/assets/guides/guangzhou-food/guangzhou-food-guide-hero.webp"); }
.btg-mobile-grid a[href="/about.html"],
.btg-mobile-grid a[href="/en/about.html"] { --btg-tile-image: url("https://www.beyondtravel.com.my/assets/about-alex-yip-hero.webp"); }

/* Landing-page local navigation also receives distinct scene cards. */
.btg-mobile-group:last-child .btg-mobile-grid a[href^="#"]:nth-child(1) { --btg-tile-image: url("https://images.unsplash.com/photo-1527631746610-bca00a040d60?w=700&q=72"); }
.btg-mobile-group:last-child .btg-mobile-grid a[href^="#"]:nth-child(2) { --btg-tile-image: url("https://images.unsplash.com/photo-1503220317375-aaad61436b1b?w=700&q=72"); }
.btg-mobile-group:last-child .btg-mobile-grid a[href^="#"]:nth-child(3) { --btg-tile-image: url("https://images.unsplash.com/photo-1566073771259-6a8506099945?w=700&q=72"); }
.btg-mobile-group:last-child .btg-mobile-grid a[href^="#"]:nth-child(4) { --btg-tile-image: url("https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=700&q=72"); }

body:has(#btg-menu-toggle:checked) { overflow: hidden !important; }
#btg-menu-toggle:checked ~ .btg-mobile { display: block; }
#btg-menu-toggle:checked ~ .btg-nav .btg-toggle i:first-child { transform: translateY(6px) rotate(45deg); }
#btg-menu-toggle:checked ~ .btg-nav .btg-toggle i:nth-child(2) { opacity: 0; }
#btg-menu-toggle:checked ~ .btg-nav .btg-toggle i:last-child { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1450px) {
  .btg-nav { gap: 12px; }
  .btg-logo span { display: none; }
  .btg-desktop > a,
  .btg-group > .btg-top { padding-left: 7px; padding-right: 7px; }
  .btg-desktop { font-size: 11px; }
}

@media (max-width: 1180px) {
  .btg-desktop { display: none; }
  .btg-toggle { display: flex; }
  .btg-nav { padding: 0 16px; }
  .btg-logo span { display: none; }
  .btg-actions { margin-left: auto; }
}

@media (max-width: 430px) {
  :root { --btg-height: 64px; }
  .btg-logo img { height: 39px !important; }
  .btg-mobile { padding-top: 19px; }
  .btg-mobile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .btg-mobile-grid a { min-height: 88px; padding: 12px !important; font-size: 13px !important; }
  .btg-lang,
  .btg-lang-current,
  .btg-lang-control { height: 34px; min-width: 36px; padding: 0 9px !important; }
  .btg-mobile::after { right: -22px; top: 100px; font-size: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .btg-drop,
  .btg-toggle i { transition: none; }
}

@media print {
  .btg-nav,
  .btg-mobile,
  .btg-menu-input { display: none !important; }
}
