/* ================================================================
   THE ELEMENT — Premium Mountain Theme Design System
   ================================================================ */

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
  /* Primary Palette — Forest & Mountain */
  --te-green-900: #0d3b2e;
  --te-green-800: #145741;
  --te-green-700: #1a6b4f;
  --te-green-600: #1f7f5e;
  --te-green-500: #27a676;
  --te-green-100: #e6f5ee;
  --te-green-50: #f0faf5;

  /* Accent — Sunrise / Campfire */
  --te-orange-600: #e8850c;
  --te-orange-500: #f0a500;
  --te-orange-400: #f5b731;
  --te-orange-100: #fff4e0;

  /* Earth Tones */
  --te-brown-800: #3d2b1f;
  --te-brown-600: #6b4f3a;
  --te-brown-400: #a0845e;
  --te-brown-100: #f5efe8;

  /* Neutrals */
  --te-charcoal: #1e293b;
  --te-slate-700: #334155;
  --te-slate-500: #64748b;
  --te-slate-400: #94a3b8;
  --te-slate-200: #e2e8f0;
  --te-slate-100: #f1f5f9;
  --te-stone-50: #fafaf9;
  --te-white: #ffffff;

  /* Semantic */
  --te-primary: var(--te-green-700);
  --te-secondary: var(--te-orange-500);
  --te-accent: var(--te-orange-600);
  --te-dark: var(--te-charcoal);
  --te-light: var(--te-stone-50);
  --te-muted: var(--te-slate-500);
  --te-body-bg: var(--te-white);
  --te-body-text: var(--te-slate-700);

  /* Typography */
  --te-font-body: "Poppins", "Inter", system-ui, -apple-system, sans-serif;
  --te-font-heading: "Playfair Display", "Georgia", serif;

  /* Spacing */
  --te-space-xs: 0.25rem;
  --te-space-sm: 0.5rem;
  --te-space-md: 1rem;
  --te-space-lg: 1.5rem;
  --te-space-xl: 2rem;
  --te-space-2xl: 3rem;
  --te-space-3xl: 4rem;
  --te-space-4xl: 6rem;

  /* Radii */
  --te-radius-sm: 0.375rem;
  --te-radius-md: 0.75rem;
  --te-radius-lg: 1rem;
  --te-radius-xl: 1.5rem;
  --te-radius-full: 50%;

  /* Shadows */
  --te-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --te-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.04);
  --te-shadow-lg:
    0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  --te-shadow-xl:
    0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06);
  --te-shadow-glow: 0 0 30px rgba(26, 107, 79, 0.15);

  /* Transition */
  --te-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --te-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --te-transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Navbar */
  --te-navbar-height: 72px;
  --te-topbar-height: 36px;

  /* Scroll progress */
  --scroll-progress: 0%;
}

/* ── Base Reset & Typography ─────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(
    var(--te-navbar-height) + var(--te-topbar-height) + 20px
  );
}

body {
  font-family: var(--te-font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--te-body-text);
  background-color: var(--te-body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--te-font-heading);
  color: var(--te-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--te-space-md);
}

h1,
.h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}
h2,
.h2 {
  font-size: clamp(1.625rem, 4vw, 2.5rem);
}
h3,
.h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: var(--te-space-md);
  color: var(--te-body-text);
}

a {
  color: var(--te-primary);
  text-decoration: none;
  transition: color var(--te-transition-fast);
}
a:hover {
  color: var(--te-green-800);
}

img {
  max-width: 100%;
  height: auto;
}

/* Better list styling for content areas */
.list-unstyled li {
  line-height: 1.7;
}

::selection {
  background: var(--te-green-100);
  color: var(--te-green-900);
}

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--te-primary);
  outline-offset: 3px;
  border-radius: var(--te-radius-sm);
}

/* Smooth border-radius on images inside rounded containers */
.rounded-4 {
  border-radius: var(--te-radius-xl) !important;
}

/* Alert Bootstrap override */
.alert {
  border-radius: var(--te-radius-md);
  border: none;
  font-size: 0.9rem;
}

/* Breadcrumb-like text in badges */
.badge {
  font-weight: 500;
  font-size: 0.78rem;
  padding: 0.4em 0.75em;
  border-radius: var(--te-radius-sm);
}

/* ── Scroll Progress Bar ──────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--scroll-progress);
  height: 3px;
  background: linear-gradient(90deg, var(--te-green-500), var(--te-orange-500));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Top Bar ─────────────────────────────────────────────────── */
.topbar {
  background: var(--te-green-900);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.825rem;
  padding: 0.5rem 0;
  transition:
    transform var(--te-transition),
    opacity var(--te-transition);
}
.topbar a {
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--te-transition-fast);
  text-decoration: none;
}
.topbar a:hover {
  color: var(--te-orange-400);
}
.topbar.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* ── Glassmorphism Navbar ─────────────────────────────────────── */
.navbar-te {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding: 0.5rem 0;
  transition: all var(--te-transition);
  z-index: 1040;
}

