/* Responsive Breakpoints - India Jogi Tours Redesign */

/* Large Tablets & Small Laptops (under 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-header h2 {
    font-size: 2.25rem;
  }
  
  /* Navigation */
  .nav-menu {
    gap: 1.5rem;
  }
  
  .nav-links {
    gap: 1.25rem;
  }
  
  /* Hero Slider */
  .hero-slide h2 {
    font-size: 3.5rem;
  }
  
  /* Badges */
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .badges-section {
    transform: translateY(-2rem);
    margin-bottom: -1rem;
  }
  
  /* Welcome / About */
  .welcome-grid {
    gap: 3rem;
  }
  
  /* Destinations */
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Featured Tours */
  .tour-card {
    flex: 0 0 calc((100% - 1.75rem) / 2);
  }
  
  /* Services */
  .service-card {
    flex: 0 0 calc((100% - 3rem) / 3);
  }

  /* Fleet Grid */
  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  /* Contact page query additions */
  .inquiry-grid {
    gap: 2.5rem;
  }
  .inquiry-form-wrapper {
    padding: 2.5rem;
  }

  /* Fleet Header */
  .fleet-header-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
  }
  .fleet-header-left h2 {
    font-size: 2.25rem;
  }
  .fleet-header-right {
    padding-left: 1.5rem;
  }
  .fleet-header-left {
    position: static;
  }

  /* Hotel Intro Section */
  .hotel-header-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
  }
  .hotel-header-left h2 {
    font-size: 2.25rem;
  }
  .hotel-narrative-box {
    padding-left: 1.5rem;
  }
  .hotel-header-left {
    position: static;
  }

  /* Rail Intro Section */
  .rail-header-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
  }
  .rail-header-left h2 {
    font-size: 2.25rem;
  }
  .rail-narrative-box {
    padding-left: 1.5rem;
  }
  .rail-header-left {
    position: static;
  }

  /* Airline Intro Section */
  .airline-header-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
  }
  .airline-header-left h2 {
    font-size: 2.25rem;
  }
  .airline-narrative-box {
    padding-left: 1.5rem;
  }
  .airline-header-left {
    position: static;
  }

  /* Visa Intro Section */
  .visa-header-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
  }
  .visa-header-left h2 {
    font-size: 2.25rem;
  }
  .visa-narrative-box {
    padding-left: 1.5rem;
  }
  .visa-header-left {
    position: static;
  }
  .hotel-features-list {
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  /* Packages & Tour Details tablet overrides */
  .packages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.75rem !important;
  }
  .specs-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  .inner-hero {
    padding: 4.5rem 0 !important;
  }
  .inner-hero h1 {
    font-size: 2.5rem !important;
  }
}

