/**
 * Gangasagar Mayapur Tour - Ultra-Compact Mobile Responsive Stylesheet
 * Faithfully patterned after https://gangasagardham.in/ mobile compactness
 * Optimized for Mobile (320px-480px), Phablets (481px-767px), Tablets (768px-1024px), Desktop (1200px+)
 */

/* Prevent horizontal overflow on entire document */
html, body {
  /*overflow-x: hidden;*/
  max-width: 100%;
}

/* ==========================================================================
   1. MOBILE BOTTOM ACTION BAR (Sticky on Mobile & Tablets)
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: #FFFFFF;
  box-shadow: 0 -3px 14px rgba(18, 55, 42, 0.12);
  z-index: 1050;
  border-top: 1px solid rgba(18, 55, 42, 0.08);
  padding: 5px 8px;
  align-items: center;
  justify-content: space-around;
  gap: 6px;
}

.mobile-bottom-bar .bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.mobile-bottom-bar .bar-btn i {
  font-size: 0.82rem;
}

.bar-btn-call {
  background-color: #FAF9F6;
  color: var(--dark-green, #12372A);
  border: 1px solid var(--border-subtle, #e5e7eb);
}

.bar-btn-call:hover {
  background-color: #F1EFEA;
  color: var(--dark-green, #12372A);
}

.bar-btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}

.bar-btn-whatsapp:hover {
  background-color: #20BA5A;
  color: #FFFFFF;
}

.bar-btn-quote {
  background: var(--primary-gradient, linear-gradient(135deg, #F97316 0%, #EA580C 100%));
  color: #FFFFFF;
  border: none;
}

.bar-btn-quote:hover {
  opacity: 0.95;
  color: #FFFFFF;
}

/* ==========================================================================
   2. SCREEN SIZES: max-width: 991.98px (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Show Mobile Bottom Bar */
  .mobile-bottom-bar {
    display: flex;
  }

  /* Padding at bottom of body to prevent content being covered by sticky bar */
  body {
    padding-bottom: 58px;
  }

  /* Hide floating phone on mobile to avoid collision with bottom bar */
  .floating-phone {
    display: none !important;
  }

  /* Reposition Floating WhatsApp cleanly above bottom bar */
  .floating-whatsapp {
    bottom: 64px !important;
    right: 12px !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 1.25rem !important;
    z-index: 1040;
  }

  /* Topbar Hide on Mobile to avoid screen clutter */
  .topbar {
    display: none !important;
  }

  /* Site Header Mobile */
  .site-header {
    padding: 5px 0;
  }

  .brand-logo-wrap img {
    max-height: 36px;
    width: auto;
    object-fit: contain;
  }

  .brand-emblem {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-sub {
    font-size: 0.58rem;
  }

  /* Hero Section Pull-Up & Scale Down (like gangasagardham.in) */
  .home-carousel-slide {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
    text-align: center;
  }

  .home-carousel-slide .container {
    padding: 16px 12px 14px !important;
  }

  .hero-glass-card {
    max-width: 100% !important;
    margin-inline: auto !important;
    padding: 14px 14px !important;
    border-radius: 12px !important;
    top: 0px!important;
  }

  .hero-title {
    font-size: 1.35rem !important;
    line-height: 1.22 !important;
    margin-bottom: 5px !important;
  }

  .hero-subtitle {
    font-size: 0.78rem !important;
    line-height: 1.38 !important;
    margin-bottom: 10px !important;
  }

  .hero-buttons {
    justify-content: center;
    gap: 6px !important;
  }

  .hero-buttons .btn {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 50px !important;
  }

  .home-hero-carousel .carousel-control-prev,
  .home-hero-carousel .carousel-control-next {
    width: 28px !important;
    height: 28px !important;
    margin: 0 4px !important;
    font-size: 0.7rem !important;
  }

  .home-hero-carousel .carousel-indicators {
    display: none !important;
  }

  /* Trip Planner Form: Pulled Upward Tight to eliminate white gap */
  .trip-planner-wrapper {
    margin-top: -28px !important;
    margin-bottom: 20px !important;
    padding: 0 8px;
    display: none;
  }

  .trip-planner-card {
    padding: 12px 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(18, 55, 42, 0.12) !important;
  }

  .planner-field-label {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
  }

  .trip-planner-card .form-control,
  .trip-planner-card .form-select {
    padding: 5px 8px !important;
    font-size: 0.8rem !important;
    height: 33px !important;
    min-height: 33px !important;
    border-radius: 6px !important;
  }

  .trip-planner-card button[type="submit"] {
    height: 34px !important;
    padding: 6px 12px !important;
    font-size: 0.82rem !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
  }

  /* Page Hero Banner (Inner Pages) */
  .page-hero-banner {
    height: 146px !important;
    min-height: 160px !important;
    max-height: 145px !important;
    padding: 19px 10px 12px !important;
  }

  .page-hero-card {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .page-hero-badge {
    font-size: 0.6rem !important;
    padding: 2px 7px !important;
    margin-bottom: 3px !important;
  }

  .page-hero-title {
    font-size: 1.2rem !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
  }

  .page-hero-subtitle {
    font-size: 0.74rem !important;
    margin-bottom: 6px !important;
    line-height: 1.35 !important;
  }

  .page-hero-breadcrumbs {
    padding: 2px 8px !important;
    font-size: 0.68rem !important;
  }

  /* Section Spacing & Sizing (Compact like gangasagardham.in) */
  .editorial-section,
  .trust-section,
  .services-section,
  .testimonials-section,
  .faq-section,
  .offer-section,
  .about-section,
  .destination,
  .contact-section,
  .pac-details,
  .timeline-section {
    padding: 26px 20px !important;
  }

  .editorial-img-box {
    margin-bottom: 14px;
  }

  .editorial-img-box img {
    height: 200px !important;
  }

  /* Sticky sidebar on mobile becomes normal block */
  .sticky-booking-sidebar {
    position: static !important;
    margin-top: 18px !important;
  }
}

/* ==========================================================================
   3. SCREEN SIZES: max-width: 767.98px (Smartphones & Mobile Devices)
   ========================================================================== */
@media (max-width: 767.98px) {
  /* Typography Scale Down (Exact match with gangasagardham.in compact feel) */
  h1 { font-size: 1.35rem !important; }
  h2 { font-size: 1.22rem !important; }
  h3 { font-size: 1.08rem !important; }
  h4 { font-size: 0.96rem !important; }
  h5 { font-size: 0.88rem !important; }
  p { font-size: 0.78rem !important; line-height: 1.48 !important; }

  /* Bootstrap Padding Utilities Reduction */
  .py-5 {
    padding-top: 1.6rem !important;
    padding-bottom: 1.6rem !important;
  }
  .package-detail-content{
            padding: 0px 0!important;
    }

  .py-4 {
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
  }

  .mb-5 {
    margin-bottom: 1.25rem !important;
  }

  .mb-4 {
    margin-bottom: 0.95rem !important;
  }

  /* Section Header Labels */
  .section-eyebrow {
    font-size: 0.62rem !important;
    padding: 2px 8px !important;
    margin-bottom: 4px !important;
    letter-spacing: 0.05em !important;
  }

  .section-title {
    font-size: 1.22rem !important;
    line-height: 1.22 !important;
    margin-bottom: 4px !important;
  }

  .section-desc {
    font-size: 0.78rem !important;
    margin-bottom: 0.95rem !important;
    line-height: 1.4 !important;
  }

  /* Hero Section Slide on Mobile - Exact 290px like gangasagardham.in */
  .home-carousel-slide {
    height: 290px !important;
    min-height: 290px !important;
    max-height: 290px !important;
  }

  .home-carousel-slide .container {
    padding: 12px 10px 10px !important;
  }

  .hero-glass-card {
    padding: 12px 12px !important;
    border-radius: 10px !important;
  }

  .hero-title {
    font-size: 1.22rem !important;
    line-height: 1.18 !important;
    margin-bottom: 4px !important;
  }

  .hero-subtitle {
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5px !important;
  }

  .hero-buttons .btn {
    padding: 5px 10px !important;
    font-size: 0.74rem !important;
    border-radius: 50px !important;
    white-space: nowrap;
  }

  /* Trip Planner Form: Tight gap under banner */
  .trip-planner-wrapper {
    margin-top: -30px !important;
    margin-bottom: 16px !important;
  }

  .trip-planner-card {
    padding: 10px 10px !important;
  }

  .trip-planner-card .row.g-3 {
    --bs-gutter-y: 6px !important;
    --bs-gutter-x: 6px !important;
  }

  .trip-planner-card .planner-field-label {
    font-size: 0.62rem !important;
    margin-bottom: 2px !important;
  }

  .trip-planner-card .form-control,
  .trip-planner-card .form-select {
    padding: 4px 8px !important;
    font-size: 0.78rem !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 5px !important;
  }

  .trip-planner-card button[type="submit"] {
    padding: 5px 10px !important;
    font-size: 0.78rem !important;
    height: 33px !important;
    border-radius: 5px !important;
  }

  /* Category Filter Buttons */
  .package-filter-btn {
    font-size: 0.7rem !important;
    padding: 3px 8px !important;
    border-radius: 16px !important;
  }

  /* Package Cards Compact Layout (like gangasagardham.in) */
  .package-card {
    border-radius: 10px !important;
    margin-bottom: 12px !important;
  }

  .package-image-wrap {
    height: 170px !important;
  }

  .package-content {
    padding: 10px 15px !important;
  }

  .package-title {
    font-size: 0.88rem !important;
    line-height: 1.25 !important;
    margin-bottom: 3px !important;
  }

  .package-badge {
    font-size: 0.58rem !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
  }

  .package-features {
    font-size: 0.72rem !important;
    gap: 3px !important;
    margin-bottom: 6px !important;
  }

  .package-feature-item {
    font-size: 0.72rem !important;
  }

  .package-price .price-from {
    font-size: 0.58rem !important;
  }

  .package-price .price-val {
    font-size: 1.05rem !important;
    font-weight: 800;
  }

  .package-footer {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding-top: 8px !important;
  }

  .package-cta-group {
    width: auto !important;
    gap: 5px !important;
  }

  .package-cta-group .btn {
    padding: 4px 7px !important;
    font-size: 0.72rem !important;
    border-radius: 5px !important;
    flex: initial !important;
  }

  /* Package Detail Page Elements */
  .package-gallery-img {
    height: 180px !important;
    object-fit: cover;
  }

  .itinerary-accordion-btn {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
  }

  .itinerary-accordion-btn .itinerary-day-badge {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
  }

  .itinerary-accordion-body {
    padding: 10px 10px !important;
    font-size: 0.76rem !important;
    line-height: 1.5 !important;
  }

  .inclusion-box, .exclusion-box {
    padding: 10px 10px !important;
    font-size: 0.74rem !important;
  }

  /* Service / Feature / Why Cards */
  .service-card, .trust-feature-card, .why-box {
    padding: 10px 10px !important;
    border-radius: 8px !important;
  }

  .service-icon, .trust-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
    margin-bottom: 6px !important;
  }

  .counter-box .counter-num {
    font-size: 1.35rem !important;
  }

  .counter-box .counter-label {
    font-size: 0.68rem !important;
  }

  /* Testimonials & FAQ */
  .testimonial-card {
    padding: 10px 10px !important;
  }

  .testimonial-text {
    font-size: 0.75rem !important;
    line-height: 1.45 !important;
  }

  .accordion-button {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
  }

  .accordion-body {
    padding: 8px 10px !important;
    font-size: 0.76rem !important;
    line-height: 1.48 !important;
  }

  /* Contact Us Page */
  .contact-info-card {
    padding: 10px 10px !important;
  }

  .ratio-21x9 {
    min-height: 180px !important;
    height: 180px !important;
  }

  /* Policy Pages */
  .policy-card {
    padding: 12px 10px !important;
  }

  /* Modal Form Compactness */
  .modal-dialog {
    margin: 6px !important;
  }

  .modal-header {
    padding: 8px 12px !important;
  }

  .modal-title {
    font-size: 0.86rem !important;
  }

  .modal-body {
    padding: 10px 10px !important;
  }

  .enquiry-form-box label {
    font-size: 0.68rem !important;
    margin-bottom: 2px !important;
  }

  .enquiry-form-box .form-control,
  .enquiry-form-box .form-select {
    padding: 4px 8px !important;
    font-size: 0.78rem !important;
    height: 32px !important;
    min-height: 32px !important;
  }

  .enquiry-form-box textarea.form-control {
    height: 52px !important;
    min-height: 52px !important;
  }

  /* Thank You Page Mobile */
  .thankyou-section {
    padding: 18px 8px !important;
    min-height: 48vh !important;
  }

  .thankyou-wrapper {
    border-radius: 10px !important;
  }

  .thankyou-header {
    padding: 14px 10px 10px !important;
  }

  .thankyou-header h1 {
    font-size: 1.15rem !important;
    margin-bottom: 2px !important;
  }

  .thankyou-header p {
    font-size: 0.72rem !important;
  }

  .success-icon-wrap {
    width: 38px !important;
    height: 38px !important;
    margin-bottom: 6px !important;
  }

  .success-icon-wrap i {
    font-size: 1.05rem !important;
  }

  .thankyou-body {
    padding: 10px 8px 8px !important;
  }

  .thankyou-details-box {
    padding: 8px 8px !important;
    margin-bottom: 8px !important;
  }

  .thankyou-details-box .details-heading {
    font-size: 0.72rem !important;
    margin-bottom: 4px !important;
  }

  .thankyou-details-box .details-grid {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
    font-size: 0.72rem !important;
  }

  .thankyou-message-box {
    padding: 8px 8px !important;
    margin-bottom: 8px !important;
    gap: 6px !important;
  }

  .thankyou-message-box p {
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
  }

  .thankyou-body .contact-info-box {
    grid-template-columns: 1fr !important;
    gap: 5px !important;
    margin-bottom: 8px !important;
  }

  .thankyou-body .contact-info-item {
    padding: 6px 8px !important;
  }

  .thankyou-body .contact-info-item i {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    font-size: 0.68rem !important;
  }

  .thankyou-body .contact-info-text span {
    font-size: 0.58rem !important;
  }

  .thankyou-body .contact-info-text a,
  .thankyou-body .contact-info-text span:last-child {
    font-size: 0.72rem !important;
  }

  .redirect-notice {
    padding: 6px 8px !important;
    font-size: 0.68rem !important;
  }

  /* Prefooter CTA Mobile */
  .prefooter-cta-wrapper {
    padding: 20px 10px !important;
    text-align: center;
  }

  .prefooter-title {
    font-size: 1.15rem !important;
  }

  .prefooter-desc {
    font-size: 0.76rem !important;
    margin-bottom: 10px !important;
  }

  /* Footer Section Mobile */
  .site-footer {
    padding: 26px 0 12px !important;
    /*text-align: center;*/
  }

  .footer-brand img {
    max-height: 32px;
  }

  .site-footer h5 {
    font-size: 0.88rem !important;
    margin-bottom: 6px !important;
  }

  .site-footer h5::after {
    left: 20%;
    transform: translateX(-50%);
  }

  .footer-desc {
    font-size: 0.74rem !important;
    margin-bottom: 10px !important;
  }

  .footer-contact-item {
    /*justify-content: center !important;*/
    /*text-align: center !important;*/
    font-size: 0.74rem !important;
    margin-bottom: 6px !important;
  }

  .footer-links a {
    /*justify-content: center !important;*/
    font-size: 0.74rem !important;
  }

  .footer-links li {
    margin-bottom: 3px !important;
  }

  .footer-bottom {
    padding-top: 10px !important;
    font-size: 0.68rem !important;
  }

  /* Offcanvas Drawer Mobile */
  .offcanvas.offcanvas-start {
    width: 360px !important;
    max-width: 95vw !important;
  }

  .offcanvas-header {
    padding: 10px 12px !important;
  }

  .offcanvas-body {
    padding: 10px 10px !important;
  }

  .offcanvas .nav-link {
    font-size: 0.82rem !important;
    padding: 6px 10px !important;
  }
  .prefooter-cta-section {
      padding: 22px 0!important;
    }
}

