@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@500&display=swap');

/* ===== HERO VIDEO ===== */
.video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video.active {
  opacity: 1;
}

/* iOS Safari native play button/controls хаах */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none;
  appearance: none;
}

/* ===== CSS VARIABLES ===== */
:root {
  --viewport-height: 100vh;
  --mobile-header-height: 70px;
  --topbar-height: 34px;
  --primary: #c8860a;
  --primary-dark: #a06a00;
  --primary-light: #f5a623;
  --dark: #1a1a2e;
  --text: #333;
  --text-light: #666;
  --bg: #f5f5f5;
  --white: #fff;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.10);
  --radius: 14px;
  --font-main: 'Roboto', 'Noto Sans KR', 'Noto Sans SC', Arial, sans-serif;
  --font-navbar: 'Roboto Condensed', 'Roboto', 'Noto Sans KR', 'Noto Sans SC', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
}

/* Keep navbar in place while scrolling */
body {
  padding-top: calc(var(--topbar-height) + 80px);
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== TOPBAR ===== */
.topbar {
  background: #4DD9E8;
  color: #1a1a2e;
  font-size: 12px;
  padding: 6px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  overflow: visible;
}
.topbar-left { display: flex; gap: 20px; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.social-icon { font-size: 16px; cursor: pointer; transition: opacity .2s; }
.social-icon:hover { opacity: .7; }

.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.8);
  color: #1a1a2e;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-main);
  font-weight: 600;
}
.lang-btn:hover, .lang-btn.active {
  background: white;
  border-color: white;
  color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* ===== HEADER ===== */
.header {
  background: rgba(255,255,255,0.80);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 80px;
}
.header,
.header .nav-link,
.header .icon-btn-label,
.header .icon-btn-text,
.header .lang-selected,
.header .lang-menu .lang-option,
.header .mobile-lang-menu .lang-option,
.header .mobile-lang-selected {
  font-family: var(--font-navbar);
  font-weight: 500;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  max-height: 64px;
  object-fit: contain;
}
.logo-circle {
  width: 52px; height: 52px;
  background: #1a1a2e;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  border: 2px solid #444;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-nomadic { font-size: 16px; font-weight: 800; color: #1a1a2e; letter-spacing: 2px; font-family: 'Montserrat', sans-serif; }
.logo-empire { font-size: 10px; font-weight: 600; color: #888; letter-spacing: 3px; font-family: 'Montserrat', sans-serif; }
.logo small { font-size: 8px; letter-spacing: 3px; color: #aaa; }

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.nav-link {
  padding: 8px 18px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  border-radius: 30px;
  transition: all .2s;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.nav-link:hover { background: #caeeff; }
.nav-link:focus,
.nav-link:focus-visible {
  outline: none;
}
.nav-link.active {
  background: transparent;
  border-color: transparent;
  font-weight: 500;
  box-shadow: none;
}
/* Even if a link is marked active, hover should still show */
.nav-link.active:hover { background: #caeeff; }

.header-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
  flex: 0 0 auto;
  flex-shrink: 0;
}

/* Shop + cart: лого-той нав баруун дархад шахагдахгүй гэж бүлэг үлдээх зайтай */
.header-icons-shopcart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-left: 0;
  margin-right: 14px;
  padding-inline: 2px 0;
}
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
  border-radius: 8px;
  transition: background .2s;
}
.icon-btn:hover { background: #f0f0f0; }

/* ===== HERO SLIDESHOW ===== */
.slides-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  font-size: 36px;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.slide-arrow:hover { background: rgba(255,255,255,0.4); }
.slide-prev { left: 24px; }
.slide-next { right: 24px; }

.slide-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all .3s;
  border: 2px solid rgba(255,255,255,0.7);
}
.dot.active {
  background: white;
  width: 36px;
  border-radius: 7px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 70px 24px 90px;
  background: url('../img/b1.jpg') center/cover no-repeat #111;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.4) 100%);
}
.hero-content {
  position: absolute;
  z-index: 2;
  color: white;
  width: calc(100% - 80px);
  max-width: 900px;
  padding: 0 20px;
  animation: fadeInUp .8s ease;
  /* default: center / middle */
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  text-align: center;
}
/* Horizontal alignment */
.hero-content.align-left   { left: 5%; transform: translateY(-50%); text-align: left;   max-width: 620px; }
.hero-content.align-right  { left: auto; right: 5%; transform: translateY(-50%); text-align: right; max-width: 620px; }
.hero-content.align-center { left: 50%; transform: translate(-50%, -50%); text-align: center; }
/* Vertical position */
.hero-content.valign-top    { top: 22%; }
.hero-content.valign-middle { top: 42%; }
.hero-content.valign-bottom { top: 62%; }
.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: .95;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hero-search-wrap {
 position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 100%;
  max-width: 420px;
}
.search-bar {
  display: flex;
  background: rgba(255,255,255,0.70);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,.25);
  max-width: 400px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 24px;
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--text);
  background: transparent;
}
.search-btn {
  background: transparent;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 16px;
  color: #555;
  transition: color .2s;
}
.search-btn:hover { color: var(--primary); }

.hero-scroll-down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(169, 168, 168);
  font-size: 28px;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 10;
}

/* ===== CATEGORIES ===== */
.categories {
  background: white;
  padding: 56px 0 52px;
  border-radius: 60px 60px 0 0;
  box-shadow: 0 6px 30px rgba(0,0,0,.07);
  position: relative;
  z-index: 2;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}
.category-circles {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: transform .25s;
}
.cat-item:hover { transform: translateY(-8px); }
.cat-item.active .cat-img {
  border-color: #4DD9E8;
  box-shadow: 0 0 0 5px rgba(77,217,232,0.3);
}
.cat-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid #e8e8e8;
  transition: all .25s;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 6px 24px rgba(0,0,0,.10);
}
.cat-item:hover .cat-img {
  border-color: #4DD9E8;
  box-shadow: 0 10px 32px rgba(0,0,0,.18);
}
.cat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Ensure CJK/MN glyphs render correctly across languages */
  font-family: 'Noto Sans KR', 'Noto Sans SC', 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.cat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}
