/* ==========================================================================
   FLYVIS COMMERCIAL FLIGHT ENGINE & FINTECH MATRIX STYLESHEET
   Design System: Google Flights + Skyscanner UX with Flyvis Brand Palette
   ========================================================================== */

:root {
  --fv-primary: #2E7D7E;
  --fv-primary-dark: #1E5E5F;
  --fv-primary-light: #EAF6F6;
  --fv-accent: #FF7043;
  --fv-accent-light: #FFF0EB;
  --fv-navy: #0D1B2A;
  --fv-navy-light: #1E293B;
  --fv-slate: #334155;
  --fv-muted: #64748B;
  --fv-border: #E2E8F0;
  --fv-border-subtle: #F1F5F9;
  --fv-bg-light: #F8FAFC;
  --fv-card-bg: #FFFFFF;
  --fv-green: #16A34A;
  --fv-green-light: #DCFCE7;
  --fv-radius-sm: 8px;
  --fv-radius-md: 12px;
  --fv-radius-lg: 18px;
  --fv-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --fv-shadow-md: 0 8px 24px -4px rgba(13, 27, 42, 0.08);
  --fv-shadow-lg: 0 20px 35px -8px rgba(13, 27, 42, 0.12);
}

/* Base resets & typography */
.flight-engine-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fv-navy);
  background: var(--fv-bg-light);
  min-height: 100vh;
  padding-bottom: 90px;
}

/* === 1. TOP FLOATING OTA SEARCH CONSOLE === */
.ota-search-hero {
  background: linear-gradient(170deg, #FFFFFF 0%, #F1F6F7 100%);
  border-bottom: 1px solid var(--fv-border);
  padding: 36px 20px 28px;
  position: relative;
  box-shadow: 0 4px 20px -2px rgba(46, 125, 126, 0.06);
}

.ota-search-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.ota-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.ota-title-group h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--fv-navy);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.ota-title-group p {
  font-size: 14px;
  color: var(--fv-muted);
  margin: 0;
}

.ota-trip-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--fv-border);
  box-shadow: var(--fv-shadow-sm);
}

.ota-control-select {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--fv-slate);
  cursor: pointer;
  outline: none;
  padding: 4px 6px;
}

/* Main Search Input Bar */
.ota-search-bar {
  display: grid;
  grid-template-columns: 1.4fr auto 1.4fr 1.1fr 1fr auto;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--fv-border);
  border-radius: var(--fv-radius-md);
  box-shadow: var(--fv-shadow-md);
  position: relative;
  transition: border-color 0.2s;
}

.ota-search-bar:focus-within {
  border-color: var(--fv-primary);
}

.ota-input-box {
  padding: 12px 16px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.ota-input-box:not(:last-child) {
  border-right: 1px solid var(--fv-border);
}

.ota-input-lbl {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--fv-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ota-input-field {
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  color: var(--fv-navy);
  outline: none;
  width: 100%;
  padding: 0;
}

.ota-swap-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--fv-border);
  background: #FFFFFF;
  color: var(--fv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 -8px;
  z-index: 2;
  box-shadow: var(--fv-shadow-sm);
}

.ota-swap-btn:hover {
  background: var(--fv-primary-light);
  transform: rotate(180deg);
}

.btn-ota-search {
  height: 100%;
  min-height: 56px;
  padding: 0 28px;
  background: var(--fv-primary);
  color: #FFFFFF;
  border: none;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.btn-ota-search:hover {
  background: var(--fv-primary-dark);
}

/* === 2. 7-DAY FARE STRIP (GOOGLE FLIGHTS STYLE) === */
.ota-date-carousel-wrap {
  max-width: 1240px;
  margin: 20px auto 0;
  padding: 0 20px;
}

.ota-date-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: #FFFFFF;
  padding: 8px;
  border-radius: var(--fv-radius-md);
  border: 1px solid var(--fv-border);
  box-shadow: var(--fv-shadow-sm);
}

.ota-date-card {
  text-align: center;
  padding: 10px 4px;
  border-radius: var(--fv-radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.ota-date-card:hover {
  background: var(--fv-bg-light);
  border-color: var(--fv-border);
}

.ota-date-card.active {
  background: var(--fv-primary-light);
  border-color: var(--fv-primary);
}

.ota-date-day {
  font-size: 12px;
  font-weight: 700;
  color: var(--fv-muted);
  margin-bottom: 2px;
}

.ota-date-card.active .ota-date-day {
  color: var(--fv-primary-dark);
}

.ota-date-price {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--fv-navy);
}

.ota-date-card.active .ota-date-price {
  color: var(--fv-primary-dark);
}

.ota-date-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--fv-green);
  margin-top: 2px;
}

/* === 3. CORE FLIGHT MATRIX CONTAINER (DUAL COLUMN) === */
.ota-matrix-container {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  align-items: flex-start;
}

/* === 4. LEFT FILTER SIDEBAR === */
.ota-filter-sidebar {
  background: #FFFFFF;
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-md);
  padding: 20px;
  box-shadow: var(--fv-shadow-sm);
  position: sticky;
  top: 24px;
}

.ota-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fv-border);
  margin-bottom: 18px;
}

.ota-filter-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--fv-navy);
}

.btn-filter-reset {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--fv-primary);
  cursor: pointer;
  padding: 0;
}

.ota-filter-section {
  margin-bottom: 22px;
}

.ota-filter-section:not(:last-child) {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--fv-border-subtle);
}

.ota-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--fv-navy);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ota-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--fv-slate);
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}

.ota-checkbox-label input {
  margin-right: 8px;
  accent-color: var(--fv-primary);
}

.ota-filter-fare {
  font-size: 12px;
  font-weight: 700;
  color: var(--fv-muted);
}

/* Time Window Pill Selector */
.ota-time-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ota-time-pill {
  padding: 8px;
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-sm);
  background: #FFFFFF;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ota-time-pill:hover {
  border-color: var(--fv-primary);
}

.ota-time-pill.selected {
  border-color: var(--fv-primary);
  background: var(--fv-primary-light);
  color: var(--fv-primary-dark);
}

.ota-time-pill-title {
  font-size: 11px;
  font-weight: 800;
}

.ota-time-pill-hrs {
  font-size: 9.5px;
  color: var(--fv-muted);
}

/* Credit Card Benefit Sidebar Selector */
.ota-card-pill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-sm);
  margin-bottom: 6px;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.15s ease;
}

.ota-card-pill-item:hover {
  border-color: var(--fv-muted);
}

.ota-card-pill-item.selected {
  border-color: var(--fv-primary);
  background: var(--fv-primary-light);
}

.ota-card-pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* === 5. RIGHT FLIGHT RESULTS STREAM === */
.ota-results-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Top AI Price Prediction Banner (Hopper Style) */
.ota-ai-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--fv-radius-md);
  padding: 16px 20px;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--fv-shadow-md);
  flex-wrap: wrap;
  gap: 14px;
}

.ota-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22, 163, 74, 0.2);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.ota-ai-advice-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.ota-ai-advice-desc {
  font-size: 12.5px;
  color: #94A3B8;
}

.btn-ota-track {
  background: var(--fv-primary);
  color: #FFFFFF;
  border: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-ota-track:hover {
  background: var(--fv-primary-dark);
  transform: translateY(-1px);
}

/* Flight Card Component (Google Flights + Fintech Layer) */
.ota-flight-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.ota-flight-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.ota-card-main-row {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 160px 1fr 180px;
  align-items: center;
  gap: 20px;
}

/* Airline Brand Column */
.ota-airline-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ota-airline-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.ota-airline-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--fv-navy);
  line-height: 1.2;
}

.ota-flight-code {
  font-size: 11.5px;
  color: var(--fv-muted);
  font-weight: 600;
}

/* Flight Path & Times Column */
.ota-path-col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.ota-time-box {
  text-align: center;
}

.ota-time-val {
  font-size: 19px;
  font-weight: 900;
  color: var(--fv-navy);
  letter-spacing: -0.5px;
}

.ota-airport-code {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fv-muted);
}

.ota-duration-track {
  flex: 1;
  max-width: 160px;
  text-align: center;
}

.ota-duration-txt {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fv-slate);
  margin-bottom: 4px;
}

.ota-track-line-visual {
  height: 2px;
  background: #CBD5E1;
  position: relative;
  margin: 0 4px;
}

.ota-track-stop-dot {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fv-accent);
  border: 1.5px solid #FFFFFF;
}

.ota-stops-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--fv-primary);
  margin-top: 4px;
}

.ota-stops-label.nonstop {
  color: var(--fv-green);
}

/* Price & Booking CTA Column */
.ota-price-col {
  text-align: right;
  border-left: 1px solid var(--fv-border-subtle);
  padding-left: 20px;
}

.ota-gross-price {
  font-size: 12px;
  color: var(--fv-muted);
  text-decoration: line-through;
}

.ota-net-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--fv-navy);
  letter-spacing: -0.5px;
}

