/* ==========================================================================
   GLOBAL ZERO-FLICKER & INSTANT VIEW TRANSITION STYLES
   ========================================================================== */
*, *::before, *::after {
  -webkit-tap-highlight-color: transparent !important;
}

html {
  background-color: #071A2B;
}

body {
  background-color: #F8FAFC;
}

@keyframes fgFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 90ms cubic-bezier(0.4, 0, 1, 1) both fgFadeOut;
}

::view-transition-new(root) {
  animation: 120ms cubic-bezier(0, 0, 0.2, 1) both fgFadeIn;
}

/* ==========================================================================
   FAREGRAM COMPACT TRAVEL SYSTEM — MODERN CORE & COMPONENT STYLES
   ========================================================================== */

/* 1. Global Reset & Body */
html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--fg-font-sans);
  background-color: var(--fg-canvas);
  color: var(--fg-ink-800);
  line-height: 1.55;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--fg-ink-950);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 0;
}

a {
  color: var(--fg-blue-600);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--fg-blue-700);
}

.container-fg {
  width: 100%;
  max-width: var(--fg-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 2. LAYER A: Utility Bar */
.fg-utility-bar {
  background: var(--fg-navy-950);
  color: #c5d1e0;
  font-size: 11px;
  line-height: 1.3;
  padding: 6px 0;
  min-height: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fg-utility-bar .container-fg {
  min-height: 24px;
}
.fg-utility-bar a {
  color: #c5d1e0;
  text-decoration: none;
  transition: color 0.15s ease;
}
.fg-utility-bar a:hover {
  color: #ffffff;
}

/* 3. LAYER B: Primary Brand Header */
.fg-header-main {
  background: var(--fg-surface);
  border-bottom: 1px solid var(--fg-line-150);
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: all 0.2s ease;
  box-shadow: var(--fg-shadow-xs);
}
.fg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.fg-brand-logo {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg-navy-900) !important;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  line-height: 1;
}
.fg-brand-logo span {
  color: var(--fg-coral-500);
}
.fg-brand-descriptor {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-ink-500);
  margin-left: 6px;
  letter-spacing: 0.01em;
  line-height: 1;
}

.fg-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fg-nav-item-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-ink-700);
  padding: 7px 12px;
  border-radius: var(--fg-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 150ms ease, background 150ms ease;
}
.fg-nav-item-link:hover {
  color: var(--fg-blue-600);
  background: var(--fg-blue-50);
}
.fg-nav-item-link:focus-visible {
  outline: 2px solid var(--fg-blue-600);
  outline-offset: 2px;
}

