/* Responsive Patch for Golden Dream Travel Webflow Site */

/* ==========================================================================
   1. Global Mobile Fixes & Overflow Prevention
   ========================================================================== */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Ensure all images and frames fit screens */
img {
  max-width: 100% !important;
  height: auto !important;
}

iframe, video {
  max-width: 100% !important;
}

/* ==========================================================================
   2. Font Scaling & Typography Clamps
   ========================================================================== */
@media (max-width: 991px) {
  /* Main Hero Heading */
  .heading-7 {
    font-size: clamp(2.5rem, 8vw, 4.5rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -2px !important;
    margin-top: 120px !important;
  }
  
  .paragraph-5 {
    font-size: clamp(1.1rem, 3vw, 1.4rem) !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 767px) {
  .heading-7 {
    font-size: clamp(2.2rem, 10vw, 3.5rem) !important;
    letter-spacing: -1px !important;
    margin-top: 100px !important;
    padding: 0 10px !important;
  }
  
  .paragraph-5 {
    font-size: 1.1rem !important;
    margin-top: 12px !important;
  }
  
  /* Tour details content */
  .heading-9 {
    font-size: 28px !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
  }
  
  .paragraph-6 {
    font-size: 14px !important;
    line-height: 20px !important;
    width: 100% !important;
  }
}

@media (max-width: 479px) {
  .heading-7 {
    font-size: 2.2rem !important;
  }
  .bold-text-3, .bold-text-2, .bold-text-5 {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
  }
  
  /* General Day Tour Page Titles */
  .heading-bea, .heading.bea {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }
}

/* ==========================================================================
   3. Tour Card Layout Rescaling (Major Fix)
   ========================================================================== */
@media (max-width: 767px) {
  /* Card Outer Wrapper */
  .div-block-51 {
    margin: 16px 12px !important;
    padding: 16px !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
    background-image: linear-gradient(to top, #050314 65%, rgba(5, 3, 20, 0.4)) !important;
  }
  
  /* Background images on cards (prevent width/height clipping) */
  .image-17.telefono {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    inset: 0% !important;
    z-index: -1 !important;
    border-radius: 12px !important;
  }
  
  /* Card Header Wrapper */
  .div-block-52 {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 0 16px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
  
  .div-block-73 {
    margin: 0 !important;
    width: 100% !important;
  }
  
  /* Logo and secondary badges */
  .div-block-70 {
    margin-top: 12px !important;
    width: auto !important;
    align-self: flex-start !important;
  }
  
  .div-block-70 img {
    width: 180px !important;
    height: auto !important;
  }
  
  /* Brand small logo */
  .div-block-63 {
    display: none !important; /* Hide to save vertical height */
  }

  /* Tour Stops Inner Wrapper */
  .div-block-53 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    position: relative !important;
    height: auto !important;
    margin-top: 16px !important;
    gap: 16px !important;
    border-top: none !important;
    padding-top: 0 !important;
  }
  
  /* Tour Stops Rows */
  .div-block-55, .div-block-56, .div-block-57, .div-block-58 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin: 0 !important;
    gap: 12px !important;
  }
  
  /* Texts inside Stops */
  .div-block-104, .div-block-107, .div-block-109, .div-block-110 {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    width: auto !important;
    padding: 0 !important;
  }
  
  .heading-8 {
    font-size: 16px !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    margin-bottom: 2px !important;
    font-weight: 700 !important;
  }
  
  .text-block-10 {
    font-size: 11px !important;
    line-height: 13px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 0 !important;
  }
  
  /* Badge indicating Country (e.g. Mexico) */
  .div-block-105, .div-block-106 {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    align-self: flex-start !important;
    background: transparent !important;
    border: none !important;
  }
  
  .text-block-17 {
    font-size: 11px !important;
    color: #c5a880 !important; /* Gold tone matches branding */
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: bold !important;
  }
  
  /* Images of the Stop */
  .image-15 {
    width: 100px !important;
    height: 65px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    max-width: none !important;
    display: block !important;
  }
  
  /* Call-To-Action Button inside cards */
  .div-block-54 {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
  }
  
  .button-10 {
    width: 100% !important;
    padding: 14px 20px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border-radius: 8px !important;
  }
}

/* ==========================================================================
   4. Section-8 Height and Hero Elements
   ========================================================================== */
@media (max-width: 991px) {
  .section-8 {
    height: auto !important;
    min-height: 100vh !important;
    padding-bottom: 80px !important;
  }
}

/* ==========================================================================
   5. Buttons & Interaction Areas
   ========================================================================== */
@media (max-width: 767px) {
  /* Ensure proper spacing for action buttons */
  .div-block-42 {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  
  .button-5, .button-6, .button-4, .button-8, .button-9 {
    width: 100% !important;
    min-height: 48px !important;
    padding: 14px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  
  /* Forms input fields fixes */
  input[type="text"], input[type="email"], input[type="tel"], textarea {
    font-size: 16px !important; /* Disables automatic zoom in iOS */
    padding: 12px !important;
    min-height: 44px !important;
  }
}