.ota-card-savings-pill {
  display: inline-block;
  background: var(--fv-green-light);
  color: var(--fv-green);
  border: 1px solid rgba(22, 163, 74, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  margin: 3px 0 8px;
}

.btn-ota-select {
  width: 100%;
  padding: 9px 14px;
  background: var(--fv-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--fv-radius-sm);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-ota-select:hover {
  background: var(--fv-primary-dark);
}

/* Expandable Flight Drawer / Breakdown */
.ota-card-drawer {
  background: #F8FAFC;
  border-top: 1px solid var(--fv-border);
  padding: 16px 22px;
  display: none;
}

.ota-card-drawer.open {
  display: block;
}

.ota-drawer-toggle {
  padding: 6px 22px;
  background: #FAFAFA;
  border-top: 1px solid var(--fv-border-subtle);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fv-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.ota-drawer-toggle:hover {
  color: var(--fv-primary);
}

/* === 6. SLIDE-OVER BOARDING PASS BOOKING DRAWER / FULLSCREEN MODAL === */
.ota-booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.ota-booking-modal {
  background: #F8FAFC;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 98vw;
  max-width: 1540px;
  height: 97vh;
  max-height: 97vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 35px 85px -15px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(15, 23, 42, 0.1);
  animation: modalSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ota-modal-head {
  padding: 16px 28px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--fv-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.ota-modal-head h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--fv-navy);
  margin: 0;
}

.ota-modal-body {
  padding: 24px 28px;
  flex: 1;
  overflow-y: auto;
  background: #F8FAFC;
}

/* Two-column layout inside Full-Screen Booking Modal */
.ota-booking-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  align-items: start;
}

.ota-booking-main-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ota-booking-sidebar-col {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

@media (max-width: 992px) {
  .ota-booking-modal-overlay {
    padding: 10px;
  }
  .ota-booking-modal {
    width: 98vw;
    height: 96vh;
    max-height: 96vh;
    border-radius: 16px;
  }
  .ota-modal-head {
    padding: 14px 18px;
  }
  .ota-modal-body {
    padding: 16px;
  }
  .ota-booking-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ota-booking-sidebar-col {
    position: static;
  }
}

/* Points Burn Slider inside Booking Modal */
.ota-points-burn-box {
  background: var(--fv-bg-light);
  border: 1.5px solid var(--fv-border);
  border-radius: var(--fv-radius-md);
  padding: 16px;
  margin-top: 18px;
}

.ota-points-slider {
  width: 100%;
  margin: 12px 0 8px;
  accent-color: var(--fv-primary);
}

/* WhatsApp Direct CTA Button */
.btn-ota-whatsapp-book {
  width: 100%;
  padding: 16px 20px;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: var(--fv-radius-md);
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
  margin-top: 20px;
}

.btn-ota-whatsapp-book:hover {
  background: #20BA5A;
  transform: translateY(-1px);
}

/* === 7. RADAR SCANNER OVERLAY === */
.ota-scanner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ota-scanner-card {
  background: #FFFFFF;
  border-radius: var(--fv-radius-lg);
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--fv-shadow-lg);
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 1024px) {
  .ota-matrix-container {
    grid-template-columns: 1fr;
  }
  .ota-filter-sidebar {
    display: none;
  }
  .ota-date-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .ota-search-bar {
    grid-template-columns: 1fr;
    border-radius: var(--fv-radius-md);
  }
  .ota-input-box:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--fv-border);
  }
  .btn-ota-search {
    border-radius: 0 0 10px 10px;
    height: 50px;
  }
  .ota-card-main-row {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .ota-price-col {
    text-align: left;
    border-left: none;
    border-top: 1px solid var(--fv-border-subtle);
    padding-left: 0;
    padding-top: 14px;
  }
}

/* User Profile & Dashboard Modal Styles */
.user-profile-menu-wrap {
  position: relative;
}

.btn-google-signin:hover {
  background: #F8FAFC !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.ud-tab-btn {
  transition: all 0.2s ease;
}

.ud-tab-btn.active {
  color: var(--fv-primary) !important;
  border-bottom: 2px solid var(--fv-primary) !important;
}

.ud-tab-btn:hover:not(.active) {
  color: var(--fv-navy) !important;
}

/* ==========================================================================
   FLYVIS CUSTOM INTERACTIVE UI CONTROLS (Replacing Native OS Selects/Dates)
   ========================================================================== */

/* Custom Dropdown Trigger Wrap */
.fv-custom-dropdown {
  position: relative;
  display: inline-block;
}

.fv-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--fv-slate);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
  user-select: none;
}

.fv-dropdown-trigger:hover, .fv-dropdown-trigger.open {
  background: #F1F5F9;
  color: var(--fv-navy);
}

.fv-dropdown-trigger .chevron-icon {
  transition: transform 0.2s ease;
  stroke: var(--fv-muted);
}

.fv-dropdown-trigger.open .chevron-icon {
  transform: rotate(180deg);
  stroke: var(--fv-primary);
}

/* Custom Floating Popover Menu */
.fv-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #FFFFFF;
  border-radius: var(--fv-radius-md);
  border: 1px solid var(--fv-border);
  box-shadow: 0 14px 36px -4px rgba(13, 27, 42, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.02);
  min-width: 200px;
  padding: 6px;
  z-index: 1050;
  display: none;
  animation: fvMenuSlide 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.fv-dropdown-menu.align-right {
  left: auto;
  right: 0;
}

@keyframes fvMenuSlide {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.fv-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fv-slate);
  cursor: pointer;
  transition: all 0.15s ease;
}

.fv-dropdown-item:hover {
  background: #F8FAFC;
  color: var(--fv-navy);
}

.fv-dropdown-item.selected {
  background: var(--fv-primary-light);
  color: var(--fv-primary-dark);
}

.fv-dropdown-item .check-icon {
  color: var(--fv-primary);
  opacity: 0;
}

.fv-dropdown-item.selected .check-icon {
  opacity: 1;
}

/* Sort By Pill Trigger */
.fv-sort-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid var(--fv-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fv-navy);
  cursor: pointer;
  box-shadow: var(--fv-shadow-sm);
  transition: all 0.2s ease;
}

.fv-sort-trigger:hover, .fv-sort-trigger.open {
  border-color: var(--fv-primary);
  background: #FAFCFC;
}

/* Passenger Stepper Card */
.fv-passenger-popover {
  width: 270px;
  padding: 14px;
}

.fv-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.fv-stepper-row:not(:last-child) {
  border-bottom: 1px solid var(--fv-border-subtle);
}

.fv-stepper-label-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--fv-navy);
}

.fv-stepper-label-sub {
  font-size: 11px;
  color: var(--fv-muted);
}

.fv-stepper-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fv-step-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--fv-border);
  background: #FFFFFF;
  color: var(--fv-navy);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fv-step-btn:hover:not(:disabled) {
  border-color: var(--fv-primary);
  background: var(--fv-primary-light);
  color: var(--fv-primary);
}

.fv-step-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.fv-step-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--fv-navy);
  min-width: 16px;
  text-align: center;
}

/* ==========================================================================
   CUSTOM INTERACTIVE TRAVEL CALENDAR POPOVER
   ========================================================================== */
.fv-calendar-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 340px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--fv-border);
  box-shadow: 0 18px 45px -6px rgba(13, 27, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.03);
  padding: 18px;
  z-index: 1100;
  display: none;
  animation: fvMenuSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fv-cal-presets-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
  margin-bottom: 12px;
  border-bottom: none;
}

.fv-cal-presets-strip::-webkit-scrollbar {
  display: none;
}

.fv-cal-preset-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: #F1F5F9;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fv-slate);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.fv-cal-preset-pill:hover {
  background: var(--fv-primary-light);
  color: var(--fv-primary);
}

.fv-cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.fv-cal-month-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--fv-navy);
  letter-spacing: -0.2px;
}

.fv-cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--fv-border);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fv-slate);
  transition: all 0.15s ease;
}

.fv-cal-nav-btn:hover {
  background: #F1F5F9;
  color: var(--fv-navy);
  border-color: #CBD5E1;
}

.fv-cal-weekdays-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--fv-muted);
  margin-bottom: 8px;
}

.fv-cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.fv-cal-day-cell {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fv-navy);
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: all 0.15s ease;
}

.fv-cal-day-cell:hover:not(.disabled):not(.selected) {
  background: #F1F5F9;
  color: var(--fv-primary);
}

.fv-cal-day-cell.disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.fv-cal-day-cell.selected {
  background: var(--fv-primary) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(46, 125, 126, 0.35);
  font-weight: 800;
}

/* ==========================================================================
   SMART BOOKING 5-STEP FUNNEL STYLES
   ========================================================================== */
.smart-funnel-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 16px 0 60px;
  padding: 0 32px;
  box-sizing: border-box;
}

#smart-pane-1 {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#smart-pane-2, #smart-pane-3, #smart-pane-4, #smart-pane-5, #smart-pane-confirmed {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.smart-funnel-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  gap: 8px;
  overflow-x: auto;
}

.smart-funnel-step {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
  flex: 1;
  min-width: 120px;
  transition: all 0.2s ease;
}

.smart-funnel-step.clickable {
  cursor: pointer;
}

.smart-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #64748B;
  border: 1.5px solid #CBD5E1;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.smart-funnel-step.active .smart-step-badge {
  background: #2E7D7E;
  color: #FFFFFF;
  border-color: #2E7D7E;
  box-shadow: 0 0 0 3px rgba(46, 125, 126, 0.2);
}

