/* ==========================================================================
   FAREGRAM PREMIUM LAYER — MOBILE-FIRST TRAVEL PLATFORM UPGRADE
   Version: 2.0 | Extends: tokens.css + faregram.css
   Font: Inter (loaded via header.php <link>)
   Icons: Existing Icon::svg() system
   ========================================================================== */

/* ============================================================
   1. SKIP LINK — ACCESSIBILITY
   ============================================================ */
.fg-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: var(--fg-z-modal, 9000);
  background: var(--fg-blue-600, #0878F9);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: left 0s;
}
.fg-skip-link:focus {
  left: 16px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ============================================================
   2. GLOBAL RESET & BASE
   ============================================================ */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--fg-bg-page, #F5F7FA);
  color: var(--fg-navy-950, #071A2B);
}

body.has-bottom-nav {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* Reduced motion */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* ============================================================
   3. TYPOGRAPHY SCALE
   ============================================================ */
.fg-display   { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.fg-title-lg  { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.fg-title     { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.fg-heading   { font-size: clamp(1rem, 2vw, 1.375rem); font-weight: 600; line-height: 1.3; }
.fg-subhead   { font-size: clamp(0.875rem, 1.5vw, 1rem); font-weight: 500; line-height: 1.4; }
.fg-body      { font-size: 0.9375rem; font-weight: 400; line-height: 1.6; }
.fg-body-sm   { font-size: 0.875rem; font-weight: 400; line-height: 1.55; }
.fg-caption   { font-size: 0.75rem; font-weight: 400; line-height: 1.5; color: var(--fg-text-muted, #6B7280); }
.fg-label     { font-size: 0.75rem; font-weight: 600; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; }
.fg-price     { font-size: clamp(1.125rem, 2.5vw, 1.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--fg-navy-950); }
.fg-price-lg  { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.025em; }
.fg-btn-label { font-size: 0.9375rem; font-weight: 600; line-height: 1; letter-spacing: 0.01em; }

/* ============================================================
   4. DESIGN TOKENS (EXTENDED)
   ============================================================ */
:root {
  /* Extended color palette */
  --fg-blue-50:   #EEF4FF;
  --fg-blue-100:  #DBEAFE;
  --fg-blue-200:  #BFDBFE;
  --fg-blue-500:  #3B82F6;
  --fg-blue-600:  #0878F9;
  --fg-blue-700:  #1D4ED8;

  --fg-coral-100: #FFE4E0;
  --fg-coral-200: #FECACA;
  --fg-coral-500: #F35742;
  --fg-coral-600: #DC2626;

  --fg-teal-50:   #F0FDFA;
  --fg-teal-100:  #CCFBF1;
  --fg-teal-500:  #10A394;
  --fg-teal-600:  #0D7C71;

  --fg-amber-50:  #FFFBEB;
  --fg-amber-100: #FEF3C7;
  --fg-amber-500: #F59E0B;
  --fg-amber-600: #D97706;

  --fg-violet-100: #EDE9FE;
  --fg-violet-500: #8B5CF6;

  --fg-navy-900:  #0D2137;
  --fg-navy-950:  #071A2B;

  /* Semantic */
  --fg-brand:         var(--fg-blue-600);
  --fg-brand-hover:   var(--fg-blue-700);
  --fg-cta:           var(--fg-coral-500);
  --fg-cta-hover:     var(--fg-coral-600);
  --fg-discovery:     var(--fg-teal-500);
  --fg-offer:         var(--fg-amber-500);
  --fg-success:       #10B981;
  --fg-warning:       var(--fg-amber-500);
  --fg-error:         var(--fg-coral-500);
  --fg-info:          var(--fg-blue-600);

  /* Backgrounds */
  --fg-bg-page:       #F5F7FA;
  --fg-bg-surface:    #FFFFFF;
  --fg-bg-subtle:     #F9FAFB;
  --fg-bg-muted:      #F1F5F9;
  --fg-bg-navy:       var(--fg-navy-950);
  --fg-bg-navy-mid:   var(--fg-navy-900);
  --fg-bg-brand-soft: var(--fg-blue-50);

  /* Text */
  --fg-text-primary:   #071A2B;
  --fg-text-secondary: #374151;
  --fg-text-muted:     #6B7280;
  --fg-text-subtle:    #9CA3AF;
  --fg-text-on-dark:   #FFFFFF;
  --fg-text-on-brand:  #FFFFFF;

  /* Borders */
  --fg-border-subtle:  #E5E7EB;
  --fg-border-default: #D1D5DB;
  --fg-border-strong:  #9CA3AF;
  --fg-border-brand:   var(--fg-blue-600);

  /* Radii */
  --fg-radius-xs:  4px;
  --fg-radius-sm:  8px;
  --fg-radius-md:  12px;
  --fg-radius-lg:  16px;
  --fg-radius-xl:  20px;
  --fg-radius-2xl: 24px;
  --fg-radius-pill: 999px;

  /* Shadows */
  --fg-shadow-xs:  0 1px 2px rgba(7,26,43,.05);
  --fg-shadow-sm:  0 1px 4px rgba(7,26,43,.08), 0 1px 2px rgba(7,26,43,.04);
  --fg-shadow-md:  0 4px 12px rgba(7,26,43,.10), 0 2px 4px rgba(7,26,43,.05);
  --fg-shadow-lg:  0 8px 24px rgba(7,26,43,.12), 0 4px 8px rgba(7,26,43,.06);
  --fg-shadow-xl:  0 16px 40px rgba(7,26,43,.14), 0 8px 16px rgba(7,26,43,.07);
  --fg-shadow-brand: 0 4px 16px rgba(8,120,249,.25);

  /* Spacing scale */
  --fg-space-1: 4px;
  --fg-space-2: 8px;
  --fg-space-3: 12px;
  --fg-space-4: 16px;
  --fg-space-5: 20px;
  --fg-space-6: 24px;
  --fg-space-8: 32px;
  --fg-space-10: 40px;
  --fg-space-12: 48px;
  --fg-space-16: 64px;
  --fg-section-gap: clamp(40px, 6vw, 80px);

  /* Container */
  --fg-container-max: 1280px;
  --fg-container-pad: clamp(16px, 4vw, 48px);

  /* Transitions */
  --fg-ease-fast:   0.12s cubic-bezier(0.4,0,0.2,1);
  --fg-ease:        0.22s cubic-bezier(0.4,0,0.2,1);
  --fg-ease-slow:   0.38s cubic-bezier(0.4,0,0.2,1);
  --fg-ease-bounce: 0.4s cubic-bezier(0.34,1.56,0.64,1);

  /* Z-Index */
  --fg-z-base:    0;
  --fg-z-raised:  1;
  --fg-z-sticky:  100;
  --fg-z-nav:     200;
  --fg-z-drawer:  500;
  --fg-z-modal:   900;
  --fg-z-toast:   1000;

  /* App shell */
  --fg-app-header-height: 56px;
  --fg-app-bottom-nav-height: 64px;
  --fg-app-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============================================================
   5. CONTAINER
   ============================================================ */
.fg-container {
  width: 100%;
  max-width: var(--fg-container-max);
  margin-inline: auto;
  padding-inline: var(--fg-container-pad);
}

/* ============================================================
   6. MOBILE BOTTOM NAVIGATION
   ============================================================ */
.fg-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--fg-z-nav);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: var(--fg-bg-surface);
  border-top: 1px solid var(--fg-border-subtle);
  box-shadow: 0 -4px 16px rgba(7,26,43,.08);
  height: calc(var(--fg-app-bottom-nav-height) + var(--fg-app-safe-bottom));
  padding-bottom: var(--fg-app-safe-bottom);
  padding-inline: 4px;
}

@media (min-width: 992px) {
  .fg-bottom-nav { display: none !important; }
}

.fg-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  padding: 6px 4px;
  color: var(--fg-text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: var(--fg-radius-md);
  transition: color var(--fg-ease-fast), background var(--fg-ease-fast);
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
}

.fg-bnav-item svg,
.fg-bnav-item img { width: 22px; height: 22px; flex-shrink: 0; }

.fg-bnav-item:hover { color: var(--fg-brand); background: var(--fg-bg-brand-soft); }

.fg-bnav-item.active { color: var(--fg-brand); }

/* CTA center item */
.fg-bnav-item.fg-bnav-cta { color: var(--fg-discovery); }
.fg-bnav-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  background: linear-gradient(135deg, var(--fg-teal-50), var(--fg-blue-50));
  border-radius: var(--fg-radius-md);
}
.fg-bnav-item.fg-bnav-cta.active,
.fg-bnav-item.fg-bnav-cta:hover { color: var(--fg-teal-600); }

/* ============================================================
   7. MOBILE DRAWER
   ============================================================ */
.fg-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--fg-z-drawer) - 1);
  background: rgba(7,26,43,.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--fg-ease);
}
.fg-drawer-backdrop.is-visible { opacity: 1; pointer-events: all; }

.fg-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--fg-z-drawer);
  width: min(320px, 90vw);
  background: var(--fg-bg-surface);
  box-shadow: var(--fg-shadow-xl);
  transform: translateX(-100%);
  transition: transform var(--fg-ease-slow);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.fg-drawer.is-open { transform: translateX(0); }

.fg-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--fg-border-subtle);
  position: sticky;
  top: 0;
  background: var(--fg-bg-surface);
  z-index: 1;
}