.btn-fg-primary {
  background: var(--fg-blue-600);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 16px;
  border-radius: var(--fg-radius-sm);
  border: 1px solid var(--fg-blue-700);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-fg-primary:hover {
  background: var(--fg-blue-700);
}
.btn-fg-quote {
  background: linear-gradient(135deg, var(--fg-coral-500) 0%, var(--fg-coral-600) 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--fg-radius-sm);
  border: none;
  box-shadow: 0 2px 6px rgba(243, 87, 66, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 160ms ease, box-shadow 160ms ease, transform 140ms ease;
}
.btn-fg-quote:hover {
  background: linear-gradient(135deg, var(--fg-coral-600) 0%, #d83a24 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(243, 87, 66, 0.32);
}
.btn-fg-quote:focus-visible {
  outline: 2px solid var(--fg-coral-600);
  outline-offset: 2px;
}

/* 4. HERO SECTION & BACKGROUND */
.fg-hero-wrap {
  position: relative;
  background: 
    linear-gradient(180deg, rgba(9, 18, 36, 0.94) 0%, rgba(13, 27, 54, 0.92) 55%, rgba(17, 34, 63, 0.96) 100%),
    radial-gradient(circle at 85% 20%, rgba(30, 58, 102, 0.4) 0%, transparent 60%),
    url('../images/banner.jpg') center center / cover no-repeat;
  color: #ffffff;
  padding: 24px 0 52px 0;
}
.fg-hero-heading {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.fg-hero-sub {
  color: #9cb1c9;
  font-size: 12.5px;
  margin-bottom: 16px;
}

/* 5. LAYER C: ELEVATED SERVICE NAVIGATION RAIL */
.fg-service-rail-wrap {
  overflow: hidden;

  position: relative;
  z-index: 10;
  margin-bottom: -22px;
}
.fg-service-rail {
  background: var(--fg-surface);
  border-radius: var(--fg-radius-lg);
  box-shadow: var(--fg-shadow-md);
  border: 1px solid var(--fg-line-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fg-service-rail::-webkit-scrollbar {
  display: none;
}
.fg-service-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 68px;
  min-height: 68px;
  padding: 6px 10px;
  border-radius: var(--fg-radius-md);
  color: var(--fg-ink-600);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
  min-width: 66px;
  max-width: 90px;
  flex: 1 1 0px;
  cursor: pointer;
  border: none;
  background: transparent;
  position: relative;
}
.fg-service-tab .fg-tab-icon {
  margin-bottom: 4px;
  color: var(--fg-ink-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms ease;
}
.fg-service-tab .fg-tab-icon svg {
  width: var(--fg-icon-service, 26px);
  height: var(--fg-icon-service, 26px);
}
.fg-service-tab .fg-tab-label {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}
.fg-service-tab:hover {
  color: var(--fg-blue-600);
  background: var(--fg-blue-50);
}
.fg-service-tab:hover .fg-tab-icon {
  color: var(--fg-blue-600);
}
.fg-service-tab:focus-visible {
  outline: 2px solid var(--fg-blue-600);
  outline-offset: -2px;
}
.fg-service-tab.active {
  color: var(--fg-blue-600);
  background: rgba(8, 120, 249, 0.04);
}
.fg-service-tab.active .fg-tab-icon {
  color: var(--fg-blue-600);
}
.fg-service-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 3px;
  background: var(--fg-blue-600);
  border-radius: var(--fg-radius-full);
}

/* More Dropdown on Narrow Desktops */
.fg-service-tab-more {
  display: none;
}
@media (max-width: 1200px) and (min-width: 769px) {
  .fg-tab-desktop-more {
    display: none !important;
  }
  .fg-service-tab-more {
    display: block;
    min-width: 60px;
    max-width: 80px;
    flex: 1 1 0px;
  }
}

/* 6. BOOKING CONSOLE SURFACE */
.fg-booking-console {
  background: var(--fg-surface);
  border-radius: 22px;
  border: 1px solid var(--fg-line-150);
  box-shadow: var(--fg-shadow-console);
  padding: var(--search-panel-padding-y, 26px) var(--search-panel-padding-x, 28px);
  color: var(--fg-ink-800);
  position: relative;
  min-height: auto;
  height: auto;
  display: flex;
  flex-direction: column;
}

.fg-service-panel {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fg-panel-header {
  border-bottom: 1px solid var(--fg-line-100);
  padding-bottom: 12px;
  margin-bottom: 14px;
  min-height: var(--search-header-height, 44px);
}
.fg-panel-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--fg-ink-950);
}
.fg-panel-trust-badge {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.fg-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--fg-line-100);
  padding-bottom: 12px;
  margin-bottom: 14px;
  min-height: var(--search-header-height, 44px);
}
.fg-trip-radio-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.fg-trip-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-ink-700);
  cursor: pointer;
}
.fg-trip-radio input {
  accent-color: var(--fg-blue-600);
}

/* Segmented Input Grids */
.fg-input-grid {
  display: grid;
  grid-template-columns: 2.2fr 0px 2.2fr 1.6fr 1.6fr 2.4fr;
  align-items: stretch;
  border: 1px solid var(--fg-line-200);
  border-radius: var(--fg-radius-md);
  background: var(--fg-surface);
  position: relative;
  overflow: visible;
  min-height: var(--search-field-height, 94px);
}
.fg-flight-grid {
  grid-template-columns: 1.3fr 0px 1.3fr 0.85fr 0.85fr 0.85fr 0.9fr;
}
.fg-hotel-grid {
  grid-template-columns: 3.2fr 2fr 2fr 2.8fr;
}
.fg-holiday-grid {
  grid-template-columns: 2.5fr 2fr 1.8fr 1.8fr 2.4fr;
}
.fg-input-segment {
  padding: 9px 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fg-input-segment:not(:last-child) {
  border-right: 1px solid var(--fg-line-200);
}
.fg-input-segment:hover {
  background: var(--fg-blue-50);
}
.fg-input-segment:focus-within {
  background: #ffffff;
  outline: 2px solid var(--fg-blue-500);
  outline-offset: -2px;
  z-index: 3;
}
.fg-input-micro-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg-ink-500);
  margin-bottom: 2px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.fg-input-main-val {
  font-size: 19px;
  font-weight: 800;
  color: var(--fg-ink-950);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fg-input-sub-val {
  font-size: 11px;
  color: var(--fg-ink-500);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fg-input-field-hidden {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg-ink-950);
  padding: 0;
  outline: none;
  cursor: pointer;
}

/* Swap Button bridging From and To */
.fg-swap-btn-wrap {
  position: relative;
  width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.fg-swap-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--fg-surface);
  border: 1px solid var(--fg-line-200);
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: var(--fg-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-blue-600);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, background 0.15s ease, box-shadow 0.2s ease;
  padding: 0;
  pointer-events: auto;
}
.fg-swap-btn:hover {
  transform: translate(-50%, -50%) rotate(180deg);
  border-color: var(--fg-blue-500);
  background: var(--fg-blue-50);
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.2);
}
.fg-swap-btn:focus-visible {
  outline: 2px solid var(--fg-blue-600);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .fg-swap-btn:hover {
    transform: translate(-50%, -50%);
  }
}

/* Fare Types Strip */
.fg-fare-options-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.fg-fare-label-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg-ink-500);
  margin-right: 4px;
}
.fg-fare-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg-ink-700);
  background: var(--fg-line-100);
  padding: 4px 12px;
  border-radius: var(--fg-radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.fg-fare-chip:hover {
  background: var(--fg-blue-50);
  color: var(--fg-blue-700);
}
.fg-fare-chip input[type="radio"]:focus-visible + span,
.fg-fare-chip:has(input[type="radio"]:focus-visible) {
  outline: 2px solid var(--fg-blue-600);
  outline-offset: 2px;
}
.fg-fare-chip.active,
.fg-fare-chip:has(input[type="radio"]:checked) {
  background: var(--fg-blue-50) !important;
  color: var(--fg-blue-700) !important;
  border-color: var(--fg-blue-300) !important;
  box-shadow: 0 1px 3px rgba(3, 105, 161, 0.12);
}
.fg-fare-disclaimer {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
  font-style: italic;
}

/* Persistent Contact Delivery Box */
.fg-contact-delivery-box {
  background: #f8fafc;
  border: 1px solid var(--fg-line-200);
  border-radius: var(--fg-radius-md);
  padding: 14px 16px;
  margin-top: 14px;
}
.fg-contact-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-ink-700);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.fg-contact-input {
  height: 44px;
  font-size: 13px;
  border: 1px solid var(--fg-line-200);
  border-radius: var(--fg-radius-sm);
  background: #ffffff;
  padding: 0 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fg-contact-input:focus {
  border-color: var(--fg-blue-500);
  box-shadow: 0 0 0 3px rgba(8, 120, 249, 0.15);
}

/* Action Zone & Live Request Summary */
.fg-action-zone {
  margin-top: 20px;
  padding-top: 0;
}
.fg-live-summary-wrap {
  min-height: 24px;
}
.fg-live-summary-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--fg-radius-full);
  border: 1px solid #e2e8f0;
}