/* Ensure list items don't show bullets if Bootstrap fails to reset */
.navbar-te .navbar-nav,
.navbar-te ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0;
}
.navbar-te .nav-item {
  list-style: none;
}

.navbar-te.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  padding: 0.35rem 0;
}

.navbar-te .navbar-brand {
  font-family: var(--te-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--te-green-900);
  letter-spacing: -0.015em;
}
.navbar-te .navbar-brand span {
  color: var(--te-orange-500);
}

.navbar-te .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--te-slate-700);
  padding: 0.6rem 0.9rem;
  position: relative;
  transition: color var(--te-transition-fast);
}
.navbar-te .nav-link:hover,
.navbar-te .nav-link:focus {
  color: var(--te-primary);
}
.navbar-te .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--te-primary);
  transition:
    width var(--te-transition),
    left var(--te-transition);
}
.navbar-te .nav-link:hover::after,
.navbar-te .nav-link.active::after {
  width: 70%;
  left: 15%;
}

.navbar-te .dropdown-menu {
  border: none;
  box-shadow: var(--te-shadow-lg);
  border-radius: var(--te-radius-md);
  padding: 0.5rem;
  margin-top: 0.25rem;
}
.navbar-te .dropdown-item {
  border-radius: var(--te-radius-sm);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  transition: background var(--te-transition-fast);
}
.navbar-te .dropdown-item:hover {
  background: var(--te-green-50);
  color: var(--te-primary);
}

/* Cart badge */
.cart-badge {
  position: relative;
}
.cart-badge__count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--te-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--te-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Hero Section ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* parallax */
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 59, 46, 0.65) 0%,
    rgba(30, 41, 59, 0.55) 50%,
    rgba(13, 59, 46, 0.75) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--te-space-xl);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--te-space-lg);
  color: rgba(255, 255, 255, 0.95);
}

.hero__title {
  font-family: var(--te-font-heading);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: var(--te-space-lg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
}
.hero__title span {
  color: var(--te-orange-400);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: var(--te-space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--te-space-md);
  justify-content: center;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  animation: bounceDown 2s ease-in-out infinite;
}
.hero__scroll-hint i {
  font-size: 1.5rem;
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-te-primary {
  background: linear-gradient(135deg, var(--te-green-700), var(--te-green-600));
  color: #fff;
  border: none;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--te-radius-md);
  position: relative;
  overflow: hidden;
  transition: all var(--te-transition);
  box-shadow: 0 4px 15px rgba(26, 107, 79, 0.25);
}
.btn-te-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 107, 79, 0.35);
  color: #fff;
  background: linear-gradient(135deg, var(--te-green-600), var(--te-green-500));
}
.btn-te-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(26, 107, 79, 0.2);
}

.btn-te-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 0.65rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--te-radius-md);
  transition: all var(--te-transition);
  backdrop-filter: blur(4px);
}
.btn-te-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
  transform: translateY(-2px);
}

.btn-te-orange {
  background: linear-gradient(
    135deg,
    var(--te-orange-600),
    var(--te-orange-500)
  );
  color: #fff;
  border: none;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  border-radius: var(--te-radius-md);
  transition: all var(--te-transition);
  box-shadow: 0 4px 15px rgba(240, 165, 0, 0.25);
}
.btn-te-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240, 165, 0, 0.35);
  color: #fff;
}

/* ── Sections ─────────────────────────────────────────────────── */
.section-te {
  padding: var(--te-space-4xl) 0;
  position: relative;
}

.section-te--gray {
  background: var(--te-slate-100);
}
.section-te--dark {
  background: var(--te-charcoal);
  color: var(--te-slate-200);
}
.section-te--green {
  background: linear-gradient(135deg, var(--te-green-900), var(--te-green-700));
  color: #fff;
}
.section-te--brown {
  background: var(--te-brown-100);
}

.section-te__heading {
  font-family: var(--te-font-heading);
  font-size: clamp(1.625rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--te-dark);
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
}
.section-te--dark .section-te__heading,
.section-te--green .section-te__heading {
  color: #fff;
}

.section-te__heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--te-primary), var(--te-secondary));
  margin-top: 0.75rem;
  border-radius: 2px;
}

.text-center .section-te__heading {
  display: inline-block;
}
.text-center .section-te__heading::after {
  margin-left: auto;
  margin-right: auto;
}

.section-te__subheading {
  font-size: 1.05rem;
  color: var(--te-muted);
  max-width: 600px;
  margin-top: var(--te-space-sm);
}
.text-center .section-te__subheading {
  margin-left: auto;
  margin-right: auto;
}