.fg-drawer-logo { height: 28px; width: auto; }

.fg-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--fg-radius-sm);
  border: 1px solid var(--fg-border-subtle);
  background: transparent;
  cursor: pointer;
  color: var(--fg-text-muted);
  transition: background var(--fg-ease-fast), color var(--fg-ease-fast);
}
.fg-drawer-close:hover { background: var(--fg-bg-muted); color: var(--fg-text-primary); }

.fg-drawer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--fg-border-subtle);
  background: linear-gradient(135deg, var(--fg-blue-50), var(--fg-teal-50));
}

.fg-drawer-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fg-blue-600), var(--fg-teal-500));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}

.fg-drawer-user-name { font-weight: 600; font-size: 15px; color: var(--fg-text-primary); }
.fg-drawer-user-sub  { font-size: 12px; color: var(--fg-text-muted); }

.fg-drawer-nav { padding: 8px 0; }

.fg-drawer-section-label {
  padding: 12px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-text-subtle);
}

.fg-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  color: var(--fg-text-secondary);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: background var(--fg-ease-fast), color var(--fg-ease-fast);
  -webkit-tap-highlight-color: transparent;
}
.fg-drawer-link:hover { background: var(--fg-bg-subtle); color: var(--fg-brand); }
.fg-drawer-link svg { width: 18px; height: 18px; color: var(--fg-text-muted); flex-shrink: 0; }
.fg-drawer-link:hover svg { color: var(--fg-brand); }

