/* ==========================================================================
   VOYA FLIGHTS - RESPONSIVE MOBILE APP EXPERIENCE (< 768px)
   Dynamic header and full 4-step booking funnel directly on mobile browsers
   ========================================================================== */

.mobile-app-bar-top {
  display: none;
}

.mobile-bottom-app-nav {
  display: none;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
  }

  body {
    padding-bottom: 74px;
  }

  .site-header {
    display: none !important;
  }

  /* Dynamic Mobile App Top Header */
  .mobile-app-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(7, 25, 56, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    z-index: 999;
    color: #ffffff;
  }

  .mobile-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Back button is hidden on Home, but shown dynamically on Results, Checkout, and Confirmation */
  .mobile-back-btn {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
  }

  .mobile-back-btn.show-back {
    display: flex !important;
  }

  .mobile-app-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-app-title span {
    color: var(--cyan-accent);
  }

  .mobile-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-call-pill {
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
    color: #ffffff;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
  }

  .mobile-search-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
  }

  /* Mobile Hero Section Adjustment */
  .hero-section {
    padding-top: 24px;
    padding-bottom: 60px;
    min-height: auto;
    width: 100%;
    overflow: hidden;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
    line-height: 1.12;
  }

  .hero-title .script-accent {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }

  .hero-desc {
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  /* Shortened Hook for Mobile View per user instruction */
  .hook-text-desktop {
    display: none;
  }
  .hook-text-mobile {
    display: inline;
  }

  .subnote-desktop {
    display: none;
  }
  .subnote-mobile {
    display: inline;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .hero-actions .btn-gold,
  .hero-actions .btn-ghost-white {
    width: 100%;
    padding: 13px;
    font-size: 0.95rem;
    justify-content: center;
  }

  .hero-proof-row {
    justify-content: flex-start;
  }

  .hero-call-card {
    width: 100%;
    border-radius: var(--radius-lg);
    padding: 20px 16px;
  }

  /* Mobile Flight Search Console */
  .search-console-wrapper {
    margin-top: -35px;
    padding: 0 12px;
    width: 100%;
  }

  .search-console-card {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
    width: 100%;
  }

  .console-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .trip-type-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .trip-tab-btn {
    text-align: center;
    padding: 8px 4px;
    font-size: 0.75rem;
  }

  .console-filters-right {
    justify-content: space-between;
    width: 100%;
  }

  .search-inputs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .btn-route-swap {
    margin: -4px auto;
    transform: rotate(90deg);
  }

  .btn-route-swap:hover {
    transform: rotate(270deg);
  }

  .btn-console-search {
    height: auto;
    padding: 15px;
    width: 100%;
  }

  /* Top Global Flight Routes: Width 95% on Phone View */
  .popular-destinations-section,
  #destinations-section {
    width: 95% !important;
    max-width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .popular-destinations-section .section-head {
    width: 100% !important;
  }

  .popular-destinations-section .destinations-grid {
    width: 100% !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dest-card {
    height: 180px;
  }

  /* Flight Results Top Header / Strip on Phone View */
  .results-top-strip {
    background: linear-gradient(135deg, #071938 0%, #0c2552 100%) !important;
    padding: 12px 14px !important;
    margin: 8px 0 12px !important;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .results-strip-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }

  .results-strip-route {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    overflow: hidden;
  }

  .results-strip-route strong {
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .results-strip-route .strip-sep {
    display: none !important;
  }

  .results-strip-details {
    font-size: 0.76rem !important;
    color: #93c5fd !important;
    white-space: nowrap !important;
  }

  .btn-strip-modify {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Prevent duplicate route heading from wasting phone screen space */
  .results-content-header #results-headline-route {
    display: none !important;
  }

  .results-content-header {
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 4px !important;
  }

  .results-count-pill {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    font-weight: 800 !important;
    font-size: 0.78rem !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
  }

  /* Mobile Funnel Page 2: Flight Cards (Professional Phone UI) */
  .flight-card-v2 {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dbeafe;
    box-shadow: 0 4px 16px rgba(15, 98, 254, 0.05);
    padding: 15px 14px 12px;
    margin-bottom: 12px;
  }

  .flight-card-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .flight-airline-col {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
  }

  .flight-airline-col .airline-logo-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .flight-airline-col .airline-logo-wrap img,
  .flight-airline-col .airline-logo-wrap svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .flight-airline-col .airline-text-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .flight-airline-col .airline-text-wrap h4 {
    font-size: 0.98rem;
    font-weight: 800;
    color: #071938;
    margin: 0;
  }

  .airline-meta-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    color: #64748b;
  }

  /* Pure Blue Stop Chips */
  .flight-stop-chip {
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .flight-stop-chip.nonstop {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
  }

  .flight-stop-chip.stop {
    background: #f0f9ff !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
  }

  /* Timeline Row: Clean No-Wrap Layout */
  .flight-timeline-col {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 4px 0 !important;
  }

  .flight-timeline-col .time-block.origin {
    text-align: left !important;
  }

  .flight-timeline-col .time-block.dest {
    text-align: right !important;
  }

  .flight-timeline-col .time-val {
    font-family: var(--font-display) !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #071938 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  .flight-timeline-col .airport-code {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    color: #1e40af !important;
    letter-spacing: 0.5px !important;
    margin-top: 2px !important;
  }

  .timeline-visual-track {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    min-width: 80px !important;
  }

  .track-duration-label {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #0284c7 !important;
    white-space: nowrap !important;
  }

  .track-svg-line {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 120px !important;
  }

  .track-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #0284c7 !important;
    flex-shrink: 0 !important;
  }

  .track-bar {
    flex: 1 !important;
    height: 2px !important;
    background: #bfdbfe !important;
  }

  .track-plane-icon {
    width: 15px !important;
    height: 15px !important;
    color: #0284c7 !important;
    transform: rotate(45deg) !important;
    margin: 0 4px !important;
    flex-shrink: 0 !important;
  }

  .track-type-label {
    font-size: 0.7rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  /* Pricing Row */
  .flight-pricing-col {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1px solid #f1f5f9 !important;
    border-left: none !important;
    padding-left: 0 !important;
    padding-top: 12px !important;
    margin-top: 2px !important;
  }

  .price-main-val {
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    color: #1d4ed8 !important;
    line-height: 1 !important;
  }

  .price-per-pax {
    font-size: 0.72rem !important;
    color: #64748b !important;
    margin-top: 2px !important;
  }

  .btn-select-book {
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35) !important;
    cursor: pointer !important;
  }

  /* Footer Perks Row */
  .flight-card-footer-strip {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding-top: 10px !important;
    margin-top: 8px !important;
    border-top: 1px dashed #e2e8f0 !important;
  }

  .fare-perk-pill {
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .fare-perk-pill.green,
  .fare-perk-pill.blue {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
  }

  .fare-perk-pill.green .perk-svg,
  .fare-perk-pill.blue .perk-svg {
    color: #2563eb !important;
  }

  /* Mobile Funnel Page 3: Checkout */
  .checkout-grid-layout {
    grid-template-columns: 1fr;
  }

  .passenger-input-group {
    grid-template-columns: 1fr;
  }

  /* Destinations & Deals */
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .dest-card {
    height: 175px;
  }

  .deals-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .testimonials-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .testimonials-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .newsletter-banner {
    flex-direction: column;
    padding: 22px 16px;
    text-align: center;
  }

  .newsletter-form {
    width: 100%;
  }

  /* Mobile Footer Enhancement */
  .site-footer {
    padding-bottom: 95px !important;
  }

  .site-footer.minimal-footer {
    padding-top: 24px !important;
    padding-bottom: 95px !important;
  }

  .minimal-footer-top {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 14px !important;
    padding-bottom: 16px !important;
  }

  .minimal-footer-top .brand-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
  }

  .minimal-footer-top .brand-text {
    text-align: center !important;
  }

  .minimal-trust-chips {
    justify-content: center !important;
    gap: 12px !important;
  }

  .minimal-footer-top a[href^="tel"] {
    width: 100% !important;
    justify-content: center !important;
  }

  .site-footer .footer-bottom {
    padding: 10px 16px 20px !important;
    text-align: center !important;
    font-size: 0.72rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
  }

  /* Mobile Confirmation Page */
  .confirmation-page-wrapper {
    padding: 16px 12px 100px !important;
  }

  .conf-top-hero {
    flex-direction: column !important;
    text-align: center !important;
    gap: 14px !important;
    padding: 20px 16px !important;
  }

  .conf-hero-text p {
    margin: 0 auto !important;
  }

  .conf-ref-card {
    width: 100% !important;
  }

  .conf-content-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .conf-itinerary-card {
    padding: 16px !important;
  }

  .conf-flight-strip {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .conf-timeline-grid {
    grid-template-columns: 1fr auto 1fr !important;
    gap: 6px !important;
    padding: 12px 10px !important;
  }

  .timeline-track {
    width: 60px !important;
  }

  .endpoint-time {
    font-size: 1.05rem !important;
  }

  .conf-meta-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .conf-guarantee-banner {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  .conf-actions-row {
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* Fixed Native Bottom App Navigation Bar */
  .mobile-bottom-app-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -4px 18px rgba(7, 25, 56, 0.08);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mobile-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .mobile-tab-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
  }

  .mobile-tab-item.active {
    color: var(--sky-blue-600);
  }

  .mobile-tab-item:active {
    transform: scale(0.92);
  }

  /* Trust Card Banner (Why Book With Us) - 95% Width & Professional Mobile Card UI */
  .trust-section {
    padding: 14px 0 32px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .trust-card-banner {
    width: 95% !important;
    max-width: 95% !important;
    margin: 0 auto !important;
    padding: 24px 16px !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, #071938 0%, #0c2759 50%, #071938 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 28px rgba(7, 25, 56, 0.3) !important;
    box-sizing: border-box !important;
  }

  .trust-card-banner .section-title {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    margin-top: 6px !important;
    margin-bottom: 4px !important;
    color: #ffffff !important;
  }

  .trust-card-banner .section-tagline {
    font-size: 0.74rem !important;
    letter-spacing: 0.05em !important;
  }

  .trust-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 20px !important;
  }

  .trust-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-align: left !important;
  }

  .trust-icon-wrap {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 10px !important;
    background: rgba(15, 98, 254, 0.22) !important;
    color: #38bdf8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .trust-icon-wrap svg {
    width: 22px !important;
    height: 22px !important;
  }

  .trust-item h5 {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 3px 0 !important;
  }

  .trust-item p {
    font-size: 0.76rem !important;
    color: #94a3b8 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }
}

/* Desktop Defaults for Hook Texts */
@media (min-width: 769px) {
  .hook-text-desktop {
    display: inline;
  }
  .hook-text-mobile {
    display: none;
  }

  .subnote-desktop {
    display: inline;
  }
  .subnote-mobile {
    display: none;
  }
}