/* Floating Search Button */
.fg-search-submit-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}
.btn-fg-search {
  background: linear-gradient(135deg, var(--fg-blue-600) 0%, var(--fg-blue-700) 100%);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  width: var(--search-button-width, 400px);
  max-width: 100%;
  height: var(--search-button-height, 54px);
  border-radius: var(--fg-radius-full);
  border: none;
  box-shadow: 0 8px 20px rgba(8, 120, 249, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
}
.btn-fg-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(8, 120, 249, 0.45);
}

/* 7. QUICK UTILITY TOOLS STRIP */
.fg-quick-tools-strip {
  background: var(--fg-surface);
  border-radius: var(--fg-radius-lg);
  border: 1px solid var(--fg-line-200);
  box-shadow: var(--fg-shadow-sm);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 18px 0 14px 0;
  overflow: hidden;
}
.fg-tool-item {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-ink-800);
  text-decoration: none;
  transition: background 0.15s ease;
  border-right: 1px solid var(--fg-line-150);
}
.fg-tool-item:last-child {
  border-right: none;
}
.fg-tool-item:hover {
  background: var(--fg-blue-50);
}
.fg-tool-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--fg-radius-sm);
  background: var(--fg-line-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-blue-600);
  flex-shrink: 0;
}
.fg-tool-item:hover .fg-tool-icon-wrap {
  background: var(--fg-blue-600);
  color: #ffffff;
}
.fg-tool-text-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-ink-900);
  line-height: 1.2;
}
.fg-tool-text-sub {
  font-size: 11px;
  color: var(--fg-ink-500);
  line-height: 1.2;
}

/* 8. SECTION CONTAINERS & HEADERS */
.fg-section {
  padding: 36px 0;
}
.fg-section-title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}
.fg-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--fg-ink-950);
  margin-bottom: 2px;
}
.fg-section-subtitle {
  font-size: 12.5px;
  color: var(--fg-ink-500);
  margin: 0;
}

/* 9. OFFERS SECTION (HORIZONTAL CAROUSEL) */
.fg-offers-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.fg-offer-card {
  background: var(--fg-surface);
  border-radius: var(--fg-radius-md);
  border: 1px solid var(--fg-line-150);
  box-shadow: var(--fg-shadow-xs);
  display: flex;
  min-width: 480px;
  max-width: 520px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.fg-offer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--fg-shadow-md);
}
.fg-offer-img {
  width: 170px;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.fg-offer-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}
.fg-offer-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg-coral-600);
  background: var(--fg-coral-50);
  padding: 2px 6px;
  border-radius: var(--fg-radius-xs);
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 4px;
}
.fg-offer-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fg-ink-950);
  line-height: 1.3;
  margin-bottom: 4px;
}
.fg-offer-desc {
  font-size: 11.5px;
  color: var(--fg-ink-600);
  line-height: 1.4;
  margin-bottom: 10px;
}
.fg-offer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--fg-line-200);
  padding-top: 8px;
}
.fg-offer-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-ink-800);
  font-family: monospace;
}

/* 10. PACKAGES & DESTINATIONS CARDS */
.fg-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.fg-pkg-card {
  background: var(--fg-surface);
  border-radius: var(--fg-radius-md);
  border: 1px solid var(--fg-line-150);
  overflow: hidden;
  box-shadow: var(--fg-shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.fg-pkg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fg-shadow-md);
}
.fg-pkg-img-wrap {
  position: relative;
  height: 175px;
  overflow: hidden;
}
.fg-pkg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.fg-pkg-card:hover .fg-pkg-img {
  transform: scale(1.04);
}
.fg-pkg-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(7, 26, 43, 0.85);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--fg-radius-xs);
  backdrop-filter: blur(4px);
}
.fg-pkg-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.fg-pkg-dest {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg-blue-600);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.fg-pkg-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-ink-950);
  line-height: 1.3;
  margin-bottom: 6px;
}
.fg-pkg-duration {
  font-size: 11.5px;
  color: var(--fg-ink-500);
  margin-bottom: 12px;
}
.fg-pkg-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--fg-line-100);
  padding-top: 10px;
}
.fg-pkg-price-from {
  font-size: 10px;
  color: var(--fg-ink-500);
  text-transform: uppercase;
  font-weight: 600;
}
.fg-pkg-price {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--fg-ink-950);
}

/* 11. SEO & INFORMATION DIRECTORY LAYER */
.fg-info-layer {
  background: var(--fg-surface);
  border-top: 1px solid var(--fg-line-200);
  border-bottom: 1px solid var(--fg-line-200);
  padding: 36px 0;
}
.fg-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.fg-info-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg-ink-900);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--fg-blue-500);
  display: inline-block;
  padding-bottom: 3px;
}
.fg-info-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fg-info-links li {
  margin-bottom: 6px;
}
.fg-info-links a {
  font-size: 12px;
  color: var(--fg-ink-600);
}
.fg-info-links a:hover {
  color: var(--fg-blue-600);
}

/* 12. THREE-TIER PREMIUM FAREGRAM FOOTER */
/* Part A: Pre-Footer Trust Band */
.fg-footer-trust-band {
  background: var(--fg-surface-sub);
  border-top: 1px solid var(--fg-line-150);
  border-bottom: 1px solid var(--fg-line-150);
  padding: 24px 0;
  margin-top: 48px;
}
.fg-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.fg-trust-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--fg-line-150);
  border-radius: var(--fg-radius-md);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 140ms ease;
  text-decoration: none;
}
.fg-trust-action:hover {
  border-color: var(--fg-blue-400);
  box-shadow: var(--fg-shadow-sm);
  transform: translateY(-1px);
}
.fg-trust-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--fg-radius-sm);
  background: var(--fg-surface-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-navy-850);
}
.fg-trust-content {
  display: flex;
  flex-direction: column;
}
.fg-trust-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-ink-950);
  line-height: 1.25;
}
.fg-trust-sub {
  font-size: 11px;
  color: var(--fg-ink-500);
  line-height: 1.2;
}