.fg-drawer-divider { height: 1px; background: var(--fg-border-subtle); margin: 8px 0; }

.fg-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--fg-border-subtle);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.fg-drawer-footer-link {
  font-size: 12px;
  color: var(--fg-text-muted);
  text-decoration: none;
}
.fg-drawer-footer-link:hover { color: var(--fg-brand); }

/* ============================================================
   8. SECTION HEADER
   ============================================================ */
.fg-section {
  padding-block: var(--fg-section-gap);
}

.fg-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.fg-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-brand);
  margin-bottom: 6px;
}
.fg-section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px; height: 2px;
  background: var(--fg-brand);
  border-radius: 2px;
}

.fg-section-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--fg-text-primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.fg-section-desc {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--fg-text-muted);
  line-height: 1.6;
}

.fg-section-cta-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-brand);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.fg-section-cta-link:hover { color: var(--fg-brand-hover); }
.fg-section-cta-link::after { content: ' →'; }

/* ============================================================
   9. SCROLL-REVEAL ANIMATION
   ============================================================ */
.fg-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--fg-ease-slow), transform var(--fg-ease-slow);
}
.fg-reveal.fg-revealed {
  opacity: 1;
  transform: translateY(0);
}
.fg-reveal-delay-1 { transition-delay: 0.1s; }
.fg-reveal-delay-2 { transition-delay: 0.2s; }
.fg-reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   10. OFFER CARDS v2
   ============================================================ */
.fg-offers-section {
  padding-block: var(--fg-section-gap);
  background: var(--fg-bg-page);
}

.fg-carousel-wrapper { position: relative; }

.fg-offers-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 4px;
  padding-inline: 2px;
}
.fg-offers-track::-webkit-scrollbar { display: none; }