/* ── SVG Section Dividers ─────────────────────────────────────── */
.section-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.section-divider svg {
  display: block;
  width: 100%;
  height: auto;
}
.section-divider--wave svg {
  fill: var(--te-slate-100);
}
.section-divider--mountain svg {
  fill: var(--te-white);
}
.section-divider--white svg {
  fill: var(--te-white);
}
.section-divider--dark svg {
  fill: var(--te-charcoal);
}

/* ── Premium Cards ────────────────────────────────────────────── */
.card-te {
  background: var(--te-white);
  border: 1px solid var(--te-slate-200);
  border-radius: var(--te-radius-lg);
  overflow: hidden;
  transition: all var(--te-transition);
  box-shadow: var(--te-shadow-sm);
  padding: var(--te-space-lg);
}
/* Only interactive cards hover up — NOT form containers */
.card-te--hover:hover,
a.card-te:hover {
  transform: translateY(-6px);
  box-shadow: var(--te-shadow-xl);
  border-color: transparent;
}
/* Card without padding (for image-based cards) */
.card-te--flush {
  padding: 0;
}

/* Trek Card */
.trek-card-te {
  position: relative;
  border-radius: var(--te-radius-lg);
  overflow: hidden;
  background: var(--te-white);
  box-shadow: var(--te-shadow-md);
  transition: all var(--te-transition);
}
.trek-card-te:hover {
  transform: translateY(-8px);
  box-shadow: var(--te-shadow-xl);
}
.trek-card-te__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.trek-card-te__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.trek-card-te:hover .trek-card-te__img {
  transform: scale(1.08);
}
.trek-card-te__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.trek-card-te__body {
  padding: var(--te-space-lg);
}
.trek-card-te__title {
  font-family: var(--te-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--te-dark);
  margin-bottom: var(--te-space-xs);
}
.trek-card-te__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--te-muted);
  margin-bottom: var(--te-space-md);
}
.trek-card-te__meta i {
  color: var(--te-primary);
}
.trek-card-te__price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--te-primary);
}
.trek-card-te__price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--te-muted);
}

/* Step Cards */
.step-card-te {
  text-align: center;
  padding: var(--te-space-2xl) var(--te-space-lg);
  background: var(--te-white);
  border-radius: var(--te-radius-lg);
  box-shadow: var(--te-shadow-sm);
  transition: all var(--te-transition);
  position: relative;
}
.step-card-te:hover {
  transform: translateY(-4px);
  box-shadow: var(--te-shadow-lg);
}
.step-card-te__number {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--te-radius-full);
  background: linear-gradient(135deg, var(--te-green-700), var(--te-green-500));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--te-space-md);
  box-shadow: 0 4px 15px rgba(26, 107, 79, 0.2);
}
.step-card-te__icon {
  font-size: 2rem;
  color: var(--te-primary);
  margin-bottom: var(--te-space-md);
}
.step-card-te__title {
  font-family: var(--te-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--te-space-sm);
}

/* Review Card */
.review-card-te {
  background: var(--te-white);
  border-radius: var(--te-radius-lg);
  padding: var(--te-space-xl);
  box-shadow: var(--te-shadow-sm);
  transition: all var(--te-transition);
  border-left: 4px solid transparent;
  position: relative;
}
.review-card-te:hover {
  box-shadow: var(--te-shadow-lg);
  border-left-color: var(--te-secondary);
}
.review-card-te__stars {
  color: var(--te-orange-500);
  font-size: 0.9rem;
  margin-bottom: var(--te-space-sm);
}
.review-card-te__quote {
  font-style: italic;
  color: var(--te-slate-700);
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}
.review-card-te__quote::before {
  content: "\201C";
  font-family: var(--te-font-heading);
  font-size: 3rem;
  color: var(--te-green-100);
  position: absolute;
  top: -0.75rem;
  left: -0.25rem;
  line-height: 1;
}
.review-card-te__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--te-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--te-green-700), var(--te-green-500));
  flex-shrink: 0;
}
.review-card-te__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--te-dark);
}
.review-card-te__origin {
  font-size: 0.78rem;
  color: var(--te-muted);
}

/* Contact Card */
.contact-card-te {
  text-align: center;
  padding: var(--te-space-2xl) var(--te-space-lg);
  background: var(--te-white);
  border-radius: var(--te-radius-lg);
  box-shadow: var(--te-shadow-sm);
  transition: all var(--te-transition);
}
.contact-card-te:hover {
  transform: translateY(-4px);
  box-shadow: var(--te-shadow-lg);
}
.contact-card-te__icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--te-radius-lg);
  background: var(--te-green-50);
  color: var(--te-primary);
  font-size: 1.5rem;
  margin-bottom: var(--te-space-md);
  transition: all var(--te-transition);
}
.contact-card-te:hover .contact-card-te__icon {
  background: var(--te-primary);
  color: #fff;
}