.smart-funnel-step.completed .smart-step-badge {
  background: #059669;
  color: #FFFFFF;
  border-color: #059669;
}

.smart-step-text {
  display: flex;
  flex-direction: column;
}

.smart-step-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748B;
  white-space: nowrap;
}

.smart-funnel-step.active .smart-step-title {
  font-weight: 800;
  color: #0D1B2A;
}

.smart-funnel-step.completed .smart-step-title {
  font-weight: 800;
  color: #059669;
}

.smart-step-sub {
  font-size: 10px;
  color: #94A3B8;
  white-space: nowrap;
}

.smart-step-divider {
  width: 16px;
  height: 1px;
  background: #E2E8F0;
  flex-shrink: 0;
}

.smart-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px -2px rgba(13, 27, 42, 0.05);
  margin-bottom: 20px;
}

.smart-card-header {
  margin-bottom: 20px;
}

.smart-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #0D1B2A;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.smart-card-sub {
  font-size: 13px;
  color: #64748B;
  margin: 0;
}

.smart-route-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.smart-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.btn-smart-back {
  padding: 14px 20px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  background: #FFFFFF;
  color: #475569;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-smart-back:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #94A3B8;
}

.btn-smart-primary {
  padding: 14px 28px;
  font-size: 14.5px;
  font-weight: 800;
  border-radius: 10px;
  background: #2E7D7E;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(46, 125, 126, 0.35);
  transition: all 0.15s ease;
  flex: 1;
}

.btn-smart-primary:hover {
  background: #246566;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46, 125, 126, 0.45);
}

.smart-lowest-fare-card {
  background: #FFFFFF;
  border: 2px solid #2E7D7E;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(46, 125, 126, 0.12);
  margin-bottom: 24px;
}

.smart-lowest-fare-head {
  background: linear-gradient(135deg, #0F766E 0%, #2E7D7E 100%);
  color: #FFFFFF;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.smart-lowest-fare-body {
  padding: 24px;
}

@media (max-width: 768px) {
  .smart-funnel-steps-bar {
    padding: 12px 14px;
    gap: 4px;
  }
  .smart-step-sub {
    display: none;
  }
  .smart-step-title {
    font-size: 11px;
  }
  .smart-card {
    padding: 18px 14px;
  }
  .smart-action-row {
    flex-direction: column-reverse;
  }
  .btn-smart-back, .btn-smart-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   CENTERED HERO & SMART BOOKING CARD STYLES (STEP 1)
   ========================================================================== */
#smart-pane-1 {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.smart-hero-centered-layout {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.smart-hero-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.smart-hero-header-center .nomadiq-pill-tag {
  margin-bottom: 14px;
}

.smart-hero-header-center .nomadiq-hero-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  color: #0D1B2A;
  margin: 0 0 12px;
  letter-spacing: -1.2px;
}

.smart-hero-header-center .nomadiq-hero-sub {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin: 0 auto;
  max-width: 580px;
}

.smart-booking-card-centered {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 24px 24px 26px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 20px 45px -10px rgba(13, 27, 42, 0.10), 0 0 0 1px rgba(226, 232, 240, 0.85);
  position: relative;
  box-sizing: border-box;
}

.smart-hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(13, 27, 42, 0.03);
}

.smart-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.smart-trust-val {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.smart-trust-val.val-green {
  color: #10B981;
}

.smart-trust-val.val-navy {
  color: #0D1B2A;
}

.smart-trust-label {
  font-size: 11px;
  color: #64748B;
  font-weight: 700;
}

.smart-trust-sep {
  color: #CBD5E1;
  font-size: 12px;
}

@media (max-width: 680px) {
  #smart-pane-1 {
    min-height: auto;
  }
  .smart-hero-header-center .nomadiq-hero-title {
    font-size: 32px;
  }
  .smart-hero-trust-bar {
    border-radius: 16px;
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px;
  }
  .smart-trust-sep {
    display: none;
  }
}

.nomadiq-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F0FDFA;
  border: 1px solid #99F6E4;
  color: #0F766E;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 5px 14px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 20px;
}

.nomadiq-pill-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2E7D7E;
  box-shadow: 0 0 0 2px rgba(46, 125, 126, 0.25);
}

/* Right Card */
.nomadiq-booking-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 26px 26px 28px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 20px 50px -10px rgba(13, 27, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
  position: relative;
}

.nomadiq-card-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.nomadiq-route-stack {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  position: relative;
  overflow: visible;
}

.nomadiq-route-box {
  padding: 14px 18px;
  position: relative;
  cursor: pointer;
  background: #FFFFFF;
  transition: background 0.15s ease;
}

.nomadiq-route-box:first-child {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom: 1px solid #E2E8F0;
}