.fg-offer-card {
  flex: 0 0 300px;
  background: var(--fg-bg-surface);
  border-radius: var(--fg-radius-xl);
  box-shadow: var(--fg-shadow-md);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform var(--fg-ease), box-shadow var(--fg-ease);
  border: 1px solid var(--fg-border-subtle);
}
.fg-offer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fg-shadow-lg);
}

.fg-offer-card-banner {
  height: 7px;
  background: linear-gradient(90deg, var(--fg-brand), var(--fg-discovery));
}
.fg-offer-card-banner.is-hotel    { background: linear-gradient(90deg, var(--fg-blue-500), var(--fg-blue-700)); }
.fg-offer-card-banner.is-holiday  { background: linear-gradient(90deg, var(--fg-coral-500), var(--fg-amber-500)); }
.fg-offer-card-banner.is-insurance { background: linear-gradient(90deg, var(--fg-amber-500), var(--fg-violet-500)); }
.fg-offer-card-banner.is-visa     { background: linear-gradient(90deg, var(--fg-violet-500), var(--fg-teal-500)); }

.fg-offer-card-body { padding: 18px; }

.fg-offer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--fg-radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.fg-offer-chip.chip-flight   { background: var(--fg-teal-100); color: var(--fg-teal-600); }
.fg-offer-chip.chip-hotel    { background: var(--fg-blue-100); color: var(--fg-blue-700); }
.fg-offer-chip.chip-holiday  { background: var(--fg-coral-100); color: var(--fg-coral-600); }
.fg-offer-chip.chip-insurance { background: var(--fg-amber-100); color: var(--fg-amber-600); }
.fg-offer-chip.chip-visa     { background: var(--fg-violet-100); color: var(--fg-violet-500); }

.fg-offer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-text-primary);
  line-height: 1.3;
  margin: 0 0 5px;
}

.fg-offer-desc {
  font-size: 13px;
  color: var(--fg-text-muted);
  line-height: 1.5;
  margin: 0 0 14px;
}

.fg-offer-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.fg-offer-code {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--fg-bg-muted);
  border: 1.5px dashed var(--fg-border-default);
  border-radius: var(--fg-radius-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fg-text-primary);
  font-family: 'Courier New', monospace;
  flex: 1;
}
.fg-offer-copy-btn {
  padding: 7px 14px;
  border-radius: var(--fg-radius-sm);
  background: var(--fg-bg-brand-soft);
  color: var(--fg-brand);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--fg-ease-fast);
}
.fg-offer-copy-btn:hover { background: var(--fg-blue-100); }

.fg-offer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fg-offer-expiry { font-size: 11px; color: var(--fg-text-subtle); font-weight: 500; }
.fg-offer-cta-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-brand);
  text-decoration: none;
}
.fg-offer-cta-link:hover { color: var(--fg-brand-hover); text-decoration: underline; }

/* Carousel controls */
.fg-carousel-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  justify-content: flex-end;
}
@media (max-width: 575px) { .fg-carousel-controls { display: none; } }

.fg-carousel-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--fg-border-default);
  background: var(--fg-bg-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-text-secondary);
  transition: all var(--fg-ease-fast);
  box-shadow: var(--fg-shadow-xs);
}
.fg-carousel-btn:hover {
  border-color: var(--fg-brand);
  color: var(--fg-brand);
  background: var(--fg-blue-50);
}
.fg-carousel-btn:focus-visible {
  outline: 2px solid var(--fg-brand);
  outline-offset: 2px;
}

/* ============================================================
   11. DESTINATION CARDS v2
   ============================================================ */
.fg-destinations-section {
  padding-block: var(--fg-section-gap);
  background: var(--fg-bg-page);
}

/* Category chip filter */
.fg-category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 10px;
  margin-bottom: 24px;
}
.fg-category-chips::-webkit-scrollbar { display: none; }

.fg-category-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: var(--fg-radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-text-secondary);
  background: var(--fg-bg-surface);
  border: 1.5px solid var(--fg-border-subtle);
  cursor: pointer;
  transition: all var(--fg-ease-fast);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.fg-category-chip:hover {
  border-color: var(--fg-brand);
  color: var(--fg-brand);
  background: var(--fg-blue-50);
}
.fg-category-chip.active,
.fg-category-chip[aria-pressed="true"] {
  background: var(--fg-brand);
  color: #fff;
  border-color: var(--fg-brand);
}