/* ── Gallery Grid ─────────────────────────────────────────────── */
.gallery-te {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--te-space-md);
}
.gallery-te__item {
  border-radius: var(--te-radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
}
.gallery-te__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-te__item:hover img {
  transform: scale(1.1);
}
.gallery-te__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 59, 46, 0);
  transition: background var(--te-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-te__item:hover::after {
  background: rgba(13, 59, 46, 0.25);
}
.gallery-te__item:nth-child(1) {
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-te__item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

/* ── Lightbox Modal ───────────────────────────────────────────── */
.lightbox-modal .modal-dialog {
  max-width: 90vw;
}
.lightbox-modal .modal-content {
  background: rgba(0, 0, 0, 0.95);
  border: none;
  border-radius: var(--te-radius-lg);
}
.lightbox-modal .btn-close {
  filter: invert(1);
  opacity: 0.8;
}
.lightbox-modal img {
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--te-radius-sm);
}

/* ── Compare Table ────────────────────────────────────────────── */
.compare-table-te {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--te-radius-md);
  overflow: hidden;
  box-shadow: var(--te-shadow-sm);
}
.compare-table-te thead {
  background: linear-gradient(135deg, var(--te-green-900), var(--te-green-700));
  color: #fff;
}
.compare-table-te thead th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.85rem;
  border: none;
}
.compare-table-te tbody td {
  padding: 0.85rem;
  vertical-align: middle;
  font-size: 0.9rem;
  border-color: var(--te-slate-200);
}
.compare-table-te tbody tr {
  transition: background var(--te-transition-fast);
}
.compare-table-te tbody tr:hover {
  background: var(--te-green-50);
}

/* ── Timeline (Itinerary) ─────────────────────────────────────── */
.timeline-te {
  position: relative;
  padding-left: 2rem;
}
.timeline-te::before {
  content: "";
  position: absolute;
  top: 0;
  left: 7px;
  width: 3px;
  height: 100%;
  background: var(--te-slate-200);
  border-radius: 2px;
}
.timeline-te__progress {
  position: absolute;
  top: 0;
  left: 7px;
  width: 3px;
  height: 0;
  background: linear-gradient(
    180deg,
    var(--te-green-500),
    var(--te-orange-500)
  );
  border-radius: 2px;
  transition: height 0.4s ease;
}
.timeline-te__item {
  position: relative;
  padding-bottom: var(--te-space-2xl);
  opacity: 0.4;
  transition: opacity var(--te-transition-slow);
}
.timeline-te__item.is-active {
  opacity: 1;
}
.timeline-te__item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 17px;
  height: 17px;
  background: var(--te-white);
  border: 3px solid var(--te-slate-200);
  border-radius: var(--te-radius-full);
  z-index: 1;
  transition: all var(--te-transition);
}
.timeline-te__item.is-active::before {
  background: var(--te-primary);
  border-color: var(--te-primary);
  box-shadow: 0 0 0 5px rgba(26, 107, 79, 0.15);
}
.timeline-te__day {
  font-family: var(--te-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--te-dark);
  margin-bottom: 0.35rem;
}

/* ── Trek Detail Hero ──────────────────────────────────────────── */
.trek-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  margin-bottom: 0;
}
.trek-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.trek-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(13, 59, 46, 0.85) 0%,
    rgba(13, 59, 46, 0.35) 55%,
    transparent 100%
  );
  z-index: 1;
}
.trek-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--te-space-3xl) 0 var(--te-space-2xl);
  width: 100%;
}
.trek-hero__content h1 {
  color: #fff;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}
.trek-hero__content .badge {
  font-size: 0.78rem;
  padding: 0.45em 0.85em;
}

/* ── Tab Styles ───────────────────────────────────────────────── */
.nav-tabs-te {
  display: flex;
  border: none;
  gap: 0.25rem;
  background: var(--te-slate-100);
  border-radius: var(--te-radius-md);
  padding: 0.3rem;
  list-style: none;
  margin: 0;
}
.nav-tabs-te .nav-link {
  border: none;
  border-radius: var(--te-radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--te-slate-700);
  padding: 0.6rem 1.2rem;
  transition: all var(--te-transition-fast);
  text-decoration: none;
}
.nav-tabs-te .nav-link:hover {
  color: var(--te-primary);
  background: rgba(255, 255, 255, 0.6);
}
.nav-tabs-te .nav-link.active {
  background: var(--te-white);
  color: var(--te-primary);
  box-shadow: var(--te-shadow-sm);
  font-weight: 600;
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer-te {
  background: var(--te-charcoal);
  color: var(--te-slate-400);
  padding: var(--te-space-3xl) 0 0;
}
.footer-te ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0;
}
.footer-te h5 {
  color: var(--te-white);
  font-family: var(--te-font-heading);
  font-size: 1.15rem;
  margin-bottom: var(--te-space-md);
  letter-spacing: 0.02em;
}
.footer-te a {
  color: var(--te-slate-400);
  text-decoration: none;
  display: inline-block;
  transition: all var(--te-transition-fast);
}
.footer-te a:hover {
  color: var(--te-orange-400);
  transform: translateX(4px);
}
.footer-te__brand {
  font-family: var(--te-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--te-white);
  margin-bottom: var(--te-space-md);
}
.footer-te__brand span {
  color: var(--te-orange-400);
}
.footer-te__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--te-space-lg) 0;
  margin-top: var(--te-space-3xl);
  font-size: 0.85rem;
}
.footer-te__social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--te-radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--te-slate-400);
  font-size: 1rem;
  transition: all var(--te-transition);
}
.footer-te__social a:hover {
  background: var(--te-primary);
  color: #fff;
  transform: translateY(-3px);
  padding-left: 0;
}