.cat-count {
  font-size: 13px;
  color: #888;
  font-weight: 500;
  border-left: 2px solid #ccc;
  padding-left: 8px;
}

/* ===== TOURS SECTION ===== */
.tours-section {
  background: #f0f7fb;
  padding: 48px 0;
}
.tours-layout { display: flex; gap: 24px; align-items: flex-start; }

/* Filter panel - image background */
.tour-filters {
  min-width: 180px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?w=400&h=600&fit=crop') center/cover;
  padding: 28px 20px 32px;
  box-shadow: var(--card-shadow);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tour-filters::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,180,200,0.55), rgba(0,120,160,0.6));
  z-index: 0;
}
.tour-filters h3 {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.filter-tag {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all .2s;
  color: var(--dark);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
}
.filter-tag:hover { background: white; transform: translateX(4px); }
.filter-tag.active { background: white; }
.filter-tag.vip {
  background: var(--dark);
  color: white;
}
.filter-tag.vip:hover { background: #333; }


/* ===== HOME TOURS SIDEBAR ===== */
.home-tours-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.home-sidebar {
  width: 210px;
  min-width: 210px;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.home-sidebar-bg {
  position: absolute;
  inset: 0;
  background-size: cover !important;
  background-position: center !important;
  transition: background 0.4s ease;
}
.home-sidebar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,20,40,0.45) 0%, rgba(10,20,40,0.82) 100%);
}
.home-sidebar-inner {
  position: relative;
  z-index: 2;
  padding: 24px 16px;
}
.home-sidebar-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}
.home-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.home-sidebar-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s;
  width: 100%;
}
.home-sidebar-btn:hover { background: rgba(255,255,255,0.3); }
.home-sidebar-btn.active {
  background: #1a1a2e;
  border-color: #1a1a2e;
  font-weight: 700;
}

.tour-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex: 1;
  min-width: 0;
  align-content: start;
}

/* Smooth grid transition on filter/category switch */
#tourCards {
  transition: opacity 220ms ease, transform 220ms ease;
}
#tourCards.is-switching {
  opacity: 0.18;
  transform: translateY(6px);
}

/* ===== TOUR CARDS: ENTER ANIMATION ===== */
#tourCards .card.card-anim {
  opacity: 0;
  transform: translateY(14px);
  animation: nomadicCardEnter 520ms cubic-bezier(.2,.75,.25,1) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}

@keyframes nomadicCardEnter {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #tourCards .card.card-anim {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ===== NEW CARD STYLE ===== */
.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  transition: transform .25s, box-shadow .25s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,0,0,.18); }

.card-img-wrap {
  position: relative;
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #ddd center/cover;
  transition: transform .4s;
}
.card:hover .card-img { transform: scale(1.06); }

/* Hover overlay book button */
.card-hover-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  opacity: 0;
  transition: all .25s;
  white-space: nowrap;
  z-index: 3;
}
.card:hover .card-hover-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-rating {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  z-index: 2;
}
.card-rating span { color: var(--primary-light); margin-right: 2px; }

.card-badges-stack {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}

.card-sub-badge {
  position: static;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(229,57,53,.25);
}

.card-discount-badge {
  position: static;
  background: #d32f2f;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(211,47,47,.25);
}

.card-price .price-old {
  display: inline-block;
  margin-left: 8px;
  color: #9aa0a6;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-size: 12px;
}

.tour-discount-badge {
  position: static;
  background: #d32f2f;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(211,47,47,.25);
}

.tour-card-price .price-old {
  margin-left: 8px;
  color: #9aa0a6;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-size: 12px;
}

