/* ==========================================================================
   FAREGRAM APP-STYLE FLIGHT SEARCH REDESIGN (2026)
   Tokens, Layout, Navigation, Airport Cards, Calendar, Bottom Sheets & Responsive Flow
   ========================================================================== */

:root {
  --fg-midnight: #071F33;
  --fg-blue: #0878F9;
  --fg-blue-hover: #0668D8;
  --fg-sky: #DCEFFF;
  --fg-sky-light: #F0F7FF;
  --fg-cloud: #F5F7FA;
  --fg-white: #FFFFFF;
  --fg-ink: #17212B;
  --fg-slate: #596575;
  --fg-muted: #778392;
  --fg-border: #D9E0E7;
  --fg-border-light: #EBF0F5;
  --fg-gold: #F59E0B;
  --fg-gold-hover: #D97706;
  --fg-gold-pill: #FFFBEB;
  --fg-gold-border: #FDE68A;
  --fg-success: #16845B;
  --fg-warning: #B86E00;
  --fg-critical: #C63F4D;
  --fg-shadow-card: 0 4px 20px -2px rgba(7, 31, 51, 0.06), 0 2px 6px -1px rgba(7, 31, 51, 0.04);
  --fg-shadow-popover: 0 12px 36px -4px rgba(7, 31, 51, 0.16), 0 4px 12px -2px rgba(7, 31, 51, 0.08);
}

/* 1. App Shell & Reset Helpers */
.fg-app-shell {
  background-color: #F8FAFC;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--fg-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 2. Mobile App Header */
.fg-mobile-app-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fg-border-light);
  padding: 8px 16px;
  height: 56px;
}

.fg-header-action-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--fg-midnight);
  position: relative;
  transition: background-color 0.15s ease;
}

.fg-header-action-btn:hover,
.fg-header-action-btn:focus-visible {
  background-color: var(--fg-cloud);
  outline: 2px solid var(--fg-blue);
  outline-offset: 1px;
}

.fg-notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background-color: var(--fg-critical);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.fg-user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3B82F6;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
}

/* 3. Hero Section */
.fg-app-hero {
  position: relative;
  background: linear-gradient(180deg, #EBF5FF 0%, #F5F9FD 65%, #F8FAFC 100%);
  padding: 24px 16px 40px;
  overflow: hidden;
}

.fg-app-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: radial-gradient(circle at 80% 30%, rgba(8, 120, 249, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.fg-hero-badge-tag {
  font-family: 'Caveat', cursive, 'Segoe Script', sans-serif;
  font-size: 16px;
  color: var(--fg-blue-hover);
  line-height: 1.2;
}

.fg-hero-greeting {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg-midnight);
  margin-bottom: 4px;
}

.fg-hero-subtext {
  font-size: 15px;
  color: var(--fg-slate);
  margin-bottom: 0;
}

/* 4. Service Navigation Rail */
.fg-app-service-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 12px;
  margin-top: 16px;
}

.fg-app-service-rail::-webkit-scrollbar {
  display: none;
}

.fg-app-service-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-slate);
  background: #fff;
  border: 1px solid var(--fg-border-light);
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 44px;
}

.fg-app-service-pill:hover,
.fg-app-service-pill:focus-visible {
  color: var(--fg-blue);
  border-color: var(--fg-blue);
  background: var(--fg-sky-light);
  outline: none;
}

.fg-app-service-pill.active {
  background: var(--fg-blue);
  color: #fff;
  border-color: var(--fg-blue);
  box-shadow: 0 4px 12px rgba(8, 120, 249, 0.25);
}

.fg-app-service-pill.active .fg-icon {
  color: #fff;
}

/* 5. Flight Search Card / Container */
.fg-flight-search-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--fg-border-light);
  box-shadow: var(--fg-shadow-card);
  padding: 20px;
  position: relative;
  margin-top: -16px;
  z-index: 10;
}

@media (min-width: 768px) {
  .fg-flight-search-card {
    padding: 28px;
    border-radius: 24px;
  }
}

/* 6. Trip Type Segmented Control */
.fg-trip-segmented-control {
  display: inline-flex;
  background: #F1F5F9;
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 20px;
  max-width: 100%;
}

.fg-trip-segment-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--fg-slate);
  font-size: 13px;
  font-weight: 600;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.fg-trip-segment-btn:focus-visible {
  outline: 2px solid var(--fg-blue);
  outline-offset: 1px;
}

.fg-trip-segment-btn.active {
  background: var(--fg-blue);
  color: #fff;
  box-shadow: 0 2px 6px rgba(8, 120, 249, 0.2);
}

/* 7. Route Inputs Group (From / Swap / To) */
.fg-route-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .fg-route-group {
    flex-direction: row;
    gap: 12px;
  }
}