.nomadiq-route-box:last-child {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.nomadiq-route-box:hover {
  background: #FAFCFF;
}

.nomadiq-route-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.nomadiq-route-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nomadiq-plane-svg {
  color: #2E7D7E;
  flex-shrink: 0;
}

.nomadiq-input-city-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.nomadiq-city-input {
  border: none;
  background: transparent;
  font-size: 19px;
  font-weight: 800;
  color: #0F172A;
  outline: none;
  padding: 0;
  width: 100%;
  font-family: inherit;
  cursor: text;
}

.nomadiq-iata-badge {
  font-size: 12px;
  font-weight: 800;
  color: #0F766E;
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.nomadiq-airport-subname {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
  margin-top: 3px;
  padding-left: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nomadiq-swap-floating-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #2E7D7E;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.nomadiq-swap-floating-btn:hover {
  background: #F0FDFA;
  border-color: #2E7D7E;
  transform: translateY(-50%) rotate(180deg);
}


.nomadiq-pills-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  position: relative;
}

.nomadiq-pills-row.is-roundtrip {
  grid-template-columns: 1fr 1fr 1fr;
}

.nomadiq-pill-box {
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 16px;
  background: #FFFFFF;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  user-select: none;
}

.nomadiq-pill-box:hover {
  border-color: #2E7D7E;
  background: #F8FAFC;
}

.nomadiq-pill-top {
  font-size: 10.5px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.nomadiq-pill-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nomadiq-pill-val {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nomadiq-btn-smart-booking {
  width: 100%;
  margin-top: 20px;
  height: 54px;
  background: linear-gradient(135deg, #2E7D7E 0%, #205859 100%);
  color: #FFFFFF !important;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px -2px rgba(46, 125, 126, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nomadiq-btn-smart-booking:hover {
  background: linear-gradient(135deg, #246566 0%, #174243 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px -2px rgba(46, 125, 126, 0.55);
}

/* Institutional Partners Strip */
.nomadiq-partners-section {
  margin-top: 56px;
  text-align: center;
}

.nomadiq-partners-tag {
  font-size: 11px;
  font-weight: 800;
  color: #2563EB;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}

.nomadiq-partners-heading {
  font-size: 32px;
  font-weight: 900;
  color: #0D1B2A;
  margin: 0 0 28px;
  letter-spacing: -0.6px;
}

.nomadiq-partners-bar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 22px 36px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 28px;
  box-shadow: 0 10px 30px -5px rgba(13, 27, 42, 0.04);
}

.nomadiq-partner-logo {
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nomadiq-partner-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 960px) {
  .nomadiq-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .nomadiq-hero-title {
    font-size: 36px;
  }
  .nomadiq-stats-row {
    gap: 32px;
  }
  .nomadiq-stat-val {
    font-size: 32px;
  }
  .nomadiq-partners-heading {
    font-size: 26px;
  }
}

@media (max-width: 580px) {
  .nomadiq-pills-row,
  .nomadiq-pills-row.is-roundtrip {
    grid-template-columns: 1fr;
  }
  .nomadiq-hero-title {
    font-size: 30px;
  }
  .nomadiq-stats-row {
    flex-direction: column;
    gap: 16px;
  }
  .nomadiq-partners-bar {
    padding: 18px 20px;
    gap: 20px;
  }
}

/* Step 3 2-Column Split: Historical Intel & Lowest Fare */
.smart-step3-split-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 10px;
}

.smart-step3-intel-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px 20px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.smart-intel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 10px;
}

.smart-intel-title {
  font-size: 15px;
  font-weight: 800;
  color: #0D1B2A;
  margin: 0 0 2px;
}

.smart-intel-sub {
  font-size: 11.5px;
  color: #64748B;
  margin: 0;
}

.smart-intel-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.smart-intel-stat-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.smart-intel-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.smart-intel-stat-num {
  font-size: 15px;
  font-weight: 900;
  color: #0D1B2A;
}

.smart-sparkline-wrap {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.smart-intel-days-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 10px;
}

.smart-intel-day-cell {
  background: #F1F5F9;
  border-radius: 6px;
  padding: 6px 2px;
  text-align: center;
  font-size: 9.5px;
  color: #64748B;
  font-weight: 600;
}

.smart-intel-day-cell.current {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
  font-weight: 800;
}

.smart-intel-advisory-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #1E40AF;
  margin-top: auto;
}

@media (max-width: 900px) {
  .smart-step3-split-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 12px;
  }
  .smart-step3-fare-col {
    margin-top: 10px;
  }
}

    /* Clean Preference Card Wrap (Mascot headroom removed) */
.otto-perched-departure-card-wrap {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 22px 20px 20px 20px;
  margin-bottom: 16px;
}

    /* ==========================================================================
       STEP 3 LOWEST FARE FUN & INTERACTIVE ATTRACTIONS
       1. Arcade Price Tumble & Odometer Cash Drop
       2. Otto Time-Traveler Scout Sparkline Scrubber
       3. Otto Price Shield Interactive Simulator
       4. Vault Shackle Snap & Golden Security Wax Seal
       ========================================================================== */

    /* Padlock hover / click jiggle */
    .otto-padlock-jiggling {
      animation: ottoPadlockJiggle 0.38s ease-in-out forwards !important;
    }
    @keyframes ottoPadlockJiggle {
      0% { transform: scale(1) rotate(0deg); }
      20% { transform: scale(1.08) rotate(-7deg); }
      40% { transform: scale(1.12) rotate(6deg); }
      60% { transform: scale(1.06) rotate(-4deg); }
      80% { transform: scale(1.02) rotate(2deg); }
      100% { transform: scale(1) rotate(0deg); }
    }

    /* 1. Price Odometer & Savings Pill Pop */
    .smart-step3-price-tumble {
      display: inline-block;
      transition: color 0.25s ease, transform 0.2s ease;
    }
    .smart-step3-price-tumble.is-dropping {
      color: #059669 !important;
      transform: scale(1.06);
    }
    .smart-step3-savings-pill {
      font-size: 10.5px;
      font-weight: 800;
      background: #DCFCE7;
      color: #166534;
      padding: 3px 8px;
      border-radius: 6px;
      border: 1px solid #BBF7D0;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
    }
    .smart-step3-savings-pill.bounce-pop {
      animation: savingsBadgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    @keyframes savingsBadgePop {
      0% { transform: scale(0.4); opacity: 0; }
      60% { transform: scale(1.22); opacity: 1; }
      100% { transform: scale(1); opacity: 1; }
    }

    /* ==========================================================================
       SHADCN INTERACTIVE LINE CHART (STEP 3 HISTORICAL FARE TRAJECTORY)
       ========================================================================== */
    .sc-chart-card {
      background: #FFFFFF;
      border: 1px solid #E2E8F0;
      border-radius: 12px;
      box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
      overflow: hidden;
      margin-bottom: 16px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .sc-chart-card:hover {
      border-color: #CBD5E1;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    .sc-chart-header {
      display: flex;
      flex-direction: column;
      border-bottom: 1px solid #E2E8F0;
      padding: 0;
    }

    @media (min-width: 580px) {
      .sc-chart-header {
        flex-direction: row;
        align-items: stretch;
      }
    }

    .sc-chart-title-wrap {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 3px;
      padding: 14px 18px;
    }

    .sc-chart-title-row {
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .sc-chart-pulse-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #10B981;
      box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    }

    .sc-chart-title {
      font-size: 14.5px;
      font-weight: 700;
      color: #0D1B2A;
      margin: 0;
      letter-spacing: -0.2px;
    }

    .sc-chart-desc {
      font-size: 11.5px;
      color: #64748B;
      margin: 0;
      line-height: 1.35;
    }

    .sc-chart-stat-badge {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 10px 18px;
      background: #F8FAFC;
      border-top: 1px solid #E2E8F0;
    }

    @media (min-width: 580px) {
      .sc-chart-stat-badge {
        border-top: none;
        border-left: 1px solid #E2E8F0;
        padding: 12px 22px;
      }
    }

    .sc-chart-stat-divider {
      width: 1px;
      height: 28px;
      background: #E2E8F0;
    }

    .sc-chart-stat-col {
      display: flex;
      flex-direction: column;
    }

    .sc-chart-stat-col-lbl {
      font-size: 10px;
      font-weight: 700;
      color: #64748B;
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }

    .sc-chart-stat-col-val {
      font-size: 16px;
      font-weight: 800;
      color: #0D1B2A;
      line-height: 1.1;
      margin-top: 2px;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
    }

    .sc-chart-stat-col-val.highlight {
      color: #0D9488;
    }

    @media (min-width: 580px) {
      .sc-chart-stat-col-val {
        font-size: 18px;
      }
    }

    .sc-chart-content {
      position: relative;
      padding: 14px 16px 10px;
      user-select: none;
      cursor: crosshair;
    }

    .sc-chart-svg {
      width: 100%;
      height: 220px;
      overflow: visible;
      display: block;
    }

    /* Tooltip matching shadcn ChartTooltipContent */
    .sc-chart-tooltip {
      position: absolute;
      pointer-events: none;
      background: #FFFFFF;
      border: 1px solid #E2E8F0;
      border-radius: 10px;
      padding: 10px 14px;
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
      font-size: 11px;
      color: #0D1B2A;
      z-index: 50;
      min-width: 185px;
      transform: translate(-50%, -115%);
      transition: opacity 0.12s ease, transform 0.08s ease;
      display: none;
    }

    .sc-tooltip-date {
      font-size: 11px;
      font-weight: 700;
      color: #64748B;
      margin-bottom: 6px;
      padding-bottom: 4px;
      border-bottom: 1px solid #F1F5F9;
    }

    .sc-tooltip-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 4px;
    }

    .sc-tooltip-key {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #475569;
      font-weight: 600;
    }

    .sc-tooltip-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
    }

    .sc-tooltip-val {
      font-weight: 800;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
    }

    .sc-tooltip-savings {
      margin-top: 6px;
      padding-top: 5px;
      border-top: 1px dashed #E2E8F0;
      color: #059669;
      font-weight: 800;
      font-size: 10.5px;
      display: flex;
      align-items: center;
      gap: 4px;
    }


    /* ==========================================================================
       STEP 3: OTTO LOCKMASTER COMPANION (POSITIONED AT TICKET CARD)
       ========================================================================== */
    /* ==========================================================================
       STEP 3: 2-COLUMN SPLIT LAYOUT (HISTORICAL INTEL & WRAPPED TICKET CARD)
       ========================================================================== */
    .smart-step3-split-layout {
      display: grid;
      grid-template-columns: 1fr 1.15fr;
      gap: 24px;
      align-items: flex-start;
      margin-top: 10px;
    }

    .smart-step3-fare-col {
      position: relative;
    }

    /* Outer wrapper — has perspective for 3D flip child */
    .ticket-card-lock-wrap-outer {
      position: relative;
      overflow: visible;
      margin-top: 24px;
      perspective: 1400px;
      perspective-origin: 50% 50%;
    }

    .smart-lowest-fare-card {
      position: relative;
      background: #FFFFFF;
      border: 1.5px solid #CBD5E1;
      border-radius: 16px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
      transition: border-color 0.3s ease, box-shadow 0.4s ease;
      overflow: hidden;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    /* Teal glow when locked — matches Flyvis palette */
    .smart-lowest-fare-card.is-wrapped-locked {
      border-color: #0D9488 !important;
      box-shadow: 0 0 0 3px #0D9488, 0 12px 36px rgba(13, 148, 136, 0.28) !important;
    }


    /* ==========================================================================
       LOCK ANIMATION: RIPPLE FREEZE + 3D CARD FLIP
       ========================================================================== */

    /* The wrapper is invisible — all magic happens on the card itself */
    .card-wrapping-lock-system {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 35;
      overflow: visible;
    }

    /* Hide the old padlock elements — not used anymore */
    .css-padlock,
    .css-lock-shockwave { display: none !important; }


    /* ---- Flip Inner — crossfade container (no 3D needed) ---- */
    .smart-ticket-flip-inner {
      position: relative;
      width: 100%;
    }

    /* Card fades/shrinks out */
    .smart-ticket-flip-inner.is-flipping .smart-lowest-fare-card {
      animation: cardFadeOut 0.28s ease-in forwards;
    }

    /* Back face fades/grows in after card disappears */
    .smart-ticket-flip-inner.is-flipping .smart-card-lock-back {
      animation: cardFadeIn 0.4s 0.22s ease-out forwards;
    }

    @keyframes cardFadeOut {
      0%   { opacity: 1; transform: scale(1)    rotateX(0deg);  }
      100% { opacity: 0; transform: scale(0.93) rotateX(8deg);  }
    }

    @keyframes cardFadeIn {
      0%   { opacity: 0; transform: scale(0.93) rotateX(-8deg); }
      100% { opacity: 1; transform: scale(1)    rotateX(0deg);  }
    }

    /* ---- Teal Ripple Rings ---- */
    .lock-ripple-ring {
      position: absolute;
      border-radius: 18px;
      border: 2.5px solid #0D9488;
      inset: 0;
      opacity: 0;
      pointer-events: none;
      z-index: 40;
    }

    .lock-ripple-ring.animating:nth-child(1) { animation: rippleExpand 0.65s 0.00s ease-out forwards; }
    .lock-ripple-ring.animating:nth-child(2) { animation: rippleExpand 0.65s 0.11s ease-out forwards; }
    .lock-ripple-ring.animating:nth-child(3) { animation: rippleExpand 0.65s 0.22s ease-out forwards; }

    @keyframes rippleExpand {
      0%   { transform: scale(1);    opacity: 1; }
      100% { transform: scale(1.10); opacity: 0; }
    }

    /* Teal border glow when locked */
    .smart-lowest-fare-card.is-wrapped-locked {
      border-color: #0D9488 !important;
      box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.4), 0 12px 36px rgba(13, 148, 136, 0.18) !important;
    }


    /* ---- Back Face — hidden by default, crossfades in ---- */
    .smart-card-lock-back {
      position: absolute;
      inset: 0;
      background: linear-gradient(145deg, #0F172A 0%, #134E4A 55%, #0D1B2A 100%);
      border-radius: 16px;
      border: 2.5px solid #0D9488;
      box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.3), 0 16px 48px rgba(13, 148, 136, 0.2);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 14px;
      padding: 40px 32px;
      opacity: 0;
      pointer-events: none;
      z-index: 2;
    }

    .smart-ticket-flip-inner.is-flipping .smart-card-lock-back {
      pointer-events: auto;
    }

    /* Lock emoji — stamps in after back face appears */
    .lock-back-icon {
      font-size: 68px;
      line-height: 1;
      opacity: 0;
      filter: drop-shadow(0 0 16px rgba(13, 148, 136, 0.8));
    }

    .smart-ticket-flip-inner.is-flipping .lock-back-icon {
      animation: lockStamp 0.45s 0.58s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    @keyframes lockStamp {
      0%   { transform: scale(2.2); opacity: 0; }
      100% { transform: scale(1);   opacity: 1; }
    }

    /* FARE LOCKED title */
    .lock-back-title {
      font-size: 24px;
      font-weight: 900;
      color: #FFFFFF;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      opacity: 0;
    }

    .smart-ticket-flip-inner.is-flipping .lock-back-title {
      animation: fadeSlideUp 0.38s 0.68s ease-out forwards;
    }

    /* Teal divider line (replaces gold bar) */
    .lock-back-divider {
      width: 56px;
      height: 2px;
      background: linear-gradient(90deg, transparent, #0D9488, transparent);
      border-radius: 2px;
      opacity: 0;
    }

    .smart-ticket-flip-inner.is-flipping .lock-back-divider {
      animation: fadeSlideUp 0.35s 0.74s ease-out forwards;
    }

    /* Price */
    .lock-back-price {
      font-size: 38px;
      font-weight: 900;
      color: #5EEAD4;
      letter-spacing: -0.5px;
      opacity: 0;
    }

    .smart-ticket-flip-inner.is-flipping .lock-back-price {
      animation: fadeSlideUp 0.38s 0.80s ease-out forwards;
    }

    /* Sub-label */
    .lock-back-sublabel {
      font-size: 11.5px;
      font-weight: 700;
      color: #94A3B8;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      opacity: 0;
    }

    .smart-ticket-flip-inner.is-flipping .lock-back-sublabel {
      animation: fadeSlideUp 0.38s 0.88s ease-out forwards;
    }

    @keyframes fadeSlideUp {
      0%   { opacity: 0; transform: translateY(8px); }
      100% { opacity: 1; transform: translateY(0);   }
    }

    /* Teal corner accents */
    .lock-back-corner {
      position: absolute;
      width: 24px;
      height: 24px;
      border-color: #0D9488;
      border-style: solid;
      opacity: 0.5;
    }
    .lock-back-corner-tl { top: 14px;    left: 14px;  border-width: 2px 0 0 2px; border-radius: 3px 0 0 0; }
    .lock-back-corner-tr { top: 14px;    right: 14px; border-width: 2px 2px 0 0; border-radius: 0 3px 0 0; }
    .lock-back-corner-bl { bottom: 14px; left: 14px;  border-width: 0 0 2px 2px; border-radius: 0 0 0 3px; }
    .lock-back-corner-br { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; border-radius: 0 0 3px 0; }

    /* Status Pill inside Card Footer */
    .smart-step3-lock-status-pill {
      display: flex;
      align-items: center;
      gap: 10px;
      background: #F0FDFA;
      border: 1.5px solid #99F6E4;
      padding: 8px 16px;
      border-radius: 12px;
    }

    .lock-status-dot-pulse {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #0D9488;
      box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
      animation: pulseDot 2s infinite;
    }

    @keyframes pulseDot {
      0%   { transform: scale(0.95); box-shadow: 0 0 0 0   rgba(13, 148, 136, 0.5); }
      70%  { transform: scale(1);    box-shadow: 0 0 0 8px rgba(13, 148, 136, 0);   }
      100% { transform: scale(0.95); box-shadow: 0 0 0 0   rgba(13, 148, 136, 0);   }
    }

    .otto-lock-snap {
      animation: shackleSnap 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes shackleSnap {
      0% { transform: scale(1); }
      35% { transform: scale(1.15) translateY(-6px) rotate(-3deg); }
      60% { transform: scale(0.96) translateY(2px); }
      100% { transform: scale(1) translateY(0); }
    }

    /* Gold Sparkle Particles */
    .otto-lock-particle {
      position: fixed;
      pointer-events: none;
      z-index: 99999;
      font-size: 16px;
      user-select: none;
      animation: lockParticleFly 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    @keyframes lockParticleFly {
      0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.6) rotate(0deg);
      }
      100% {
        opacity: 0;
        transform: translate(var(--tx, 30px), var(--ty, -50px)) scale(1.25) rotate(var(--tr, 45deg));
      }
    }

    /* Clean Locked Price Pill Pulse */
    .price-locked-pulse {
      animation: priceLockedGlow 0.6s ease-in-out;
    }

    @keyframes priceLockedGlow {
      0% { transform: scale(1); }
      50% { transform: scale(1.08); color: #059669; text-shadow: 0 0 12px rgba(16, 185, 129, 0.5); }
      100% { transform: scale(1); }
    }

    /* Smart Ticket Times & Path Layout */
    .smart-flight-times-grid {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 16px;
    }

    .smart-flight-time-val {
      font-size: clamp(20px, 4.5vw, 24px);
      font-weight: 900;
      color: #0D1B2A;
      letter-spacing: -0.5px;
      white-space: nowrap;
    }

    .smart-flight-track-col {
      text-align: center;
      min-width: 170px;
      padding: 0 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    @media (max-width: 768px) {
      .smart-step3-split-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 12px;
      }

      .smart-step3-fare-col {
        margin-top: 10px;
      }

      .smart-flight-times-grid {
        gap: 8px;
      }

      .smart-flight-track-col {
        min-width: 110px;
        padding: 0 4px;
      }

      .smart-flight-time-val {
        font-size: 19px;
      }
    }

    @media (max-width: 480px) {
      .smart-flight-track-col {
        min-width: 95px;
      }

      .smart-flight-time-val {
        font-size: 17px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .otter-mover, .otter-lean-img, .otter-shades-glint, .otto-mascot-fig-img, .otto-confirmed-mascot {
        animation: none !important;
      }
    }


/* ========================================================================== */
/* PROGRESSIVE PREFERENCES STEPPER & COMPONENT CARDS (STEP 2)                */
/* ========================================================================== */

.pref-stepper-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.pref-step-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 4px 18px -2px rgba(13, 27, 42, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.pref-step-card.is-active {
  border-color: #2E7D7E;
  box-shadow: 0 10px 28px -6px rgba(46, 125, 126, 0.16), 0 0 0 1px rgba(46, 125, 126, 0.2);
}

.pref-step-card.is-locked {
  opacity: 0.36;
  filter: grayscale(0.85);
  pointer-events: none;
  user-select: none;
}

.pref-step-card.is-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.55);
  backdrop-filter: blur(1px);
  z-index: 10;
  cursor: not-allowed;
}

.pref-step-card.just-unlocked {
  animation: prefCardIlluminate 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes prefCardIlluminate {
  0% { transform: translateY(8px); box-shadow: 0 0 0 0 rgba(46, 125, 126, 0.4); }
  50% { box-shadow: 0 0 28px 4px rgba(46, 125, 126, 0.25); }
  100% { transform: translateY(0); box-shadow: 0 10px 28px -6px rgba(46, 125, 126, 0.16); }
}

/* Card Header */
.pref-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.pref-card-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pref-step-pill {
  font-size: 10.5px;
  font-weight: 800;
  background: #EAF6F6;
  color: #0F766E;
  padding: 3px 9px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.pref-date-pill, .pref-info-pill {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 3px 9px;
  border-radius: 10px;
}

.pref-card-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pref-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EAF6F6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pref-card-heading {
  font-size: 16px;
  font-weight: 800;
  color: #0D1B2A;
  margin: 0 0 3px 0;
  line-height: 1.25;
}

.pref-card-desc {
  font-size: 12px;
  color: #64748B;
  margin: 0;
  line-height: 1.35;
}

.pref-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 16px;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
}

.pref-card-status.active {
  background: #E6F7F5;
  color: #0F766E;
  border: 1px solid #CCFBF1;
}

.pref-card-status.locked {
  background: #F1F5F9;
  color: #94A3B8;
  border: 1px solid #E2E8F0;
}

.pref-card-status.complete {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

/* ========================================================================== */
/* CARD 1: REAL ANALOG CLOCK & OUTSIDE SELECTION READOUT                     */
/* ========================================================================== */

.real-clock-layout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding: 4px 0;
}

@media (max-width: 680px) {
  .real-clock-layout {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}

/* Analog Clock Face */
.real-clock-face {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #CBD5E1;
  box-shadow: 0 8px 24px -4px rgba(13, 27, 42, 0.08), inset 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  flex-shrink: 0;
  user-select: none;
  overflow: hidden;
  box-sizing: content-box;
}

/* 12-Hour Minute/Hour Ticks around Rim */
.clock-tick {
  position: absolute;
  top: 5px;
  left: 129px;
  width: 2px;
  height: 7px;
  background: #CBD5E1;
  transform-origin: 1px 125px;
  pointer-events: none;
}
.clock-tick.tick-0   { transform: rotate(0deg);   height: 9px; background: #64748B; width: 2.5px; }
.clock-tick.tick-30  { transform: rotate(30deg); }
.clock-tick.tick-60  { transform: rotate(60deg); }
.clock-tick.tick-90  { transform: rotate(90deg);  height: 9px; background: #64748B; width: 2.5px; }
.clock-tick.tick-120 { transform: rotate(120deg); }
.clock-tick.tick-150 { transform: rotate(150deg); }
.clock-tick.tick-180 { transform: rotate(180deg); height: 9px; background: #64748B; width: 2.5px; }
.clock-tick.tick-210 { transform: rotate(210deg); }
.clock-tick.tick-240 { transform: rotate(240deg); }
.clock-tick.tick-270 { transform: rotate(270deg); height: 9px; background: #64748B; width: 2.5px; }
.clock-tick.tick-300 { transform: rotate(300deg); }
.clock-tick.tick-330 { transform: rotate(330deg); }

/* Center Pin / Screw (Luxury Watch Style) */
.clock-center-pin {
  position: absolute;
  top: 123px;
  left: 123px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0F172A;
  border: 2.5px solid #2E7D7E;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  z-index: 12;
  pointer-events: none;
}

.clock-center-pin::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #CCFBF1;
}

/* Authentic Clock Hand (In Front, Z-Index 11) */
.clock-hand-assembly {
  position: absolute;
  top: 50px;
  left: 125px;
  width: 10px;
  height: 98px;
  transform-origin: 5px 80px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 11;
}

.clock-hand-pointer {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 15px solid #0F766E;
  margin: 0 auto;
  filter: drop-shadow(0 2px 3px rgba(15, 118, 110, 0.45));
}

.clock-hand-shaft {
  width: 3.5px;
  height: 65px;
  margin: -1px auto 0;
  background: linear-gradient(180deg, #0F766E 0%, #0F172A 100%);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.clock-hand-counterweight {
  width: 8px;
  height: 18px;
  margin: 0 auto;
  background: #0F172A;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Typographic Timing Indices directly on Dial Face (NO BUBBLE CIRCLES) */
.clock-time-mark {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  z-index: 8;
}

.clock-time-mark:hover {
  color: #0F766E;
  transform: scale(1.08);
}

.clock-time-mark.active {
  color: #0F766E !important;
  font-weight: 800;
  text-shadow: 0 0 1px rgba(15, 118, 110, 0.5);
}

.clock-mark-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.clock-mark-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.clock-time-mark.active .clock-mark-text {
  font-weight: 800;
}

/* Outside Selection Readout */
.clock-outside-readout {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
}

.clock-readout-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px 20px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(13, 27, 42, 0.03);
}

.clock-readout-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #0F766E;
  background: #CCFBF1;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.clock-readout-title {
  font-size: 19px;
  font-weight: 800;
  color: #0D1B2A;
  margin-bottom: 2px;
  line-height: 1.25;
}

.clock-readout-sub {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 10px;
}

.clock-readout-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 5px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 12px;
}

.clock-readout-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #64748B;
  border-top: 1px solid #E2E8F0;
  padding-top: 10px;
  line-height: 1.35;
}

/* ========================================================================== */
/* CARD 2: TRAJECTORY RUNWAY (FLIGHT STOPS)                                   */
/* ========================================================================== */

.runway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .runway-grid {
    grid-template-columns: 1fr;
  }
}

.runway-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.runway-card:hover {
  border-color: #94A3B8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 27, 42, 0.06);
}

.runway-card.active {
  border: 2px solid #2E7D7E !important;
  background: #F0FDFA !important;
  box-shadow: 0 8px 20px rgba(46, 125, 126, 0.14);
}

.runway-path-preview {
  margin-bottom: 10px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 2px 6px;
}

.runway-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.runway-tag {
  font-size: 9px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.runway-tag.rec {
  color: #166534;
}

.runway-tag.save {
  color: #0284C7;
}

.runway-title {
  font-size: 14px;
  font-weight: 800;
  color: #0D1B2A;
}

.runway-desc {
  font-size: 11px;
  color: #64748B;
  line-height: 1.3;
}

/* ========================================================================== */
/* CARD 3: FLEET HANGAR (PREFERRED AIRLINES)                                 */
/* ========================================================================== */

.hangar-grid-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Master "All Airlines" Card */
.hangar-hero-card {
  padding: 12px 16px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(13, 27, 42, 0.04);
}

.hangar-hero-card:hover {
  border-color: #94A3B8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -4px rgba(13, 27, 42, 0.08);
}

.hangar-hero-card:active {
  transform: scale(0.99);
}

.hangar-hero-card.active {
  border: 2px solid #0F766E;
  background: #F0FDFA;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.12), inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.hangar-hero-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hangar-hero-icon-bubble {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #E6F7F5;
  color: #0F766E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hangar-hero-card:hover .hangar-hero-icon-bubble {
  transform: scale(1.08);
}

.hangar-hero-card.active .hangar-hero-icon-bubble {
  background: #0F766E;
  color: #FFFFFF;
}

.hangar-hero-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0E1B2E;
  letter-spacing: -0.2px;
}

/* Carriers Grid: 2 Columns */
.hangar-carriers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 580px) {
  .hangar-carriers-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Carrier Tile */
.hangar-carrier-tile {
  padding: 10px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(13, 27, 42, 0.03);
  position: relative;
  user-select: none;
}

.hangar-carrier-tile:hover {
  border-color: #94A3B8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(13, 27, 42, 0.08);
}

.hangar-carrier-tile:active {
  transform: scale(0.98);
}

.hangar-carrier-tile.active {
  border: 2px solid #0F766E;
  background: #F0FDFA;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.12), inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.hangar-carrier-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.hangar-carrier-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  letter-spacing: -0.3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.hangar-carrier-img {
  max-width: 54px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.hangar-carrier-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0E1B2E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.hangar-carrier-tile.active .hangar-carrier-name {
  color: #0F766E;
}

/* Custom Checkbox */
.hangar-check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.hangar-carrier-tile:hover .hangar-check-box,
.hangar-hero-card:hover .hangar-check-box {
  border-color: #94A3B8;
}

.hangar-carrier-tile.active .hangar-check-box,
.hangar-hero-card.active .hangar-check-box {
  background: #0F766E;
  border-color: #0F766E;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
  animation: checkPop 0.24s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkPop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ========================================================================== */
/* DIRECT HEADER STEPPER & FUNNEL TOP-LEFT BACK BUTTON                       */
/* ========================================================================== */

.nav-funnel-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.funnel-top-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  color: #0E1B2E;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.04);
}

.funnel-top-back-btn:hover {
  background: #E2E8F0;
  color: #0F766E;
  border-color: #0F766E;
  transform: translateX(-2px);
}

.navbar.funnel-header-active {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 4px rgba(13, 27, 42, 0.04) !important;
}

.navbar.funnel-header-active .nav-inner {
  height: 52px !important;
  padding: 0 24px !important;
  max-width: 1240px !important;
}

.navbar.funnel-header-active .nav-right #nav-cta-whatsapp {
  display: none !important;
}

.navbar.funnel-header-active .nav-right .hamburger {
  display: none !important;
}

.navbar .smart-funnel-steps-bar.direct-header-stepper {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-sizing: border-box;
}

.smart-funnel-steps-bar.direct-header-stepper .smart-funnel-step {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  flex: initial;
  min-width: 0;
}

.smart-funnel-steps-bar.direct-header-stepper .smart-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.smart-funnel-steps-bar.direct-header-stepper .smart-step-badge.active {
  background: #0F766E !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.35);
}

.smart-funnel-steps-bar.direct-header-stepper .smart-step-badge.completed {
  background: #10B981 !important;
  color: #FFFFFF !important;
}

.smart-funnel-steps-bar.direct-header-stepper .smart-step-text {
  display: flex;
  flex-direction: column;
}

.smart-funnel-steps-bar.direct-header-stepper .smart-step-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #334155;
  line-height: 1.15;
  white-space: nowrap;
}

.smart-funnel-steps-bar.direct-header-stepper .smart-funnel-step.active .smart-step-title {
  color: #0F766E;
}

.smart-funnel-steps-bar.direct-header-stepper .smart-step-sub {
  font-size: 9.5px;
  color: #94A3B8;
  line-height: 1.15;
  white-space: nowrap;
}

.smart-funnel-steps-bar.direct-header-stepper .smart-funnel-step.active .smart-step-sub {
  color: #0D9488;
  font-weight: 600;
}

.smart-funnel-steps-bar.direct-header-stepper .smart-step-divider {
  width: 16px;
  height: 1.5px;
  background: #E2E8F0;
  flex-shrink: 0;
}

/* ========================================================================== */
/* COMPACT STEP 2 HUB HEADER & ROUTE PILL (SINGLE-FRAME FITTING)             */
/* ========================================================================== */

body.flight-engine-wrapper:has(#smart-pane-2:not([style*="display: none"]):not([style*="display:none"])) .smart-funnel-wrapper {
  margin: 4px 0 0 0 !important;
  padding: 0 16px !important;
}

#smart-pane-2 {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4px 16px 8px !important;
  box-sizing: border-box;
}

.pref-hub-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: nowrap;
}

.pref-hub-title {
  font-size: 16px;
  font-weight: 800;
  color: #0D1B2A;
  margin: 0 0 1px 0;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.pref-hub-sub {
  font-size: 11px;
  color: #64748B;
  margin: 0;
  line-height: 1.2;
}

.pref-hub-route-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11.5px;
  flex-shrink: 0;
}

.route-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.route-pill-cities {
  font-weight: 800;
  color: #0D1B2A;
}

.route-pill-divider {
  color: #CBD5E1;
}

.route-pill-meta {
  color: #64748B;
  font-size: 11px;
}

.route-pill-change-btn {
  background: none;
  border: none;
  color: #0F766E;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 0 0 3px;
}

.route-pill-change-btn:hover {
  color: #0D9488;
}

/* ========================================================================== */
/* 2x2 GRID FRAME FOR ALL PREFERENCES IN ONE SCREEN (ZERO SCROLL)            */
/* ========================================================================== */

.pref-2x2-frame {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.pref-grid-row {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

@media (max-width: 860px) {
  .pref-grid-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.pref-grid-card {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(13, 27, 42, 0.03) !important;
  padding: 8px 14px 8px !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pref-grid-card .pref-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px !important;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
}

.pref-grid-card .pref-card-head > div:first-child {
  min-width: 0;
  flex: 1;
}

.pref-grid-card .pref-card-status {
  flex-shrink: 0;
}

.pref-grid-card.is-locked {
  opacity: 0.42 !important;
  filter: grayscale(0.8);
  pointer-events: none;
}

.pref-grid-card.is-unlocked {
  opacity: 1 !important;
  filter: none;
  pointer-events: auto;
}

/* Analog Clock in Card 1 */
.pref-grid-card .real-clock-face {
  transform: scale(0.66);
  transform-origin: top center;
  margin: -16px auto -82px;
}

.pref-grid-card .clock-bottom-readout {
  margin-top: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.clock-bottom-selection {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

/* Stops in Card 2 */
.pref-grid-card .slim-stack-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.pref-grid-card .slim-row-card {
  padding: 3px 8px;
  min-height: 31px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pref-grid-card .row-title-text {
  font-size: 11px;
}

.pref-grid-card .row-pill-badge {
  font-size: 7px;
  padding: 1px 4px;
}

.pref-grid-card .row-telemetry-meta {
  font-size: 9.5px;
}

.pref-grid-card .row-fare-num {
  font-size: 11px;
  min-width: 42px;
}

/* Airlines in Card 3 */
.pref-grid-card .hangar-hero-card {
  padding: 3px 8px;
  margin-bottom: 4px;
  border-radius: 8px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pref-grid-card .hangar-hero-icon-bubble {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.pref-grid-card .hangar-hero-title {
  font-size: 11.5px;
}

.pref-grid-card .hangar-carriers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-height: 76px;
  overflow-y: auto;
  padding-right: 2px;
}

.pref-grid-card .hangar-carrier-tile {
  padding: 3px 6px;
  min-height: 32px;
  border-radius: 7px;
}

.pref-grid-card .hangar-carrier-name {
  font-size: 11px;
}

.pref-grid-card .hangar-carrier-img {
  max-height: 16px;
  max-width: 38px;
}

.pref-grid-card .hangar-carrier-badge {
  width: 18px;
  height: 18px;
  font-size: 8.5px;
  border-radius: 4px;
}

.pref-grid-card .hangar-check-box {
  width: 15px;
  height: 15px;
  border-radius: 4px;
}

/* ========================================================================== */
/* CARD 4: BAGGAGE SELECTOR STYLED SIMILAR TO AIRLINE SELECTOR               */
/* ========================================================================== */

.baggage-hangar-container {
  width: 100%;
}

.baggage-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

@media (max-width: 580px) {
  .baggage-tiles-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.baggage-tiles-grid .hangar-carrier-tile {
  padding: 3px 6px;
  min-height: 36px;
  border-radius: 7px;
}

.bag-tile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0;
}

.bag-tile-title {
  font-size: 11px;
  font-weight: 800;
  color: #0E1B2E;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hangar-carrier-tile.active .bag-tile-title {
  color: #0F766E;
}

.bag-tile-sub {
  font-size: 8.5px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bag-badge-pill {
  font-size: 7px;
  font-weight: 800;
  background: #CCFBF1;
  color: #0F766E;
  padding: 1px 4px;
  border-radius: 4px;
}

.bag-sub-tag {
  font-size: 7.5px;
  font-weight: 700;
  color: #64748B;
}

.safeguard-badge-pill {
  font-size: 7px;
  font-weight: 800;
  background: #CCFBF1;
  color: #0F766E;
  padding: 1px 4px;
  border-radius: 4px;
}

.safeguard-bubble {
  background: #E6F7F5 !important;
  color: #0F766E !important;
}

/* Action CTA locked vs ready */
#btn-step2-scan-flights.is-locked {
  opacity: 0.65;
  cursor: pointer;
}

#btn-step2-scan-flights.is-ready {
  opacity: 1;
  background: linear-gradient(135deg, #2E7D7E 0%, #165253 100%) !important;
  box-shadow: 0 4px 14px rgba(46, 125, 126, 0.3) !important;
  animation: scanReadyPulse 2.2s infinite;
}

@keyframes scanReadyPulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 125, 126, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(46, 125, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 125, 126, 0); }
}

.smart-action-row {
  margin-top: 5px !important;
  margin-bottom: 2px !important;
  display: flex;
  justify-content: center;
}

#btn-step2-scan-flights {
  height: 36px !important;
  padding: 0 28px !important;
  font-size: 13px !important;
  border-radius: 9px !important;
}

.clock-bottom-readout {
  width: 260px;
  margin-top: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.clock-bottom-selection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.clock-bottom-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0F766E;
  display: inline-block;
}

.clock-bottom-price {
  font-size: 12.5px;
  font-weight: 800;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
}


/* Pie-Wedge Sector Glow & Multi-Select Chips (Option 1) */
.clock-sectors-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  pointer-events: auto;
}

.clock-sector-wedge {
  fill: transparent;
  stroke: none;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
  shape-rendering: geometricPrecision;
  transition: opacity 0.22s ease, fill 0.22s ease;
}

.clock-sector-wedge:hover {
  opacity: 0.55;
  fill: rgba(46, 125, 126, 0.15);
}

.clock-sector-wedge.active {
  opacity: 1 !important;
  fill: rgba(46, 125, 126, 0.28) !important;
  stroke: none !important;
}

.clock-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  max-width: 260px;
  margin-top: 6px;
}

.clock-chip {
  font-size: 10px;
  font-weight: 700;
  background: #EAF6F6;
  color: #0F766E;
  border: 1px solid #B2DFDB;
  border-radius: 12px;
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.clock-chip:hover {
  background: #FEE2E2;
  color: #B91C1C;
  border-color: #FECACA;
}

.clock-chip-remove {
  font-size: 11px;
  line-height: 1;
}

/* Top Row Layout: Clock on Left + Flight Stops on Right (Same Row) */
.pref-top-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
}

.pref-col-clock {
  flex-shrink: 0;
  width: 270px;
}

.pref-col-stops {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
}

@media (max-width: 900px) {
  .pref-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .pref-col-clock {
    align-self: flex-start;
  }
}

/* ========================================================================== */
/* COMPACT SLIM ROW STACK FOR CARD 2 (FLIGHT STOPS & ROUTING FILTER)          */
/* ========================================================================== */

#pref-step-card-2.pref-col-stops {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 18px -2px rgba(13, 27, 42, 0.05) !important;
  padding: 18px 20px !important;
  max-width: 500px;
  box-sizing: border-box;
}

#pref-step-card-2.is-locked {
  opacity: 0.38 !important;
  filter: grayscale(0.85);
  pointer-events: none;
}

#pref-step-card-2.is-unlocked {
  opacity: 1 !important;
  filter: none;
  pointer-events: auto;
}

#pref-step-card-2.is-active {
  border-color: #2E7D7E !important;
  box-shadow: 0 10px 28px -6px rgba(46, 125, 126, 0.16), 0 0 0 1px rgba(46, 125, 126, 0.2) !important;
}

.slim-stack-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.slim-row-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.2s ease,
              background 0.2s ease;
  position: relative;
  overflow: hidden;
  min-height: 48px;
  box-sizing: border-box;
}

