/* ===========================================
   TOURPAGE RESPONSIVE STYLES
   Following index.html patterns
   Breakpoints: 991px (tablet), 767px (mobile landscape), 479px (mobile portrait)
   =========================================== */

/* ===== PREVENT HORIZONTAL SCROLL - MOBILE SCROLL FIX ===== */
/* Using overflow-x:clip instead of hidden to prevent scroll context creation */
/* This fixes touch scroll interruption on mobile devices */
html, html.w-mod-js {
  overflow-x: clip !important; /* clip prevents scroll without creating context */
  overflow-y: auto !important; /* auto instead of scroll - browser decides scrollbar */
  height: auto !important;
  min-height: 100% !important;
  max-width: 100vw !important;
  -webkit-overflow-scrolling: touch !important; /* Smooth momentum scrolling on iOS */
}

body, .body-2, .main_wraper, .section-8 {
  overflow: visible !important; /* CRITICAL: visible prevents nested scroll context */
  height: auto !important;
  min-height: 100% !important;
  max-width: 100vw !important;
  position: relative !important;
}

/* Ensure all containers respect viewport bounds */
.section-8,
.a-grid,
section {
  max-width: 100vw !important;
  box-sizing: border-box !important;
}
/* ===== BASE MOBILE MENU STYLES (Slide In Top 70vh) ===== */
/* ----- MOBILE MENU OVERLAY (Slide In Top 70vh - Premium) ----- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999990; /* Below Navbar */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
  justify-content: flex-start; /* Start from top */
  padding-top: 2rem;
  gap: 0; /* Gap handled by separators/padding */
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
}

.mobile-menu-overlay.active {
  transform: translateY(0);
}

/* Header within Menu */
.mobile-menu-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 1rem;
}

.mobile-menu-title {
  font-family: 'Tasa Orbiter Display', sans-serif;
  font-size: 1.2rem;
  color: #042e4d;
  opacity: 0.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-menu-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #042e4d;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}
.mobile-menu-close-btn:hover { transform: rotate(90deg); }

/* Links Container */
.mobile-menu-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-nav-link {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Icon then text */
  gap: 1rem;
  font-family: Inter, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #042e4d;
  text-decoration: none;
  padding: 1.2rem 1rem;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  border-radius: 16px;
}

.mobile-nav-link:hover {
  background: rgba(37, 99, 235, 0.05);
  transform: translateX(10px);
}

.nav-icon {
  font-size: 1.2rem;
  opacity: 0.8;
}

.nav-separator {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(4, 46, 77, 0.1), transparent);
}

.mobile-menu-close { display: none; } /* Old class override */

/* ===== FIXED BOTTOM RESERVATION BUTTON ===== */
.mobile-fixed-cta-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  padding: 12px 16px 24px; /* Padding bottom for safe area + spacing */
  background: white;
  z-index: 9999999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: none; /* Hidden on Desktop */
}

/* Show on Tablet/Mobile */
/* Show on Tablet/Mobile */
@media screen and (max-width: 991px) {
  .mobile-fixed-cta-container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  
  .mobile-fixed-price-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex-shrink: 0;
  }

  .price-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 4px; /* Increased to 4px as requested */
  }

  .price-value {
    font-size: 16px; /* Sutil as requested */
    color: #042e4d;
    font-weight: 700;
    font-family: Inter, sans-serif;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-fixed-btn-wrapper {
    flex-grow: 1;
  }
}

  /* Override global hide and style for CTA inside the fixed container */
  .mobile-fixed-cta-container .header-cta-primary {
    display: flex !important;
    width: 100% !important;
    height: 48px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
  }
  
  /* Global CTA Animation Styles (Desktop & Mobile) */
  .header-cta-primary {
    background-size: 200% auto !important;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  }

  .header-cta-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5) !important;
    background-position: right center !important;
  }
  
  /* Cleanup old class */
  .mobile-fixed-btn { display: none; }

