/* ============================================
   NepalIndo Tours — Premium Travel Theme
   Warm, hand-crafted, animated
   ============================================ */

:root {
  --bg: #faf6ef;
  --bg-alt: #f3ece0;
  --bg-card: #ffffff;
  --paper: #fffdf8;

  --ink: #1a2233;
  --ink-soft: #3d4759;
  --ink-mute: #7a8294;
  --ink-faint: #b6bcc7;
  --line: #e8e1d3;
  --line-strong: #d8cfbd;

  --brand: #c14b27;
  --brand-dark: #a13d1c;
  --brand-soft: #f8e4d8;
  --brand-glow: rgba(193, 75, 39, 0.15);

  --forest: #1f4d3d;
  --forest-soft: #d9e5df;
  --gold: #c8932c;
  --sky: #4a90c2;

  --ok: #2f8a4d;
  --warn: #c87b1c;
  --err: #c44545;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;

  --shadow-1: 0 1px 2px rgba(26, 34, 51, 0.06);
  --shadow-2: 0 4px 20px rgba(26, 34, 51, 0.08);
  --shadow-3: 0 20px 50px -20px rgba(26, 34, 51, 0.18);
  --shadow-4: 0 30px 80px -30px rgba(193, 75, 39, 0.4);

  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Decorative paper texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(193, 75, 39, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(31, 77, 61, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer, section {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* ============ TYPOGRAPHY ============ */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--sans);
}

p {
  color: var(--ink-soft);
}

.serif { font-family: var(--serif); }
.italic { font-style: italic; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brand);
}

.eyebrow.center::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brand);
}

.brand-text { color: var(--brand); }
.forest-text { color: var(--forest); }

/* ============ LAYOUT ============ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
}

/* ============ NAVBAR ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo .accent {
  color: var(--brand);
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.93rem;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--brand);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: 4px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.nav-toggle:hover {
  background: rgba(0,0,0,0.05);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
  display: block;
}

.nav-toggle .bar {
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle.open .bar1 {
  transform: rotate(45deg) translate(2px, 7px);
}
.nav-toggle.open .bar2 {
  opacity: 0;
}
.nav-toggle.open .bar3 {
  transform: rotate(-45deg) translate(2px, -7px);
}

@media (max-width: 960px) {
  .nav-inner { padding: 14px 18px; position: relative; }
  .logo { font-size: 1.15rem; }
  .logo-mark { width: 32px; height: 32px; }

  .nav-toggle { display: block; }

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(26, 34, 51, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
  }
  .nav-links.open {
    max-height: 460px;
    padding: 8px 0;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    width: 100%;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a::after { display: none; }

  .nav-cta .btn-secondary,
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { padding: 9px 16px; font-size: 0.85rem; }
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px -8px rgba(193, 75, 39, 0.6);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: white;
  border-color: var(--ink);
}

.btn-forest {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}

.btn-forest:hover {
  background: #163a2e;
  transform: translateY(-1.5px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 12px 14px;
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-link {
  background: transparent;
  color: var(--brand);
  padding: 8px 0;
  border-radius: 0;
  border-bottom: 1.5px solid var(--brand);
}

.btn-link:hover {
  color: var(--brand-dark);
  transform: translateX(3px);
}

.btn-block { width: 100%; }

.btn-lg {
  padding: 16px 30px;
  font-size: 1rem;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  padding: 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(26, 34, 51, 0.55) 0%, rgba(26, 34, 51, 0.25) 50%, rgba(26, 34, 51, 0.65) 100%),
    url('https://images.unsplash.com/photo-1564507592333-c60657eea523?w=1600&q=70&fm=webp&fit=crop&auto=format');
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: kenburns 20s ease-out infinite alternate;
}

@media (max-width: 768px) {
  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(26, 34, 51, 0.55) 0%, rgba(26, 34, 51, 0.25) 50%, rgba(26, 34, 51, 0.65) 100%),
      url('https://images.unsplash.com/photo-1564507592333-c60657eea523?w=900&q=70&fm=webp&fit=crop&auto=format');
  }
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 120px 24px;
  text-align: center;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.hero-content .eyebrow {
  color: rgba(255, 255, 255, 0.95);
}

.hero-content .eyebrow::before,
.hero-content .eyebrow::after {
  background: rgba(255, 255, 255, 0.7);
}

.hero-content h1 {
  color: white;
  margin: 28px 0 24px;
}

.hero-content h1 em {
  font-style: italic;
  color: #ffd9b8;
  font-weight: 400;
}

.hero-content .lead {
  font-size: 1.18rem;
  max-width: 660px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 64px;
  justify-content: center;
  margin-top: 80px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  color: white;
}

.hero-stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  display: block;
  color: #ffd9b8;
}

.hero-stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 4px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  text-align: center;
}

.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: white;
  margin: 8px auto 0;
  animation: scroll-bounce 2s infinite ease-in-out;
}

@keyframes scroll-bounce {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.4); transform-origin: top; }
}

/* ============ SECTION HEADER ============ */

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-head .eyebrow {
  margin-bottom: 20px;
}