.slim-row-card:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(13, 27, 42, 0.06);
}

.slim-row-card:active {
  transform: scale(0.99);
}

.slim-row-card.active {
  background: #F0FDFA !important;
  border-color: #2E7D7E !important;
  box-shadow: 0 4px 14px -2px rgba(46, 125, 126, 0.16), inset 0 0 0 1px rgba(46, 125, 126, 0.2) !important;
}

.row-left-grp {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.row-radio-box {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid #94A3B8;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.row-radio-dot {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: #2E7D7E;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slim-row-card.active .row-radio-box {
  border-color: #2E7D7E;
  background: #2E7D7E;
  box-shadow: 0 0 0 2px rgba(46, 125, 126, 0.15);
}

.slim-row-card.active .row-radio-dot {
  background: #FFFFFF;
  transform: scale(1);
}

.row-title-text {
  font-size: 13px;
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.slim-row-card.active .row-title-text {
  color: #0F766E;
  font-weight: 800;
}

.row-pill-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.slim-row-card.active .row-pill-badge {
  background: #EAF6F6;
  border-color: #CCFBF1;
  color: #0F766E;
}

.row-track-svg-box {
  flex: 1;
  max-width: 100px;
  height: 18px;
  display: flex;
  align-items: center;
}

.row-svg-track {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.slim-row-card.active .row-svg-track line,
.slim-row-card.active .row-svg-track path {
  stroke: #2E7D7E;
}

.slim-row-card.active #nomadiq-stop-2plus .row-svg-track path,
#nomadiq-stop-2plus.active .row-svg-track path {
  stroke: #D97706;
}

.slim-row-card.active .row-svg-track circle[fill="#94A3B8"] {
  fill: #2E7D7E;
}

.waypoint-beacon-ring {
  animation: beaconPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  transform-origin: center;
}

@keyframes beaconPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0.15; }
  100% { transform: scale(1); opacity: 0.8; }
}