.tour-sub-badge {
  position: static;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(229,57,53,.25);
}

.tour-badges-stack {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}

.card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: 16px;
  z-index: 2;
  transition: transform .2s;
}
.card-fav:hover { transform: scale(1.2); }

.card-body {
  padding: 16px 16px 8px;
  flex: 1;
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}
.card-location {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-stars { color: var(--primary-light); font-size: 14px; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 16px;
  border-top: 1px solid #f0f0f0;
}
.card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.card-price strong { font-size: 16px; color: var(--primary); }
.book-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background .2s;
}
.book-btn:hover { background: var(--primary-dark); }

/* ===== CARD ===== */
.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.15); }
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #ddd center/cover;
}
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  cursor: pointer;
  font-size: 14px;
}
.card-body { padding: 14px; }
.card-cat { font-size: 10px; color: var(--text-light); margin-bottom: 4px; }
.card-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.card-stars { color: var(--primary-light); font-size: 12px; margin-bottom: 4px; }
.card-meta { font-size: 11px; color: var(--text-light); margin-bottom: 10px; }
.card-price { font-size: 15px; font-weight: 700; color: var(--primary); }
.card-price small { font-size: 11px; font-weight: 400; color: var(--text-light); }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 14px; }
.book-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background .2s;
}
.book-btn:hover { background: var(--primary-dark); }