/* Grid */
.fg-destinations-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px)  { .fg-destinations-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .fg-destinations-grid { grid-template-columns: repeat(4, 1fr); } }

.fg-dest-card-featured { grid-column: span 2; }
@media (min-width: 1024px) {
  .fg-dest-card-featured { grid-column: span 2; grid-row: span 2; }
}

.fg-dest-card {
  position: relative;
  border-radius: var(--fg-radius-xl);
  overflow: hidden;
  display: block;
  text-decoration: none;
  aspect-ratio: 4/5;
  background: var(--fg-bg-muted);
  transition: transform var(--fg-ease), box-shadow var(--fg-ease);
}
.fg-dest-card-featured { aspect-ratio: 16/10; }
@media (min-width: 1024px) {
  .fg-dest-card-featured { aspect-ratio: auto; }
}
.fg-dest-card:hover { transform: translateY(-4px); box-shadow: var(--fg-shadow-xl); }

.fg-dest-card-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--fg-ease-slow);
}
.fg-dest-card:hover .fg-dest-card-img { transform: scale(1.06); }

.fg-dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,26,43,.75) 0%, rgba(7,26,43,.2) 55%, transparent 100%);
}

.fg-dest-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
}

.fg-dest-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--fg-radius-pill);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 6px;
}

.fg-dest-card-name {
  font-size: clamp(14px, 3vw, 18px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
  margin: 0 0 2px;
}
.fg-dest-card-featured .fg-dest-card-name { font-size: clamp(18px, 3.5vw, 24px); }

.fg-dest-card-price { font-size: 12px; color: rgba(255,255,255,.8); font-weight: 500; }
.fg-dest-card-price strong { font-weight: 700; color: #fff; font-size: 13px; }

.fg-dest-card-save {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--fg-ease-fast);
  color: #fff;
}
.fg-dest-card-save:hover { background: rgba(255,255,255,.35); }

/* ============================================================
   12. TRUST SECTION v2
   ============================================================ */
.fg-trust-section-v2 {
  background: var(--fg-bg-navy);
  padding-block: clamp(48px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}
.fg-trust-section-v2::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50vw; height: 50vw;
  max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, rgba(8,120,249,.12) 0%, transparent 70%);
  pointer-events: none;
}

.fg-trust-section-v2 .fg-section-eyebrow { color: var(--fg-teal-500); }
.fg-trust-section-v2 .fg-section-eyebrow::before { background: var(--fg-teal-500); }
.fg-trust-section-v2 .fg-section-title { color: #fff; }
.fg-trust-section-v2 .fg-section-desc { color: rgba(255,255,255,.65); }

.fg-trust-grid-v2 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: clamp(28px, 4vw, 48px);
}
@media (min-width: 576px)  { .fg-trust-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fg-trust-grid-v2 { grid-template-columns: repeat(4, 1fr); } }

.fg-trust-card-v2 {
  padding: 24px;
  border-radius: var(--fg-radius-xl);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  transition: background var(--fg-ease), border-color var(--fg-ease);
}
.fg-trust-card-v2:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}