.section-head h2 {
  margin-bottom: 18px;
}

.section-head p {
  font-size: 1.08rem;
}

/* ============ TOUR CARDS ============ */

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 960px) {
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .tour-grid { grid-template-columns: 1fr; }
}

.tour-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3);
}

.tour-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #d4a574, #c14b27);
}

.tour-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-card:hover .tour-img img {
  transform: scale(1.08);
}

.tour-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 34, 51, 0.7));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: white;
}

.tour-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}

.tour-tag.featured {
  background: var(--brand);
  color: white;
}

.tour-body {
  padding: 22px 22px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tour-meta {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-bottom: 10px;
}

.tour-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tour-meta svg {
  width: 14px;
  height: 14px;
}

.tour-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.tour-card .tour-desc {
  font-size: 0.92rem;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tour-price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
}

.tour-price small {
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-weight: 400;
  display: block;
  margin-top: -2px;
}

.tour-card .btn-link {
  font-size: 0.88rem;
}

/* ============ FEATURE / WHY US ============ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  text-align: center;
  padding: 32px 20px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-soft);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--brand);
  transform: scale(1.08) rotate(-4deg);
}

.feature-card:hover .feature-icon svg {
  color: white;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--brand);
  transition: color 0.3s ease;
}

.feature-card h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.93rem;
}

/* ============ DESTINATIONS GRID ============ */

.destination-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 18px;
}

.destination {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--ink);
}

.destination:nth-child(1) { grid-row: span 2; }

.destination img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.destination::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 34, 51, 0.1) 0%, rgba(26, 34, 51, 0.7) 100%);
  pointer-events: none;
  transition: background 0.3s ease;
}

.destination:hover img {
  transform: scale(1.06);
}

.destination:hover::after {
  background: linear-gradient(180deg, rgba(193, 75, 39, 0.2) 0%, rgba(193, 75, 39, 0.6) 100%);
}

.destination-label {
  position: absolute;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  color: white;
}

.destination-label h4 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: white;
}

.destination-label span {
  font-size: 0.82rem;
  opacity: 0.9;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .destination-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .destination:nth-child(1) { grid-row: auto; grid-column: span 2; }
}

/* ============ TESTIMONIAL ============ */

.testimonials {
  background: var(--bg-alt);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

@media (max-width: 600px) {
  .testi-grid { grid-template-columns: 1fr; }
}

.testi {
  background: var(--paper);
  padding: 32px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  position: relative;
}

.testi::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--brand-soft);
  line-height: 1;
}

.testi-stars {
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.testi-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.testi-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.93rem;
}

.testi-location {
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* ============ CTA BANNER ============ */

.cta-banner {
  background:
    linear-gradient(115deg, rgba(31, 77, 61, 0.92), rgba(193, 75, 39, 0.82)),
    url('https://images.unsplash.com/photo-1606117331085-5760e3b58520?w=1600&q=80&auto=format');
  background-size: cover;
  background-position: center;
  border-radius: var(--r-2xl);
  padding: 72px 48px;
  text-align: center;
  color: white;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.cta-banner .btn-secondary {
  background: white;
  color: var(--ink);
}

.cta-banner .btn-secondary:hover {
  background: var(--brand);
  color: white;
  border-color: white;
}

/* ============ PAGE HEADER ============ */

.page-head {
  padding: 100px 0 60px;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
}

.page-head p {
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ============ TOUR DETAIL ============ */

.tour-hero {
  position: relative;
  height: 60vh;
  min-height: 460px;
  overflow: hidden;
}

.tour-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 34, 51, 0.2) 0%, rgba(26, 34, 51, 0.7) 100%);
}