/* ===== RECENT SECTION ===== */
.recent-section { padding: 48px 0; background: white; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-header h2 { font-size: 22px; font-weight: 700; }
.view-all { font-size: 13px; color: var(--primary); font-weight: 500; }
.view-all:hover { text-decoration: underline; }

.recent-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ===== REVIEWS ===== */
.reviews-section { padding: 48px 0; background: #f9f9f9; }
.review-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .2s;
}
.review-card:hover { transform: translateY(-4px); }
.review-img { background: #ddd center/cover; }
.review-body { padding: 16px; }
.review-tags { display: flex; gap: 6px; margin-bottom: 8px; }
.review-tag {
  font-size: 10px;
  background: #e8f4fd;
  color: #2980b9;
  border-radius: 10px;
  padding: 2px 8px;
}
.review-date { font-size: 11px; color: var(--text-light); margin-bottom: 6px; }
.review-title { font-size: 14px; font-weight: 700; line-height: 1.4; }

/* Home page compact review card (image left, round avatar) */
.review-card--home{
  display:flex;
  align-items:stretch;
  gap: 12px;
  padding: 20px 12px;
  border-radius: 16px;
  overflow: hidden;
  min-height: 110px;
}
.review-card--home .review-img{
  width: 92px;
  height: 92px;
  border-radius: 999px; /* round */
  flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}
.review-card--home .review-body{
  padding: 0;
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.review-card--home .review-tags{ margin-bottom: 0; }
.review-card--home .review-title{
  font-size: 14px;
  font-weight: 900;
  color: #1a1a2e;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-card--home .review-excerpt{
  font-size: 12.5px;
  color: #616a80;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  height: 500px;
  background: url('../img/cta-bg.jpg') center 5%/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cta-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.cta-content { position: relative; z-index: 2; text-align: center; color: white; }
.cta-content h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; margin-bottom: 12px; }
.cta-content p { font-size: 16px; opacity: .85; margin-bottom: 28px; }
.cta-btn {
  background: var(--primary);
  color: white;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  transition: all .2s;
  display: inline-block;
}
.cta-btn:hover { background: var(--primary-dark); transform: scale(1.05); }

/* ===== APP SECTION ===== */
.app-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.partners-section{
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.partners-head{
  width: 100%;
  text-align: center;
}
.partners-title{
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(17,24,39,0.55);
  text-transform: uppercase;
}
.partners-sub{
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
}
.partners-logos{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.partner-logo{
  height: 44px;
  width: 150px;
  border-radius: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: none;
  opacity: 0.0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}
.partner-logo.is-in{
  opacity: 1;
  transform: translateY(0);
}
.partner-logo:hover{
  transform: translateY(-2px) scale(1.02);
}
.partner-logo img{
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.partner-logo.is-missing{
  border: 0;
  background: transparent;
}
.partner-missing{
  display: none;
}

@media (max-width: 900px){
  .partner-logo{ width: 160px; }
}
@media (max-width: 480px){
  .partner-logo{ width: 44vw; }
}

.app-left { display: flex; gap: 12px; align-items: center; }
.app-left input {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  outline: none;
  font-size: 13px;
  min-width: 240px;
  font-family: var(--font-main);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}
.app-left button {
  background: linear-gradient(135deg, #1a1a2e, #2d1f5e);
  color: white;
  border: 0;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-main);
  transition: transform .15s, filter .15s;
  box-shadow: 0 12px 26px rgba(26,26,46,0.18);
}
.app-left button:hover { transform: translateY(-1px); filter: brightness(1.05); }

.app-center { display: flex; justify-content: center; }
.app-phones { position: relative; width: 120px; height: 180px; }
.phone {
  position: absolute;
  border-radius: 18px;
  background: #0f172a;
  border: 3px solid rgba(15,23,42,0.18);
  box-shadow: 0 16px 40px rgba(15,23,42,0.18);
}
.phone-back { width: 90px; height: 165px; top: 15px; left: 25px; transform: rotate(8deg); opacity: .6; }
.phone-front { width: 90px; height: 165px; top: 0; left: 0; z-index: 2; display: flex; align-items: center; justify-content: center; }
.phone-screen { background: white; width: 80px; height: 150px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }

.app-right { display: flex; flex-direction: column; gap: 12px; }
.store-btn {
  background: #ffffff;
  color: #111827;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  border: 1px solid rgba(15,23,42,0.12);
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.store-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(15,23,42,0.12); border-color: rgba(200,134,10,0.35); }

/* ===== FOOTER ===== */
.site-footer {
  background: #ffffff;
  color: #111827;
  font-family: 'Montserrat', sans-serif;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin-top: 42px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.footer-logo-text { margin-bottom: 18px; }
.footer-logo-main { font-size: 22px; font-weight: 900; letter-spacing: 2px; color: #111827; }
.footer-logo-sub  { font-size: 22px; font-weight: 300; letter-spacing: 2px; color: #c8860a; }
.footer-desc { font-size: 13px; color: #6b7280; line-height: 1.8; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; margin-top: 8px; }
.footer-social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: #f3f4f6; border-radius: 10px;
  text-decoration: none; font-size: 16px;
  transition: transform .15s, background .15s;
  color: #111827;
}
.footer-social-btn:hover { background: #e5e7eb; transform: translateY(-1px); }
.footer-col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  color: #c8860a; text-transform: uppercase;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(15,23,42,0.08); padding-bottom: 10px;
}
.footer-links, .footer-info-list, .footer-contact-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links a { color: #6b7280; text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: #111827; }
.footer-info-list li { font-size: 13px; color: #6b7280; }
.footer-info-list span { color: #111827; }
.footer-contact-list { gap: 12px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact-list a { color: #6b7280; text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-contact-list a:hover { color: #111827; }
.footer-contact-list span.fc-text { color: #6b7280; font-size: 13px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(15,23,42,0.08);
  max-width: 1200px; margin: 0 auto;
  padding: 20px 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { margin: 0; font-size: 12px; color: #6b7280; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Mobile drawer: дэлгүүр / сагс — зөвхөн @media дор харагдана */
.nav-mobile-shopcart {
  display: none;
}

/* Hamburger drawer-д ашиглана; desktop мөрөнд зай эзлэхгүй */
.nav-drawer-user {
  display: none !important;
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}
  .hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Desktop-д nav-mobile-footer нуугдана */
.nav-mobile-footer { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {

  /* --- Topbar --- */
  .topbar {
    display: flex;
    padding: 6px 12px;
    font-size: 11px;
    gap: 10px;
    background: rgba(255,255,255,0.80);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #1a1a2e;
  }
  .topbar-left{
    gap: 10px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }
  .topbar-left span{
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Mobile: hide phone + topbar language selector */
  .topbar-left span:first-child{ display: none; }
  .topbar-left span:nth-child(2){ display: none; }
  /* Keep language selector visible in topbar */
  .topbar-right{
    gap: 10px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }
  .topbar-right .top-icon-btn{ padding: 0; }
  /* Override inline sizes on mobile topbar icons */
  .topbar-right .top-icon-btn img{ width: 18px !important; height: 18px !important; }
  .topbar-right .fa-brands{ font-size: 18px !important; }
  body { padding-top: calc(var(--topbar-height) + var(--mobile-header-height)); }

  /* Language selector: show on topbar, hide on header */
  .mobile-lang-dropdown{ display: none !important; }

  /* --- Header --- */
  /* ml-auto аль хослуулвал профайл — hamburger зав зай үлдээд үлдэнэ → зөвхөн icons дээр */
  .hamburger { display: flex; margin-left: 0; flex-shrink: 0; }
  .logo {
    flex: 0 0 auto;
    min-width: 0;
  }
  .logo img {
    margin-left: 0 !important;
    height: 52px !important;
    max-width: 144px;
    object-fit: contain;
    display: block;
  }
  /* Mobile header: бүхэлдээ жаахан баруун тийш (зүүн padding +10px) */
  .header { padding: 0 16px 0 26px; height: var(--mobile-header-height); }
  .header { top: var(--topbar-height); }
  .header-inner {
    height: var(--mobile-header-height);
    padding: 0 !important;
    gap: 10px;
    position: relative;
    align-items: center;
    flex-wrap: nowrap;
  }
  .header-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
    position: relative;
    padding-top: 0;
    flex: 0 0 auto;
    min-width: 0;
  }
  /* Drawer дотор байгаа учир баруун дээр давхцуулахгүй */
  .header-icons-shopcart {
    display: none !important;
  }
  .header-icons > a.icon-btn-label[href="shop.html"] {
    display: none !important;
  }

  .nav-mobile-shopcart {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    flex-shrink: 0;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
  }
  .nav-mobile-shopcart__link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 14px;
    border-right: 1px solid #eee;
    transition: background 0.15s;
  }
  .nav-mobile-shopcart__link:last-child {
    border-right: 0;
  }
  .nav-mobile-shopcart__link:active,
  .nav-mobile-shopcart__link:hover {
    background: #f0f4f8;
  }
  .nav-mobile-shopcart__icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .nav-mobile-shopcart__i {
    font-size: 18px;
    color: #8a8989;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
  }

  /* Mobile: аккаунтыг drawer дотор харуулна (header дээр user товч гаргахгүй) */
  #userDropdownWrap {
    display: none !important;
  }

  .nav-drawer-user.nav-drawer-user--guest,
  body.auth-logged-in .nav-drawer-user.nav-drawer-user--logged-in {
    display: block !important;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    background: #fff;
  }

  /* Logged-in */
  body.auth-logged-in .nav-drawer-user.nav-drawer-user--logged-in {
    /* same as guest, but keeps specificity */
  }
  .nav-drawer-user-panel .nav-drawer-user-profile {
    padding: 16px 22px 14px;
    margin: 0;
    border-bottom: 1px solid rgba(26, 26, 46, 0.1);
    background: #fafafa;
  }
  .nav-drawer-user-panel .nav-drawer-user-profile__name {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.25;
  }
  .nav-drawer-user-panel .nav-drawer-user-profile__meta {
    font-size: 12px;
    color: rgba(26, 26, 46, 0.55);
    line-height: 1.35;
  }
  .nav-drawer-user-panel .user-menu-item {
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
  }
  .nav-drawer-user-panel .user-menu-item:last-of-type {
    border-bottom: 0;
  }
  .icon-btn-label {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    border-radius: 10px;
    flex-shrink: 0;
    line-height: 1;
  }
  .icon-btn-label img {
    display: block;
    margin: 0 !important;
  }
  .icon-btn-label i {
    display: block;
    width: auto;
    line-height: 1;
  }
  .hamburger {
    width: 36px;
    height: 36px;
    padding: 10px 7px;
    justify-content: space-between;
    align-items: stretch;
    border-radius: 10px;
    flex-shrink: 0;
  }
  /* Урсгалд орно: профайл | зай | хэл | зай | hamburger (absolute давхцал байхгүй) */
  .mobile-lang-dropdown {
    display: block;
    position: relative;
    right: auto;
    top: auto;
    transform: translateX(-12px);
    flex-shrink: 0;
    align-self: center;
    margin-right: 14px;
  }
  .mobile-lang-selected {
    width: auto;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,0.8);
  }
  .mobile-lang-selected:hover { background: #f5f5f5; }
  .mobile-lang-selected .lang-flag {
    width: 21px;
    height: 15px;
  }
  .mobile-lang-selected .mobile-lang-text {
    font-size: 12px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
    letter-spacing: 0.4px;
    white-space: nowrap;
  }
  .mobile-lang-selected .lang-arrow {
    font-size: 13px;
    color: #777;
    line-height: 1;
  }
  .mobile-lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 128px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.14);
    overflow: hidden;
    z-index: 10001;
  }
  .mobile-lang-menu.open { display: block; }
  .mobile-lang-menu .lang-option {
    width: 100%;
    padding: 9px 12px;
    font-size: 12px;
    gap: 8px;
  }
  .nav-mobile-footer { display: flex; }
  /* Хэл солихыг drawer дотор үл харуулна — зөвхөн header-д (hamburger-ын хажууд) байгаа дропдаун */
  .nav-mobile-lang {
    display: none !important;
  }

  /* --- Mobile nav drawer --- */
  .nav {
    /* Desktop .nav ({ flex:1; justify-content:center }) энд үлдээхээс Home дээр үлдээдэл зай гарна */
    flex: none !important;
    justify-content: flex-start !important;
    align-content: flex-start;
    gap: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: var(--mobile-header-height);
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    height: calc(100vh - var(--mobile-header-height));
    height: calc(var(--viewport-height, 100vh) - var(--mobile-header-height));
    max-height: calc(100vh - var(--mobile-header-height));
    max-height: calc(var(--viewport-height, 100vh) - var(--mobile-header-height));
    background: #fff;
    padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: -4px 0 32px rgba(0,0,0,.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav.open { transform: translateX(0); }

  /* Mobile үед navLinks-ийн anchor-ууд босоогоороо харагддаг болгох */
  #navLinks {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  #navLinks .nav-link {
    display: block;
  }

  .nav-link {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    color: #1a1a2e !important;
    transition: background 0.15s, color 0.15s;
  }
  .nav-link:hover {
    background: #f8f8f8;
    color: var(--primary) !important;
  }
  /* Mobile nav drawer-ийн доод хэсэг */
  .nav-mobile-footer {
    margin-top: 12px;
    padding: 12px 22px 0;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .nav-mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 4px;
  }
  .nav-mobile-contact a {
    font-size: 11px;
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s;
  }
  .nav-mobile-contact a:hover { color: var(--primary); }

  /* Mobile nav - social icons */
  .nav-mobile-social {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }
  .nav-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
  }
  .nav-social-btn:hover { background: #eaeaea; transform: scale(1.1); }
  .nav-social-btn img { width: 17px; height: 17px; }

  /* Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: var(--mobile-header-height) 0 0 0;
    background: rgba(0,0,0,.45);
    z-index: 9998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .nav-overlay.open { display: block; }

  /* --- Header icons --- */
  .icon-btn-text { display: none; }
  .header-inner { padding: 0 16px; }

  /* --- Hero --- */
  .hero { height: 580px; padding: 40px 16px 80px; }
  .hero-search-wrap { max-width: calc(100% - 32px); bottom: 120px; }
  .search-bar {
    max-width: 310px;
    width: 88vw;
  }
  .search-bar input { padding: 10px 18px; font-size: 13px; }
  .search-btn { padding: 10px 14px; }
  .slide-dots { bottom: 80px; }

  /* --- Categories --- */
  .categories { padding: 36px 0 28px; margin-top: -60px; }
  .category-circles {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 20px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
  }
  .category-circles::-webkit-scrollbar { display: none; }
  .cat-item { flex-shrink: 0; }
  .cat-img { width: 110px; height: 110px; }
  .cat-name { font-size: 13px; }
  .cat-count { display: none; }

  /* --- Home tours layout --- */
  .home-tours-layout {
    flex-direction: column;
    gap: 0;
    max-width: 100%;
    padding: 0 16px;
  }
  /* Mobile: sidebar becomes a horizontal scrollable filter strip */
  .home-sidebar {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 0;
    margin-bottom: 4px;
    overflow: visible;
  }
  .home-sidebar-bg,
  .home-sidebar-overlay { display: none !important; }
  .home-sidebar-inner {
    position: static !important;
    padding: 0 !important;
  }
  .home-sidebar-title { display: none; }
  .home-sidebar-menu {
    flex-direction: row !important;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .home-sidebar-menu::-webkit-scrollbar { display: none; }
  .home-sidebar-btn {
    flex-shrink: 0 !important;
    white-space: nowrap;
    background: #e2e5e9 !important;
    color: #444 !important;
    border: none !important;
    font-size: 13px;
    padding: 7px 16px;
    margin-left: 0 !important;
    border-radius: 20px;
  }
  .home-sidebar-btn:hover { background: #d0d4d9 !important; }
  .home-sidebar-btn.active {
    background: #1a1a2e !important;
    color: #fff !important;
    transform: none;
  }
  .tour-cards {
    grid-template-columns: 1fr !important;
    margin-left: 0 !important;
    margin-top: 16px !important;
    width: 100%;
  }

  /* --- Sections --- */
  .tours-section { padding: 32px 0; }
  .recent-section { padding: 32px 0; }
  .reviews-section { padding: 32px 0; }
  .container { padding: 0 16px; }

  /* --- Grids --- */
  .recent-cards { grid-template-columns: repeat(2, 1fr); }
  .review-cards { grid-template-columns: repeat(2, 1fr); }
  .tours-layout { flex-direction: column; }

  /* --- Badge items --- */
  .cat-badges { padding: 16px; gap: 10px; margin-top: 16px; margin-bottom: 16px; }
  .badge-item { padding: 16px 18px; font-size: 13px; }

  /* --- App section --- */
  .app-section { flex-direction: column; text-align: center; padding: 32px 24px; gap: 24px; }
  .app-left { flex-direction: column; align-items: center; }
  .app-left input { min-width: 100%; }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 24px 24px;
  }
  .footer-bottom { padding: 16px 24px; flex-direction: column; text-align: center; gap: 6px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-socials { justify-content: flex-start; }

  /* --- Instagram --- */
  .insta-frames { gap: 20px; }
  .insta-circle { width: 90px; height: 90px; }
}

@media (max-width: 480px) {

  /* --- Header --- */
  .header-inner { height: var(--mobile-header-height); }

  /* --- Hero --- */
  .hero { height: 480px; padding: 28px 16px 70px; }
  .hero-subtitle { font-size: 15px; }
  .slide-dots { bottom: 80px; }
  .slide-arrow { width: 38px; height: 38px; font-size: 20px; }
  .slide-prev { left: 10px; }
  .slide-next { right: 10px; }

  /* --- Categories --- */
  .categories { border-radius: 28px 28px 0 0; padding: 39px 0 16px; margin-top: -60px; }
  .cat-img { width: 84px; height: 84px; }
  .cat-name { font-size: 12px; }

  /* --- Cards --- */
  .tour-cards { grid-template-columns: 1fr !important; }
  /* Recent tours: stacked vertically (one column) */
  .recent-cards {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .review-cards { grid-template-columns: 1fr; }
  .card-img { height: 180px; }
  .card-title { font-size: 15px; }

  /* --- Section headers --- */
  .section-header h2 { font-size: 18px; }

  /* --- CTA --- */
  .cta-banner { height: 360px; }
  .cta-content h2 { font-size: 22px; }
  .cta-content p { font-size: 14px; }
  .cta-btn { padding: 12px 28px; font-size: 14px; }

  /* --- Badge items --- */
  .cat-badges { padding: 12px; gap: 8px; }
  .badge-item { padding: 12px 14px; font-size: 12px; }
  .badge-icon { font-size: 18px; }

  /* --- Instagram --- */
  .insta-circle { width: 72px; height: 72px; }
  .insta-label { font-size: 11px; }
  .insta-frames { gap: 12px; }

  /* --- App --- */
  .app-section { padding: 24px 16px; }
  .store-btn { padding: 10px 20px; }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px 20px;
  }
  .footer-brand { grid-column: auto; }
  .footer-bottom { padding: 14px 20px; }
}

@media (max-width: 480px) {
  .header { padding: 0 10px; }
  .header-inner { gap: 5px; }
  .logo img {
    height: 48px !important;
    max-width: 128px;
  }
  .header-icons { gap: 3px; }
  .mobile-lang-selected {
    width: auto;
    min-width: 96px;
    height: 32px;
    padding: 0 10px;
  }
  .mobile-lang-selected .lang-flag {
    width: 20px;
    height: 14px;
  }
  .icon-btn-label {
    width: 32px;
    height: 32px;
  }
  .icon-btn-label i {
    font-size: 18px !important;
  }
  .icon-btn-label img {
    width: 18px !important;
    height: 18px !important;
  }
  .hamburger {
    width: 34px;
    height: 34px;
    padding: 10px 7px;
  }
  .nav {
    width: 260px;
    max-width: 88vw;
    padding-top: 6px;
  }
  .nav-link {
    font-size: 13px;
    padding: 9px 18px;
  }
  .nav-mobile-footer {
    margin-top: 10px;
    padding: 10px 18px 0;
    gap: 7px;
  }
  .nav-social-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .nav-mobile-contact a {
    font-size: 10px;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ===== TOPBAR ICON BUTTONS ===== */
.top-icon-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity .2s;
}
.top-icon-btn:hover { opacity: .75; }

/* ===== LANG DROPDOWN ===== */
.lang-dropdown {
  position: relative;
  z-index: 10000;
}
.lang-selected {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.8);
  color: #1a1a2e;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-main);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background .2s;
}
.lang-selected:hover { background: white; }
.lang-arrow { font-size: 10px; }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  overflow: hidden;
  min-width: 140px;
  z-index: 100000;
}
.lang-menu.open { display: block; }
.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Noto Sans KR', 'Noto Sans SC', Arial, sans-serif;
  transition: background .15s;
  color: var(--dark);
  display: flex;
  align-items: center;
}
.lang-option:hover { background: #f5f5f5; }
.lang-option.active { background: #fff5e6; color: var(--primary); font-weight: 700; }

/* ===== HEADER ICON LABELS ===== */
.header-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding-top: 6px;
  flex: 0 0 auto;
  flex-shrink: 0;
}
.icon-btn-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--dark);
  transition: background .2s;
}
.icon-btn-label:hover { background: #f5f5f5; }
.icon-btn-img { font-size: 22px; }
.icon-btn-text { font-size: 10px; font-weight: 500; color: var(--text-light); white-space: nowrap; }

/* Нэвтэрсэн: header-т нэр текстийг аль ч уламжлалаас тод (--dark) үлдээх */
.header .user-dropdown-wrap .user-header-name,
.header .user-dropdown-wrap .user-header-trigger .icon-btn-text {
  color: var(--dark) !important;
}
.header .user-dropdown-wrap .user-header-trigger {
  color: var(--dark);
}

/* ===== CAT BADGES ===== */
.cat-badges {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  padding: 24px;
  margin-top: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1.5px solid #eee;
  border-radius: 16px;
  padding: 30px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.badge-item:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.badge-item.is-active { border-color: var(--primary); color: var(--primary); background: rgba(200,134,10,.08); box-shadow: 0 8px 24px rgba(200,134,10,.16); }
.badge-icon { font-size: 24px; }
.badge-kakao { border-color: #FEE500; }
.badge-kakao:hover { border-color: #FEE500; background: #FEE500; color: #1a1a2e; }
.badge-instagram { border-color: #e6683c; }
.badge-instagram:hover { border-color: #e6683c; background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.badge-wechat { border-color: #07C160; }
.badge-wechat:hover { border-color: #07C160; background: #07C160; color: #fff; }

/* ===== FLAG IMAGES ===== */
.lang-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
}

@media (min-width: 901px) {
  .mobile-lang-dropdown { display: none; }
}
.lang-option img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 6px;
}
.lang-selected {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== KAKAO POPUP ===== */
.kakao-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
.kakao-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  z-index: 1001;
  width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.kakao-popup.open,
.kakao-popup-overlay.open { display: block; }
.kakao-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
}
.kakao-popup-close:hover { color: #333; }
.kakao-popup-icon { margin-bottom: 16px; }
.kakao-popup-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.kakao-popup-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
}
.kakao-popup-btn {
  display: block;
  background: #FEE500;
  color: #1a1a2e;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .2s;
}
.kakao-popup-btn:hover { background: #f0d800; }

/* ===== WECHAT QR POPUP ===== */
.wechat-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
.wechat-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px 28px;
  text-align: center;
  z-index: 1001;
  width: 340px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.wechat-popup.open,
.wechat-popup-overlay.open { display: block; }
.wechat-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
}
.wechat-popup-close:hover { color: #333; }
.wechat-popup-icon { margin-bottom: 10px; }
.wechat-popup-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.wechat-popup-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 18px;
  line-height: 1.55;
}
.wechat-popup-qr {
  display: block;
  width: 100%;
  max-width: 268px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.float-kakao {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #FEE500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform .2s;
}
.float-kakao:hover { transform: scale(1.1); }

/* ===== SCROLL TO TOP (global) ===== */
#scrollTopBtn {
  position: fixed;
  bottom: 105px;
  right: 35px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #c8860a, #e6a020);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(200,134,10,.45);
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, box-shadow .25s ease;
}
#scrollTopBtn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#scrollTopBtn:hover {
  background: linear-gradient(135deg,#e6a020,#c8860a);
  box-shadow: 0 6px 28px rgba(200,134,10,.65);
  transform: translateY(-3px) scale(1.08);
}
#scrollTopBtn:active { transform: translateY(0) scale(0.96); }
#scrollTopBtn svg { width: 22px; height: 22px; }

/* When floating chat becomes WeChat icon */
.float-kakao.is-wechat {
  background: #07C160;
}

/* Floating social stack (used for Mongolian language) */
.float-social-wrap {
  position: fixed;
  bottom: 30px;
  right: 35px; /* align under scroll-to-top button */
  z-index: 999;
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.float-social-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform .2s;
}
.float-social-btn:hover { transform: scale(1.08); }
.float-social-btn--ig { background: #fff; }
.float-social-btn--fb { background: #1877F2; color: #fff; }

/* ===== INSTAGRAM STORY FRAMES ===== */
.insta-section {
  background: white;
  padding: 32px 0 70px;
}
.insta-frames {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.insta-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s;
}
.insta-frame:hover { transform: translateY(-6px); }
.insta-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.insta-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ddd center/cover;
  border: 3px solid white;
  overflow: hidden;
}
.insta-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}
/* =========================
   🔥 CLEAN SIDEBAR (FINAL)
========================= */

.home-tours-layout {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
  align-items: flex-start;
}

/* SIDEBAR */
.home-sidebar {
  width: 250px;
  min-width: 300px;
  min-height: 500px;

  border-radius: 0 0px 100px 0;
  overflow: hidden;
  position: relative;

  margin-right: 0;
  z-index: 1;
}

/* BACKGROUND */
.home-sidebar-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.home-sidebar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 180, 200, 0.35),
    rgba(0, 40, 80, 0.85)
  );
  backdrop-filter: blur(4px);
}

/* CONTENT */
.home-sidebar-inner {
  position: relative;
  z-index: 2;
  padding: 24px 16px;
}

.home-sidebar-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

/* BUTTONS */
.home-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-sidebar-btn {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 30px;

  background: rgba(255,255,255,0.2);
  color: white;
  border: none;

  cursor: pointer;
  transition: 0.3s;
}

.home-sidebar-btn:hover {
  background: rgba(255,255,255,0.35);
}

.home-sidebar-btn.active {
  background: #111827;
  transform: scale(1.05);
}
/* SIDEBAR доор */
.home-sidebar {
  z-index: 1;
}

/* CARD дээр */
.tour-cards {
  position: relative;
  z-index: 5;
}
.tour-cards {
  margin-top: 0;
}
.home-sidebar-menu {
  align-items: flex-start; /* зүүн талд шахна */
}

.home-sidebar-btn {
  display: inline-block;
  width: fit-content;      /* текстийн хэмжээгээр */
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 20px;
}
.tour-cards {
  margin-left: 0;
}
.home-sidebar-btn {
  margin-left: 10px;
}