.fg-trust-icon-v2 {
  width: 52px; height: 52px;
  border-radius: var(--fg-radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.fg-trust-icon-v2.icon-blue   { background: rgba(8,120,249,.2); color: var(--fg-blue-500); }
.fg-trust-icon-v2.icon-teal   { background: rgba(16,163,148,.2); color: var(--fg-teal-500); }
.fg-trust-icon-v2.icon-coral  { background: rgba(243,87,66,.2); color: var(--fg-coral-500); }
.fg-trust-icon-v2.icon-amber  { background: rgba(245,158,11,.2); color: var(--fg-amber-500); }
.fg-trust-icon-v2 svg { width: 26px; height: 26px; }

.fg-trust-title-v2 { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 6px; line-height: 1.3; }
.fg-trust-desc-v2  { font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.6; margin: 0; }

.fg-trust-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.fg-trust-stat { flex: 1; min-width: 100px; }
.fg-trust-stat-num { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.fg-trust-stat-label { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 4px; }

/* ============================================================
   13. FAQ ACCORDION
   ============================================================ */
.fg-faq-section {
  padding-block: var(--fg-section-gap);
  background: var(--fg-bg-page);
}

.fg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.fg-faq-item {
  background: var(--fg-bg-surface);
  border: 1.5px solid var(--fg-border-subtle);
  border-radius: var(--fg-radius-lg);
  overflow: hidden;
  transition: border-color var(--fg-ease-fast), box-shadow var(--fg-ease-fast);
}
.fg-faq-item.is-open {
  border-color: var(--fg-border-brand);
  box-shadow: var(--fg-shadow-sm);
}

.fg-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--fg-text-primary);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  transition: color var(--fg-ease-fast);
  -webkit-tap-highlight-color: transparent;
}
.fg-faq-question:hover { color: var(--fg-brand); }
.fg-faq-question:focus-visible {
  outline: 2px solid var(--fg-brand);
  outline-offset: -2px;
  border-radius: var(--fg-radius-md);
}

.fg-faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--fg-border-default);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-text-muted);
  transition: transform var(--fg-ease), background var(--fg-ease-fast), border-color var(--fg-ease-fast), color var(--fg-ease-fast);
  font-size: 16px;
  line-height: 1;
}
.fg-faq-item.is-open .fg-faq-icon {
  transform: rotate(45deg);
  background: var(--fg-brand);
  border-color: var(--fg-brand);
  color: #fff;
}

.fg-faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--fg-ease-slow), opacity var(--fg-ease-slow);
  padding-inline: 20px;
}
.fg-faq-answer-inner {
  padding-bottom: 18px;
  font-size: 14px;
  color: var(--fg-text-muted);
  line-height: 1.7;
}
.fg-faq-answer-inner a { color: var(--fg-brand); }

/* ============================================================
   14. TOAST NOTIFICATIONS
   ============================================================ */
.fg-toast-container {
  position: fixed;
  bottom: calc(var(--fg-app-bottom-nav-height) + 12px + var(--fg-app-safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--fg-z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 400px;
}
@media (min-width: 992px) {
  .fg-toast-container { bottom: 24px; left: auto; right: 24px; transform: none; }
}

.fg-toast {
  padding: 12px 18px;
  border-radius: var(--fg-radius-md);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--fg-navy-950);
  box-shadow: var(--fg-shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}
.fg-toast.is-visible { opacity: 1; transform: translateY(0); }
.fg-toast.fg-toast-success { background: var(--fg-success); }
.fg-toast.fg-toast-error   { background: var(--fg-error); }
.fg-toast.fg-toast-info    { background: var(--fg-brand); }
.fg-toast.fg-toast-warning { background: var(--fg-warning); color: var(--fg-text-primary); }

/* ============================================================
   15. SKELETON LOADING
   ============================================================ */
@keyframes fg-shimmer {
  from { background-position: -600px 0; }
  to   { background-position:  600px 0; }
}
.fg-skeleton {
  background: linear-gradient(90deg, var(--fg-bg-muted) 25%, #E9EEF4 50%, var(--fg-bg-muted) 75%);
  background-size: 1200px 100%;
  animation: fg-shimmer 1.6s linear infinite;
  border-radius: var(--fg-radius-sm);
  display: block;
}
.fg-skeleton-card { background: var(--fg-bg-surface); border-radius: var(--fg-radius-xl); overflow: hidden; border: 1px solid var(--fg-border-subtle); }
.fg-skeleton-img   { height: 180px; }
.fg-skeleton-text  { height: 14px; margin: 12px 16px 8px; }
.fg-skeleton-text-sm { height: 12px; margin: 0 16px 16px; width: 60%; }

/* ============================================================
   16. UTILITY CLASSES
   ============================================================ */
.fg-scroll-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-block: 4px;
}
.fg-scroll-track::-webkit-scrollbar { display: none; }
.fg-scroll-track > * { scroll-snap-align: start; flex-shrink: 0; }

.fg-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--fg-radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.fg-badge-success { background: #DCFCE7; color: #15803D; }
.fg-badge-error   { background: var(--fg-coral-100); color: var(--fg-coral-600); }
.fg-badge-brand   { background: var(--fg-blue-50); color: var(--fg-blue-700); }
.fg-badge-amber   { background: var(--fg-amber-100); color: var(--fg-amber-600); }

.fg-card {
  background: var(--fg-bg-surface);
  border-radius: var(--fg-radius-xl);
  box-shadow: var(--fg-shadow-sm);
  border: 1px solid var(--fg-border-subtle);
  overflow: hidden;
}

.fg-btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--fg-radius-pill);
  background: var(--fg-brand);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--fg-ease-fast), box-shadow var(--fg-ease-fast), transform var(--fg-ease-fast);
  box-shadow: var(--fg-shadow-brand);
  -webkit-tap-highlight-color: transparent;
}
.fg-btn-brand:hover {
  background: var(--fg-brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(8,120,249,.35);
  color: #fff;
}

.fg-btn-cta {
  background: var(--fg-cta);
  box-shadow: 0 4px 16px rgba(243,87,66,.25);
}
.fg-btn-cta:hover {
  background: var(--fg-cta-hover);
  box-shadow: 0 6px 20px rgba(243,87,66,.35);
}

.fg-btn-outline {
  background: transparent;
  border: 1.5px solid var(--fg-border-default);
  color: var(--fg-text-secondary);
  box-shadow: none;
}
.fg-btn-outline:hover {
  border-color: var(--fg-brand);
  color: var(--fg-brand);
  background: var(--fg-blue-50);
  box-shadow: none;
  transform: none;
}

/* Global focus ring */
*:focus-visible {
  outline: 2px solid var(--fg-brand);
  outline-offset: 3px;
}

/* ============================================================
   17. HEADER SCROLL STATE
   ============================================================ */
.fg-utility-bar { position: sticky; top: 0; z-index: var(--fg-z-sticky); transition: box-shadow var(--fg-ease); }
.fg-utility-bar.is-scrolled,
.fg-app-header.is-scrolled { box-shadow: var(--fg-shadow-md); }

/* ============================================================
   18. POPULAR PACKAGES SECTION UPGRADE
   ============================================================ */
.fg-pkg-card {
  background: var(--fg-bg-surface);
  border-radius: var(--fg-radius-xl);
  overflow: hidden;
  box-shadow: var(--fg-shadow-sm);
  border: 1px solid var(--fg-border-subtle);
  transition: transform var(--fg-ease), box-shadow var(--fg-ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.fg-pkg-card:hover { transform: translateY(-4px); box-shadow: var(--fg-shadow-lg); }

.fg-pkg-card-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--fg-bg-muted);
}
.fg-pkg-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--fg-ease-slow); }
.fg-pkg-card:hover .fg-pkg-card-img-wrap img { transform: scale(1.05); }