/* Part B: Light Information Footer */
.fg-footer-light {
  background: var(--fg-footer-light);
  padding: 48px 0 36px 0;
  font-size: 12.5px;
  color: var(--fg-ink-700);
}
.fg-footer-light h6 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg-ink-950);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fg-footer-accordion-btn {
  background: transparent;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-ink-950);
  border-bottom: 1px solid var(--fg-line-150);
  text-align: left;
}
.fg-footer-accordion-btn .fg-chevron {
  transition: transform 180ms ease;
}
.fg-footer-accordion-btn[aria-expanded="true"] .fg-chevron {
  transform: rotate(180deg);
}

.fg-footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fg-footer-nav-list li {
  margin-bottom: 8px;
}
.fg-footer-nav-list a {
  color: var(--fg-ink-600);
  font-size: 12.5px;
  display: inline-block;
  transition: color 140ms ease;
}
.fg-footer-nav-list a:hover {
  color: var(--fg-blue-600);
}

/* Part C: Dark Minimalist Social & Legal Bar */
.fg-footer-dark {
  background: var(--fg-footer-dark);
  color: #8b949e;
  padding: 24px 0;
  font-size: 11.5px;
  border-top: 1px solid #161b22;
}
.fg-footer-dark a {
  color: #8b949e;
}
.fg-footer-dark a:hover {
  color: #ffffff;
}
.fg-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--fg-radius-full);
  background: #161b22;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, transform 120ms ease;
}
.fg-social-link:hover {
  background: var(--fg-blue-600);
  transform: translateY(-2px);
}
.fg-social-link:focus-visible {
  outline: 2px solid var(--fg-blue-400);
  outline-offset: 2px;
}

/* Floating WhatsApp Action Variables */
:root {
  --whatsapp-fab-size: 56px;
  --whatsapp-fab-size-mobile: 50px;
  --whatsapp-fab-right: 24px;
  --whatsapp-fab-bottom: 24px;
  --whatsapp-fab-z-index: 65;
}

/* Floating WhatsApp Action (Official Brand Green #25D366, 52-56px diameter) */
.faregram-whatsapp-fab {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: var(--whatsapp-fab-z-index);
  display: inline-grid;
  place-items: center;
  width: var(--whatsapp-fab-size);
  height: var(--whatsapp-fab-size);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #ffffff !important;
  background: #25D366;
  box-shadow:
    0 14px 32px rgba(4, 22, 43, 0.20),
    0 6px 16px rgba(37, 211, 102, 0.35);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
  text-decoration: none;
}

.faregram-whatsapp-fab:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(4, 22, 43, 0.24),
    0 8px 20px rgba(37, 211, 102, 0.40);
  color: #ffffff !important;
}

.faregram-whatsapp-fab:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.50);
  outline-offset: 4px;
}

.faregram-whatsapp-fab svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

/* Tooltip on hover/focus */
.faregram-whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #0f1c2e;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease;
}

.faregram-whatsapp-fab:hover .faregram-whatsapp-tooltip,
.faregram-whatsapp-fab:focus-visible .faregram-whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-2px);
}

/* Inert/hidden when modal, search popover, flight details, or mobile filter sheet is active */
body.fg-overlay-active .faregram-whatsapp-fab,
body.fg-details-active .faregram-whatsapp-fab,
body.fg-sheet-active .faregram-whatsapp-fab {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transform: scale(0.85);
}

/* Legacy fallback alias */
.whatsapp-float {
  display: none !important;
}

/* Suppression on transactional auth, contact, drawers, and modal sheets */
body.fg-auth-page .faregram-whatsapp-fab,
body.fg-contact-page .faregram-whatsapp-fab,
body.fg-checkout-page .faregram-whatsapp-fab,
body.fg-overlay-active .faregram-whatsapp-fab,
body.fg-details-active .faregram-whatsapp-fab,
body.fg-sheet-active .faregram-whatsapp-fab,
body.fg-drawer-open .faregram-whatsapp-fab {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

@media (max-width: 767px) {
  .faregram-whatsapp-fab {
    right: max(16px, env(safe-area-inset-right));
    /* Position above the 64px mobile bottom navigation so it never overlaps navigation */
    bottom: calc(74px + max(12px, env(safe-area-inset-bottom)));
    width: 52px;
    height: 52px;
  }

  .faregram-whatsapp-fab svg {
    width: 26px;
    height: 26px;
  }

  /* Hidden on touch/mobile */
  .faregram-whatsapp-tooltip {
    display: none !important;
  }
}

/* Primary and Inline WhatsApp Component Variants */
.fg-whatsapp-inline-link {
  display: inline-flex;
  align-items: center;
  color: #111827;
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms ease;
}
.fg-whatsapp-inline-link:hover {
  color: #25D366;
}
.btn-fg-whatsapp-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  text-decoration: none;
  transition: all 160ms ease;
}
.btn-fg-whatsapp-primary:hover {
  background-color: #20bd5a;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  color: #ffffff !important;
}
.btn-fg-whatsapp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25D366;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.btn-fg-whatsapp-pill:hover {
  background-color: #20bd5a;
  color: #ffffff !important;
}
.btn-fg-wa-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f0fdf4;
  color: #15803d !important;
  border: 1px solid #bbf7d0;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 150ms ease;
}
.btn-fg-wa-secondary:hover {
  background-color: #dcfce7;
  color: #166534 !important;
}

@media (prefers-reduced-motion: reduce) {
  .faregram-whatsapp-fab {
    transition: background-color 0.01ms linear;
  }

  .faregram-whatsapp-fab:hover {
    transform: none;
  }
}