.tour-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  color: white;
  padding: 48px 0;
}

.tour-hero-content h1 {
  color: white;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.tour-hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.95rem;
}

.tour-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.95;
}

.tour-detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
}

@media (max-width: 960px) {
  .tour-detail { grid-template-columns: 1fr; }
}

.tour-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 16px;
}

.tour-content h2:first-child {
  margin-top: 0;
}

.tour-content p,
.tour-content li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.tour-content ul {
  list-style: none;
  margin: 16px 0;
}

.tour-content ul li {
  position: relative;
  padding: 8px 0 8px 30px;
}

.tour-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c14b27' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.itinerary-day {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.itinerary-day:first-of-type { border-top: 0; }

.day-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--brand);
  font-weight: 500;
}

.day-num small {
  display: block;
  font-size: 0.7rem;
  font-family: var(--sans);
  color: var(--ink-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.day-content h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.tour-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-2);
}

.tour-sidebar .price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.tour-sidebar .price-row .from {
  font-size: 0.82rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tour-sidebar .price {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--ink);
}

.tour-sidebar .price-per {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-bottom: 24px;
}

.sidebar-divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

.sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.92rem;
}

.sidebar-row .label {
  color: var(--ink-mute);
}

.sidebar-row .val {
  font-weight: 600;
  color: var(--ink);
}

/* Photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.gallery-img {
  aspect-ratio: 1 / 1;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-img:hover img {
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ============ FORMS ============ */

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
  background: white;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-faint);
}

.form-error {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fde6e6;
  border: 1px solid #f5c0c0;
  border-radius: var(--r);
  color: var(--err);
  font-size: 0.9rem;
}

.form-success {
  margin-top: 14px;
  padding: 12px 16px;
  background: #e1f3e7;
  border: 1px solid #b8e0c5;
  border-radius: var(--r);
  color: var(--ok);
  font-size: 0.9rem;
}

/* ============ AUTH PAGES ============ */

.auth-page {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  background: var(--bg-alt);
}

.auth-card {
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-3);
  border: 1px solid var(--line);
}

.auth-card h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.auth-sub {
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.auth-foot {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.auth-foot a {
  color: var(--brand);
  font-weight: 500;
}

.auth-foot a:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 0.78rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  flex-grow: 1;
  background: var(--line);
}

/* ============ ADMIN ============ */

.admin {
  padding: 48px 0;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-head h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .admin-grid { grid-template-columns: 1fr; }
}

.admin-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  min-width: 0;
}

@media (min-width: 1101px) {
  #editor-panel {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

.admin-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.tour-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 10px;
}

.tour-row .info { min-width: 0; }

.tour-row .info h4 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-row img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-alt);
}

.tour-row .info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.tour-row .info p {
  font-size: 0.83rem;
  color: var(--ink-mute);
}

.tour-row .actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.btn-danger {
  background: transparent;
  color: var(--err);
  border: 1px solid var(--err);
}

.btn-danger:hover {
  background: var(--err);
  color: white;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-mute);
}

.empty-state h3 {
  font-family: var(--serif);
  color: var(--ink);
  margin-bottom: 8px;
}

/* ============ CONTACT PAGE ============ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info-block:last-child { border-bottom: 0; }

.contact-info-block .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-block .icon svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.contact-info-block h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}

.contact-info-block p,
.contact-info-block a {
  font-size: 1.05rem;
  font-family: var(--serif);
  color: var(--ink);
}

.contact-info-block a:hover {
  color: var(--brand);
}

/* ============ ABOUT PAGE ============ */

.values-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 800px) {
  .values-list { grid-template-columns: 1fr; }
}

.value {
  padding: 28px;
  background: var(--paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

.value-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--brand);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.value h4 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}

/* Two-col split for about */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse > div:first-child { order: 2; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > div:first-child { order: 0; }
}