.fg-pkg-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: var(--fg-radius-pill);
  background: rgba(7,26,43,.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.fg-pkg-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.fg-pkg-card-name { font-size: 15px; font-weight: 700; color: var(--fg-text-primary); margin: 0; line-height: 1.3; }
.fg-pkg-card-meta { display: flex; gap: 10px; font-size: 12.5px; color: var(--fg-text-muted); flex-wrap: wrap; }
.fg-pkg-card-meta-item { display: flex; align-items: center; gap: 4px; }

.fg-pkg-card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--fg-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--fg-bg-subtle);
}
.fg-pkg-card-price-label { font-size: 11px; color: var(--fg-text-subtle); }
.fg-pkg-card-price { font-size: 17px; font-weight: 800; color: var(--fg-text-primary); letter-spacing: -0.02em; }
.fg-pkg-card-price-per { font-size: 11px; color: var(--fg-text-muted); font-weight: 400; }

.fg-pkg-card-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--fg-brand);
  color: #fff;
  border-radius: var(--fg-radius-pill);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--fg-ease-fast);
}
.fg-pkg-card-cta:hover { background: var(--fg-brand-hover); color: #fff; }

/* ============================================================
   19. HERO SECTION ENHANCEMENTS
   ============================================================ */
.fg-hero-wrap {
  position: relative;
  background: linear-gradient(150deg, var(--fg-navy-950) 0%, var(--fg-navy-900) 55%, #0D2F4A 100%);
  overflow: hidden;
}
.fg-hero-wrap::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 55vw; height: 55vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(8,120,249,.18) 0%, transparent 65%);
  pointer-events: none;
}
.fg-hero-wrap::after {
  content: '';
  position: absolute;
  bottom: -15%; left: -5%;
  width: 40vw; height: 40vw;
  max-width: 500px; max-height: 500px;
  background: radial-gradient(circle, rgba(16,163,148,.12) 0%, transparent 65%);
  pointer-events: none;
}