.row-right-grp {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.row-telemetry-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-align: right;
  white-space: nowrap;
}

.slim-row-card.active .row-telemetry-meta {
  color: #0F766E;
  font-weight: 800;
}

.row-fare-num {
  font-size: 15px;
  font-weight: 800;
  color: #0D1B2A;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  letter-spacing: -0.3px;
  min-width: 56px;
  text-align: right;
  white-space: nowrap;
}

.slim-row-card.active .row-fare-num {
  color: #0F766E;
}

/* ========================================================================== */
/* OPTION 4: AIRY MODERN SPLIT HERO WITH REAL GLOBE BACKGROUND & CALLOUT      */
/* ========================================================================== */

#smart-pane-1 {
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: #FFFFFF;
  background-image: url('../assets/brand/flight-hero-globe.png');
  background-repeat: no-repeat;
  background-position: right 0px top 0px;
  background-size: 65% auto;
  position: relative;
}

@media (min-width: 1400px) {
  #smart-pane-1 {
    background-size: 60% auto;
    background-position: right 20px top 0px;
  }
}

@media (max-width: 1100px) {
  #smart-pane-1 {
    background-position: right 0px top 0px;
    background-size: 62% auto;
  }
}

@media (max-width: 880px) {
  #smart-pane-1 {
    background-image: none;
  }
}