/* ── Info Stat Boxes ──────────────────────────────────────────── */
.stat-box {
  border: 1px solid var(--te-slate-200);
  border-radius: var(--te-radius-md);
  padding: var(--te-space-lg);
  text-align: center;
  transition: all var(--te-transition);
  background: var(--te-white);
}
.stat-box:hover {
  border-color: var(--te-primary);
  box-shadow: var(--te-shadow-md);
}
.stat-box__icon {
  font-size: 2rem;
  color: var(--te-primary);
  margin-bottom: var(--te-space-sm);
}

/* ── Cart Table ───────────────────────────────────────────────── */
.cart-table-te {
  border-collapse: separate;
  border-spacing: 0;
}
.cart-table-te thead th {
  background: var(--te-slate-100);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--te-slate-700);
  border-bottom: 2px solid var(--te-slate-200);
  padding: 0.75rem;
}
.cart-table-te tbody td {
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
  border-color: var(--te-slate-100);
}
.cart-table-te img {
  width: 80px;
  height: 55px;
  object-fit: cover;
  border-radius: var(--te-radius-sm);
}

/* ── Success Page ─────────────────────────────────────────────── */
.success-icon-te {
  width: 100px;
  height: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--te-radius-full);
  background: var(--te-green-50);
  color: var(--te-primary);
  font-size: 3rem;
  animation: successPop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Accordion Premium ────────────────────────────────────────── */
.accordion-te {
  border-radius: var(--te-radius-md);
  overflow: hidden;
}
.accordion-te .accordion-item {
  border: none;
  border-bottom: 1px solid var(--te-slate-200);
  background: transparent;
}
.accordion-te .accordion-item:last-child {
  border-bottom: none;
}
.accordion-te .accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--te-dark);
  padding: 1rem 0;
  background: transparent;
  box-shadow: none;
}
.accordion-te .accordion-button:not(.collapsed) {
  color: var(--te-primary);
  background: transparent;
  box-shadow: none;
}
.accordion-te .accordion-button::after {
  width: 1rem;
  height: 1rem;
  background-size: 1rem;
}
.accordion-te .accordion-body {
  padding: 0 0 1rem;
  color: var(--te-body-text);
  line-height: 1.7;
}

/* ── Form Styles ──────────────────────────────────────────────── */
.form-control,
.form-select {
  border-radius: var(--te-radius-sm);
  border: 1px solid var(--te-slate-200);
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  transition:
    border-color var(--te-transition-fast),
    box-shadow var(--te-transition-fast);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--te-green-500);
  box-shadow: 0 0 0 0.2rem rgba(26, 107, 79, 0.15);
}
.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--te-slate-700);
  margin-bottom: 0.35rem;
}
.form-check-input:checked {
  background-color: var(--te-primary);
  border-color: var(--te-primary);
}

/* ── Badges ───────────────────────────────────────────────────── */
.badge-difficulty-easy {
  background: #dcfce7 !important;
  color: #166534 !important;
}
.badge-difficulty-moderate {
  background: var(--te-orange-100) !important;
  color: #92400e !important;
}
.badge-difficulty-hard {
  background: #fee2e2 !important;
  color: #991b1b !important;
}
.badge-difficulty-extreme {
  background: #fce4ec !important;
  color: #880e4f !important;
}

/* ── Map Embed ────────────────────────────────────────────────── */
.map-embed {
  border-radius: var(--te-radius-lg);
  overflow: hidden;
  box-shadow: var(--te-shadow-md);
}
.map-embed iframe {
  display: block;
}