.split-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ FOOTER ============ */

.footer {
  background: #131a26;
  color: #b6bcc7;
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer .logo {
  color: white;
}

.footer .logo .accent {
  color: #ffb088;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 0.93rem;
  max-width: 320px;
  color: #9098a8;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.socials a:hover {
  background: var(--brand);
  transform: translateY(-2px);
}

.socials svg {
  width: 16px;
  height: 16px;
  color: white;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 18px;
  font-family: var(--sans);
  font-weight: 600;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 11px; }

.footer-col a {
  color: #9098a8;
  font-size: 0.92rem;
}

.footer-col a:hover { color: white; }

.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ ANIMATIONS ============ */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-in.visible {
  opacity: 1;
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger.visible > * { opacity: 1; transform: translateY(0); }

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }

/* ============ UTILITIES ============ */

.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

.bg-cream { background: var(--bg-alt); }
.bg-paper { background: var(--paper); }

/* ============ WHATSAPP FLOATING WIDGET ============ */

.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--sans);
}

.wa-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128c44 100%);
  border: 0;
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45),
              0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
}

.wa-btn:hover {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.6),
              0 6px 16px rgba(0, 0, 0, 0.2);
}

.wa-btn:active {
  transform: scale(0.96);
}

.wa-icon {
  position: relative;
  display: flex;
  z-index: 2;
}

.wa-icon svg {
  width: 30px;
  height: 30px;
}

.wa-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  z-index: 0;
  animation: wa-pulse 2.4s infinite ease-out;
}

@keyframes wa-pulse {
  0%   { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

.wa-widget.open .wa-pulse {
  animation: none;
  opacity: 0;
}

/* Tooltip on hover (desktop) */
.wa-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--ink);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--ink);
}

.wa-btn:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.wa-widget.open .wa-tooltip {
  opacity: 0;
}

/* Rotating icon swap when open */
.wa-widget.open .wa-icon::before {
  content: '×';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 300;
  color: white;
  background: linear-gradient(135deg, #25D366 0%, #128c44 100%);
  border-radius: 50%;
}

/* Panel */
.wa-panel {
  position: absolute;
  bottom: calc(100% + 18px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transform-origin: bottom right;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-widget.open .wa-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, #25D366 0%, #128c44 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05), rgba(255,255,255,0.05) 2px, transparent 2px, transparent 8px);
  color: white;
  position: relative;
}

.wa-panel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-panel-avatar svg {
  width: 24px;
  height: 24px;
  color: white;
}

.wa-panel-head strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
}

.wa-panel-head small {
  display: block;
  font-size: 0.78rem;
  opacity: 0.92;
  margin-top: 3px;
}

.wa-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.wa-close:hover {
  background: rgba(255,255,255,0.25);
}

.wa-panel-intro {
  padding: 16px 20px 8px;
  font-size: 0.85rem;
  color: var(--ink-mute);
  background: #f7faf9;
}

.wa-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #f7faf9;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.18s ease;
}

.wa-contact + .wa-contact {
  border-top: 1px solid #eef2f0;
}

.wa-contact:hover,
.wa-contact:focus {
  background: #e8f5ed;
  outline: none;
}

.wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128c44);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.wa-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wa-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.25;
}

.wa-phone {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.wa-arrow {
  width: 16px;
  height: 16px;
  color: #25D366;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.wa-contact:hover .wa-arrow {
  transform: translateX(3px);
}

.wa-panel-foot {
  padding: 12px 20px;
  font-size: 0.8rem;
  color: var(--ink-mute);
  text-align: center;
  background: white;
  border-top: 1px solid #eef2f0;
}

.wa-panel-foot a {
  color: #25D366;
  font-weight: 500;
}

.wa-panel-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .wa-widget {
    bottom: 18px;
    right: 18px;
  }
  .wa-btn {
    width: 56px;
    height: 56px;
  }
  .wa-icon svg {
    width: 26px;
    height: 26px;
  }
  .wa-panel {
    width: calc(100vw - 32px);
    right: 0;
  }
  .wa-tooltip {
    display: none;
  }
}

/* ============ EXTRA MOBILE POLISH ============ */