.opt4-hero-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 20px 24px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.opt4-hero-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  align-items: center;
  gap: 32px;
  width: 100%;
}

@media (max-width: 880px) {
  .opt4-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Left Column */
.opt4-hero-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
}

.opt4-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  color: #2E7D7E;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.opt4-heading-wrap {
  margin-bottom: 2px;
}

.opt4-hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.05;
  color: #0E1B2E;
  letter-spacing: -1.4px;
  margin: 0 0 8px 0;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
}

@media (max-width: 600px) {
  .opt4-hero-title {
    font-size: 32px;
    letter-spacing: -1px;
    line-height: 1.12;
  }
}

.opt4-hero-highlight {
  color: #0F766E;
}

.opt4-hero-sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: #5A6B7E;
  margin: 0;
  max-width: 440px;
}

.opt4-hero-sub strong {
  color: #0E1B2E;
  font-weight: 800;
}

/* Search Card */
.opt4-search-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 16px 18px 18px;
  box-shadow: 0 14px 40px -8px rgba(13, 27, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  box-sizing: border-box;
  max-width: 440px;
}

/* Topbar */
.opt4-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.opt4-trip-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 2px 4px;
  border-radius: 8px;
}

.opt4-tab-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748B;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.opt4-tab-btn:hover {
  color: #0D1B2A;
}

