/* Responsive CSS for Fly 5 Star Travel */

/* 1280px Desktop & Large Screens */
@media (max-width: 1280px) {
  .f5s-hero-title {
    font-size: 48px;
  }
  .f5s-package-grid,
  .f5s-dest-track {
    gap: 18px;
  }
  .f5s-dest-card {
    flex: 0 0 calc((100% - 54px) / 4);
  }
}

/* 1024px Tablet Landscape */
@media (max-width: 1024px) {
  .f5s-nav-list {
    display: none;
  }
  .f5s-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  .f5s-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .f5s-package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .f5s-dest-card {
    flex: 0 0 calc((100% - 18px) / 2);
  }
  .f5s-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .f5s-single-layout {
    grid-template-columns: 1fr;
  }
  .f5s-booking-sticky {
    position: static;
    margin-top: 30px;
  }
  .f5s-gallery-grid {
    height: 400px;
  }
  .f5s-archive-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* WordPress Admin Bar Compatibility on Mobile & Tablets */
@media screen and (max-width: 782px) {
  .admin-bar .f5s-header {
    top: 46px;
  }
  .admin-bar .f5s-mobile-drawer {
    top: 46px;
    height: calc(100% - 46px);
  }
  .admin-bar .f5s-header.f5s-header--hidden {
    transform: none !important;
  }
}

/* 768px Tablet Portrait & Mobile */
@media (max-width: 768px) {
  /* Layout Spacing */
  .f5s-section {
    padding: 44px 0 !important;
  }
  .f5s-section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 28px !important;
  }
  .f5s-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Prevent iOS Safari Auto-Zoom on Form Inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="search"],
  input[type="number"],
  select,
  textarea,
  .f5s-input-pill,
  .f5s-search-input,
  .f5s-subscribe-input,
  .f5s-switcher-select {
    font-size: 16px !important;
  }

  /* Header & Navigation */
  .f5s-header {
    height: 70px;
  }
  .f5s-header.scrolled {
    height: 58px;
  }
  .f5s-header.scrolled .f5s-logo-img {
    max-height: 34px;
  }
  .f5s-header.scrolled .f5s-fallback-logo {
    font-size: 18px;
  }
  .f5s-header-actions .f5s-switchers,
  .f5s-header-actions .f5s-btn {
    display: none;
  }
  .f5s-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }
  .f5s-drawer-close {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Announcement Bar Mobile Safety */
  .f5s-announcement-bar .f5s-container {
    padding-right: 44px !important;
    flex-wrap: wrap !important;
    font-size: 12px !important;
    gap: 8px !important;
  }
  .f5s-announcement-close {
    right: 12px !important;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile Drawer Switchers */
  .f5s-drawer-switchers {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    margin-top: 10px;
    border-top: 1px solid var(--f5s-border, #E5E7EB);
    border-bottom: 1px solid var(--f5s-border, #E5E7EB);
  }
  .f5s-drawer-switchers .f5s-switcher-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--f5s-bg-light, #F8FAFC);
    border: 1px solid var(--f5s-border, #E2E8F0);
    border-radius: 9999px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
  }
  .f5s-drawer-switchers select {
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--f5s-navy, #0A1D63);
    outline: none;
    cursor: pointer;
    width: 100%;
  }

  /* Hero Section */
  .f5s-hero-banner {
    height: auto;
    min-height: 480px;
    padding: 30px 16px;
  }
  .f5s-hero-title {
    font-size: 34px;
  }
  .f5s-hero-subtitle {
    font-size: 15px;
  }
  .f5s-hero-search {
    flex-direction: column;
    border-radius: 20px;
    padding: 16px;
    gap: 12px;
  }
  .f5s-search-col {
    width: 100%;
  }
  .f5s-search-divider {
    display: none;
  }
  .f5s-search-submit {
    width: 100%;
    border-radius: var(--f5s-radius-pill);
    height: 48px;
    min-height: 48px;
  }

  /* Cards & Grids Stacking (Enforced with !important against inline styles) */
  .f5s-trip-banners-grid {
    grid-template-columns: 1fr;
  }
  .f5s-trip-banner-card {
    height: 280px;
    padding: 24px;
  }
  .f5s-package-grid {
    grid-template-columns: 1fr !important;
  }
  .f5s-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .f5s-blog-grid {
    grid-template-columns: 1fr;
  }

  /* Generic Form Row (Converts 2-col to 1-col on mobile) */
  .f5s-form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Spotlight & Feature Cards Mobile Padding & Stacking */
  .f5s-spotlight-card,
  .f5s-service-feature-card,
  .f5s-visa-hero-card {
    grid-template-columns: 1fr !important;
    padding: 24px 18px !important;
    gap: 24px !important;
  }
  .f5s-spotlight-card img,
  .f5s-service-feature-card img,
  .f5s-visa-hero-card img {
    height: 260px !important;
  }
  .f5s-docs-preview-card {
    padding: 24px 18px !important;
  }
  .f5s-docs-preview-card h2 {
    font-size: 24px !important;
  }
  .f5s-visa-cat-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Destination Carousel with Native Touch-Snapping */
  .f5s-dest-track {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .f5s-dest-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  /* Newsletter Subscribe Section */
  .f5s-subscribe-wrap {
    padding: 20px;
  }
  .f5s-subscribe-card {
    padding: 24px 18px;
  }
  .f5s-subscribe-input-wrap {
    flex-direction: column;
    background: transparent;
    padding: 0;
    gap: 10px;
  }
  .f5s-subscribe-input {
    background: #ffffff;
    border-radius: var(--f5s-radius-pill);
    padding: 12px 18px;
    width: 100%;
  }
  .f5s-subscribe-input-wrap .f5s-btn {
    width: 100%;
    min-height: 46px;
  }

  /* Single Package Page Layout */
  .f5s-gallery-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .f5s-gallery-main {
    height: 280px;
  }
  .f5s-gallery-stacked {
    display: none;
  }
  .f5s-info-bar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
    gap: 16px;
    padding: 20px;
  }
  .f5s-checklist-grid {
    grid-template-columns: 1fr;
  }
  .f5s-reviews-summary {
    grid-template-columns: 1fr;
  }

  /* Stepper Touch Target */
  .f5s-stepper-btn {
    min-width: 42px !important;
    min-height: 42px !important;
    font-size: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Sticky Bottom Booking Bar vs Floating WhatsApp/Back-to-Top Safety */
  .f5s-sticky-bottom-bar {
    display: flex;
    z-index: 99990;
  }
  body.single-package .f5s-floating-wa {
    bottom: 84px !important;
  }
  body.single-package #f5s-back-to-top {
    bottom: 148px !important;
  }

  /* Footer */
  .f5s-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .f5s-footer {
    padding: 50px 0 24px !important;
  }
  .f5s-footer-bottom {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center !important;
  }

  /* Filter Bar */
  .f5s-filter-bar {
    flex-direction: column;
    border-radius: 20px;
    align-items: stretch;
  }
  .f5s-filter-search {
    max-width: 100%;
  }
}

/* 390px and 360px Small Mobile Viewports */
@media (max-width: 390px) {
  .f5s-hero-title {
    font-size: 28px;
  }
  .f5s-section-title {
    font-size: 24px;
  }
  .f5s-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  .f5s-hero-quick-chips {
    gap: 6px !important;
  }
  .f5s-chip-btn {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
  }
}