/* Medium Tablets & Mobile Landscape (under 768px) */
@media (max-width: 768px) {
  /* Navigation & Drawer */
  .main-header {
    position: relative;
    top: 0;
    padding: 1rem 0;
  }
  
  .main-header.sticky {
    position: fixed;
    top: 0;
  }
  
  .logo img {
    max-height: 2.8rem;
  }
  
  .main-header.sticky .logo img {
    max-height: 2.4rem;
  }

  .hamburger {
    display: flex;
  }
  
  .top-bar {
    display: none !important; /* Hide top contact bar on mobile/tablet */
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 6rem 2rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    z-index: 1000;
    overflow-y: auto; /* Enable scrollbar inside the mobile menu drawer */
    visibility: hidden; /* Prevent iOS Safari horizontal scroll expansion */
  }
  
  .nav-links.active {
    right: 0;
    visibility: visible;
  }
  
  .nav-links > li {
    width: 100%;
  }
  
  .nav-links > li > a {
    color: var(--white) !important;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .nav-links > li:hover > a {
    color: var(--accent-color) !important;
  }
  
  .nav-links > li > a::after {
    display: none;
  }
  
  .nav-links > li > a i {
    transition: transform 0.3s ease;
  }
  
  .nav-links > li.active-mobile-dropdown > a i {
    transform: rotate(180deg);
    color: var(--accent-color);
  }
  
  /* Dropdowns on Mobile - Fully Redesigned for Premium Look & Feel */
  .dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 0 0 1.25rem !important;
    transform: none !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    border: none !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  
  .nav-links > li.active-mobile-dropdown .dropdown {
    max-height: 800px;
    padding: 0.5rem 0 0.5rem 1.25rem !important;
  }
  
  /* Reset hover states inherited from desktop styles */
  .nav-links > li:hover .dropdown {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .dropdown a {
    color: rgba(255, 255, 255, 0.65) !important;
    padding: 0.55rem 0 !important;
    text-align: left;
    display: flex !important;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    border: none !important;
    background: transparent !important;
    transition: var(--transition-fast);
  }
  
  .dropdown a::before {
    content: '•';
    color: var(--accent-color);
    margin-right: 0.65rem;
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.2s ease;
  }
  
  .dropdown a:hover {
    background-color: transparent !important;
    color: var(--accent-color) !important;
    padding-left: 0.35rem !important;
  }
  
  .dropdown a:hover::before {
    transform: scale(1.4);
  }
  
  .nav-cta {
    display: none;
  }
  
  /* Hero Slider on Mobile */
  .hero-slider-container {
    height: 80vh;
    min-height: 500px;
  }
  
  .hero-slide h2 {
    font-size: 2.75rem;
  }
  
  .hero-slide-description {
    font-size: 1.15rem;
    margin-bottom: 2rem;
  }
  
  /* Welcome / About */
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .welcome-experience {
    left: 1rem;
  }
  
  /* Featured Tours */
  .tour-card {
    flex: 0 0 100%;
  }
  
  /* Services */
  .service-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }

  /* Fleet Grid */
  .fleet-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .fleet-image-container {
    height: 200px;
  }

  /* Fleet Header */
  .fleet-header-grid {
    gap: 2rem;
  }
  .fleet-header-left h2 {
    font-size: 1.85rem;
  }
  .fleet-header-right .lead-text {
    font-size: 1.15rem;
  }

  /* Packages Page Layout Mobile overrides */
  .packages-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  
  .filter-buttons-list {
    margin-bottom: 2rem !important;
    gap: 0.5rem !important;
    justify-content: center !important;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }

  /* Tour Detail Page Layout Mobile overrides */
  .tour-detail-container {
    padding: 3rem 0 !important;
  }

  .tour-detail-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2.5rem !important;
    overflow: hidden !important;
  }

  .tour-detail-main {
    order: 2 !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .tour-detail-sidebar {
    order: 1 !important;
    margin-bottom: 0.5rem !important;
  }

  .inner-hero {
    padding: 3.5rem 0 !important;
  }

  .inner-hero h1 {
    font-size: 1.85rem !important;
  }

  .inner-hero-breadcrumbs {
    flex-wrap: wrap !important;
  }

  .detail-badges-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .detail-badge-card {
    padding: 1.25rem !important;
    gap: 1rem !important;
  }

  .timeline-day-header {
    padding: 1rem 1.25rem !important;
  }
  
  .day-title-text {
    font-size: 1.05rem !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  
  .day-header-title {
    gap: 0.75rem !important;
    min-width: 0 !important;
    flex: 1 !important;
  }
  
  .booking-sticky-sidebar {
    position: static !important;
    padding: 1.75rem !important;
  }
  
  .detail-hero-info {
    gap: 0.85rem !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1.25rem !important;
  }
  
  .tour-detail-summary {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
  }
  
  .specs-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
  }
  
  .spec-card {
    padding: 1rem 0.75rem !important;
  }

  /* Horizontal scrolling for tabs on mobile */
  .detail-tabs-nav {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 1.25rem !important;
    margin-bottom: 1.75rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(10, 77, 67, 0.08) !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .detail-tabs-nav::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar for standard look */
  }

  .tab-nav-btn {
    flex: 0 0 auto !important;
    padding: 0.5rem 0 !important;
    font-size: 0.95rem !important;
  }

  .inc-exc-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Contact page query additions */
  .inquiry-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Small Phones (under 576px) */
@media (max-width: 576px) {
  
  .main-header {
    top: 0;
    border-bottom: 1px solid rgba(10, 77, 67, 0.08);
  }
  
  .section-header h2 {
    font-size: 1.85rem;
  }
  
  /* Hero Slider */
  .hero-slide h2 {
    font-size: 2.25rem;
  }
  
  .slider-dots {
    bottom: 2rem;
  }
  
  /* Badges */
  .badges-grid {
    grid-template-columns: 1fr;
  }
  
  .badges-section {
    transform: none;
    margin-bottom: 2rem;
    margin-top: 2rem;
  }
  
  /* Welcome / About */
  .welcome-content h2 {
    font-size: 2.15rem;
  }
  
  .welcome-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Destinations */
  .destinations-grid {
    grid-template-columns: 1fr;
  }
  
  .dest-card {
    height: 320px;
  }
  
  /* Services */
  .service-card {
    flex: 0 0 100%;
  }
  
  /* Testimonials */
  .testimonial-content {
    padding: 2rem 1.25rem;
  }
  
  .review-text {
    font-size: 1rem;
  }
  
  .reviewer-profile {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .reviewer-info {
    text-align: center;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom-grid {
    flex-direction: column;
    gap: 1rem;
  }
  
  .floating-action {
    bottom: 1rem;
    right: 1rem;
  }
  
  .float-btn {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  /* Contact page query additions */
  .inquiry-form-wrapper {
    padding: 1.75rem 1.25rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Inquiry modal responsive */
  .inquiry-modal-content {
    padding: 1.75rem 1.25rem;
    max-width: 92%;
  }

  /* Hotel Intro mobile styles */
  .hotel-header-grid {
    gap: 2rem;
  }
  .hotel-header-left h2 {
    font-size: 1.85rem;
  }
  .hotel-narrative-box .lead-text {
    font-size: 1.15rem;
  }
  .hotel-features-list {
    gap: 1.25rem;
  }
  .hotel-feature-item {
    gap: 1rem;
  }
  .hotel-feature-item .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .hotel-feature-item .feature-text h3 {
    font-size: 1.05rem;
  }

  /* Rail Intro mobile styles */
  .rail-header-grid {
    gap: 2rem;
  }
  .rail-header-left h2 {
    font-size: 1.85rem;
  }
  .rail-narrative-box .lead-text {
    font-size: 1.15rem;
  }
  .rail-features-list {
    gap: 1.25rem;
  }
  .rail-feature-item {
    gap: 1rem;
  }
  .rail-feature-item .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .rail-feature-item .feature-text h3 {
    font-size: 1.05rem;
  }

  /* Airline Intro mobile styles */
  .airline-header-grid {
    gap: 2rem;
  }
  .airline-header-left h2 {
    font-size: 1.85rem;
  }
  .airline-narrative-box .lead-text {
    font-size: 1.15rem;
  }
  .airline-features-list {
    gap: 1.25rem;
  }
  .airline-feature-item {
    gap: 1rem;
  }
  .airline-feature-item .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .airline-feature-item .feature-text h3 {
    font-size: 1.05rem;
  }

  /* Visa Intro mobile styles */
  .visa-header-grid {
    gap: 2rem;
  }
  .visa-header-left h2 {
    font-size: 1.85rem;
  }
  .visa-narrative-box .lead-text {
    font-size: 1.15rem;
  }
  .visa-features-list {
    gap: 1.25rem;
  }
  .visa-feature-item {
    gap: 1rem;
  }
  .visa-feature-item .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .visa-feature-item .feature-text h3 {
    font-size: 1.05rem;
  }

  /* Tour Detail Specs Card Grid Mobile reset */
  .specs-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}