@media (max-width: 768px) {
  /* Tighter hero on mobile */
  .hero { min-height: 78vh; }
  .hero-content { padding: 80px 20px 100px; }
  .hero-content .lead { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 28px; margin-top: 48px; }
  .hero-stat-num { font-size: 1.9rem; }
  .scroll-hint { display: none; }

  /* Smaller section padding */
  section { padding: 56px 0; }

  /* Tighter section heads */
  .section-head { margin-bottom: 40px; }

  /* Tour cards full-width with image not too tall */
  .tour-img { aspect-ratio: 16 / 10; }
  .tour-card h3 { font-size: 1.15rem; }

  /* Page header tighter */
  .page-head { padding: 60px 0 40px; }

  /* CTA banner: smaller padding */
  .cta-banner { padding: 48px 24px; border-radius: 18px; }
  .cta-banner h2 { font-size: 1.6rem; }
  .cta-banner .hero-cta { flex-direction: column; }

  /* Tour detail mobile */
  .tour-hero { height: 50vh; min-height: 380px; }
  .tour-hero-meta { gap: 14px; font-size: 0.85rem; }
  .tour-hero-meta span svg { width: 14px; height: 14px; }
  .tour-sidebar {
    position: static;
    padding: 24px;
  }
  .tour-sidebar .price { font-size: 2.2rem; }
  .itinerary-day { grid-template-columns: 60px 1fr; gap: 14px; }
  .day-num { font-size: 1.3rem; }

  /* Filter buttons scrollable on mobile */
  .filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 16px;
    margin-left: -16px;
    margin-right: -16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row button { flex-shrink: 0; }

  /* Auth card mobile */
  .auth-card { padding: 36px 24px; }
  .auth-card h1 { font-size: 1.65rem; }

  /* Admin */
  .admin-head { flex-direction: column; align-items: stretch; }
  .admin-head h1 { font-size: 1.5rem; }
  .admin-head > div:last-child { display: flex; gap: 8px; }
  .admin-head > div:last-child .btn { flex: 1; }
  .tour-row { grid-template-columns: 64px minmax(0, 1fr); }
  .tour-row .actions { grid-column: 1 / -1; justify-content: stretch; }
  .tour-row .actions .btn { flex: 1; }
  .admin-panel { padding: 22px 20px; }
  #editor-panel { position: static !important; max-height: none !important; overflow: visible !important; }

  /* Form row stacks */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Contact info blocks tighter */
  .contact-info-block p,
  .contact-info-block a { font-size: 0.98rem; }

  /* Footer */
  .footer { padding: 56px 0 24px; }
  .footer-grid { gap: 36px; margin-bottom: 36px; }
  .footer-bot { font-size: 0.78rem; flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Bigger touch targets */
  .btn { padding: 13px 22px; }
  .btn-lg { padding: 15px 26px; }
  .nav-cta .btn { padding: 10px 16px; }

  /* Pad bottom so WhatsApp button doesn't cover content */
  main { padding-bottom: 80px; }
}

@media (max-width: 420px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .hero-content h1 { font-size: 2.3rem; }
  .tour-meta { font-size: 0.78rem; gap: 10px; }
  .destination-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .destination:nth-child(1) { grid-column: auto; }
  .destination { aspect-ratio: 4 / 3; height: auto; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-bg { animation: none; }
  .wa-pulse { animation: none; opacity: 0; }
}

/* ============ MOBILE POLISH (final pass) ============ */

/* Prevent horizontal scroll from any overflow */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Better tap targets on iOS */
button, a, .btn, .form-input, .form-select, .form-textarea {
  -webkit-tap-highlight-color: rgba(193, 75, 39, 0.15);
}

/* Prevent zoom-on-focus on iOS */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
  }
}

/* Safer iOS notch handling */
@supports (padding: env(safe-area-inset-bottom)) {
  .wa-widget {
    bottom: max(24px, env(safe-area-inset-bottom));
    right: max(24px, env(safe-area-inset-right));
  }
  @media (max-width: 600px) {
    .wa-widget {
      bottom: max(18px, env(safe-area-inset-bottom));
      right: max(18px, env(safe-area-inset-right));
    }
  }
}