/* 13. RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .fg-input-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .fg-flight-grid {
    position: relative;
  }
  .fg-swap-btn-wrap {
    display: flex;
    position: absolute;
    right: 20px;
    top: 52px;
    width: auto;
    height: auto;
    z-index: 20;
  }
  .fg-swap-btn {
    position: static;
    transform: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: #ffffff;
    border: 1.5px solid var(--fg-blue-300);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  }
  .fg-swap-btn:hover {
    transform: rotate(180deg);
  }
  .fg-input-segment:nth-child(even) {
    border-right: none;
  }
  .fg-input-segment {
    border-bottom: 1px solid var(--fg-line-200);
  }
}

@media (max-width: 768px) {
  .fg-utility-bar {
    display: none;
  }
  .fg-input-grid {
    grid-template-columns: 1fr;
  }
  .fg-swap-btn-wrap {
    display: flex;
    position: absolute;
    right: 16px;
    top: 68px;
    z-index: 20;
    width: auto;
    height: auto;
  }
  .fg-swap-btn {
    position: static;
    transform: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .fg-input-segment {
    border-right: none !important;
    border-bottom: 1px solid var(--fg-line-200);
  }
  .fg-offer-card {
    min-width: 300px;
    flex-direction: column;
  }
  .fg-offer-img {
    width: 100%;
    height: 120px;
  }
  .fg-card-grid {
    grid-template-columns: 1fr;
  }
  .fg-hero-heading {
    font-size: 1.5rem;
  }

  /* Floating button handled by .faregram-whatsapp-fab */
}

/* FIX: Mobile Form Grid Stacking & Input Grids across all services */
@media (max-width: 991px) {
  .fg-input-grid,
  .fg-service-panel .fg-input-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .fg-input-segment {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--fg-line-200) !important;
    padding: 12px 14px !important;
    flex: 1 1 auto !important;
  }
  .fg-input-segment:last-child {
    border-bottom: none !important;
  }

  .fg-trip-radio-group {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .fg-booking-console {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}


/* Refined Spacing for Search Booking Console */
.fg-panel-header {
  margin-bottom: 16px !important;
}

.fg-input-grid {
  margin-bottom: 16px !important;
}

.fg-fare-options-strip {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.fg-fare-disclaimer {
  margin-bottom: 12px !important;
  font-size: 11.5px;
  color: #64748b;
}

/* Service Navigation Rail More Menu Refinement */
.fg-service-tab-more .dropdown-toggle::after {
  display: none !important;
}

.fg-service-dropdown-menu {
  z-index: 1060 !important;
  margin-top: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  border-radius: 10px !important;
  border: 1px solid var(--fg-line-200) !important;
}

.fg-more-chevron svg {
  width: 10px !important;
  height: 10px !important;
  transition: transform 0.2s ease;
}

.fg-service-tab-more.show .fg-more-chevron svg,
.fg-service-tab-more .dropdown-toggle[aria-expanded="true"] .fg-more-chevron svg {
  transform: rotate(180deg);
}

/* Results Page Container Max Width */
.container-fg-results {
  width: 100%;
  max-width: var(--fg-results-max-width, 1560px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}


/* ==========================================================================
   FAREGRAM NATIVE MOBILE ARCHITECTURAL SYSTEM (Section 4 & 5 Requirements)
   ========================================================================== */

/* 1. Global Responsive Container & Media Control */
img, svg, video {
  max-width: 100%;
}

.container-fg {
  width: 100%;
  max-width: var(--fg-max-width, 1440px);
  margin-inline: auto;
  padding-inline: 16px;
  box-sizing: border-box;
}

@media (max-width: 360px) {
  .container-fg {
    padding-inline: 12px;
  }
}

/* Ensure flex and grid children can shrink properly */
.container-fg > *,
.fg-card-grid > *,
.fg-input-grid > *,
.fg-service-rail > * {
  min-width: 0;
}

/* 2. Mobile Typography Defaults */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.5;
  }
  .fg-hero-heading {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }
  .fg-section-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
  .fg-panel-title {
    font-size: 18px !important;
    line-height: 1.35 !important;
  }
  .fg-card-title, .fg-pkg-title, .fg-offer-title {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
  .fg-input-main-val, .fg-city-name {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }
  .fg-input-micro-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
  }
}

/* 3. Mobile Header & Offcanvas */
@media (max-width: 768px) {
  .fg-utility-bar {
    display: none !important;
  }
  .fg-header-main {
    height: 56px;
    min-height: 56px;
    padding: 0;
    display: flex;
    align-items: center;
  }
  .fg-header-inner {
    height: 56px;
  }
  .btn-fg-quote {
    display: none !important;
  }
}

/* 4. Mobile Service Rail */
@media (max-width: 768px) {
  .fg-service-rail-wrap {
  overflow: hidden;

    margin-bottom: -16px;
    max-width: 100%;
    overflow-x: clip;
  }
  .fg-service-rail {
    justify-content: flex-start !important;
    gap: 8px;
    padding: 6px 8px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    max-width: 100%;
  }
  .fg-service-tab {
    flex: 0 0 auto !important;
    min-width: 62px !important;
    max-width: 76px !important;
    height: 62px !important;
    min-height: 62px !important;
    padding: 6px 4px !important;
    scroll-snap-align: start;
  }
  .fg-service-tab .fg-tab-icon svg {
    width: 24px;
    height: 24px;
  }
  .fg-service-tab .fg-tab-label {
    font-size: 11px !important;
    white-space: nowrap;
  }
}

/* 5. Mobile Search Card Architecture */
@media (max-width: 768px) {
  .fg-booking-console {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .fg-service-panel {
    height: auto !important;
    min-height: 0 !important;
  }
  .fg-panel-header {
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    min-height: 0 !important;
  }
  .fg-panel-trust-badge {
    display: none !important;
  }
  .fg-input-grid,
  .fg-service-panel .fg-input-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 14px !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .fg-input-segment {
    background: #ffffff !important;
    border: 1px solid var(--fg-line-200) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    min-height: 64px !important;
    width: 100% !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
  }
  .fg-input-segment:not(:last-child) {
    border-right: 1px solid var(--fg-line-200) !important;
  }
  .fg-swap-btn-wrap {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    align-self: center !important;
    margin: -14px 0 !important;
    z-index: 5 !important;
  }
  .fg-swap-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
  }
  .btn-fg-search,
  .btn-fg-primary-search {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
  }
}

/* 6. Mobile Holiday Packages, Results & Cards */
@media (max-width: 768px) {
  .fg-card-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .fg-pkg-card {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }
  .fg-pkg-img-wrap {
    width: 100% !important;
    height: 200px !important;
    aspect-ratio: 16/9;
  }
  .fg-pkg-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .fg-pkg-body {
    padding: 16px !important;
  }
  .fg-pkg-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 12px !important;
  }
  .fg-pkg-footer a.btn {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-inline: 18px !important;
  }
}

