/* ==========================================================================
   HIGHLY TOURS - MINIMALIST MODERN RESPONSIVE STYLES
   ========================================================================== */

/* Prevent horizontal scroll issues on mobile devices */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Large Desktop (<= 1199.98px) */
@media (max-width: 1199.98px) {
  .hero-minimal-title {
    font-size: 2.9rem;
  }
  .section-title {
    font-size: 2.15rem;
  }
  .bento-hero-img-1 {
    height: 320px;
  }
  .bento-hero-img-2,
  .bento-hero-img-3 {
    height: 150px;
  }
}

/* Tablets (<= 991.98px) */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 65px 0;
  }
  
  .top-bar-contact {
    display: none !important;
  }

  .hero-minimal-section {
    padding: 110px 0 40px;
  }

  .hero-minimal-title {
    font-size: 2.4rem;
  }

  .bento-hero-collage {
    margin-top: 40px;
  }

  .stats-counter-strip {
    padding: 24px 16px;
  }
  
  .stats-counter-strip .stat-item {
    margin-bottom: 16px;
  }

  .stat-divider {
    display: none;
  }

  .about-collage-wrap {
    height: 320px;
    margin-bottom: 30px;
  }
  
  /* Disable fixed background attachment on tablets to avoid mobile browser scroll jitter */
  .services-dark-section,
  .tours-clean-section,
  .ht-footer,
  .page-hero {
    background-attachment: scroll !important;
  }
}

/* Mobile Devices (<= 767.98px) */
@media (max-width: 767.98px) {
  body {
    padding-bottom: 70px;
  }

  .section-padding {
    padding: 45px 0;
  }

  /* Headings & Display Typography on Mobile */
  .section-title,
  .display-4 {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  /* Hero Minimalist Section on Mobile */
  .hero-minimal-section {
    padding: 110px 0 50px !important;
    height: auto !important;
    min-height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    background-image: none !important;
    background-color: #0b110c !important;
  }

  #heroBgVideo {
    object-fit: cover !important;
    object-position: center center !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    width: 100% !important;
    height: 100% !important;
  }

  .hero-minimal-title {
    font-size: 1.85rem !important;
    line-height: 1.22 !important;
    margin-bottom: 16px !important;
  }

  .hero-minimal-desc {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    margin-bottom: 22px !important;
  }

  /* Sleek Action Buttons on Mobile */
  .hero-minimal-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
  }

  .hero-minimal-actions .btn-pill {
    width: auto !important;
    max-width: 100%;
    padding: 10px 22px !important;
    font-size: 0.88rem !important;
  }

  .btn-pill,
  .btn {
    padding: 9px 20px !important;
    font-size: 0.86rem !important;
    border-radius: 50px !important;
  }

  .btn-pill .arrow-circle {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.75rem !important;
  }

  /* About Section 3-Column Images on Mobile */
  .walker-about-img-left,
  .walker-about-img-right {
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 480px;
    min-height: 280px;
    margin: 0 auto 20px auto !important;
    display: block;
  }

  /* Featured Card Image Wrap on Mobile */
  .walker-featured-card-wrap img {
    min-height: 220px !important;
    max-height: 320px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
  }

  .walker-featured-card-wrap {
    border-radius: 16px !important;
    margin-top: 15px !important;
  }

  /* Logo Featured Card on Mobile (100% full view, zero cropping) */
  .walker-logo-card-wrap {
    padding: 20px 16px !important;
    min-height: 200px !important;
    border-radius: 16px !important;
    margin-top: 15px !important;
  }

  .walker-logo-card-img {
    max-height: 180px !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  /* Hero Video Section on Mobile */
  .hero-video-wrap {
    min-height: 440px !important;
  }

  /* Services & Tours Cards on Mobile */
  .services-dark-section,
  .tours-clean-section,
  .overseas-clean-section,
  .process-clean-section {
    padding: 50px 0 !important;
    background-attachment: scroll !important;
  }

  .walker-card-ui {
    height: 310px !important;
    border-radius: 16px !important;
  }

  /* Integrated Stats Bar on Mobile */
  .walker-stat-num {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
  }

  .walker-stat-label {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  /* Gallery Single Carousel on Mobile (Full 100% Image Cover) */
  .gallery-single-carousel-wrapper {
    padding: 0 5px !important;
  }

  .gallery-single-card {
    height: 360px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  .gallery-single-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px !important;
  }

  .gallery-single-nav {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem !important;
  }

  /* Process Step Items on Mobile */
  .process-step-item {
    padding: 20px 16px !important;
    border-radius: 16px !important;
    margin-bottom: 10px !important;
  }

  /* Mobile Form Controls - prevent 16px iOS auto-zoom on input focus */
  .form-control,
  .form-select,
  textarea {
    font-size: 16px !important;
    padding: 10px 14px;
  }

  /* Page Hero (Subpages) */
  .page-hero {
    padding: 100px 0 45px;
    min-height: 280px;
    background-attachment: scroll !important;
  }

  .page-hero-title {
    font-size: 1.85rem !important;
  }

  .page-hero-desc {
    font-size: 0.92rem;
  }

  /* Cards & Banners */
  .form-card,
  .overseas-card-wrap,
  .cta-banner-clean {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }

  .stat-num {
    font-size: 1.75rem;
  }

  /* Floating Buttons */
  .floating-reviews {
    bottom: 84px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 16px;
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }

  /* Footer on Mobile */
  .ht-footer {
    padding: 50px 0 25px;
    background-attachment: scroll !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Small Mobile Devices (<= 575.98px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .hero-minimal-title {
    font-size: 1.7rem;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-logo-img {
    height: 44px;
  }

  .about-collage-wrap {
    height: 280px;
  }

  .page-hero-title {
    font-size: 1.75rem;
  }

  .walker-card-ui {
    height: 290px;
  }

  .bento-hero-img-1 {
    height: 180px;
  }

  .bento-hero-img-2,
  .bento-hero-img-3 {
    height: 110px;
  }

  .btn-pill,
  .btn {
    padding: 8px 16px !important;
    font-size: 0.82rem !important;
  }
}

/* Extra Small Devices (<= 380px) */
@media (max-width: 380px) {
  .section-title {
    font-size: 1.4rem;
  }

  .hero-minimal-title {
    font-size: 1.5rem;
  }

  .btn-pill, .btn {
    font-size: 0.8rem !important;
    padding: 7px 14px !important;
  }
}

/* Accessibility: Reduced Motion Support */
@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;
  }

  .floating-whatsapp,
  .rotating-seal {
    animation: none !important;
  }
}