.opt4-tab-btn.active {
  background: #CCFBF1;
  color: #0F766E;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(46, 125, 126, 0.1);
}

.opt4-tab-divider {
  color: #CBD5E1;
  font-size: 11px;
  margin: 0 2px;
  user-select: none;
}

.opt4-cabin-trigger {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: #0D1B2A;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.opt4-cabin-trigger:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

/* Route Fields: Connected Box */
.opt4-route-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  position: relative;
  transition: border-color 0.2s ease;
}

.opt4-route-grid:focus-within {
  border-color: #2E7D7E;
  box-shadow: 0 0 0 3px rgba(46, 125, 126, 0.12);
}

.opt4-route-field {
  padding: 8px 12px;
  cursor: pointer;
  position: relative;
  border-radius: 12px;
  transition: background 0.15s ease;
  min-width: 0;
}

.opt4-route-field:hover {
  background: #F8FAFC;
}

.opt4-field-tag {
  font-size: 8.5px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.opt4-field-main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.opt4-field-plane-icon {
  flex-shrink: 0;
  color: #2E7D7E;
}

.opt4-input-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
  min-width: 0;
}

.opt4-city-input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  color: #0D1B2A;
  outline: none;
  flex: 1;
  min-width: 0;
  padding: 0;
}

.opt4-iata-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 800;
  color: #0F766E;
  background: #E6F7F5;
  border: 1px solid #CCFBF1;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.opt4-subname {
  font-size: 10px;
  color: #64748B;
  margin-top: 1px;
  padding-left: 21px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opt4-swap-cell {
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opt4-swap-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #0F766E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.opt4-swap-btn:hover {
  background: #F0FDFA;
  border-color: #2E7D7E;
  transform: rotate(180deg) scale(1.08);
}

@media (max-width: 600px) {
  .opt4-route-grid {
    grid-template-columns: 1fr;
  }
  .opt4-swap-cell {
    padding: 4px 0;
  }
}

/* Date & Travelers Row */
.opt4-dates-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
}

.opt4-dates-row.is-roundtrip {
  grid-template-columns: 1fr 1fr 1fr;
}

.opt4-date-field {
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 12px;
  background: #FFFFFF;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.opt4-date-field:hover {
  border-color: #2E7D7E;
  background: #F8FAFC;
}

.opt4-date-main {
  display: flex;
  align-items: center;
  gap: 7px;
}

.opt4-date-val {
  font-size: 12.5px;
  font-weight: 800;
  color: #0D1B2A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CTA Button */
.opt4-cta-btn {
  width: 100%;
  height: 42px;
  background: #11524D;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.2px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(17, 82, 77, 0.25);
}

.opt4-cta-btn:hover {
  background: #0D4440;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(17, 82, 77, 0.35);
}

.opt4-cta-btn:active {
  transform: scale(0.99);
}

/* Trust Strip Under Card */
.opt4-trust-strip {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 10px;
  margin-top: 2px;
  max-width: 440px;
}

@media (max-width: 600px) {
  .opt4-trust-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.opt4-trust-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.opt4-trust-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E6F7F5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0D9488;
}

.opt4-trust-metric {
  font-size: 12px;
  font-weight: 800;
  color: #0D1B2A;
  line-height: 1.2;
}

.opt4-trust-sub {
  font-size: 10px;
  color: #64748B;
  line-height: 1.25;
}

/* Right Column: Floating Callout Card on the Globe */
.opt4-hero-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  min-height: 420px;
  padding-bottom: 20px;
  padding-left: 10px;
}

@media (max-width: 880px) {
  .opt4-hero-right {
    min-height: auto;
    padding: 0;
    justify-content: center;
  }
}

.opt4-callout-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 36px -6px rgba(13, 27, 42, 0.10), 0 0 0 1px rgba(226, 232, 240, 0.75);
  max-width: 280px;
  animation: floatSway 4s ease-in-out infinite alternate;
  z-index: 5;
}

@keyframes floatSway {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.opt4-callout-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E6F7F5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0D9488;
}

.opt4-callout-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0E1B2E;
  line-height: 1.3;
  margin-bottom: 2px;
}

.opt4-callout-sub {
  font-size: 11px;
  color: #5A6B7E;
  line-height: 1.35;
}

/* Airline Partners Strip */
.opt4-airlines-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
  margin-top: 6px;
  box-sizing: border-box;
}

.opt4-airlines-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1.35;
  flex-shrink: 0;
}

.opt4-airlines-heading-sub {
  display: block;
  font-weight: 800;
  color: #475569;
}

.opt4-airlines-divider {
  width: 1px;
  height: 22px;
  background: #E2E8F0;
  flex-shrink: 0;
}

.opt4-airlines-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 16px;
}

.opt4-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  opacity: 0.95;
}

.opt4-logo-item:hover {
  opacity: 1;
  transform: translateY(-1.5px) scale(1.05);
}

.opt4-airline-img {
  width: auto;
  object-fit: contain;
  display: block;
}

.opt4-airlines-more {
  font-size: 12.5px;
  font-weight: 700;
  color: #4338CA;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.opt4-airlines-more:hover {
  background: #EEF2FF;
  color: #3730A3;
}

@media (max-width: 900px) {
  .opt4-airlines-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .opt4-airlines-logos {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
  }
  .opt4-airlines-divider {
    display: none;
  }
}