/* ==========================================================================
   4. SCREEN SIZES: max-width: 425px (Small Mobile e.g., iPhone SE, Galaxy A)
   ========================================================================== */
@media (max-width: 425px) {
  .brand-name {
    font-size: 0.88rem;
  }

  .brand-logo-wrap img {
    max-height: 32px;
  }

  .mobile-bottom-bar {
    height: 60px;
    padding: 4px 4px;
  }

  .mobile-bottom-bar .bar-btn {
    font-size: 0.68rem;
    padding: 12px 2px;
  }

  .bar-btn i {
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 1.55rem !important;
  }

  .hero-buttons .btn {
    font-size: 0.7rem !important;
    padding: 5px 8px !important;
  }

  .section-title {
    font-size: 1.15rem !important;
  }
  .content-img-wrap img {
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      max-height: 200px!important;
      object-fit: cover;
      width: 100%;
    }
    .page-hero-breadcrumbs{
        display: none!important;
    }
    .tour-price-box{
        display: block!important;
        padding: 1px 14px;
    }
    .current-price{
        font-size: 18px !important;
    }
    .package-detail-hero{
        min-height: 0px !important;
    }
    .hero-glass-card {
       /*background: rgb(68 68 68 / 10%)!important;*/
       top: 0px!important;
       backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: transparent !important;
    }
    .destination-card{
        height: 209px!important;
    }
    #packages-section{
        padding-left: 20px!important;
        padding-right: 20px!important;
    }
    .editorial-section{
        padding-left: 20px!important;
        padding-right: 20px!important;
    }
    .destinations-cla{
        padding-left: 20px!important;
        padding-right: 20px!important;
    }
    
}

/* ==========================================================================
   5. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ========================================================================== */
@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::before {
    animation: none;
  }
}