/* Tour cards: image height clamp on mobile */
@media (max-width: 540px) {
  .tour-img {
    aspect-ratio: 16 / 11;
  }
  .tour-body { padding: 18px 18px 22px; }
  .tour-card h3 { font-size: 1.1rem; }
  .tour-card .tour-desc { font-size: 0.88rem; }
  .tour-price { font-size: 1.25rem; }
}

/* Contact info blocks: better stacking on phones */
@media (max-width: 540px) {
  .contact-info-block {
    padding: 18px 0;
  }
  .contact-info-block .icon {
    width: 38px;
    height: 38px;
  }
  .contact-info-block p,
  .contact-info-block a {
    font-size: 0.98rem;
    word-break: break-word;
  }
}

/* Pricing sidebar on tour-detail: spacing fix on mobile */
@media (max-width: 540px) {
  .tour-sidebar {
    padding: 24px 20px;
    border-radius: 14px;
  }
  .tour-content h2 {
    font-size: 1.45rem;
    margin: 32px 0 14px;
  }
  .day-num {
    font-size: 1.15rem;
  }
  .day-num small { font-size: 0.65rem; }
  .itinerary-day {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 16px 0;
  }
}

/* Hero on very small phones */
@media (max-width: 380px) {
  .hero-content { padding: 60px 16px 80px; }
  .hero-content h1 { font-size: 1.95rem; line-height: 1.18; }
  .hero-content .lead { font-size: 0.95rem; }
  .hero-stats { gap: 18px; margin-top: 36px; }
  .hero-stat-num { font-size: 1.6rem; }
  .hero-stat-label { font-size: 0.72rem; }
  .eyebrow { font-size: 0.7rem; }
}

/* Filter pills: visual scroll cue on mobile */
@media (max-width: 768px) {
  .filter-row {
    mask-image: linear-gradient(90deg, transparent 0, black 18px, black calc(100% - 18px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 18px, black calc(100% - 18px), transparent 100%);
  }
  .filter-row button {
    padding: 10px 18px;
    font-size: 0.86rem;
  }
}

/* CTA banner: smaller on tiny screens */
@media (max-width: 480px) {
  .cta-banner {
    padding: 36px 20px;
    border-radius: 16px;
  }
  .cta-banner h2 { font-size: 1.4rem; }
  .cta-banner p { font-size: 0.95rem; }
}

/* Page-head tighter on small mobiles */
@media (max-width: 480px) {
  .page-head { padding: 48px 0 32px; }
  .page-head h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .page-head p { font-size: 1rem; }
}

/* Section heads tighter on small mobiles */
@media (max-width: 480px) {
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 1.7rem; }
  .section-head p { font-size: 0.95rem; }
}

/* Admin panel: better mobile editor */
@media (max-width: 640px) {
  .admin-panel {
    padding: 22px 18px;
  }
  .tour-row {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 12px;
  }
  .tour-row img { width: 56px; height: 44px; }
  .tour-row .info h4 { font-size: 0.95rem; }
  .tour-row .info p { font-size: 0.78rem; }
}

/* Testimonial card on mobile */
@media (max-width: 480px) {
  .testi {
    padding: 26px 22px;
  }
  .testi-text { font-size: 0.98rem; }
}

/* Logo mark scaling on really small screens */
@media (max-width: 380px) {
  .logo { font-size: 1.05rem; gap: 8px; }
  .logo-mark { width: 28px; height: 28px; }
  .nav-cta .btn { padding: 9px 14px; font-size: 0.82rem; }
}

/* Footer bottom on mobile */
@media (max-width: 480px) {
  .footer { padding: 48px 0 24px; }
  .footer-grid { gap: 32px; }
}

/* Print styles (basic) */
@media print {
  .nav, .footer, .wa-widget, .cta-banner, .scroll-hint { display: none !important; }
  body { background: white; color: black; }
  body::before, body::after { display: none; }
  .hero { min-height: auto; padding: 20px 0; }
  .hero-bg::after { content: ''; }
  .hero-content { color: black; }
  .hero-content h1, .hero-content .lead { color: black; }
  a { color: black; text-decoration: underline; }
}
