/* ============================================================
   DREAM TAJ INDIA TRAVEL — Vanilla CSS
   File 3/3: responsive.css — breakpoints + page layouts
   Breakpoints: sm 640 / md 768 / lg 1024 / xl 1280
   ============================================================ */

/* ---------- PAGE LAYOUT HELPERS ---------- */
.page-pad { padding: 4rem 1rem; }
.page-pad-sm { padding: 2.5rem 1rem; }
.page-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; color: var(--gray-900); letter-spacing: -.02em; }
.page-sub { color: var(--gray-500); font-size: 1.0625rem; max-width: 40rem; line-height: 1.7; }
.auto-grid-2 { display: grid; gap: 0.625rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auto-grid-3 { display: grid; gap: 0.625rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auto-grid-4 { display: grid; gap: 0.625rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }

/* ---------- BASE MOBILE (default) ---------- */
.nav-links { display: none; }
.navbar-inner { height: 3.75rem; }
.mobile-menu-btn { display: flex; flex-shrink: 0; }
.search-grid { grid-template-columns: 1fr; }
.footer-top { grid-template-columns: 1fr; }
.content-grid { grid-template-columns: 1fr; }
.grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-row { grid-template-columns: 1fr; }

/* ---------- MOBILE: STICKY HEADER NAVBAR & 16:9 HERO VIDEO (< 768px) ---------- */
@media (max-width: 767px) {
  .navbar {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    padding: 0 1rem !important;
    margin: 0 !important;
    pointer-events: auto !important;
    z-index: 100 !important;
  }

  body:has(.hero) .navbar,
  body:has(#hero) .navbar,
  body.no-hero-page .navbar,
  body:not(:has(.hero)):not(:has(#hero)) .navbar {
    margin-bottom: 0 !important;
  }

  .navbar-inner {
    height: 3.75rem !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  .nav-logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 0.5rem !important;
    transform: none !important;
  }

  .nav-logo:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .nav-logo-badge {
    width: 2.25rem !important;
    height: 2.25rem !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .nav-logo-text {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
  }

  .mobile-menu-btn {
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 0.5rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    color: #0f172a !important;
  }

  .mobile-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 0 1rem 1rem !important;
    border: none !important;
    border-top: 1px solid #f1f5f9 !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08) !important;
  }

  .hero {
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden;
    position: relative;
    background: #000;
  }

  .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    transform: none;
    object-fit: cover;
    object-position: center;
  }

  .hero-sound-widget {
    bottom: 0.5rem !important;
    right: 0.5rem !important;
    padding: 0.2rem 0.5rem 0.2rem 0.35rem !important;
    gap: 0.25rem !important;
    transform: none !important;
  }

  .search-card {
    margin-top: 0.75rem !important;
    padding: 1rem !important;
  }
}

/* ---------- MOBILE: 2 CARDS IN ONE HORIZONTAL LINE (< 768px) ---------- */
@media (max-width: 767px) {
  [data-render="tours-grid"],
  [data-render="gt-cards"],
  [data-render="blogs"],
  [data-render="activities"],
  [data-render="eat"],
  [data-dest-grid],
  [data-gt-cards],
  [data-act-grid],
  #tours-list,
  #gt-tours-list,
  #same-tours-list,
  #handpicked-tours-list,
  #blogs-list,
  .grid.sm\:grid-cols-2,
  .grid.sm\:grid-cols-3,
  .grid.sm\:grid-cols-4 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.625rem !important;
  }

  /* Disable all hover animations & transforms on mobile */
  .tour-card,
  .blog-card,
  .act-card,
  .eat-card,
  .testi-card,
  .btn-dark-pill,
  .btn-card-save,
  .nav-logo,
  .mobile-menu-btn,
  .tour-card-slider-track,
  .tour-card-slider-track img {
    transition: none !important;
  }

  .tour-card:hover,
  .blog-card:hover,
  .act-card:hover,
  .eat-card:hover,
  .testi-card:hover,
  .btn-dark-pill:hover,
  .btn-card-save:hover,
  .nav-logo:hover,
  .mobile-menu-btn:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .tour-card {
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06) !important;
  }

  .tour-card:hover .tour-card-slider-track img,
  .blog-card:hover .tour-card-img-box img,
  .act-card:hover img {
    transform: none !important;
  }

  .tour-card-slider-track {
    transform: none !important;
  }
}

/* ---------- MOBILE ONLY BRAND ---------- */
@media (max-width: 639px) {
  .navbar-brand .nav-logo-text { display: block; font-size: 0.95rem; line-height: 1.2; text-align: left; }
}

/* ---------- MOBILE: ABOUT-THIS-TOUR CLAMP (4 lines + More) ---------- */
@media (max-width: 767px) {
  #it-desc.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ---------- MOBILE: TOURS PAGE & FILTERS (< 1024px) ---------- */
@media (max-width: 1023px) {
  .content-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .aside-sticky {
    position: static !important;
    top: auto !important;
  }
}

/* ---------- sm: 640px ---------- */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
  .sm\:text-5xl { font-size: 3rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .sm\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .sm\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: repeat(2, 1fr); }
  .trip-cart-item { flex-direction: row; align-items: center; }
}

/* ---------- md: 768px ---------- */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:block { display: block; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:p-10 { padding: 2.5rem; }
  .md\:px-14 { padding-left: 3.5rem; padding-right: 3.5rem; }
  .page-pad { padding: 5rem 1.5rem; }
  auto-grid-2, .auto-grid-3, .auto-grid-4 { gap: 1.75rem; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auto-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}

/* ---------- lg: 1024px ---------- */
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:flex { display: flex; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:top-24 { top: 6rem; }
  .lg\:text-7xl { font-size: 4.5rem; }
  .lg\:px-16 { padding-left: 4rem; padding-right: 4rem; }
  .lg\:p-12 { padding: 3rem; }
  .lg\:flex-nowrap { flex-wrap: nowrap; }

  .nav-links { display: flex; margin-left: auto; margin-right: 0; }
  .mobile-menu-btn { display: none; }
  .nav-phone { display: none; }
  .navbar-inner { height: 4.5rem; padding: 0 1.5rem; }
  .search-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .auto-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auto-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .auto-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
  .content-grid-3 { grid-template-columns: minmax(0, 1fr) 370px; align-items: start; }
  .page-pad { padding: 5.5rem 2rem; }
  .page-pad-sm { padding: 3rem 2rem; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .tour-h-card { grid-template-columns: 2fr 3fr; }
  .tour-h-img { min-height: 100%; }
  .tour-h-img img { position: absolute; inset: 0; height: 100%; min-height: 100%; }
  .hero { height: 100vh; min-height: 100vh; max-height: none; aspect-ratio: unset; }
  .field-row { grid-template-columns: repeat(2, 1fr); }
  .blog-feature img { height: 26rem; }
  .cart-panel { width: 26rem; }
  .mobile-menu { display: none; }
}

/* ---------- xl: 1280px ---------- */
@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .xl\:flex-row { flex-direction: row; }
  .xl\:block { display: block; }
  .navbar-inner { max-width: 80rem; }
  .hero-title { font-size: 3.75rem; }
  .page-pad { padding: 6rem 2rem; }
}

/* ============ 2xl: 1536px ============ */
@media (min-width: 1536px) {
  .hero-title { font-size: 4.25rem; }
}

/* ---------- print ---------- */
@media print {
  .navbar, .footer, .cart-floating-btn, .whatsapp-floating-btn, .promo { display: none !important; }
}

/* ---------- home headings: bigger on desktop only ---------- */
@media (min-width: 768px) {
  .page-home .section-eyebrow.home-head { font-size: 1.0625rem; gap: .75rem; margin-bottom: .875rem; }
}