/* Booking command center tabs */
.fg-booking-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 16px;
}
.fg-booking-tabs::-webkit-scrollbar { display: none; }

.fg-booking-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--fg-radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  transition: all var(--fg-ease-fast);
  -webkit-tap-highlight-color: transparent;
}
.fg-booking-tab:hover { background: rgba(255,255,255,.14); color: rgba(255,255,255,.9); }
.fg-booking-tab.active { background: #fff; color: var(--fg-brand); border-color: #fff; font-weight: 600; }

/* ============================================================
   20. SEO INFO LAYER
   ============================================================ */
.fg-seo-section {
  background: var(--fg-bg-muted);
  border-top: 1px solid var(--fg-border-subtle);
  padding-block: clamp(32px, 5vw, 60px);
}
.fg-seo-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-text-muted);
  margin-bottom: 10px;
}
.fg-seo-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fg-seo-links li a { font-size: 13px; color: var(--fg-text-muted); text-decoration: none; transition: color var(--fg-ease-fast); line-height: 1.5; }
.fg-seo-links li a:hover { color: var(--fg-brand); }

/* ============================================================
   21. BOOKING FORM FIELD UPGRADE
   ============================================================ */
.fg-form-field { position: relative; }
.fg-form-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-text-muted); margin-bottom: 4px; }
.fg-form-input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--fg-border-default);
  border-radius: var(--fg-radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-text-primary);
  background: var(--fg-bg-surface);
  transition: border-color var(--fg-ease-fast), box-shadow var(--fg-ease-fast);
  -webkit-appearance: none; appearance: none;
}
.fg-form-input:focus { outline: none; border-color: var(--fg-brand); box-shadow: 0 0 0 3px rgba(8,120,249,.12); }
.fg-form-input::placeholder { color: var(--fg-text-subtle); font-weight: 400; }
.fg-form-input.is-error { border-color: var(--fg-error); }
.fg-form-input.is-error:focus { box-shadow: 0 0 0 3px rgba(243,87,66,.12); }
.fg-form-error-msg { font-size: 12px; color: var(--fg-error); margin-top: 4px; display: none; }
.fg-form-input.is-error ~ .fg-form-error-msg { display: block; }

/* ============================================================
   22. FOOTER UPGRADE
   ============================================================ */
.fg-site-footer { background: var(--fg-navy-950); color: rgba(255,255,255,.7); padding-top: clamp(48px, 7vw, 80px); }
.fg-footer-brand { margin-bottom: 14px; }
.fg-footer-brand img { height: 32px; }
.fg-footer-tagline { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.55); max-width: 240px; }
.fg-footer-heading { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.fg-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fg-footer-links li a { font-size: 14px; color: rgba(255,255,255,.65); text-decoration: none; transition: color var(--fg-ease-fast); }
.fg-footer-links li a:hover { color: #fff; }

.fg-footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.fg-footer-copy { font-size: 12.5px; color: rgba(255,255,255,.4); }
.fg-footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.fg-footer-legal-links a { font-size: 12.5px; color: rgba(255,255,255,.4); text-decoration: none; transition: color var(--fg-ease-fast); }
.fg-footer-legal-links a:hover { color: rgba(255,255,255,.7); }

.fg-footer-social { display: flex; gap: 10px; margin-top: 20px; }
.fg-footer-social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: 15px;
  transition: background var(--fg-ease-fast), color var(--fg-ease-fast), border-color var(--fg-ease-fast);
}
.fg-footer-social-link:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }

/* ============================================================
   23. RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 575px) {
  .fg-offer-card { flex: 0 0 272px; }
  .fg-destinations-grid { gap: 10px; }
  .fg-trust-stats { gap: 24px; }
}
@media (min-width: 992px) {
  .fg-booking-tabs { gap: 6px; }
  .fg-booking-tab { font-size: 14px; padding: 10px 20px; }
}

/* ============================================================
   24. PRINT STYLES
   ============================================================ */
@media print {
  .fg-bottom-nav, .fg-drawer, .fg-drawer-backdrop, .fg-toast-container { display: none !important; }
  body.has-bottom-nav { padding-bottom: 0 !important; }
}