.fg-route-box {
  flex: 1 1 0%;
  background: #fff;
  border: 1.5px solid var(--fg-border);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.fg-route-box:hover,
.fg-route-box:focus-visible,
.fg-route-box.is-active {
  border-color: var(--fg-blue);
  box-shadow: 0 0 0 3px rgba(8, 120, 249, 0.12);
  outline: none;
}

.fg-route-box-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.fg-route-box-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.fg-route-box-city {
  font-size: 19px;
  font-weight: 700;
  color: var(--fg-midnight);
  line-height: 1.2;
}

.fg-route-box-code {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-slate);
}

.fg-route-box-sub {
  font-size: 12px;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Route Swap Action Button */
.fg-route-swap-container {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

@media (max-width: 639px) {
  .fg-route-swap-container {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (min-width: 640px) {
  .fg-route-swap-container {
    align-self: center;
  }
}

.fg-route-swap-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--fg-border);
  color: var(--fg-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(7, 31, 51, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fg-route-swap-btn:hover,
.fg-route-swap-btn:focus-visible {
  background: var(--fg-sky-light);
  border-color: var(--fg-blue);
  color: var(--fg-blue-hover);
  transform: rotate(180deg);
  outline: 2px solid var(--fg-blue);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .fg-route-swap-btn:hover,
  .fg-route-swap-btn:focus-visible {
    transform: none;
  }
}

/* 8. Dates Row */
.fg-dates-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

@media (min-width: 540px) {
  .fg-dates-row {
    flex-direction: row;
    gap: 12px;
  }
}

.fg-date-box {
  flex: 1 1 0%;
  background: #fff;
  border: 1.5px solid var(--fg-border);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fg-date-box:hover,
.fg-date-box:focus-visible,
.fg-date-box.is-active {
  border-color: var(--fg-blue);
  box-shadow: 0 0 0 3px rgba(8, 120, 249, 0.12);
  outline: none;
}

.fg-date-box-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.fg-date-box-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg-midnight);
}

.fg-date-box-val.prompt-blue {
  color: var(--fg-blue);
}

.fg-date-box-sub {
  font-size: 12px;
  color: var(--fg-slate);
}

/* 9. Preferences Row (Travellers, Cabin, Fare) */
.fg-pref-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .fg-pref-row {
    flex-direction: row;
    gap: 12px;
  }
}

.fg-pref-box {
  flex: 1 1 0%;
  background: #fff;
  border: 1.5px solid var(--fg-border);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fg-pref-box:hover,
.fg-pref-box:focus-visible,
.fg-pref-box.is-active {
  border-color: var(--fg-blue);
  box-shadow: 0 0 0 3px rgba(8, 120, 249, 0.12);
  outline: none;
}

.fg-pref-box-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fg-pref-box-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  margin-bottom: 2px;
}

.fg-pref-box-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-midnight);
}

.fg-pref-box-sub {
  font-size: 12px;
  color: var(--fg-slate);
}

.fg-pref-box-icon {
  color: var(--fg-muted);
}

/* 10. Checkbox Preferences (Direct Flights / Flexible Dates) */
.fg-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.fg-custom-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-slate);
  cursor: pointer;
  user-select: none;
}

.fg-custom-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--fg-blue);
  cursor: pointer;
  border-radius: 4px;
}

/* 11. Multi-City Segments Section */
.fg-multicity-segment-card {
  background: var(--fg-cloud);
  border: 1px solid var(--fg-border-light);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}

.fg-multicity-segment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fg-multicity-segment-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-midnight);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fg-multicity-remove-btn {
  background: transparent;
  border: none;
  color: var(--fg-critical);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}

.fg-multicity-add-btn {
  background: #fff;
  border: 1.5px dashed var(--fg-blue);
  color: var(--fg-blue);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  transition: all 0.15s ease;
}

.fg-multicity-add-btn:hover {
  background: var(--fg-sky-light);
}

/* 12. Search Summary Badge */
.fg-search-summary-bar {
  background: var(--fg-sky-light);
  border: 1px solid var(--fg-sky);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-midnight);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* 13. Search Flights Action Button */
