/* ==========================================================================
   ROYAL INDIA JOURNEYS - RESPONSIVE STYLESHEET
   Mobile-First & Breakpoint Specific Layout Rules
   Verified for: 320px, 360px, 375px, 390px, 414px, 768px, 1024px, 1119px, 1120px, 1366px, 1440px, 1920px
   ========================================================================== */

/* Large Desktop / Monitor (> 1280px) */
@media (min-width: 1281px) {
  .container {
    max-width: 1240px;
  }
}

/* Standard Desktop / Laptop (1120px - 1280px) */
@media (max-width: 1280px) and (min-width: 1120px) {
  .nav-menu {
    gap: 0.75rem;
  }
  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.15rem;
  }
  .dropdown-menu.mega-menu {
    width: 500px;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 1.5rem;
  }
}

/* Header Breakpoint & Navigation Collapse (<= 1119px) */
@media (max-width: 1119px) {
  .desktop-navigation,
  .desktop-quote-cta {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .mobile-menu-button {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .header-inner {
    min-height: 88px;
  }

  .fleet-grid,
  .service-grid,
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dest-grid,
  .steps-grid,
  .route-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .footer-about {
    grid-column: span 2;
  }

  .booking-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait & Large Mobile (<= 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 64px; /* Room for mobile fixed bottom bar */
  }

  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .fleet-grid,
  .service-grid,
  .package-grid,
  .dest-grid,
  .steps-grid,
  .route-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Hero Optimization */
  .hero-slider-section {
    width: 100%;
    overflow: hidden;
  }

  .hero-slider {
    min-height: 560px;
    width: 100%;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    padding: 56px 20px 110px !important;
    box-sizing: border-box;
  }

  .hero-title {
    font-size: clamp(30px, 7.8vw, 42px) !important;
    line-height: 1.15 !important;
    margin-bottom: 14px !important;
    max-width: 100% !important;
    word-break: normal;
  }

  .hero-subtitle {
    font-size: 16px !important;
    line-height: 1.65 !important;
    margin-bottom: 22px !important;
    max-width: 100% !important;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    margin: 0 !important;
  }

  .hero-buttons .btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .slider-arrow {
    display: none; /* Rely on dots and touch swipe on mobile */
  }

  .hero-slider-nav {
    bottom: 24px;
  }

  /* Mobile Quotation Form Card & Header */
  .booking-card {
    width: calc(100% - 32px);
    max-width: 100%;
    margin-inline: auto;
    padding: 24px 18px;
    border-radius: 18px;
    box-sizing: border-box;
  }

  .booking-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
  }

  .booking-card-title {
    width: 100%;
    font-size: clamp(24px, 6.5vw, 30px);
    line-height: 1.15;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: normal;
  }

  .booking-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
  }
  .form-group.span-2 {
    grid-column: span 1;
  }
  .booking-submit-area {
    flex-direction: column;
    align-items: stretch;
  }
  .booking-submit-area .btn {
    width: 100%;
  }

  .filter-toolbar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .filter-toolbar::-webkit-scrollbar {
    display: none;
  }

  .desktop-fixed-cta {
    display: none !important;
  }
  .mobile-bottom-bar {
    display: none !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-about {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .header-inner {
    width: calc(100% - 24px);
    gap: 8px;
  }

  .brand {
    gap: 6px;
    max-width: calc(100% - 54px);
  }

  .official-brand-logo {
    width: 170px;
    height: 76px;
    max-width: none;
  }

  .fleet-actions,
  .package-footer {
    flex-direction: column;
  }
  .fleet-actions .btn,
  .package-footer .btn {
    width: 100%;
  }
}

/* Ultra-compact Mobile (<= 360px) */
@media (max-width: 360px) {
  .official-brand-logo {
    width: 145px;
    height: 66px;
    max-width: none;
  }
  .mobile-menu-button {
    width: 40px;
    height: 40px;
    padding: 8px;
  }
}