/* 7. Mobile Destinations Gallery */
@media (max-width: 768px) {
  .fg-destinations-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .fg-dest-card-featured {
    grid-column: span 2 !important;
    height: 220px !important;
  }
  .fg-dest-card {
    height: 180px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 360px) {
  .fg-destinations-grid {
    grid-template-columns: 1fr !important;
  }
  .fg-dest-card-featured {
    grid-column: span 1 !important;
  }
}

/* 8. Trust Section & FAQ Mobile Native Layout */
@media (max-width: 768px) {
  .fg-trust-grid-v2 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .fg-trust-card-v2 {
    padding: 16px !important;
    border-radius: 14px !important;
  }
  .fg-trust-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-top: 24px !important;
  }
  .fg-faq-question {
    min-height: 52px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
  }
  .fg-faq-answer {
    padding: 0 16px 16px 16px !important;
    font-size: 14px !important;
  }
}

/* 9. Mobile Footer Accordions */
@media (max-width: 768px) {
  .fg-footer-trust-band .fg-trust-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .fg-footer-trust-band .fg-trust-card {
    min-height: 48px !important;
    padding: 10px 14px !important;
  }
  .fg-footer-col {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
  .fg-footer-accordion-btn {
    width: 100% !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: transparent !important;
    border: none !important;
    padding: 10px 0 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--fg-ink-950) !important;
    text-align: left !important;
  }
  .fg-footer-nav-list li a {
    display: block !important;
    padding: 8px 0 !important;
    min-height: 44px !important;
    line-height: 28px !important;
    font-size: 14px !important;
  }
}

/* 10. Floating WhatsApp FAB Placement */
@media (max-width: 768px) {
  .faregram-whatsapp-fab {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
    z-index: 1040 !important;
  }
  .faregram-whatsapp-fab svg {
    width: 26px !important;
    height: 26px !important;
  }
}

/* 11. Curated Offers Carousel Horizontal Rail */
@media (max-width: 768px) {
  .fg-offers-section {
    max-width: 100% !important;
    overflow-x: clip !important;
  }
  .fg-carousel-wrapper {
    max-width: 100% !important;
    overflow-x: clip !important;
  }
  .fg-offers-track {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    padding-bottom: 8px !important;
    max-width: 100% !important;
  }
  .fg-offer-card {
    flex: 0 0 85vw !important;
    max-width: 320px !important;
    scroll-snap-align: start !important;
  }
}

/* Ensure service rail clips outside its viewport width without creating document overflow */
.fg-service-rail-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}
.fg-service-rail {
  width: max-content !important;
  min-width: 100% !important;
}
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body {
  max-width: 100vw !important;
  overflow-x: clip !important;
  position: relative !important;
}

/* Prevent horizontally scrolling inner tracks from stretching body scrollWidth */
body {
  overflow-x: hidden !important;
}
.fg-service-rail-wrap {
  overflow-x: auto !important;
  contain: paint !important;
}
.fg-offers-section {
  contain: paint !important;
}

html {
  overflow-x: hidden !important;
  max-width: 100% !important;
}
body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}


/* =========================================================================
   NATIVE-STYLE MOBILE 2-ROW SERVICE LAUNCHER (<= 768px)
   ========================================================================= */
@media (max-width: 768px) {
  .fg-service-rail-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 12px !important;
    padding: 0 4px !important;
    overflow: visible !important;
  }
  .fg-service-rail {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    padding: 12px 10px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e2e8f0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .fg-service-tab {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 72px !important;
    padding: 6px 2px !important;
    border-radius: 12px !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    transition: background 0.15s ease !important;
    cursor: pointer !important;
  }
  .fg-service-tab:active,
  .fg-service-tab.active {
    background: #f0fdf4 !important;
  }
  .fg-service-tab.active .fg-tab-label {
    color: #15803d !important;
    font-weight: 700 !important;
  }
  .fg-service-tab .fg-tab-icon {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 4px !important;
  }
  .fg-service-tab .fg-tab-icon svg {
    width: 24px !important;
    height: 24px !important;
  }
  .fg-service-tab .fg-tab-label {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    text-align: center !important;
    line-height: 1.1 !important;
  }
  .fg-service-tab-more {
    display: none !important;
  }
  .fg-tab-desktop-more {
    display: none !important;
  }
}


/* =========================================================================
   ANDROID-STYLE MOBILE FLIGHT SEARCH CARD & DESTINATION RAIL (<= 768px)
   ========================================================================= */
