/* =====================================================================
   LUXORIA TRAVEL RESPONSIVE LAYOUTS
   Viewport adjustments for desktop, laptop, tablet, and mobile displays.
   ===================================================================== */

/* ---------- EXTRA LARGE SCREENS (Desktop Canvas) ---------- */
@media (min-width: 1200px) {
  .lux-search-widget {
    max-width: var(--container-max);
  }
}

/* ---------- LAPTOPS & SMALLER DESKTOPS ---------- */
@media (max-width: 1199px) {
  :root {
    --header-height: 88px;
    --header-height-scrolled: 72px;
  }
  
  .lux-search-form {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lux-search-form .btn-lux {
    grid-column: span 2;
  }
}

/* ---------- TABLETS & LANDSCAPE MOBILES ---------- */
@media (max-width: 991px) {
  .lux-nav {
    display: none; /* Hide desktop links, hamburger triggers mobile slide drawer */
  }
  
  .lux-header-cta {
    display: none;
  }
  
  .lux-hamburger {
    display: flex;
  }
  
  .section-lux {
    padding-top: calc(var(--section-padding-y) * 0.85);
    padding-bottom: calc(var(--section-padding-y) * 0.85);
  }
}

/* ---------- PORTRAIT MOBILES ---------- */
@media (max-width: 767px) {
  :root {
    --fs-h1: 2.25rem;
    --fs-h2: 1.75rem;
    --fs-h3: 1.35rem;
  }
  
  .section-lux {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .section-heading-lux {
    margin-bottom: var(--space-md) !important;
  }

  .lux-search-form {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .lux-search-form .btn-lux {
    grid-column: span 1;
    width: 100%;
  }
  
  .lux-search-widget {
    margin-top: -35px;
    padding: var(--space-sm);
  }

  .lux-page-banner {
    padding: 120px 0 60px;
  }
}

/* ---------- VERY SMALL Viewports ---------- */
@media (max-width: 480px) {
  .lux-mobile-menu {
    width: 290px;
    right: -290px;
  }
  
  .lux-logo-text {
    font-size: 1.35rem;
    letter-spacing: 2px;
  }
}

/* ---------- GLOBAL RESPONSIVE REFINEMENTS ---------- */
html, body {
  overflow-x: clip !important;
}

@media (max-width: 576px) {
  .lux-footer {
    padding: 60px 0 30px !important;
  }
  .lux-footer .row {
    --bs-gutter-x: 1.5rem !important; /* Tighten grid spacing on mobile to eliminate side overflow */
  }
  .lux-footer-title {
    font-size: 1.05rem !important;
    margin-bottom: 16px !important;
  }
  .lux-footer-links li a,
  .lux-footer-contact li span,
  .lux-footer-contact li a {
    font-size: 0.85rem !important;
  }
}