/* ── Misc Helpers ─────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--te-green-500),
    var(--te-orange-500)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a6b4f' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Toast Enhancement ────────────────────────────────────────── */
.toast-container-te {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9900;
}

/* ── Tables inside cards ──────────────────────────────────────── */
.card-te .table {
  margin-bottom: 0;
}
.card-te .table thead th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--te-slate-700);
  font-weight: 600;
  border-bottom-width: 2px;
}
.card-te .table td {
  vertical-align: middle;
  font-size: 0.9rem;
}
.card-te .table tfoot td {
  border-top: 2px solid var(--te-slate-200);
}

/* ── Empty State ──────────────────────────────────────────────── */
.text-center .display-1.text-muted {
  color: var(--te-slate-200) !important;
}

/* ── Input Group inside cart ──────────────────────────────────── */
.input-group .form-control {
  text-align: center;
}

/* ── Section divider line between items ───────────────────────── */
.border-bottom {
  border-color: var(--te-slate-100) !important;
}

/* ── Responsive ───────────────────────────────────────────────── */

/* ── Large Tablet & Below (≤991px) ────────────────────────────── */
@media (max-width: 991.98px) {
  :root {
    --te-navbar-height: 64px;
  }

  .section-te {
    padding: var(--te-space-3xl) 0;
  }

  /* Gallery — 2 cols on tablet */
  .gallery-te {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-te__item:nth-child(1) {
    grid-row: span 1;
  }
  .gallery-te__item--wide {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  /* Fix parallax on touch devices */
  .hero__bg {
    background-attachment: scroll;
  }

  /* Hide topbar, show mobile lang in nav instead */
  .topbar {
    display: none;
  }

  /* Navbar mobile collapse */
  .navbar-te .navbar-collapse {
    background: var(--te-white);
    border-radius: var(--te-radius-md);
    box-shadow: var(--te-shadow-lg);
    padding: var(--te-space-md);
    margin-top: var(--te-space-sm);
    max-height: 80vh;
    overflow-y: auto;
  }
  .navbar-te .nav-link::after {
    display: none;
  }
  .navbar-te .nav-link {
    padding: 0.75rem var(--te-space-md);
    border-radius: var(--te-radius-sm);
    font-size: 0.95rem;
  }
  .navbar-te .nav-link:hover,
  .navbar-te .nav-link.active {
    background: var(--te-green-50);
  }
  .navbar-te .dropdown-menu {
    box-shadow: none;
    border: none;
    padding-left: var(--te-space-md);
    background: var(--te-slate-100);
    border-radius: var(--te-radius-sm);
  }

  /* Sticky sidebar release on mobile */
  .sticky-top {
    position: static !important;
  }

  /* Trek detail sidebar — give visual separation */
  .col-lg-4 > .card-te[style*="top:100px"] {
    position: static !important;
    margin-top: var(--te-space-lg);
  }

  /* Compare table — ensure scroll works */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  /* Review cards — 2 cols */
  .review-card-te {
    margin-bottom: 0;
  }

  /* Contact form full width */
  .col-lg-8 .card-te form .col-md-6 {
    flex: 0 0 50%;
  }
}

/* ── Tablet & Phone (≤767px) ──────────────────────────────────── */
@media (max-width: 767.98px) {
  :root {
    --te-navbar-height: 60px;
  }

  .section-te {
    padding: var(--te-space-2xl) 0;
  }

  /* Hero — shorter and better text scaling */
  .hero {
    min-height: 90vh;
    min-height: 90svh; /* safe viewport height for mobile browsers */
  }
  .hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: -0.02em;
  }
  .hero__content {
    padding: var(--te-space-lg);
  }
  .hero__badge {
    font-size: 0.72rem;
    padding: 0.3rem 1rem;
  }
  .hero__subtitle {
    font-size: 0.95rem;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__scroll-hint {
    bottom: 1rem;
  }

  /* Trek hero — shorter */
  .trek-hero {
    min-height: 35vh;
  }
  .trek-hero__content h1 {
    font-size: 1.75rem;
  }
  .trek-hero__content .d-flex.gap-3 {
    gap: 0.4rem !important;
  }
  .trek-hero__content .badge {
    font-size: 0.7rem;
    padding: 0.3em 0.6em;
  }

  /* Section headings */
  .section-te__heading {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  /* Cards — reduce padding for screen space */
  .card-te {
    padding: var(--te-space-md);
  }
  .step-card-te {
    padding: var(--te-space-lg) var(--te-space-md);
  }
  .step-card-te__number {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }
  .review-card-te {
    padding: var(--te-space-lg);
  }
  .contact-card-te {
    padding: var(--te-space-lg) var(--te-space-md);
  }
  .contact-card-te__icon {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  /* Buttons — better touch targets (min 44px) */
  .btn {
    min-height: 44px;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
  .btn-sm {
    min-height: 38px;
  }
  .btn-lg {
    min-height: 50px;
    font-size: 1rem;
  }

  /* ── Cart mobile card layout ── */
  .cart-table-te thead {
    display: none;
  }
  .cart-table-te tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    padding: var(--te-space-md);
    border-bottom: 1px solid var(--te-slate-200);
    background: var(--te-white);
    border-radius: var(--te-radius-sm);
    margin-bottom: var(--te-space-sm);
    box-shadow: var(--te-shadow-sm);
    align-items: center;
  }
  .cart-table-te tbody td {
    border: none;
    padding: 0;
  }
  /* Trek name + image — full row */
  .cart-table-te tbody td:first-child {
    grid-column: 1 / -1;
  }
  .cart-table-te tbody td:first-child .d-flex {
    gap: 0.75rem !important;
  }
  .cart-table-te tbody td:first-child img {
    width: 64px;
    height: 44px;
    border-radius: var(--te-radius-sm);
  }
  /* Price & permit — inline with labels */
  .cart-table-te tbody td:nth-child(2)::before {
    content: "Price: ";
    font-size: 0.78rem;
    color: var(--te-muted);
  }
  .cart-table-te tbody td:nth-child(3)::before {
    content: "Permit: ";
    font-size: 0.78rem;
    color: var(--te-muted);
  }
  .cart-table-te tbody td:nth-child(5)::before {
    content: "Subtotal: ";
    font-size: 0.78rem;
    color: var(--te-muted);
  }
  .cart-table-te tbody td:nth-child(5) {
    font-size: 1rem;
  }
  /* Qty controls */
  .cart-table-te tbody td:nth-child(4) {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .cart-table-te tbody td:nth-child(4) .input-group {
    max-width: 140px;
  }
  /* Remove button */
  .cart-table-te tbody td:last-child {
    position: absolute;
    right: var(--te-space-md);
    top: var(--te-space-md);
  }
  .cart-table-te tbody tr {
    position: relative;
  }

  /* Cart totals — full width */
  .row.justify-content-end > .col-md-5,
  .row.justify-content-end > .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Compare table mobile hint */
  .compare-table-te {
    font-size: 0.82rem;
  }
  .table-responsive {
    position: relative;
  }
  .table-responsive::after {
    content: "← scroll →";
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--te-muted);
    padding-top: 0.5rem;
  }

  /* Tab pills — horizontal scroll */
  .nav-tabs-te {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.15rem;
  }
  .nav-tabs-te::-webkit-scrollbar {
    display: none;
  }
  .nav-tabs-te .nav-link {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.5rem 0.9rem;
  }

  /* Checkout — order summary visible first on mobile (handled by Bootstrap order classes) */

  /* Checkout order summary card — not sticky */
  .col-lg-5 > .card-te {
    margin-bottom: var(--te-space-lg);
  }

  /* Homestay amenities grid */
  #homestay .row.g-3 .col-6 .d-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem !important;
  }

  /* Map section — full width map */
  #maps iframe {
    height: 280px !important;
  }

  /* Place-info cards in maps — horizontal scroll or stack */
  #maps .d-flex.flex-column.gap-3 {
    gap: var(--te-space-sm) !important;
  }

  /* Footer — centered layout */
  .footer-te {
    text-align: center;
  }
  .footer-te p[style*="max-width"] {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-te__brand {
    margin-bottom: var(--te-space-sm);
  }
  .footer-te__social {
    justify-content: center;
  }
  .footer-te__social a {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  .footer-te__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .footer-te h5 {
    font-size: 1.05rem;
    margin-top: var(--te-space-sm);
  }

  /* Lightbox — full screen on mobile */
  .lightbox-modal .modal-dialog {
    max-width: 100vw;
    margin: 0.5rem;
  }
  .lightbox-modal img {
    max-height: 75vh;
  }

  /* Success page icon smaller */
  .success-icon-te {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  /* Accordion touch-friendly */
  .accordion-te .accordion-button {
    padding: 1rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Timeline padding */
  .timeline-te {
    padding-left: 1.5rem;
  }
  .timeline-te__item::before {
    left: -1.5rem;
    width: 14px;
    height: 14px;
  }
}

/* ── Small Phone (≤575px) ─────────────────────────────────────── */
@media (max-width: 575.98px) {
  .section-te {
    padding: var(--te-space-xl) 0;
  }

  /* Gallery — tighter grid */
  .gallery-te {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .gallery-te__item {
    border-radius: var(--te-radius-sm);
  }
  .gallery-te__item--wide {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  /* Section headings tighter */
  .section-te__heading {
    font-size: 1.35rem;
    padding-bottom: 0.75rem;
  }
  .section-te__heading::after {
    width: 40px;
    height: 2px;
  }
  .section-te__subheading {
    font-size: 0.88rem;
  }

  /* Hero fine-tuning */
  .hero__title {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }
  .hero__subtitle {
    font-size: 0.88rem;
  }
  .hero__badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.85rem;
  }

  /* Steps — 2 per row */
  .step-card-te {
    padding: var(--te-space-md);
  }
  .step-card-te__number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .step-card-te__icon {
    font-size: 1.5rem;
  }
  .step-card-te__title {
    font-size: 0.95rem;
  }

  /* Trek card body */
  .trek-card-te__body {
    padding: var(--te-space-md);
  }
  .trek-card-te__title {
    font-size: 1.05rem;
  }
  .trek-card-te__meta {
    gap: 0.5rem;
    font-size: 0.75rem;
  }
  .trek-card-te__price {
    font-size: 1.15rem;
  }
  .trek-card-te__price small {
    font-size: 0.7rem;
  }

  /* Trek card buttons — stack if tiny */
  .trek-card-te .d-flex.gap-2 {
    flex-direction: column;
    gap: 0.35rem !important;
  }
  .trek-card-te .d-flex.gap-2 .btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem;
  }

  /* Trek detail stat boxes */
  .stat-box {
    padding: var(--te-space-md);
  }
  .stat-box__icon {
    font-size: 1.5rem;
  }

  /* Review cards */
  .review-card-te__quote {
    font-size: 0.88rem;
    padding-left: 1.2rem;
  }
  .review-card-te__quote::before {
    font-size: 2.2rem;
  }

  /* Checkout form spacing */
  .checkout .card-te + .card-te {
    margin-top: var(--te-space-md);
  }

  /* Navbar brand logo smaller */
  .navbar-te .navbar-brand img {
    height: 40px !important;
  }

  /* Footer social icons */
  .footer-te__social a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Footer logo smaller */
  .footer-te .col-lg-4 img {
    height: 48px !important;
  }

  /* Smaller text in footer lists */
  .footer-te ul.small li {
    font-size: 0.82rem;
  }

  /* Toast position */
  .toast-container-te {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }
}

/* ── Extra Small (≤399px — very narrow phones) ────────────────── */
@media (max-width: 399.98px) {
  .hero__title {
    font-size: 1.6rem;
  }
  .hero__subtitle {
    font-size: 0.82rem;
  }
  .hero__badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.7rem;
  }
  .section-te__heading {
    font-size: 1.2rem;
  }

  /* Stack contact cards fully */
  .contact-card-te {
    padding: var(--te-space-md);
  }

  /* Card buttons — reduce padding */
  .btn-te-primary,
  .btn-te-orange {
    padding: 0.55rem 1.2rem;
    font-size: 0.88rem;
  }

  /* Gallery — single column for very small */
  .gallery-te {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .gallery-te__item--wide {
    grid-column: span 1;
    aspect-ratio: 16 / 9;
  }

  /* Trek card — price row stacked */
  .trek-card-te .d-flex.justify-content-between {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ── Landscape mode on phones ─────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero__title {
    font-size: 2rem;
  }
  .hero__subtitle {
    font-size: 0.9rem;
    margin-bottom: var(--te-space-md);
  }
  .hero__scroll-hint {
    display: none;
  }
  .trek-hero {
    min-height: 60vh;
  }
}

/* ── Large Desktop (≥1400px) — wider containers ───────────────── */
@media (min-width: 1400px) {
  .hero__title {
    font-size: 4.5rem;
  }
  .hero__subtitle {
    font-size: 1.3rem;
  }
  .gallery-te {
    gap: var(--te-space-lg);
  }
}

/* ── Touch device enhancements ────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover transforms that feel jumpy on touch */
  .trek-card-te:hover {
    transform: none;
  }
  .step-card-te:hover {
    transform: none;
  }
  .contact-card-te:hover {
    transform: none;
  }
  .review-card-te:hover {
    border-left-color: transparent;
  }
  .footer-te__social a:hover {
    transform: none;
  }
  .footer-te a:hover {
    transform: none;
  }
  /* Keep card shadows on tap instead */
  .trek-card-te:active {
    box-shadow: var(--te-shadow-lg);
  }
  .contact-card-te:active .contact-card-te__icon {
    background: var(--te-primary);
    color: #fff;
  }
}

/* ── Print ────────────────────────────────────────────────────── */
@media print {
  .topbar,
  .navbar-te,
  .hero__scroll-hint,
  .scroll-progress,
  .footer-te,
  .toast-container-te {
    display: none !important;
  }
  .section-te {
    padding: 1rem 0;
  }
  .card-te {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