.btn-fg-search-primary {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  background-color: var(--fg-gold);
  color: #1A1A1A;
  font-size: 16px;
  font-weight: 700;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-fg-search-primary:hover {
  background-color: var(--fg-gold-hover);
  color: #000;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.btn-fg-search-primary:focus-visible {
  outline: 3px solid var(--fg-blue);
  outline-offset: 2px;
}

.btn-fg-search-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Concierge Secondary Action Button */
.fg-concierge-action-wrap {
  margin-top: 14px;
  text-align: center;
}

.btn-fg-concierge-secondary {
  background: transparent;
  border: none;
  color: var(--fg-slate);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-fg-concierge-secondary:hover,
.btn-fg-concierge-secondary:focus-visible {
  color: var(--fg-blue);
  background: var(--fg-sky-light);
  outline: none;
}

.btn-fg-concierge-secondary strong {
  color: var(--fg-blue);
}

/* 14. Recent Searches Section */
.fg-recent-searches-section {
  margin-top: 28px;
}

.fg-recent-searches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fg-recent-searches-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-midnight);
}

.fg-recent-searches-viewall {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-blue);
  text-decoration: none;
}

.fg-recent-cards-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.fg-recent-cards-scroll::-webkit-scrollbar {
  display: none;
}

.fg-recent-search-card {
  flex: 0 0 240px;
  background: #fff;
  border: 1px solid var(--fg-border-light);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg-midnight);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(7, 31, 51, 0.03);
}

.fg-recent-search-card:hover,
.fg-recent-search-card:focus-visible {
  border-color: var(--fg-blue);
  box-shadow: 0 4px 12px rgba(8, 120, 249, 0.1);
  outline: none;
}

.fg-recent-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fg-sky-light);
  color: var(--fg-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fg-recent-card-route {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-midnight);
  line-height: 1.2;
}

.fg-recent-card-dates {
  font-size: 12px;
  color: var(--fg-muted);
}

/* 15. Mobile Bottom Navigation */
.fg-app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #fff;
  border-top: 1px solid var(--fg-border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1030;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 10px rgba(7, 31, 51, 0.04);
}

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

.fg-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  min-width: 48px;
  min-height: 44px;
  border: none;
  background: transparent;
  position: relative;
  transition: color 0.15s ease;
}

.fg-bottom-nav-item:hover,
.fg-bottom-nav-item:focus-visible,
.fg-bottom-nav-item.active {
  color: var(--fg-blue);
  outline: none;
}

.fg-bottom-nav-item.active .fg-icon {
  color: var(--fg-blue);
}

.fg-bottom-nav-plan-bubble {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--fg-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -20px;
  box-shadow: 0 4px 14px rgba(8, 120, 249, 0.4);
  border: 3px solid #fff;
}

.fg-bottom-nav-plan-bubble:hover {
  background: var(--fg-blue-hover);
}

/* Safe area padding for main content so it doesn't get covered by bottom nav */
.fg-content-safe-bottom {
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
  .fg-content-safe-bottom {
    padding-bottom: 40px;
  }
}

/* 16. Modal Dialogs / Bottom Sheets for Autocomplete, Dates & Travellers */
.fg-modal-sheet .modal-content {
  border-radius: 20px 20px 0 0;
  border: none;
  box-shadow: var(--fg-shadow-popover);
}

@media (min-width: 640px) {
  .fg-modal-sheet .modal-content {
    border-radius: 20px;
  }
}

.fg-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--fg-border);
  border-radius: 999px;
  margin: 8px auto 16px;
}

/* Autocomplete list styling */
.fg-app-airport-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  min-height: 52px;
}

.fg-app-airport-item:hover,
.fg-app-airport-item:focus-visible,
.fg-app-airport-item.selected {
  background-color: var(--fg-sky-light);
  outline: none;
}

.fg-airport-city-tag {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-midnight);
}

.fg-airport-name-tag {
  font-size: 12px;
  color: var(--fg-slate);
}

.fg-airport-iata-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-blue);
  background: #fff;
  border: 1px solid var(--fg-border);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Counter Controls */
.fg-app-counter-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--fg-border);
  background: #fff;
  color: var(--fg-midnight);
  font-size: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fg-app-counter-btn:hover:not(:disabled) {
  border-color: var(--fg-blue);
  color: var(--fg-blue);
  background: var(--fg-sky-light);
}

.fg-app-counter-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fg-app-counter-val {
  min-width: 28px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-midnight);
}


/* ==========================================================================
   APP-STYLE CONTINUOUS VERTICAL CALENDAR STYLES (FARE-CENTRIC, 44PX TARGETS)
   ========================================================================== */

.fg-calendar-sheet-content {
  border-radius: 20px 20px 0 0 !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 768px) {
  .fg-calendar-sheet-content {
    border-radius: 20px !important;
    max-height: 85vh;
  }
}

.fg-cal-scroll-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 58vh;
  background-color: #fafbfc;
}

/* Route context & Trip Mode Pill */
.fg-cal-route-context {
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}

.fg-cal-trip-mode-pill {
  border: 1px solid #e5e7eb;
}

/* Selected Dates Summary Strip */
.fg-cal-selection-strip {
  display: flex;
  gap: 8px;
}