/* ===== TABLET BREAKPOINT (≤991px) ===== */
@media screen and (max-width: 991px) {
  /* 1. Hide dynamic TOC completely */
  .div-block-142,
  .index {
    display: none !important;
  }

  /* 2. Hide header CTA button (Reservar Tour) */
  .header-cta-primary {
    display: none !important;
  }

  /* 3. Show hamburger menu */
  .menu-toggle-exclusion {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* =====================================================
     FULL-WIDTH CONTAINER OVERRIDES
     Force ALL containers to use full viewport width
     ONLY section-8 has 16px padding, children have 0
     ===================================================== */
  
  /* Main wrapper - NO padding so images can be full-width */
  .section-8 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Content containers GET the 16px padding */
  .a-grid,
  section.a-grid {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Other Webflow containers - no padding */
  .w-container,
  .container-default,
  .inner-container,
  .inner-container._1012px,
  .aerokit_common-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Hero title container - needs 16px padding since section-8 has 0 */
  .div-block-130 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Convert a-grid to flex column */
  .a-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem;
  }

  /* Hero title sizing */
  .h-1 {
    font-size: clamp(2.5rem, 10vw, 4rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    word-break: break-word;
  }

  /* Subtitle adjustments */
  .h-5.tour-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem) !important;
  }

  /* Chips container - wrap and full width */
  .div-block-42 {
    width: 100% !important;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Full-width images - maintain aspect ratio */
  .scroll-zoom-image {
    height: auto !important;
    min-height: 50vh;
    max-height: 70vh;
  }

  /* Remove margin from w-node container - parent already has padding */
  [id^="w-node-"] {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Specific w-node container - make full width to match image */
  #w-node-_76e2460d-fbc1-dd2b-7bf3-581e567cb582-93ad6e2b {
    width: 100% !important;
    max-width: 100% !important;
    height: 400px !important;
    margin-top: 64px !important;
  }

  /* Additional w-node containers - 64px margin top */
  #w-node-f394fc0a-854b-23ac-f6c4-43a6c3985167-93ad6e2b {
    margin-top: 64px !important;
  }

  #w-node-f394fc0a-854b-23ac-f6c4-43a6c3985169-93ad6e2b {
    margin-top: 64px !important;
  }

  /* Description section layout - FULL WIDTH */
  .div-block-132,
  .div-block-133 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .div-block-131 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2rem 0 !important;
  }

  /* Mini curtain images - full width */
  .mini-image-container {
    width: 100% !important;
    height: 400px !important;
  }

  /* Parallax image medium - reduce margin from 160px to 64pxss */
  .parallax-image-medium {
    margin-top: 64px !important;
  }

  /* Itinerary container - FULL WIDTH */
  .itinerary-containe,
  .titinerari-padding {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Grid layout override */
  .grid-1-column,
  .w-layout-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  /* Accordion items - FULL WIDTH */
  .accordion-item-wrapper,
  .accordion-item-wrapper.v2,
  .accordion-content-wrapper,
  .accordion-content-wrapper.v2 {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Parallax image adjustments */
  .image-15.parallax-image-medium {
    height: 50vh !important;
    min-height: 350px !important;
  }

  /* Inclusions/Exclusions section - FULL WIDTH */
  .div-block-38 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2rem 0 !important;
  }

  .div-block-39 {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Feature list items - flex column FULL WIDTH */
  .div-block-40 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem;
  }

  .div-block-41 {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* FAQ section - FULL WIDTH */
  .div-block-136 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2rem 0 !important;
  }

  /* Navbar adjustments for tablet - 16px margins */
  #navbar-exclusion {
    width: calc(100% - 32px) !important; /* 16px each side */
    left: 16px !important;
    right: 16px !important;
    transform: none !important;
    padding: 0 !important;
  }

  #navbar-exclusion.navbar-fixed.scrolled {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    left: 16px !important;
    padding: 0 16px !important;
  }

  /* Footer adjustments - FULL WIDTH */
  .section.is--footer,
  .aerokit_common-container._50px-padding {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .footer_wrap {
    width: 100% !important;
  }

  .div-block-79 {
    flex-direction: column !important;
    gap: 2rem;
    width: 100% !important;
  }

  .div-block-80 {
    width: 100% !important;
  }

  .footer_right-2 {
    flex-direction: column !important;
    gap: 1rem;
    width: 100% !important;
  }

  .footer_links-wrap {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer_top-2,
  .footer_bottom {
    width: 100% !important;
  }
}

/* ===== MOBILE LANDSCAPE BREAKPOINT (≤767px) ===== */
@media screen and (max-width: 767px) {
  /* section-8 stays at 0 padding for full-width images */
  .section-8 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* a-grid keeps 16px for content */
  .a-grid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Smaller hero title */
  .h-1 {
    font-size: clamp(2rem, 12vw, 3rem) !important;
  }

  /* Image heights */
  .scroll-zoom-image {
    min-height: 40vh;
    max-height: 60vh;
  }

  .mini-image-container {
    height: 300px !important;
  }

  /* Accordion adjustments */
  .accordion-header {
    gap: 0.5rem;
  }

  .h-4 {
    font-size: 1.2rem !important;
  }

  /* Navbar scrolled */
  #navbar-exclusion.navbar-fixed.scrolled {
    width: 90% !important;
    max-width: 90% !important;
    padding: 0 1.5em !important;
  }

  /* Footer bottom */
  .footer-bottom-content {
    flex-direction: column !important;
    gap: 1rem;
    text-align: center;
  }
}