@media (max-width: 768px) {
  /* Hero section padding optimization */
  .fg-hero-wrap {
    padding-top: 16px !important;
    padding-bottom: 24px !important;
    min-height: auto !important;
  }
  .fg-hero-heading {
    font-size: 22px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }

  /* Flight Search Panel & Form Controls */
  .fg-service-panel {
    border-radius: 20px !important;
    padding: 16px 14px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
  }
  .fg-panel-header {
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }
  .fg-panel-title {
    font-size: 16px !important;
  }
  /* Trip type segmented control */
  .fg-trip-radio-group {
    display: flex !important;
    width: 100% !important;
    background: #f1f5f9 !important;
    padding: 3px !important;
    border-radius: 12px !important;
    margin-top: 8px !important;
    gap: 2px !important;
  }
  .fg-trip-radio {
    flex: 1 1 0% !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    border-radius: 9px !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
  }
  .fg-trip-radio:has(input:checked) {
    background: #ffffff !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
  }
  .fg-trip-radio input {
    display: none !important;
  }

  /* 6-Field Dedicated Input Stack */
  .fg-input-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: transparent !important;
    border: none !important;
  }
  .fg-input-segment {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    min-height: 68px !important;
    position: relative !important;
  }
  .fg-input-segment .fg-input-micro-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin-bottom: 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .fg-input-segment .fg-city-line {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
  }
  .fg-input-segment .fg-city-name {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }
  .fg-input-segment .fg-airport-code-chip {
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 1px 6px !important;
    background: #f1f5f9 !important;
    color: #0369a1 !important;
    border-radius: 6px !important;
  }
  .fg-input-segment .fg-airport-metadata {
    font-size: 12px !important;
    color: #94a3b8 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  /* Swap button between From & To */
  .fg-swap-btn-wrap {
    position: absolute !important;
    right: 20px !important;
    top: 52px !important;
    z-index: 10 !important;
  }
  .fg-swap-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0284c7 !important;
  }

  /* Full-width Search Button */
  .fg-primary-search-btn {
    min-height: 54px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 27px !important;
    margin-top: 14px !important;
  }

  /* Holiday Package Card Mobile Styling */
  .fg-card-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .fg-pkg-card {
    border-radius: 18px !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
  }
  .fg-pkg-img-wrap {
    height: 190px !important;
    position: relative !important;
  }
  .fg-pkg-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .fg-pkg-tag {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(4px) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
  }
  .fg-pkg-body {
    padding: 16px !important;
  }
  .fg-pkg-dest {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0284c7 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }
  .fg-pkg-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 4px 0 8px 0 !important;
  }
  .fg-pkg-duration {
    font-size: 13px !important;
    color: #64748b !important;
    margin-bottom: 12px !important;
  }
  .fg-pkg-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 12px !important;
    border-top: 1px dashed #e2e8f0 !important;
  }
  .fg-pkg-footer .btn {
    min-height: 44px !important;
    padding: 8px 18px !important;
    font-weight: 700 !important;
    border-radius: 22px !important;
  }

  /* Where Will You Go Next - Native Touch Snap Rail */
  .fg-destinations-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    padding: 4px 0 16px 0 !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .fg-destinations-grid::-webkit-scrollbar {
    display: none !important;
  }
  .fg-dest-card {
    min-width: 76vw !important;
    max-width: 82vw !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    aspect-ratio: 4/5 !important;
    border-radius: 18px !important;
  }
  .fg-dest-card-featured {
    min-width: 86vw !important;
    max-width: 88vw !important;
    aspect-ratio: 16/11 !important;
  }
}


/* =========================================================================
   MOBILE COMMITTED FARE PREFERENCE & CLEANUP (<= 768px)
   ========================================================================= */
@media (max-width: 768px) {
  /* Hide the 5 uncommitted tiny chips on mobile */
  .fg-fare-options-strip {
    display: none !important;
  }
  .fg-fare-disclaimer {
    display: none !important;
  }

  /* Single Committed Fare Preference Card for Mobile */
  .fg-mobile-fare-pref-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    flex-direction: row !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    margin-top: 8px !important;
    min-height: 60px !important;
    cursor: pointer !important;
    text-align: left !important;
  }
  .fg-mobile-fare-pref-card:focus,
  .fg-mobile-fare-pref-card:focus-within {
    outline: none !important;
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
  }
  .fg-mobile-fare-pref-card .pref-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
  }
  .fg-mobile-fare-pref-card .pref-val {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }
}
@media (min-width: 769px) {
  .fg-mobile-fare-pref-card {
    display: none !important;
  }
}


/* =========================================================================
   FAREGRAM 2026 PREMIUM VISUAL & UX ENHANCEMENT SUITE (ALL VIEWPORTS)
   Preserves all existing logic, tokens, and backend integrations.
   ========================================================================= */