.fg-cal-strip-box {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fg-cal-strip-box.active {
  border-color: #0066cc;
  background-color: #f0f7ff;
}

.fg-cal-strip-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}

.fg-cal-strip-box.active .fg-cal-strip-label {
  color: #0066cc;
}

.fg-cal-strip-val {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  margin-top: 2px;
}

.fg-cal-strip-sub {
  font-size: 11.5px;
  color: #6b7280;
}

/* Day of Week Header Grid */
.fg-cal-weekday-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
}

.fg-weekday-head {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
}

/* Month Section */
.fg-cal-month-section {
  margin-bottom: 24px;
}

.fg-cal-month-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  padding-left: 4px;
}

/* 7-Column Days Grid */
.fg-cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 4px;
}

/* Individual Day Cell & Target */
.fg-cal-day-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0;
}

.fg-cal-day-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: all 0.15s ease-in-out;
  padding: 0;
  margin: 0;
}

.fg-cal-day-btn:hover:not(:disabled) {
  background-color: #e0f2fe;
  color: #0284c7;
}

.fg-cal-day-btn:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

/* Disabled dates (past or beyond 365 days) */
.fg-cal-day-btn:disabled,
.fg-cal-day-btn.disabled {
  color: #d1d5db !important;
  cursor: not-allowed;
  background: transparent !important;
  pointer-events: none;
}

/* Today indicator */
.fg-cal-day-btn.is-today:not(.is-selected-depart):not(.is-selected-return) {
  border: 1.5px solid #0066cc;
  font-weight: 700;
  color: #0066cc;
}

/* Selected departure */
.fg-cal-day-btn.is-selected-depart {
  background-color: #0066cc !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.35);
}

/* Selected return */
.fg-cal-day-btn.is-selected-return {
  background-color: #0066cc !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.35);
}

/* In-range highlight for roundtrip connector */
.fg-cal-day-cell.is-in-range {
  background-color: #e0f2fe;
}

.fg-cal-day-cell.range-start {
  border-top-left-radius: 50%;
  border-bottom-left-radius: 50%;
  background: linear-gradient(to right, transparent 50%, #e0f2fe 50%);
}

.fg-cal-day-cell.range-end {
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
  background: linear-gradient(to left, transparent 50%, #e0f2fe 50%);
}

.fg-cal-day-cell.range-single {
  background: transparent !important;
}

/* Empty filler cells */
.fg-cal-day-cell.is-empty {
  pointer-events: none;
}

/* Booking window boundary note */
.fg-cal-end-notice {
  text-align: center;
  padding: 16px;
  margin-top: 12px;
  background-color: #f3f4f6;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}


/* ==========================================================================
   HIGH-END APP-STYLE AIRPORT / CITY AUTOCOMPLETE MODAL
   ========================================================================== */

#modalAirportPicker .modal-dialog {
  margin: auto;
}

@media (max-width: 767.98px) {
  #modalAirportPicker.modal.fade .modal-dialog {
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
  }

  #modalAirportPicker.modal.show .modal-dialog {
    transform: translateY(0);
  }

  #modalAirportPicker .modal-content {
    border-radius: 24px 24px 0 0 !important;
    border: none;
    max-height: 85vh;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  }
}

.fg-app-airport-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  min-height: 54px !important;
  margin-bottom: 4px !important;
  background-color: #ffffff !important;
  border: 1px solid #f3f4f6 !important;
}

.fg-app-airport-item:hover,
.fg-app-airport-item:focus-visible,
.fg-app-airport-item.selected {
  background-color: #f0f7ff !important;
  border-color: #0066cc !important;
  outline: none !important;
}

.fg-airport-city-tag {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.25 !important;
}

.fg-airport-name-tag {
  font-size: 12px !important;
  color: #6b7280 !important;
  margin-top: 2px !important;
}

.fg-airport-iata-badge {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #0066cc !important;
  background-color: #e0f2fe !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  letter-spacing: 0.5px !important;
  min-width: 46px !important;
  text-align: center !important;
}

/* HIGH-END CALENDAR GRID PERFECTION */
.fg-cal-days-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 2px !important;
}

.fg-cal-weekday-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  text-align: center !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.fg-weekday-head {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #9ca3af !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

.fg-cal-day-cell {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  width: 100% !important;
}

.fg-cal-day-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 50% !important;
  border: none !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.fg-cal-day-btn:hover:not(:disabled) {
  background-color: #e0f2fe !important;
  color: #0284c7 !important;
}

.fg-cal-day-btn.is-selected-depart,
.fg-cal-day-btn.is-selected-return {
  background-color: #0066cc !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.35) !important;
}

.fg-cal-day-btn:disabled {
  color: #d1d5db !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