/* ===== MOBILE PORTRAIT BREAKPOINT (≤479px) ===== */
@media screen and (max-width: 479px) {




  .faq-tourpage-container {
  
    margin-top: 64px !important;
  }

  
  .short-message-animated-scroll {
    padding-left: 4em !important;
    padding-right: 1em !important;
    margin-top: 4em !important;
  }

  .div-block-38 {
    padding: 0rem 0 !important;
  }




  /* section-8 stays at 0 for full-width images */
  .section-8 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* a-grid keeps 16px for content */
  .a-grid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Even smaller hero */
  .h-1 {
    font-size: clamp(1.75rem, 14vw, 2.5rem) !important;
  }

  .h-5.tour-subtitle {
    font-size: 0.9rem !important;
  }

  /* Chips - smaller */
  .chip-tour-info-wrapper {
    padding: 6px 10px !important;
  }

  .chip-tour-info-wrapper .body-small {
    font-size: 11px !important;
  }

  /* Images */
  .scroll-zoom-image {
    min-height: 35vh;
    max-height: 50vh;
  }

  .mini-image-container {
    height: 250px !important;
  }

  /* Accordion */
  .h-4 {
    font-size: 1rem !important;
  }

  .body-large {
    font-size: 14px !important;
  }

  /* Navbar */
  #navbar-exclusion.navbar-fixed.scrolled {
    width: 100% !important;
    max-width: 94% !important;
    padding: 0 1em !important;
  }

  #navbar-exclusion.navbar-fixed.scrolled .navbar-logo {
    width: 28px !important;
  }

  #navbar-exclusion.navbar-fixed.scrolled .navbar-title {
    font-size: 10px !important;
  }

  /* Mobile menu adjustments */

 #w-node-_7694b81d-be8f-05a3-6149-2103870ac5ce-93ad6e2b {
    margin-top: 164px !important;
    padding-top: 0px !important;
  }

  #Itinerary-container {
   margin-top: 64px !important;
   padding-top: 0px !important;
  }

  .mobile-nav-link {
    font-size: 1.4rem;
  }

  .mobile-menu-close {
    top: 1.5rem;
    right: 1.5rem;
  }
}

/* ===== PRESERVE ANIMATIONS ===== */
/* Ensure scroll-triggered animations still work at all breakpoints */
.scroll-zoom-image,
.image-parallax-mask,
.parallax-wrapper,
.image-14,
.image-15 {
  /* Keep transform-origin for animations */
  transform-origin: center center;
}

/* Ensure curtain overlays can still animate */
.image-curtain-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #a9becb;
  pointer-events: none;
}

/* ===========================================
   MOBILE BOOKING MODAL OVERRIDES
   Bottom Sheet Style for Tablet/Mobile (≤991px)
   =========================================== */
@media screen and (max-width: 991px) {
  /* 1. Reset Container (Remove center alignment & scale) */
  .booking-modal {
    align-items: flex-end !important; /* Align to bottom for sheet effect */
    padding: 0 !important;
    transform: none !important;
    transition: opacity 0.4s ease, visibility 0.4s ease !important;
  }
  
  .booking-modal.active {
    transform: none !important;
  }

  /* 2. Content Card (Slide Up Bottom Sheet) */
  .booking-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: 96vh !important; /* Slide up 96% as requested */
    border-radius: 24px 24px 0 0 !important; /* Round top corners only */
    padding: 24px 16px !important; /* 16px lateral padding request */
    transform: translateY(100%); /* Start off-screen */
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1) !important; /* Smooth slide */
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15) !important;
  }

  /* Slide up animation trigger */
  .booking-modal.active .booking-modal-content {
    transform: translateY(0);
  }

  /* 3. Internal Grid (Stack vertically) */
  .booking-modal-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    overflow-y: visible !important; /* Allow full scroll within content */
    padding-bottom: 40px; /* Extra space for scrolling */
  }

  /* 4. Columns (Reset padding & scrolling) */
  .booking-modal-info,
  .booking-modal-form {
    padding-right: 0 !important;
    overflow: visible !important;
    flex: none !important;
    gap: 20px !important;
  }

  /* 5. Header Adjustments */
  .booking-modal-header {
    margin-bottom: 24px !important;
    text-align: left !important; /* Left alignment as requested */
    padding-right: 40px; /* Space for close button */
  }

  .booking-modal-title {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
  }

  .booking-modal-tour-name {
    font-size: 1rem !important;
  }
  
  /* 6. Close Button (Adjust position) */
  .booking-modal-close {
    top: 16px !important;
    right: 16px !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(255,255,255,0.1) !important; /* visible bg */
  }

  /* 7. Steps Indicator (Compact) */
  .booking-steps {
    justify-content: space-between; /* Spread out */
    margin-bottom: 24px !important;
  }
  
  .booking-step-indicator span[data-i18n] {
    display: none; /* Hide text label on mobile to save space */
  }
  
  /* 8. Date Cards (2 per row on small mobile) */
  .date-cards-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
}

/* ===== MOBILE FIX: Horizontal Clipping Without Scroll Context ===== */
/* Using clip instead of hidden to prevent nested scroll issues */
@media screen and (max-width: 991px) {
  body, .body-2 {
    overflow-x: clip !important; /* clip = no scroll context, just clips */
    overflow-y: visible !important;
    position: relative !important;
  }
}

/* ===== HIDE FECHAS SECTION AND TOC LINK ===== */
/* Hide the dates section (Próximas Salidas) */
section.a-grid[data-toc-section="fechas"] {
  visibility: hidden !important;
  position: unset !important;
  display: none !important;
}

/* Hide the "Fechas" TOC link */
a.toc-link[href="#fechas"],
a.toc-link[data-target="fechas"] {
  display: none !important;
}