/* 1. Header & Navigation Refinement */
.fg-header-main {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(11, 23, 40, 0.08) !important;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.fg-brand-logo {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #071A2B !important;
}
.fg-brand-logo span {
  color: #0878F9 !important;
}
.fg-brand-descriptor {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  letter-spacing: 0.02em !important;
}
.fg-header-actions .btn {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 22px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 8px 18px !important;
  transition: all 0.16s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.btn-fg-quote {
  background: #0878F9 !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
  box-shadow: 0 2px 8px rgba(8, 120, 249, 0.25) !important;
}
.btn-fg-quote:hover {
  background: #075fd8 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(8, 120, 249, 0.35) !important;
}

/* 2. Opening Hero Area */
.fg-hero-wrap {
  background: radial-gradient(120% 120% at 50% 0%, #0d2a45 0%, #071a2b 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}
.fg-hero-heading {
  font-size: clamp(24px, 4vw, 38px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}
.fg-hero-sub {
  font-size: clamp(14px, 1.8vw, 17px) !important;
  color: rgba(255, 255, 255, 0.78) !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  line-height: 1.5 !important;
}

/* 3. Service Selector Enhancement */
@media (max-width: 768px) {
  .fg-service-tab {
    position: relative !important;
    border-radius: 14px !important;
    transition: all 0.16s ease !important;
  }
  .fg-service-tab:active {
    transform: scale(0.96) !important;
  }
  .fg-service-tab.active {
    background: #eef6ff !important;
  }
  .fg-service-tab.active .fg-tab-label {
    color: #0878F9 !important;
    font-weight: 700 !important;
  }
  .fg-service-tab.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 5px !important;
    width: 16px !important;
    height: 3px !important;
    background: #0878F9 !important;
    border-radius: 2px !important;
  }
}

/* 4. Primary Flight Request Form Container & Hierarchy */
@media (max-width: 768px) {
  .fg-service-panel {
    border-radius: 24px !important;
    padding: 20px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12) !important;
  }
  .fg-panel-header {
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 14px !important;
    margin-bottom: 14px !important;
  }
  .fg-panel-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em !important;
  }
  .fg-trip-radio-group {
    background: #f1f5f9 !important;
    padding: 4px !important;
    border-radius: 12px !important;
  }
  .fg-trip-radio {
    font-size: 13.5px !important;
    min-height: 42px !important;
  }
  .fg-trip-radio:has(input:checked) {
    background: #ffffff !important;
    color: #0878F9 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  }

  /* Distinct Field Hierarchy */
  .fg-input-segment {
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    padding: 13px 16px !important;
    min-height: 70px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    transition: border-color 0.16s ease, box-shadow 0.16s ease !important;
  }
  .fg-input-segment:hover {
    border-color: #cbd5e1 !important;
  }
  .fg-input-segment.panel-open,
  .fg-input-segment:focus-visible {
    border-color: #0878F9 !important;
    box-shadow: 0 0 0 3px rgba(8, 120, 249, 0.15) !important;
    outline: none !important;
  }
  .fg-input-micro-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #64748b !important;
    margin-bottom: 4px !important;
  }
  .fg-city-name {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #071A2B !important;
    letter-spacing: -0.02em !important;
  }
  .fg-airport-code-chip {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    background: #eef6ff !important;
    color: #0878F9 !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
  }
  .fg-airport-metadata {
    font-size: 12.5px !important;
    color: #64748b !important;
  }

  /* Swap Button */
  .fg-swap-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12) !important;
    color: #0878F9 !important;
    cursor: pointer !important;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease !important;
  }
  .fg-swap-btn:active {
    transform: rotate(180deg) scale(0.92) !important;
  }

  /* Primary Search CTA */
  .fg-primary-search-btn {
    min-height: 54px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 27px !important;
    background: linear-gradient(135deg, #0878F9 0%, #075fd8 100%) !important;
    box-shadow: 0 4px 16px rgba(8, 120, 249, 0.35) !important;
    transition: all 0.16s ease !important;
  }
  .fg-primary-search-btn:active {
    transform: scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(8, 120, 249, 0.25) !important;
  }
}

/* 5. Popular Holiday Packages Cards */
.fg-pkg-card {
  border-radius: 20px !important;
  border: 1px solid rgba(11, 23, 40, 0.08) !important;
  box-shadow: 0 2px 12px rgba(15, 35, 60, 0.06) !important;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease !important;
  background: #ffffff !important;
  overflow: hidden !important;
}
.fg-pkg-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px rgba(15, 35, 60, 0.1) !important;
}
.fg-pkg-img-wrap {
  position: relative !important;
  aspect-ratio: 16/10 !important;
  height: auto !important;
  overflow: hidden !important;
}
.fg-pkg-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.4s ease !important;
}
.fg-pkg-card:hover .fg-pkg-img {
  transform: scale(1.03) !important;
}
.fg-pkg-tag {
  background: rgba(7, 26, 43, 0.8) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
}
.fg-pkg-body {
  padding: 18px !important;
}
.fg-pkg-dest {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0878F9 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}
.fg-pkg-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #071A2B !important;
  line-height: 1.35 !important;
  margin: 4px 0 8px 0 !important;
}
.fg-pkg-duration {
  font-size: 13.5px !important;
  color: #64748b !important;
}
.fg-pkg-footer {
  border-top: 1px solid #f1f5f9 !important;
  padding: 14px 18px !important;
}
.fg-pkg-footer .btn {
  min-height: 44px !important;
  min-width: 44px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 22px !important;
}

/* 6. Curated Offers Touch Rail */
.fg-offers-section {
  background: #f8fafc !important;
  padding: clamp(32px, 5vw, 60px) 0 !important;
}
.fg-offer-card {
  border-radius: 18px !important;
  border: 1px solid rgba(11, 23, 40, 0.08) !important;
  box-shadow: 0 4px 16px rgba(15, 35, 60, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  overflow: hidden !important;
}
.fg-offer-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(15, 35, 60, 0.1) !important;
}
.fg-offer-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #071A2B !important;
}

/* 7. Destination Discovery Touch Rail */
.fg-category-chips {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding: 6px 2px 14px 2px !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}
.fg-category-chips::-webkit-scrollbar {
  display: none !important;
}
.fg-category-chip {
  min-height: 40px !important;
  padding: 8px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #334155 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.16s ease !important;
}
.fg-category-chip.active,
.fg-category-chip:hover {
  background: #071A2B !important;
  color: #ffffff !important;
  border-color: #071A2B !important;
  box-shadow: 0 2px 8px rgba(7, 26, 43, 0.2) !important;
}

/* 8. Trust Section v2 (Faregram Difference) */
.fg-trust-section-v2 {
  background: #071A2B !important;
  padding: clamp(48px, 6vw, 80px) 0 !important;
  color: #ffffff !important;
}
.fg-trust-section-v2 .fg-section-title {
  color: #ffffff !important;
  font-size: clamp(22px, 3.5vw, 32px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}
.fg-trust-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 24px !important;
  transition: background 0.2s ease !important;
}
.fg-trust-card:hover {
  background: rgba(255, 255, 255, 0.07) !important;
}

/* 9. Focus Rings & Accessibility */
:focus-visible {
  outline: 3px solid rgba(8, 120, 249, 0.4) !important;
  outline-offset: 2px !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* =========================================================================
   COMPACT LANDSCAPE (HEIGHT <= 500px) ENHANCEMENTS
   ========================================================================= */
@media (max-height: 500px) and (orientation: landscape) {
  .fg-utility-bar {
    display: none !important;
  }
  .fg-header-main {
    height: 52px !important;
    min-height: 52px !important;
  }
  .fg-bottom-nav {
    display: none !important;
  }
  body.has-bottom-nav {
    padding-bottom: 0 !important;
  }
}
