/**
 * Amadex Modern Search Bar Styles
 * Enhanced with Smooth Functionality & Modern UI
 * Fully Merged & Deduplicated
 * Sources: amadex-search-modern.css + amadex-custom.css
 * Last updated: 11-3-26
 */

/* =============================================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================================= */
:root {
  /* Brand Colors */
  --amadex-green:             #0E7D3F;
  --amadex-green-dark:        #0a6835;
  --amadex-green-darker:      #085428;
  --amadex-green-light:       rgba(14, 125, 63, 0.08);
  --amadex-green-lighter:     rgba(14, 125, 63, 0.04);
  --amadex-green-tint:        rgba(14, 125, 63, 0.03);
  --amadex-green-shadow-sm:   rgba(14, 125, 63, 0.15);
  --amadex-green-shadow-md:   rgba(14, 125, 63, 0.25);
  --amadex-green-shadow-lg:   rgba(14, 125, 63, 0.35);

  /* Neutral Colors */
  --amadex-white:       #ffffff;
  --amadex-black:       #000000;
  --amadex-gray-50:     #F9FAFB;
  --amadex-gray-100:    #F3F4F6;
  --amadex-gray-150:    #F1F1F1;
  --amadex-gray-200:    #E5E7EB;
  --amadex-gray-250:    #E8E8E8;
  --amadex-gray-300:    #D1D5DB;
  --amadex-gray-400:    #9CA3AF;
  --amadex-gray-500:    #6B7280;
  --amadex-gray-600:    #707070;
  --amadex-gray-700:    #374151;
  --amadex-gray-800:    #1F2937;
  --amadex-gray-900:    #111827;
  --amadex-body:        #202924;

  /* Hover / Focus Backgrounds */
  --amadex-hover-bg:    #F0FFF7;
  --amadex-hover-bg-2:  #F0FDF4;
  --amadex-hover-bg-3:  #F0FFF8;
  --amadex-range-bg:    #E8F5E9;

  /* Borders */
  --amadex-border:      #E5E5E5;
  --amadex-border-alt:  #E6E6E6;
  --amadex-border-soft: #CFCFCF;

  /* Typography */
  --amadex-font-xs:     11px;
  --amadex-font-sm:     12px;
  --amadex-font-base:   13px;
  --amadex-font-md:     14px;
  --amadex-font-lg:     15px;
  --amadex-font-xl:     16px;
  --amadex-font-2xl:    17px;
  --amadex-font-3xl:    18px;

  /* Border Radius */
  --amadex-radius-sm:   8px;
  --amadex-radius-md:   12px;
  --amadex-radius-lg:   15px;
  --amadex-radius-xl:   16px;
  --amadex-radius-2xl:  18px;
  --amadex-radius-3xl:  20px;
  --amadex-radius-full: 999px;

  /* Transitions */
  --amadex-ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --amadex-transition:      all 0.3s var(--amadex-ease);
  --amadex-transition-fast: all 0.2s ease;

  /* Shadows */
  --amadex-shadow-sm:       0 2px 8px var(--amadex-green-shadow-md);
  --amadex-shadow-md:       0 4px 12px var(--amadex-green-shadow-lg);
  --amadex-shadow-dropdown: 0 20px 60px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.08);
  --amadex-shadow-calendar: 0 24px 60px rgba(0,0,0,0.15), 0 10px 30px rgba(0,0,0,0.1);

  /* Field Padding */
  --amadex-field-padding: 14px 22px;

  /* Frontend / Legacy Plugin Colors */
  --amadex-blue:          #0073aa;
  --amadex-blue-dark:     #005a87;
  --amadex-blue-border:   rgba(0, 115, 170, 0.2);
  --amadex-gray-light:    #f8f9fa;
  --amadex-dark-bg:       #333333;
  --amadex-dark-bg-2:     #444444;
  --amadex-dark-bg-3:     #222222;
  --amadex-dark-border:   #555555;
  --amadex-ddd:           #dddddd;
  --amadex-red-error:     #d9534f;
}


/* =============================================================
   2. GLOBAL RESETS
   ============================================================= */
input[type="text"] {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="reset"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: inherit !important;
  box-shadow: none !important;
  outline: none !important;
  color: inherit !important;
}



/* =============================================================
   3. SHARED WRAPPERS & CARDS
   ============================================================= */
/*.amadex-confirmation-nav {*/
/*  background: var(--amadex-white);*/
/*  width: fit-content;*/
/*  padding: 15px;*/
/*  border-top-left-radius: 10px;*/
/*  border-top-right-radius: 10px;*/
/*}*/

.search-amadex {
  display: flex;
  background: var(--amadex-white);
  padding: 10px;
  border-radius: 10px;
}

.amadex-price-summary-card,
.amadex-booking-main {
  box-shadow: none !important;
  border: 1px solid var(--amadex-border) !important;
  padding: 28px 15px;
}

section.amadex-card.amadex-passenger-details-card {
  border: 1px solid var(--amadex-border-alt) !important;
  margin-top: 15px;
}

.amadex-passenger-form-card {
  margin-bottom: 0 !important;
}

.amadex-form-field input {
  border-radius: var(--amadex-radius-lg) !important;
  border: 1px solid var(--amadex-border-alt) !important;
  padding: 14px 15px !important;
}

input#ccnumber,
input#ccexp,
input#cvv {
  border-radius: var(--amadex-radius-lg) !important;
}

.amadex-flight-route-title {
  font-size: var(--amadex-font-lg);
}

.amadex-flight-price-wrapper .amadex-flight-price {
  color: var(--amadex-black);
}

.main-calnder-mobile {
  display: contents;
}


/* =============================================================
   4. MAIN CONTAINER
   ============================================================= */
.amadex-search-modern {
  max-width: 1040px;
  margin: 20px auto 0;
  position: relative;
}

/*.amadex-search-container {
  position: relative;
  background: var(--amadex-white);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}*/

/* Font smoothing */
.amadex-modern-form,
.amadex-modern-field,
.amadex-search-btn,
.amadex-trip-label {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =============================================================
   5. TRIP TYPE SELECTOR
   ============================================================= */
.amadex-trip-selector {
    display: flex;
    width: fit-content;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    gap: 10px;
}

.amadex-confirmation-nav {
    margin-bottom: 10px;
}

.amadex-search-modern .amadex-trip-option {
    display: flex;
}


.amadex-search-modern .amadex-trip-label {
  display: inline-block;
  padding: 2px;
  font-size: 12px !important;
  font-weight: 500;
  color: var(--amadex-black);
  cursor: pointer;
  transition: var(--amadex-transition);
  user-select: none;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.amadex-trip-label:hover {
  color: var(--amadex-green);
}

/*.amadex-search-modern .amadex-trip-option input[type="radio"]:checked + .amadex-trip-label {*/
/*  color: var(--amadex-green);*/
/*  font-weight: 500;;*/
/*  box-shadow: 0 2px 8px var(--amadex-green-shadow-md), 0 4px 12px var(--amadex-green-shadow-sm);*/
/*  transform: scale(1.02);*/
/*}*/

.amadex-search-modern .amadex-trip-option input[type="radio"]:checked + .amadex-trip-label {
    color: #0e7d3f;
    font-weight: 600;
}

/*.amadex-trip-option input[type="radio"]:checked + .amadex-trip-label:hover {*/
/*  background: var(--amadex-green-dark);*/
/*  color: var(--amadex-white);*/
/*  transform: scale(1.02);*/
/*}*/

.amadex-trip-option input[type="radio"]:checked + .amadex-trip-label:hover {
    color: #000000;
}


/* =============================================================
   6. SEARCH FIELDS CONTAINER
   ============================================================= */
/*.amadex-search-modern .amadex-search-fields {*/
/*  display: grid;*/
/*  grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr;*/
/*  gap: 0;*/
/*  align-items: stretch;*/
/*  border: 1px solid var(--amadex-border);*/
/*  border-radius: var(--amadex-radius-2xl);*/
/*  background: var(--amadex-white);*/
/*  position: relative;*/
/*  transition: var(--amadex-transition);*/
/*  width: 100%;*/
/*  max-width: 100%;*/
/*  min-height: 110px;*/
/*}*/

.amadex-search-modern .amadex-modern-form.searching .amadex-search-fields {
  pointer-events: none;
  opacity: 0.8;
}


/* =============================================================
   7. MODERN FIELD — BASE STYLES
   ============================================================= */
.amadex-modern-field {
  will-change: background, box-shadow;
  background: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  cursor: pointer;
}


/*.amadex-modern-field:hover {*/
/*  background: var(--amadex-hover-bg);*/
/*  border-radius: var(--amadex-radius-xl);*/
/*}*/

.amadex-modern-field:focus-within {
  background: var(--amadex-green-lighter);
}

/* Active state — applies to base, date, and travellers fields */
/*.amadex-modern-field.field-active,*/
/*.amadex-modern-field.amadex-date-field.field-active,*/
/*.amadex-modern-field.amadex-travellers-field.field-active {*/
/*  background: var(--amadex-green-tint);*/
/*  border: 2px solid var(--amadex-green) !important;*/
/*  border-radius: var(--amadex-radius-md) !important;*/
/*  margin: -2px;*/
/*  padding: var(--amadex-field-padding);*/
/*}*/


/* =============================================================
   8. DISABLED FIELD STATES
   ============================================================= */
.amadex-modern-field.field-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
  position: relative;
}

.amadex-modern-field.field-disabled::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
  z-index: 1;
}

.amadex-modern-field.field-disabled .amadex-field-label,
.amadex-modern-field.field-disabled .amadex-field-value,
.amadex-modern-field.field-disabled .amadex-field-description {
  color: var(--amadex-gray-400);
}

/* --- Subtle Disabled (One-Way return field) --- */
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled,
#return-field.field-disabled.subtle-disabled {
  opacity: 0.2 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  touch-action: none !important;
  position: relative;
}

.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled *,
#return-field.field-disabled.subtle-disabled * {
  pointer-events: none !important;
  cursor: not-allowed !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: none !important;
}

.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled .amadex-field-value,
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled .amadex-field-input-wrap,
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled #return-display,
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled #return-day,
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled input,
#return-field.field-disabled.subtle-disabled .amadex-field-value,
#return-field.field-disabled.subtle-disabled .amadex-field-input-wrap,
#return-field.field-disabled.subtle-disabled #return-display,
#return-field.field-disabled.subtle-disabled #return-day,
#return-field.field-disabled.subtle-disabled input {
  pointer-events: none !important;
  cursor: not-allowed !important;
  touch-action: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Block hover/focus on subtle-disabled date fields */
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled:hover,
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled:focus-within,
#return-field.field-disabled.subtle-disabled:hover,
#return-field.field-disabled.subtle-disabled:focus-within {
  background: transparent !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* No overlay on subtle-disabled */
.amadex-modern-field.field-disabled.subtle-disabled::after {
  display: none;
}

/* Preserve text legibility in subtle-disabled */
.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-label,
.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-value,
.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-description {
  color: inherit;
  opacity: 1;
}

.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-label {
  color: var(--amadex-green);
  font-weight: 600;
}

.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-value {
  color: var(--amadex-black);
  font-weight: 500;
  font-size: 12px;
}

.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-description {
  color: var(--amadex-gray-500);
}

/* --- Return Promo Field --- */
.amadex-modern-field.field-disabled.return-promo {
  cursor: default;
  pointer-events: none;
}

.amadex-modern-field.field-disabled.return-promo::after {
  display: none !important;
}

.amadex-modern-field.field-disabled.return-promo .amadex-field-label {
  color: var(--amadex-green) !important;
  opacity: 1 !important;
  font-size: var(--amadex-font-sm) !important;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: capitalize;
}

.amadex-modern-field.field-disabled.return-promo .amadex-field-value {
  color: var(--amadex-gray-900) !important;
  opacity: 1 !important;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.5;
}

.amadex-modern-field.field-disabled.return-promo .amadex-field-value strong {
  font-weight: 700 !important;
  color: var(--amadex-gray-900) !important;
}

.amadex-modern-field.field-disabled.return-promo .amadex-field-description {
  color: var(--amadex-gray-500) !important;
  opacity: 1 !important;
  display: none;
}

/* Multi-city return promo */
.amadex-modern-form.amadex-multi-city-mode .amadex-modern-field.amadex-date-field.field-disabled.return-promo {
  background: var(--amadex-white) !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
}

.amadex-modern-form.amadex-multi-city-mode .amadex-modern-field.amadex-date-field.field-disabled.return-promo .amadex-field-label,
.amadex-modern-form.amadex-multi-city-mode .amadex-modern-field.amadex-date-field.field-disabled.return-promo .amadex-field-value,
.amadex-modern-form.amadex-multi-city-mode .amadex-modern-field.amadex-date-field.field-disabled.return-promo .amadex-field-description,
.amadex-modern-form.amadex-multi-city-mode .amadex-modern-field.amadex-date-field.field-disabled.return-promo .amadex-field-input-wrap {
  /*opacity: 0.2 !important;*/
}

.amadex-modern-field.amadex-date-field.subtle-disabled.field-disabled.return-promo #return-display {
  opacity: 0.2 !important;
}

.amadex-modern-field.amadex-date-field.subtle-disabled.field-disabled.return-promo div#return-display {
  width: 100% !important;
  font-size: var(--amadex-font-sm);
}


/* =============================================================
   9. FIELD LABELS, VALUES & DESCRIPTIONS
   ============================================================= */
.amadex-field-label {
  font-size: var(--amadex-font-base) !important;
  font-weight: 600;
  color: var(--amadex-green) !important;
  letter-spacing: 0.2px;
  text-transform: capitalize;
  opacity: 1;
  margin-bottom: 6px;
  transition: var(--amadex-transition);
}

.amadex-modern-field:focus-within .amadex-field-label {
  color: var(--amadex-green-dark);
  transform: translateY(-1px);
}

.amadex-field-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--amadex-black);
  padding: 6px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--amadex-ease);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amadex-field-value::placeholder {
  color: #cbd5e1;
  font-weight: 500;
}

.amadex-field-value:focus {
  outline: none;
  color: var(--amadex-green);
}

.amadex-field-value:hover {
  color: var(--amadex-green);
  background: var(--amadex-hover-bg);
}

.amadex-field-description {
  font-size: var(--amadex-font-md);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  letter-spacing: 0;
  color: var(--amadex-gray-500);
  opacity: 1;
  transition: var(--amadex-transition);
  display: none !important;
}

.amadex-field-input-wrap {
  display: flex;
  flex-direction: row;
  color: var(--amadex-body);
  gap: 10px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.amadex-field-input-wrap input {
  padding-left: 0 !important;
  border: none !important;
}

.amadex-field-input-wrap input:hover {
  background: var(--amadex-hover-bg-3) !important;
}

/* Accessibility focus rings */
.amadex-field-value:focus-visible,
.amadex-counter-btn:focus-visible,
.amadex-cabin-btn:focus-visible {
  outline: 2px solid var(--amadex-green);
  outline-offset: 2px;
  border-radius: 4px;
}


/* =============================================================
   10. ORIGIN / DESTINATION FIELDS
   ============================================================= */
.amadex-location-field .amadex-field-value {
  /*text-align: left;*/
  letter-spacing: 0;
  color: var(--amadex-black) !important;
  opacity: 1;
  border: none;
  box-shadow: none;
  padding: 0 !important;
  font-size: 12px !important;
}

#destination-field,
#origin-field {
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: visible;
}

.amadex-modern-field.amadex-location-field.field-active input#modern-origin,
.amadex-modern-field.amadex-location-field.field-active input#modern-destination {
  font-weight: 700;
}

#modern-origin.amadex-field-value::placeholder,
#modern-destination.amadex-field-value::placeholder,
input[id^="modern-origin"]::placeholder,
input[id^="modern-destination"]::placeholder {
  color: var(--amadex-black);
  font-weight: 600;
  opacity: 1;
}


/* =============================================================
   11. DATE FIELDS
   ============================================================= */
.amadex-modern-field.amadex-date-field {
  justify-content: center;
  position: relative;
}

.amadex-date-field .amadex-field-value {
  cursor: pointer;
}

.amadex-date-field input[type="date"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


/* =============================================================
   12. TRAVELLERS FIELD
   ============================================================= */
.amadex-modern-field.amadex-travellers-field,
#travellers-field {
  position: relative;
  z-index: 1002;
  overflow: visible;
  align-items: flex-start;
  border-right: none !important;
}

.amadex-travellers-trigger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
  cursor: pointer;
  position: relative;
  width: 100%;
}

.amadex-travellers-value {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
      display: flex;
    justify-content: space-around;
    align-items: center;
}

.amadex-cabin-value {
  font-size: var(--amadex-font-base);
  letter-spacing: 0;
  color: var(--amadex-body);
}

/* De-prioritise travellers when other dropdowns are open */
.amadex-location-field.field-active ~ .amadex-travellers-field,
.amadex-location-field.field-active ~ #travellers-field,
.amadex-date-field.field-active ~ .amadex-travellers-field,
.amadex-date-field.field-active ~ #travellers-field {
  z-index: 1;
  opacity: 1;
}

.amadex-modern-field.amadex-travellers-field.field-active,
#travellers-field.field-active,
#travellers-field.active {
  z-index: 1002;
  position: relative;
}


/* =============================================================
   13. SUGGESTIONS DROPDOWN
   ============================================================= */
/*.amadex-suggestions-dropdown {*/
/*  position: absolute;*/
/*  top: 100%;*/
/*  left: 0;*/
/*  right: 0;*/
/*  width: 320px;*/
/*  background: var(--amadex-white);*/
/*  border: 1px solid var(--amadex-gray-200);*/
/*  border-radius: var(--amadex-radius-xl);*/
/*  box-shadow: var(--amadex-shadow-dropdown);*/
/*  max-height: 420px;*/
/*  overflow: hidden;*/
/*  overflow-y: auto;*/
/*  z-index: 1000;*/
/*  margin-top: 14px;*/
/*  display: none;*/
/*  opacity: 0;*/
/*  transform: translateY(-12px);*/
/*  transition: all 0.35s var(--amadex-ease);*/
/*}*/

.amadex-suggestions-dropdown.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: slideInDown 0.35s var(--amadex-ease);
}

/* Dropdown search input */
.amadex-dropdown-search {
  padding: 16px 18px 14px;
  background: var(--amadex-white);
  position: sticky;
  top: 0;
  z-index: 10;
}

input.amadex-dropdown-search-input {
  width: 100%;
  background: var(--amadex-gray-50);
  color: var(--amadex-gray-800);
  font-size: var(--amadex-font-lg);
  font-weight: 400;
  border: none !important;
  box-shadow: none !important;
  border-radius: 10px;
  padding-left: 20px !important;
  margin-top: 6px;
  transition: all 0.3s var(--amadex-ease);
}

input.amadex-dropdown-search-input::placeholder {
  color: var(--amadex-gray-400);
  font-weight: 400;
}

.dst-adivaha-wrapper.js-dst-adivaha-wrapper.container.dst-wrapper.wp-block-ds-blocks-dst-wrapper {
    position: relative;
}

.amadex-dropdown-search-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--amadex-gray-500);
  pointer-events: none;
}

.amadex-dropdown-search-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Scroll area */
.amadex-suggestions-scroll {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--amadex-gray-300) transparent;
}

.amadex-suggestions-scroll::-webkit-scrollbar        { width: 6px; }
.amadex-suggestions-scroll::-webkit-scrollbar-track  { background: transparent; margin: 8px 0; }
.amadex-suggestions-scroll::-webkit-scrollbar-thumb  { background: var(--amadex-gray-300); border-radius: 10px; }
.amadex-suggestions-scroll::-webkit-scrollbar-thumb:hover { background: var(--amadex-green); }

/* Section headers */
.amadex-suggestions-section {
  padding: 14px 18px 10px;
  background: transparent;
}

.amadex-suggestions-section-title {
  font-size: var(--amadex-font-base);
  font-weight: 700;
  color: var(--amadex-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Suggestion items */
.amadex-suggestion-item {
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--amadex-border-soft);
  transition: all 0.25s var(--amadex-ease);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.amadex-suggestion-item:last-child { border-bottom: none; }

.amadex-suggestion-item:hover { background: var(--amadex-hover-bg-2); }

.amadex-suggestion-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--amadex-green);
  transition: width 0.25s var(--amadex-ease);
}

.amadex-suggestion-item:hover::before { width: 4px; }

.amadex-suggestion-content { flex: 1; min-width: 0; }

.amadex-suggestion-city {
  font-size: var(--amadex-font-lg);
  font-weight: 600;
  color: var(--amadex-gray-800);
  margin-bottom: 4px;
  transition: var(--amadex-transition-fast);
  letter-spacing: 0.2px;
}

.amadex-suggestion-item:hover .amadex-suggestion-city { color: var(--amadex-green); }

.amadex-suggestion-airport {
  font-size: var(--amadex-font-base);
  color: var(--amadex-gray-500);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}

.amadex-suggestion-code {
  padding: 6px 14px;
  background: var(--amadex-white);
  color: var(--amadex-green);
  font-size: var(--amadex-font-base);
  font-weight: 700;
  border-radius: var(--amadex-radius-xl);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid var(--amadex-green);
  box-shadow: 0 2px 6px var(--amadex-green-shadow-md);
  letter-spacing: 0.5px;
  transition: all 0.25s var(--amadex-ease);
}

.amadex-suggestion-item:hover .amadex-suggestion-code {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px var(--amadex-green-shadow-lg);
}

.amadex-suggestions-empty {
  padding: 32px 18px;
  text-align: center;
  color: var(--amadex-gray-400);
  font-size: var(--amadex-font-lg);
  font-weight: 400;
}


/* =============================================================
   14. CALENDAR WIDGET
   ============================================================= */
.amadex-modern-field.amadex-date-field,
#departure-field,
#return-field {
  position: relative;
}

.amadex-calendar-widget,
#departure-calendar,
#return-calendar {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  width: 100%;
  min-width: 320px;
  max-width: 400px;
  background: var(--amadex-white);
  border: 1px solid var(--amadex-gray-250);
  border-radius: var(--amadex-radius-3xl);
  box-shadow: var(--amadex-shadow-calendar);
  padding: 18px;
  z-index: 10001;
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: all 0.35s var(--amadex-ease);
  margin-top: 4px;
}

.amadex-calendar-widget.active,
#departure-calendar.active,
#return-calendar.active,
.amadex-modern-field.amadex-date-field.field-active ~ .amadex-calendar-widget,
#departure-field.field-active ~ #departure-calendar,
#return-field.field-active ~ #return-calendar,
.amadex-modern-field.amadex-date-field.field-active + .amadex-calendar-widget,
#departure-field.field-active + #departure-calendar,
#return-field.field-active + #return-calendar {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
  animation: slideInDown 0.35s var(--amadex-ease);
}

/* Calendar header */
.amadex-calendar-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 18px;
  padding-right: 50px;
  border-bottom: 2px solid var(--amadex-border-soft);
  gap: 40px;
  position: relative;
}

.amadex-calendar-selected-date {
  font-size: var(--amadex-font-md);
  font-weight: 700;
  color: var(--amadex-gray-800);
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.amadex-calendar-date-item {
  position: relative;
  padding-bottom: 6px;
}

.amadex-calendar-date-item.active { color: var(--amadex-green); }

.amadex-calendar-date-item.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--amadex-green);
  border-radius: 2px;
}

.amadex-calendar-trip-type {
  font-size: var(--amadex-font-md);
  color: var(--amadex-gray-400);
  font-weight: 500;
  margin-left: auto;
  display: none;
}

/* Close button */
.amadex-calendar-close-btn {
  position: absolute;
  top: 0;
  right: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amadex-gray-500);
  transition: var(--amadex-transition-fast);
  z-index: 10;
  border-radius: var(--amadex-radius-sm);
}

.amadex-calendar-close-btn:hover { background: var(--amadex-gray-100); color: var(--amadex-gray-800); }
.amadex-calendar-close-btn:active { background: var(--amadex-gray-200); transform: scale(0.95); }
.amadex-calendar-close-btn svg { width: 20px; height: 20px; display: block; }

/* Calendar grid */
.amadex-calendar-months {
  display: block;
  position: relative;
  padding-top: 15px;
  width: 100%;
  max-width: 100%;
}

.amadex-calendar-months::before { display: none; }

.amadex-calendar-month {
  min-width: 280px;
  max-width: 100%;
  width: 100%;
  position: relative;
  margin: 0 auto;
}

.amadex-calendar-month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  padding: 0 8px;
}

.amadex-calendar-month-title {
  font-size: var(--amadex-font-2xl);
  font-weight: 700;
  color: var(--amadex-gray-800);
  letter-spacing: 0.2px;
  text-align: center;
  flex: 1;
  margin: 0 8px;
}

.amadex-calendar-nav {
  display: flex;
  gap: 6px;
  position: absolute;
  left: 0; right: 0;
  justify-content: space-between;
  pointer-events: none;
}

.amadex-calendar-nav-btn {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--amadex-gray-100);
  color: var(--amadex-gray-800);
  border-radius: var(--amadex-radius-sm);
  cursor: pointer;
  transition: var(--amadex-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: none;
  padding: 0;
  flex-shrink: 0;
}

.amadex-calendar-nav-btn:hover:not(:disabled) {
  background: var(--amadex-range-bg);
  color: var(--amadex-green);
  transform: scale(1.05);
}

.amadex-calendar-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: var(--amadex-gray-100);
  color: var(--amadex-gray-400);
}

/* Calendar backdrop (mobile) */
.amadex-calendar-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  /* background: rgba(0, 0, 0, 0.5); */
  z-index: 9999;
  display: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.amadex-calendar-backdrop.active { display: block !important; }

/* Calendar table */
table.amadex-calendar-table,
.amadex-calendar-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px 4px;
  border: none !important;
  border-style: none !important;
  margin-bottom: 0 !important;
}

.amadex-calendar-table thead th {
  font-size: var(--amadex-font-base);
  font-weight: 600;
  color: var(--amadex-gray-600);
  text-align: center;
  padding: 10px 4px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  border: none !important;
  border-style: none !important;
}

.amadex-calendar-table tbody td {
  text-align: center;
  padding: 2px;
  border: none !important;
  border-style: none !important;
}

/* Day cells */
.amadex-calendar-day {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--amadex-radius-sm);
  font-size: var(--amadex-font-lg);
  font-weight: 500;
  color: var(--amadex-gray-800);
  cursor: pointer;
  transition: all 0.2s var(--amadex-ease);
  border: 2px solid transparent;
  background: transparent;
}

.amadex-calendar-day:hover:not(.disabled):not(.selected) {
  background: var(--amadex-hover-bg-2);
  color: var(--amadex-green);
  border-color: var(--amadex-range-bg);
}

span.amadex-calendar-day.selected,
.amadex-calendar-day.selected {
  background: var(--amadex-green) !important;
  color: var(--amadex-white) !important;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--amadex-green-shadow-md);
  border-color: var(--amadex-green);
}

.amadex-calendar-day.in-range {
  background: var(--amadex-range-bg);
  color: var(--amadex-green);
  font-weight: 500;
}

.amadex-calendar-day.disabled {
  color: #B9B9B9;
  cursor: not-allowed;
  opacity: 1;
}

.amadex-calendar-day.other-month {
  color: var(--amadex-gray-200);
  font-weight: 400;
}

.amadex-calendar-day.today:not(.selected) {
  border-color: var(--amadex-green);
  font-weight: 600;
  color: var(--amadex-green);
}


/* =============================================================
   15. SWAP BUTTON
   ============================================================= */
/*button.amadex-swap-button {*/
/*  position: absolute;*/
/*  left: 50%;*/
/*  bottom: 1.5rem;*/
/*  transform: translateX(-50%) rotate(0deg);*/
/*  width: 52px;*/
/*  height: 52px;*/
/*  min-width: 52px;*/
/*  border-radius: 50% !important;*/
/*  background: none !important;*/
/*  border: none;*/
/*  color: var(--amadex-white);*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*  cursor: pointer;*/
/*  transition: transform 0.6s var(--amadex-ease), background-color 0.3s ease;*/
/*  box-shadow: none !important;*/
/*  z-index: 10;*/
/*  font-size: 20px;*/
/*  will-change: transform;*/
/*  overflow: visible;*/
/*  padding: 0;*/
/*  flex-shrink: 0;*/
/*  margin-left: -19.2rem !important;*/
/*}*/

button.amadex-swap-button {
    width: fit-content;
    background: none !important;
    border: none;
    color: var(--amadex-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.6s var(--amadex-ease), background-color 0.3s ease;
    box-shadow: none !important;
    z-index: 10;
    font-size: 20px;
    will-change: transform;
    overflow: visible;
    padding: 0;
}

button.amadex-flight-tab:focus {
  --outline-color: none !important;
}

button.amadex-swap-button::before { display: none; }

/*button.amadex-swap-button:hover {*/
/*  background: var(--amadex-green-dark) !important;*/
/*  transform: translateX(-50%) rotate(0deg) scale(1.05);*/
/*  box-shadow: 0 6px 20px rgba(14, 125, 63, 0.5), 0 3px 10px rgba(14, 125, 63, 0.4) !important;*/
/*}*/

/*button.amadex-swap-button:active {*/
/*  transform: translateX(-50%) rotate(0deg) scale(0.95);*/
/*}*/

/*button.amadex-swap-button.rotating {*/
/*  transform: translateX(-50%) rotate(-180deg);*/
/*}*/

button.amadex-swap-button.animating {
  animation: rotateAnticlockwisePositioned 0.6s var(--amadex-ease);
}

button.amadex-swap-button svg,
button.amadex-swap-button i {
    color: var(--amadex-white);
    font-size: 20px;
    border-radius: 50px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    pointer-events: none;
    fill: var(--amadex-white);
    stroke-width: 0.5;
    display: block;
}
#swap-locations svg {
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}
svg#swap-locations {
    width: 32px;
    height: 32px;
}

#swap-locations svg {
    width: 30px;
    height: 30px;
}
#swap-locations svg:hover {
    transform: rotate(180deg);
}

#swap-locations {
    box-shadow: 0 3px 8px rgb(0 0 0 / 41%) !important;
    transition: box-shadow 0.3s ease;
    background: #0d7d40 !important;
    border-radius: 35px;
}

#swap-locations.active{
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
/* default shadow */
button.amadex-swap-button {
    box-shadow: 0 3px 8px rgb(0 0 0 / 57%) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* rotate + stronger shadow */
button.amadex-swap-button.swap-rotate {
    transform: rotate(180deg);
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

button.amadex-swap-button:hover svg,
button.amadex-swap-button:hover i,
button.amadex-swap-button.rotating svg,
button.amadex-swap-button.rotating i {
  filter: brightness(1.1);
}

/* Multi-city & results page overrides */
/*.amadex-multi-city-flights button.amadex-swap-button { top: 0.6rem; }*/

.amadex-results-page .amadex-search-summary-modern button.amadex-swap-button {
  margin-left: -21.8rem !important;
  bottom: 0.6rem;
}


/* =============================================================
   16. SEARCH BUTTON
   ============================================================= */
.amadex-search-btn {
  background: linear-gradient(135deg, var(--amadex-green) 0%, var(--amadex-green-dark) 100%);
  color: var(--amadex-white);
  border: none;
  /*border-radius: var(--amadex-radius-md);*/
  padding: 0 24px;
  font-size: var(--amadex-font-xl);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.4s var(--amadex-ease);
  white-space: nowrap;
  min-height: 60px;
  margin-bottom: 8px;
  opacity: 1;
  box-shadow: 0 4px 12px var(--amadex-green-shadow-md), 0 2px 6px var(--amadex-green-shadow-sm);
  position: relative;
  overflow: hidden;
  line-height: 1;
  width: 100%;
}

.amadex-search-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.amadex-search-btn:hover::before { left: 100%; }

.amadex-search-btn:hover:not(.loading) {
  background: linear-gradient(135deg, var(--amadex-green-dark) 0%, var(--amadex-green-darker) 100%);
  /*transform: translateY(-3px);*/
  box-shadow: 0 8px 24px var(--amadex-green-shadow-lg), 0 4px 12px var(--amadex-green-shadow-md);
  color: var(--amadex-white);
}

.amadex-search-btn:active:not(.loading) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--amadex-green-shadow-lg);
}

.amadex-search-btn .amadex-search-icon,
.amadex-search-btn svg,
.amadex-search-btn .search-icon-svg {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 2px;
  transition: var(--amadex-transition);
  vertical-align: middle;
}

.amadex-search-btn:hover .amadex-search-icon { transform: scale(1.1) rotate(15deg); }

/* Absolutely-positioned button on main form */
/*.amadex-modern-form button.amadex-search-btn {*/
/*  position: absolute;*/
/*  right: -165px;*/
/*  bottom: 6px;*/
/*  width: 146px;*/
/*  height: 50px;*/
/*  background: var(--amadex-green);*/
/*  border-radius: var(--amadex-radius-xl);*/
/*  font-size: var(--amadex-font-3xl);*/
/*  font-weight: 600;*/
/*  flex-shrink: 0;*/
/*  margin-bottom: 0;*/
/*}*/

.amadex-modern-form button.amadex-search-btn {
    background: var(--amadex-green);
    /*border-radius: var(--amadex-radius-xl);*/
    font-size: var(--amadex-font-3xl);
    font-weight: 600;
    flex-shrink: 0;
}

/* Results page overrides */
/* .amadex-search-btn.amadex-search-btn-results { left: 100rem !important; width: 50%; } */
/*.amadex-search-summary-modern button.amadex-search-btn { left: 100rem !important; top: 4px; min-height: 50px; height: 80px; margin-bottom: 4px; }*/
form#amadex-modern-form-results button#amadex-modify-search-btn {margin-bottom: 0; }
.amadex-results-page #amadex-modify-search-btn .amadex-search-icon { display: none; }
.amadex-se-finding {
    display: none !important;
}
.amadex-se-results-hero-wrap {
    display: none !important;
}
/* Loading state */
.amadex-search-btn.loading {
  color: transparent !important;
  pointer-events: none;
  background: var(--amadex-green) !important;
  opacity: 0.85 !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

/* Results page centered spinner (::after) */
.amadex-results-page .amadex-search-btn.loading::after,
.amadex-results-page #amadex-modify-search-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--amadex-white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: block;
  visibility: visible;
  opacity: 1;
  z-index: 10;
}

.amadex-search-btn.loading .amadex-search-icon,
.amadex-search-btn.loading > * {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Use ::after for spinner so ::before sheen doesn't conflict */
.amadex-search-btn.loading::before {
  display: none !important;
  content: none !important;
}

.amadex-search-btn.loading::after {
  content: '';
  /* position: absolute;
  top: 50%; left: 50%; */
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--amadex-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 10;
  display: block;
  visibility: visible;
  opacity: 1;
}

.amadex-modern-form button.amadex-search-btn.loading {
  position: relative !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 146px;
  height: 100% !important;
  transform: none !important;
  overflow: visible !important;
}


/* =============================================================
   17. TRAVELLERS DROPDOWN
   ============================================================= */
.amadex-travellers-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  background: var(--amadex-white);
  border: 1px solid var(--amadex-gray-200);
  border-radius: var(--amadex-radius-xl);
  box-shadow: var(--amadex-shadow-dropdown);
  padding: 15px;
  z-index: 10003;
  margin-top: 14px;
  min-width: 320px;
  width: 320px;
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: all 0.35s var(--amadex-ease);
}

.amadex-travellers-dropdown.active,
.amadex-modern-field.amadex-travellers-field.field-active .amadex-travellers-dropdown,
.amadex-modern-field.amadex-travellers-field.field-active .amadex-travellers-dropdown.active,
#travellers-field.field-active .amadex-travellers-dropdown,
#travellers-field.field-active .amadex-travellers-dropdown.active,
#travellers-field.active .amadex-travellers-dropdown,
#travellers-field.active .amadex-travellers-dropdown.active {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: slideInDown 0.35s var(--amadex-ease);
  z-index: 10003;
}

.amadex-travellers-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 24px;
  width: 16px; height: 16px;
  background: var(--amadex-white);
  border-left: 1px solid var(--amadex-gray-200);
  border-top: 1px solid var(--amadex-gray-200);
  transform: rotate(45deg);
}

.amadex-travellers-dropdown::-webkit-scrollbar { width: 6px; }
.amadex-travellers-dropdown::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 0 16px 16px 0; }
.amadex-travellers-dropdown::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.amadex-travellers-dropdown::-webkit-scrollbar-thumb:hover { background: var(--amadex-green); }

/* Traveller rows */
.amadex-traveller-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.amadex-traveller-row:last-child {
  border-bottom: 1px solid var(--amadex-gray-100);
  margin-bottom: 4px;
}

.amadex-traveller-label { display: flex; flex-direction: column; gap: 6px; }

.amadex-traveller-type {
  font-size: var(--amadex-font-xl);
  font-weight: 600;
  color: var(--amadex-gray-900);
  letter-spacing: -0.2px;
}

.amadex-traveller-age {
  font-size: var(--amadex-font-sm);
  color: var(--amadex-body);
  font-weight: 400;
}

.amadex-traveller-counter { display: flex; align-items: center; gap: 10px; }

.amadex-counter-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--amadex-transition-fast);
  font-weight: 500;
  line-height: 1;
  padding: 0;
}

.amadex-counter-btn.amadex-counter-minus {
  background: var(--amadex-gray-150);
  color: var(--amadex-black);
  border: 1px solid var(--amadex-gray-300);
  border-radius: 5px;
}

.amadex-counter-btn.amadex-counter-minus:hover:not(:disabled) {
  background: var(--amadex-gray-300);
  transform: scale(1.05);
}

.amadex-counter-btn.amadex-counter-plus {
  background: var(--amadex-green);
  color: var(--amadex-white);
  border: 1px solid var(--amadex-green);
  border-radius: 5px;
}

.amadex-counter-btn.amadex-counter-plus:hover:not(:disabled) {
  background: var(--amadex-green-dark);
  border-color: var(--amadex-green-dark);
  transform: scale(1.05);
}

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

.amadex-counter-value {
  min-width: 32px;
  text-align: center;
  font-size: var(--amadex-font-2xl);
  font-weight: 600;
  color: var(--amadex-body);
}

/* Cabin selector */
.amadex-cabin-selector { padding-top: 0; border-top: none; }

.amadex-cabin-label {
  font-size: var(--amadex-font-lg);
  font-weight: 600;
  color: var(--amadex-gray-900);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

.amadex-cabin-options { display: flex; gap: 10px; flex-wrap: wrap; }

.amadex-cabin-btn {
  padding: 11px 16px;
  border: 1px solid var(--amadex-border-soft);
  border-radius: var(--amadex-radius-lg);
  background: var(--amadex-white);
  color: var(--amadex-gray-900);
  font-size: var(--amadex-font-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--amadex-transition-fast);
  text-align: center;
  white-space: nowrap;
}

.amadex-cabin-btn:hover:not(.active) {
  border-color: var(--amadex-gray-400);
  background: var(--amadex-gray-50);
}

.amadex-cabin-btn.active {
  border-color: var(--amadex-green);
  background: var(--amadex-green-light);
  color: var(--amadex-green);
  font-weight: 600;
}

.amadex-travellers-apply-btn {
  width: 100%;
  padding: 14px 24px;
  margin-top: 20px;
  background: var(--amadex-green);
  color: var(--amadex-white);
  border: none;
  border-radius: var(--amadex-radius-sm);
  font-size: var(--amadex-font-xl);
  font-weight: 600;
  cursor: pointer;
  transition: var(--amadex-transition-fast);
  text-align: center;
  letter-spacing: 0.3px;
}

.amadex-travellers-apply-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px var(--amadex-green-shadow-md);
}


/* =============================================================
   18. MULTI-CITY LAYOUT
   ============================================================= */
.amadex-multi-city-flights {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.amadex-multi-city-flights div#return-field {
  border-right: 1px solid var(--amadex-gray-250);
  opacity: 2 !important;
}

/*.amadex-flight-segment {*/
/*  position: relative;*/
/*  margin-bottom: 0 !important;*/
/*  border: none !important;*/
/*  padding: 18px;*/
/*  border-radius: 10px !important;*/
/*}*/

.amadex-flight-segment:last-child { margin-bottom: 0; }

.amadex-multi-city-mode .amadex-flight-segment + .amadex-flight-segment {
  /* border-top: 1px solid var(--amadex-gray-200);
  padding-top: 18px; */
  margin-top: 8px;
}

.amadex-multi-city-mode .amadex-search-fields {
  /*display: grid;*/
  /*grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr;*/
  /* gap: 10px; */
  align-items: center;
  margin-bottom: 10px;
}

.m-shortcode__container.container {
    max-width: 100%;
}
button#swap-locations {
    height: fit-content;
}
.amadex-modern-form:not(.amadex-multi-city-mode) .amadex-flight-segment:not([data-segment="1"]) {
  display: none !important;
}

/* Multi-city sizing adjustments */
/*.amadex-multi-city-mode .amadex-flight-segment { padding: 12px 0; }*/
.amadex-multi-city-mode .amadex-segment-title { font-size: var(--amadex-font-base); }
.amadex-multi-city-mode .amadex-segment-remove-btn,
.amadex-multi-city-mode .amadex-remove-segment-btn { height: 24px; font-size: var(--amadex-font-md); padding: 20px; }
.amadex-multi-city-mode .amadex-add-city-btn,
.amadex-multi-city-mode .amadex-add-segment-btn { padding: 12px 16px; font-size: var(--amadex-font-md); }
.amadex-multi-city-mode .amadex-flight-segment .amadex-field-label { display:none !important; }
.amadex-multi-city-mode .amadex-flight-segment .amadex-field-value { font-size: 12px; font-weight: 600; }
.amadex-multi-city-mode .amadex-flight-segment .amadex-field-description { font-size: var(--amadex-font-xs); }
/*.amadex-multi-city-mode .amadex-flight-segment .amadex-swap-button { width: 46px; height: 46px; min-width: 30px; }*/
.amadex-modern-form.amadex-multi-city-mode.has-extra-segments .amadex-field-description { display: none; }
/* .amadex-modern-form.amadex-multi-city-mode.has-extra-segments .amadex-modern-field.amadex-location-field { padding-left: 30px !important; } */

.amadex-modern-form.has-extra-segments .amadex-add-city-btn {
  margin-left: 0;
  margin-right: auto;
}
div#dateID {
    border-right: 1px solid #E8E8E8;
    border-left: 1px solid #E8E8E8;
}
.amadex-remove-field label.amadex-field-label {
    display: none !important;
}
/* Add City button */
.amadex-add-city-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: var(--amadex-white);
  border: 1px solid var(--amadex-green);
  border-radius: var(--amadex-radius-lg);
  color: var(--amadex-green);
  font-size: var(--amadex-font-xl);
  font-weight: 600;
  cursor: pointer;
  transition: var(--amadex-transition-fast);
  margin: 8px 0 0;
}

.amadex-add-city-btn .amadex-add-city-icon {
  width: 26px; height: 26px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 1;
}

.amadex-add-city-btn:hover {
  background: rgba(14, 125, 63, 0.05);
  border-color: var(--amadex-green-dark);
  color: var(--amadex-green-dark);
  transform: translateY(-1px);
}

.amadex-add-city-btn:active { transform: translateY(0); }

.amadex-add-city-btn:disabled,
.amadex-add-city-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: #93A38E;
  border-color: #C8D1C8;
  transform: none;
}

/* Remove segment button */
.amadex-remove-field { display: flex; flex-direction: column; justify-content: flex-end; }
.amadex-remove-field .amadex-field-label { visibility: hidden; height: 16px; display: none; }
.amadex-remove-inner { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; }

.amadex-remove-segment-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  background: transparent !important;
  border-radius: var(--amadex-radius-full);
  color: var(--amadex-black);
  font-size: var(--amadex-font-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--amadex-transition-fast);
  white-space: nowrap;
}
/* =============================================
   BOOKING SIDEBAR — Sticky on desktop
   ============================================= */
@media (min-width: 768px) {
    .amadex-results-page .amadex-search-bar-wrapper {
    display: none !important;
}
    .amadex-booking-sidebar {
        position: sticky !important;
        top: 20px !important;
        align-self: flex-start !important;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        overflow-x: visible;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .amadex-booking-sidebar::-webkit-scrollbar {
        display: none;
    }

    /* Ensure parent grid allows sticky to work */
    .amadex-booking-content {
        align-items: start !important;
        overflow: visible !important;
    }
}

/* Mobile — static, scrolls with page */
@media (max-width: 767px) {
    .amadex-confirmation-content {
    flex-direction: column;
}
section.amadex-card.amadex-passenger-details-card.amadex-ce-reveal.amadex-ce-visible {
    margin: 0 !important;
    margin-top: 10px !important;
}
.amadex-flight-card-content {
    padding: 15px 25px !important;
}
svg#group-480 {
    width: 100%;
}
.amadex-confirmation-main {
    width: 100% !important;
}
.amadex-timeline-line-vertical {
    width: 100% !important;
}
div#amadex-confirmation-page {
    padding: 0;
}
aside.amadex-confirmation-sidebar {
    width: 100% !important;
}
    /* .amadex-search-bar-container .amadex-modern-form {
    display: none;
} */
 /* Hide wrapper by default on mobile — shown only when sheet is active */
.amadex-search-bar-wrapper {
    display: none !important;
}
.amadex-search-bar-wrapper.amadex-search-bar-active {
    display: block !important;
}
/* .amadex-search-bar-wrapper.amadex-search-bar-active .amadex-modern-form {
    display: flex !important;
} */
 .amadex-search-bar-wrapper.amadex-search-bar-active {
    height: fit-content !important;
}
.amadex-calendar-widget, #departure-calendar, #return-calendar {
    top: 140px !important;
    left: 0 !important;
    right: 0 !important;
}
    .amadex-addon-title {
    margin: 0;
    font-size: 20px;
}
.amadex-addon-description {
    font-size: 12px !important;
    display: none;
}
    .amadex-booking-sidebar {
        position: relative !important;
        top: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}
.amadex-remove-segment-btn svg { width: 16px; height: 16px; stroke-width: 2.5; }

.amadex-remove-segment-btn:hover {
  background: var(--amadex-gray-200);
  border-color: var(--amadex-gray-400);
  color: var(--amadex-gray-700);
}

.amadex-remove-segment-btn:active { transform: scale(0.98); }

/* Return placeholder & promo */
.amadex-return-placeholder .amadex-field-value { color: var(--amadex-black); font-weight: 500; font-size: var(--amadex-font-base); }
.amadex-return-placeholder .amadex-field-input-wrap { display: flex; align-items: center; }

.amadex-return-promo { background: var(--amadex-white); border: none; cursor: default; pointer-events: none; }
.amadex-return-promo .amadex-field-value { color: var(--amadex-gray-900); font-weight: 400; font-size: var(--amadex-font-md); line-height: 1.5; }
.amadex-return-promo .amadex-field-value strong { font-weight: 700; color: var(--amadex-gray-900); }
.amadex-return-promo .amadex-field-label { color: var(--amadex-green); font-size: var(--amadex-font-sm); font-weight: 600; letter-spacing: 0.3px; text-transform: capitalize; opacity: 1; }
.amadex-return-promo .amadex-field-description { display: none; }


/* =============================================================
   19. RESULTS PAGE OVERRIDES
   ============================================================= */
.amadex-results-page .amadex-search-summary-modern { margin-bottom: 0; width: 100%; }

.amadex-search-summary-modern .amadex-modern-form {
  margin: 0;
  padding: 20px;
  border-radius: var(--amadex-radius-3xl);
  transition: var(--amadex-transition);
}

.amadex-search-summary-modern .amadex-modern-form.amadex-multi-city-mode {
  min-height: auto;
  max-height: none;
  transition: all 0.4s ease;
  animation: expandForm 0.3s ease;
}

.amadex-results-page .amadex-search-summary-modern .amadex-field-label { color: var(--amadex-black); }
.amadex-search-summary-modern .amadex-location-field .amadex-field-value { font-weight: 600; }

.amadex-results-page .amadex-search-summary-modern div#destination-description,
.amadex-results-page .amadex-search-summary-modern div#origin-description,
.amadex-results-page .amadex-search-summary-modern #origin-description { display: none !important; }

.amadex-search-summary-modern .amadex-field-description { padding: 10px 0; font-size: var(--amadex-font-md); }

.amadex-search-summary-modern .amadex-field-input-wrap {
  flex-direction: row;
  gap: 6px !important;
  align-items: center;
  justify-content: flex-start;
}

.amadex-search-summary-modern .amadex-date-field .amadex-field-value { width: 80%; }
.amadex-results-page #destination-field { padding-left: 25px; }
.amadex-results-page .amadex-search-summary-modern .amadex-travellers-trigger { flex-direction: column; }

.amadex-results-page .amadex-search-summary-modern .amadex-trip-selector {
  margin-bottom: 0;
  background: none;
  box-shadow: none;
}

.amadex-results-page .amadex-search-summary-modern .amadex-modern-field {
  justify-content: center;
  min-height: 50px;
}

.amadex-results-page .amadex-search-summary-modern .amadex-search-fields {
  min-height: 80px;
  width: 85%;
  grid-template-columns: 1.3fr 1.3fr 1fr 1fr 1.2fr;
}

/* Results page search bar wrapper */
.amadex-results-page .amadex-search-bar-wrapper {
  background: #f8f8f8;
  padding: 16px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--amadex-border);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.amadex-results-page .amadex-search-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Compact form on results page */
.amadex-results-page .amadex-modern-form {
  padding: 16px 20px;
  margin: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  background: var(--amadex-white);
}

.amadex-results-page .amadex-trip-selector {
  margin-bottom: 16px;
  max-width: 100%;
}

/* Results page modify button */
.amadex-results-page #amadex-modify-search-btn,
.amadex-results-page .amadex-search-btn {
  background: var(--amadex-green);
}

.amadex-results-page #amadex-modify-search-btn:hover,
.amadex-results-page .amadex-search-btn:hover {
  background: var(--amadex-green-dark);
}

/* Results page loading state */
.amadex-results-page #amadex-modify-search-btn.loading,
.amadex-results-page .amadex-search-btn.loading {
  position: relative;
  color: transparent;
}

.amadex-results-page #amadex-modify-search-btn.loading .amadex-search-icon,
.amadex-results-page .amadex-search-btn.loading .amadex-search-icon {
  display: none;
}

/* Keep search bar always visible on results page — Desktop */
@media (min-width: 769px) {
  .amadex-results-page .amadex-search-bar-wrapper {
    position: static !important;
    display: block !important;
  }

  .amadex-results-page .amadex-search-summary-modern {
    position: static !important;
    display: block !important;
  }

  .amadex-results-page .amadex-search-fields {
    display: grid !important;
    grid-template-columns: 1.2fr 1.2fr 0.9fr 0.9fr 1fr !important;
    gap: 12px !important;
  }

  .amadex-results-page .amadex-modern-field {
    min-height: 60px;
    padding: 10px 14px;
  }

  .amadex-results-page .amadex-field-label { font-size: 11px !important; }
  .amadex-results-page .amadex-field-value { font-size: var(--amadex-font-md); }
  .amadex-results-page .amadex-field-description { font-size: 11px; }

  .amadex-results-page .amadex-search-btn {
    min-height: 60px;
    padding: 12px 24px;
    font-size: var(--amadex-font-lg);
  }

  .amadex-results-page .amadex-swap-button { width: 40px; height: 40px; }
  .amadex-results-page .amadex-swap-button svg { width: 22px; height: 22px; }

  /* Hide route header on desktop */
.amadex-results-page .amadex-route-header { display: none; }

  /* Hide mobile-only elements on desktop */
  .amadex-results-header-mobile {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .amadex-route-header {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .amadex-disclaimer-note {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .amadex-mobile-sort-bar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* Mobile: Allow toggle functionality + show mobile-only elements */
@media (max-width: 768px) {
  .amadex-results-page .amadex-search-bar-wrapper {
    background: #EEF9F2 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: none !important;
  }

  .amadex-results-page .amadex-search-bar-wrapper.amadex-search-bar-active {
    display: block !important;
    padding: 16px 0 !important;
    margin-bottom: 16px !important;
  }

  .amadex-results-page .amadex-search-bar-container { padding: 0 12px; }

  .amadex-results-page .amadex-modern-form {
    padding: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: var(--amadex-radius-md);
  }

  .amadex-results-page .amadex-trip-selector { margin-bottom: 12px; width: 100%; }
  .amadex-results-page .amadex-search-fields { gap: 10px; margin-bottom: 12px; }
  .amadex-results-page .amadex-modern-field { min-height: 58px; padding: 10px 12px; }
  .amadex-results-page .amadex-field-label { font-size: 10px !important; margin-bottom: 3px; }
  .amadex-results-page .amadex-field-value { font-size: var(--amadex-font-base); }
  .amadex-results-page .amadex-field-description { font-size: 10px; margin-top: 1px; }
  .amadex-results-page .amadex-search-btn { min-height: 48px; padding: 12px 20px; font-size: var(--amadex-font-md); }
  .amadex-results-page .amadex-swap-button { width: 38px; height: 38px; margin: -5px auto; }
  .amadex-results-page .amadex-swap-button svg { width: 20px; height: 20px; }
  .amadex-results-page .amadex-trip-label { padding: 8px 12px; font-size: var(--amadex-font-sm) !important; }
}

/* Show mobile-only elements on 320px–767px */
@media only screen and (min-width: 320px) and (max-width: 767px) {
  .amadex-results-header-mobile {
    display: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .amadex-route-header {
    display: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 12px 16px;
    background: var(--amadex-white);
    border-bottom-width: 0;
    border-bottom-color: transparent;
    border-bottom-style: none;
    margin-bottom: 12px;
  }

  .amadex-disclaimer-note {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  div#travellers-field {
    border-right: none !important;
  }

  .amadex-mobile-sort-bar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}


/* =============================================================
   20. HIDDEN ELEMENTS & UTILITIES
   ============================================================= */
span.amadex-switch-slider,
a.c-btn.-default.-primary.dst-adivaha-switcher { display: none !important; }

.amadex-search-bar-wrapper.sticky,
.amadex-search-bar-wrapper.fixed,
.amadex-search-summary-modern.sticky,
.amadex-search-summary-modern.fixed { display: none !important; position: static !important; }

/* Hardware acceleration */
.amadex-modern-form,
.amadex-swap-button,
.amadex-search-btn,
.amadex-trip-label,
.amadex-suggestions-dropdown,
.amadex-travellers-dropdown {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Prevent text selection */
.amadex-trip-label,
.amadex-counter-btn,
.amadex-cabin-btn,
.amadex-swap-button,
.amadex-search-btn {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

  .amadex-modern-field,
  #origin-field,
  #destination-field,
  #departure-field,
  #return-field,
  #travellers-field {
    display: flex !important;
    flex-direction: column !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
  }

  #travellers-field { justify-content: center; }
  #return-field { align-items: center; }
  #destination-field { justify-content: center; align-items: flex-start; }
  #origin-field { justify-content: center; align-items: flex-start; }

  .amadex-field-label,
  .amadex-field-value,
  .amadex-field-description {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  button.amadex-swap-button { display: flex !important; visibility: visible !important; }

  /*button.amadex-search-btn {*/
  /*  display: flex !important;*/
  /*  visibility: visible !important;*/
  /*  position: absolute;*/
  /*  right: 0;*/
  /*  bottom: 0.5rem;*/
  /*  width: auto;*/
  /*  min-width: 140px;*/
  /*  height: 50px !important;*/
  /*  padding: 0 32px;*/
  /*  transform: none;*/
  /*}*/

  /* Loading button stays in-place (no absolute float) */
  .amadex-search-btn.loading,
  .amadex-modern-form button.amadex-search-btn.loading {
    position: relative !important;
    transform: none !important;
  }

  .amadex-modern-form button.amadex-search-btn.loading {
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
  }

  /* Dropdown arrow on travellers trigger */
  /*.amadex-travellers-trigger::after {*/
  /*  content: '';*/
  /*  position: absolute;*/
  /*  right: -30px;*/
  /*  top: 30%;*/
  /*  border-right: 2px solid var(--amadex-black);*/
  /*  border-bottom: 2px solid var(--amadex-black);*/
  /*  width: 12px; height: 12px;*/
  /*  transform: translateY(-60%) rotate(45deg);*/
  /*  transition: transform 0.3s ease;*/
  /*}*/

  .amadex-travellers-field.active .amadex-travellers-trigger::after {
    transform: translateY(-40%) rotate(-135deg);
  }

  /* Multi-city swap button positions */
  .amadex-modern-form.amadex-multi-city-mode.has-extra-segments button.amadex-swap-button {
    top: 0.6rem;
    left: 41.5rem;
  }

  .amadex-results-page .amadex-search-summary-modern .amadex-modern-form.amadex-multi-city-mode.has-extra-segments button.amadex-swap-button {
    left: 46.5rem;
  }

  /* Multi-city visibility */
  .amadex-multi-city-mode .amadex-multi-city-flights { display: flex; }
  .amadex-multi-city-mode .amadex-flight-segment { display: block; }
  .amadex-multi-city-mode > .amadex-search-fields:not(.amadex-flight-segment .amadex-search-fields) { display: none !important; }

  .amadex-modern-form:not(.amadex-multi-city-mode) .amadex-modern-field { display: flex !important; visibility: visible !important; opacity: 1 !important; }

/* =============================================================
   22. TABLET — EXPERT MODE (769px – 1024px)
   Isolated breakpoint: 3-column grid, independent of mobile & desktop
   ============================================================= */
/*@media (min-width: 769px) and (max-width: 1024px) {*/
/*  .amadex-search-modern .amadex-search-fields,*/
/*  .amadex-modern-form:not(.amadex-multi-city-mode) .amadex-search-fields {*/
/*    display: grid !important;*/
/*    grid-template-columns: 1fr 1fr 0.85fr !important;*/
/*    grid-template-rows: auto auto auto !important;*/
/*    gap: 16px !important;*/
/*    border: none !important;*/
/*    border-radius: 0 !important;*/
/*    background: transparent !important;*/
/*    width: 100% !important;*/
/*    max-width: 100% !important;*/
/*    min-height: auto !important;*/
/*    padding: 0 !important;*/
/*  }*/

  /* Row 1 — Cities */
/*  #origin-field      { grid-column: 1 !important; grid-row: 1 !important; padding-right: 60px !important; }*/
/*  #destination-field { grid-column: 2 !important; grid-row: 1 !important; padding-left: 60px !important; }*/

  /* Row 2 — Dates + Travellers */
/*  #departure-field   { grid-column: 1 !important; grid-row: 2 !important; }*/
/*  #return-field      { grid-column: 2 !important; grid-row: 2 !important; }*/
/*  #travellers-field  { grid-column: 3 !important; grid-row: 2 !important; }*/

  /* Swap button centered between city columns */
/*  button.amadex-swap-button {*/
/*    display: flex !important;*/
/*    visibility: visible !important;*/
/*    grid-column: 1 / 3 !important;*/
/*    grid-row: 1 !important;*/
/*    justify-self: center !important;*/
/*    align-self: center !important;*/
/*    position: relative !important;*/
/*    z-index: 10 !important;*/
/*    width: 48px !important; height: 48px !important; min-width: 48px !important;*/
/*    border-radius: 50% !important;*/
/*    background: var(--amadex-green) !important;*/
/*    border: 3px solid var(--amadex-white) !important;*/
/*    box-shadow: 0 2px 8px var(--amadex-green-shadow-lg) !important;*/
/*    margin: 0 !important; padding: 0 !important;*/
/*  }*/

  /*button.amadex-swap-button:hover {*/
  /*  background: var(--amadex-green-dark) !important;*/
  /*  transform: scale(1.05) !important;*/
  /*  box-shadow: 0 4px 12px rgba(14, 125, 63, 0.4) !important;*/
  /*}*/

  /* Individual fields */
/*  .amadex-modern-field,*/
/*  #origin-field, #destination-field, #departure-field, #return-field, #travellers-field {*/
/*    display: flex !important;*/
/*    flex-direction: column !important;*/
/*    padding: 16px 18px !important;*/
/*    min-height: 70px !important;*/
/*    visibility: visible !important;*/
/*    opacity: 1 !important;*/
/*    position: relative !important;*/
/*    border: 1px solid var(--amadex-border) !important;*/
/*    border-radius: var(--amadex-radius-md) !important;*/
/*    background: var(--amadex-white) !important;*/
/*    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08) !important;*/
/*    box-sizing: border-box !important;*/
/*    transition: var(--amadex-transition-fast) !important;*/
/*  }*/

/*  #departure-field, #return-field, #travellers-field {*/
/*    align-items: flex-start !important;*/
/*    justify-content: center !important;*/
/*  }*/

/*  .amadex-modern-field:not(:last-child):not(.amadex-swap-button) { border-right: none !important; }*/

  /* Row 3 — Search button full width */
/*  button.amadex-search-btn {*/
/*    display: flex !important;*/
/*    visibility: visible !important;*/
/*    grid-column: 1 / -1 !important;*/
/*    grid-row: 3 !important;*/
/*    position: static !important;*/
/*    width: 100% !important;*/
/*    margin-top: 16px !important;*/
/*    margin-bottom: 0 !important;*/
/*    padding: 14px 24px !important;*/
/*    font-size: var(--amadex-font-lg) !important;*/
/*    font-weight: 600 !important;*/
/*    min-height: 50px !important;*/
/*    background: var(--amadex-green) !important;*/
/*    color: var(--amadex-white) !important;*/
/*    border: none !important;*/
/*    border-radius: var(--amadex-radius-md) !important;*/
/*    align-items: center !important;*/
/*    justify-content: center !important;*/
/*    gap: 8px !important;*/
/*  }*/

/*  button.amadex-search-btn:hover { background: var(--amadex-green-dark) !important; transform: translateY(-1px) !important; }*/
/*  button.amadex-search-btn:active { transform: translateY(0) !important; }*/

/*  .amadex-field-label {*/
/*    font-size: var(--amadex-font-sm) !important;*/
/*    font-weight: 500 !important;*/
/*    color: var(--amadex-green) !important;*/
/*    margin-bottom: 8px !important;*/
/*  }*/

/*  .amadex-field-value { font-size: var(--amadex-font-lg) !important; font-weight: 600 !important; color: var(--amadex-black) !important; }*/
/*  .amadex-field-description { font-size: var(--amadex-font-sm) !important; color: var(--amadex-gray-500) !important; margin-top: 4px !important; }*/

/*  .amadex-field-input-wrap { display: flex !important; flex-direction: column !important; width: 100% !important; gap: 4px !important; }*/

/*  #travellers-field .amadex-travellers-trigger { display: flex !important; flex-direction: column !important; gap: 4px !important; width: 100% !important; }*/
/*  #travellers-field .amadex-travellers-value { font-size: var(--amadex-font-lg) !important; font-weight: 600 !important; color: var(--amadex-black) !important; }*/
/*  #travellers-field .amadex-cabin-value { font-size: var(--amadex-font-sm) !important; color: var(--amadex-gray-500) !important; margin-top: 2px !important; }*/

/*  .amadex-modern-field { overflow: hidden !important; }*/
/*  .amadex-field-value { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }*/

/*  .amadex-search-modern { padding: 0 24px !important; max-width: 100% !important; }*/
/*  .amadex-modern-form { padding: 24px 20px !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }*/

/*  .amadex-trip-selector { width: 100% !important; max-width: 100% !important; justify-content: center !important; gap: 12px !important; }*/
/*  .amadex-trip-label { padding: 12px 28px !important; font-size: var(--amadex-font-md) !important; }*/

/*  .amadex-travellers-trigger::after { right: -16px !important; top: 44% !important; width: 10px !important; height: 10px !important; }*/
/*  .amadex-travellers-value svg { display: none !important; }*/

  /* Calendar: single column below field */
/*  .amadex-calendar-widget, #departure-calendar, #return-calendar {*/
/*    position: absolute !important;*/
/*    top: calc(100% + 8px) !important;*/
/*    left: 0 !important; right: 0 !important;*/
/*    width: 100% !important; min-width: 400px !important; max-width: 450px !important;*/
/*    padding: 20px 24px !important;*/
/*    z-index: 10001 !important;*/
/*    max-height: 50vh !important; overflow-y: auto !important;*/
/*    -webkit-overflow-scrolling: touch !important;*/
/*    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;*/
/*    background: var(--amadex-white) !important;*/
/*    border-radius: var(--amadex-radius-xl) !important;*/
/*    transform: translateY(-8px) !important;*/
/*  }*/

/*  .amadex-calendar-widget.active, #departure-calendar.active, #return-calendar.active {*/
/*    display: block !important; visibility: visible !important;*/
/*    opacity: 1 !important; transform: translateY(0) !important; pointer-events: auto !important;*/
/*  }*/

/*  .amadex-modern-field.amadex-date-field, #departure-field, #return-field,*/
/*  .amadex-modern-form, .amadex-search-container, .amadex-search-fields { overflow: visible !important; position: relative !important; }*/

/*  .amadex-calendar-months { display: block !important; }*/
/*  .amadex-calendar-months::before { display: none !important; }*/
/*  .amadex-calendar-month { min-width: 280px; }*/
/*  .amadex-calendar-day { width: 36px; height: 36px; font-size: var(--amadex-font-lg); }*/
/*}*/

/*@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {*/
/*  .amadex-modern-form { padding: 20px 16px !important; }*/
/*}*/

/*@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {*/
/*  .amadex-modern-form { padding: 20px 24px !important; }*/
/*}*/

/* iPad Air (810px – 830px) */
/*@media screen and (min-width: 810px) and (max-width: 830px) {*/
/*  .amadex-modern-form {*/
/*    background: var(--amadex-white);*/
/*    border-radius: var(--amadex-radius-3xl);*/
/*    padding: 20px 16px;*/
/*    box-shadow: 0px 2px 12px rgba(0,0,0,0.08);*/
/*  }*/
/*  .amadex-modern-form:not(.amadex-multi-city-mode) .amadex-search-fields { border: none !important; }*/
/*}*/

/* Mid-range adjustments (770px – 1112px) */
/*@media (min-width: 770px) and (max-width: 1112px) {*/
/*  .amadex-field-value { font-size: var(--amadex-font-sm) !important; padding: 0 !important; }*/
/*}*/


/* =============================================================
   23. MOBILE (≤ 768px)
   ============================================================= */
/*@media only screen and (max-width: 768px) {*/
  /* Prevent horizontal overflow */
/*  html, body {*/
/*    overflow-x: hidden;*/
/*    max-width: 100vw;*/
/*  }*/

  /* Container */
/*  .amadex-search-modern { padding: 0 !important; margin-top: 20px; }*/

/*  .amadex-modern-form {*/
/*    max-width: 100%;*/
/*    margin: 0 !important;*/
/*    padding: 15px 10px !important;*/
/*    background: var(--amadex-white);*/
/*    border-radius: var(--amadex-radius-xl) !important;*/
/*    box-shadow: 0 10px 30px rgba(0,0,0,0.08);*/
/*    box-sizing: border-box;*/
/*    height: auto !important;*/
/*  }*/

  /* Trip selector */
/*  .amadex-trip-selector {*/
/*    display: flex !important;*/
/*    flex-direction: row !important;*/
/*    gap: 8px !important;*/
/*    background: none !important;*/
/*    border-radius: var(--amadex-radius-xl) !important;*/
/*    box-shadow: none !important;*/
/*    margin-bottom: 10px;*/
/*    width: 100% !important;*/
/*    max-width: 100% !important;*/
/*    height: auto !important;*/
/*  }*/

/*  .amadex-trip-option { flex: 0 0 auto; }*/

/*  .amadex-trip-label {*/
/*    display: inline-flex !important;*/
/*    align-items: center !important;*/
/*    justify-content: center !important;*/
/*    padding: 10px 16px !important;*/
/*    border-radius: var(--amadex-radius-full) !important;*/
/*    font-size: var(--amadex-font-base) !important;*/
/*    font-weight: 500 !important;*/
/*    color: var(--amadex-black) !important;*/
/*    background: transparent !important;*/
/*    border: none !important;*/
/*    white-space: nowrap !important;*/
/*    min-height: 28px !important; min-width: 28px !important;*/
/*  }*/

/*  .amadex-trip-option input[type="radio"] { display: none; }*/

/*  .amadex-trip-option input[type="radio"]:checked + .amadex-trip-label {*/
/*    border-color: var(--amadex-green) !important;*/
/*    background: var(--amadex-green) !important;*/
/*    color: var(--amadex-white) !important;*/
/*    box-shadow: 0 2px 8px var(--amadex-green-shadow-lg) !important;*/
/*    transform: scale(1.02) !important;*/
/*    font-weight: 600 !important;*/
/*  }*/

  /* Search fields — 2-column grid */
/*  .amadex-search-fields {*/
/*    display: grid !important;*/
/*    grid-template-columns: 1fr 1fr !important;*/
/*    gap: 12px !important;*/
/*    border: none !important;*/
/*    border-radius: 0 !important;*/
/*    background: transparent !important;*/
/*    width: 100% !important; max-width: 100% !important;*/
/*    min-height: auto !important; padding: 0 !important;*/
/*    visibility: visible !important; opacity: 1 !important;*/
/*    overflow: visible !important;*/
/*  }*/

  /* Individual fields */
/*  .amadex-modern-field,*/
/*  #origin-field, #destination-field, #departure-field, #return-field, #travellers-field,*/
/*  .amadex-location-field, .amadex-date-field, .amadex-travellers-field {*/
/*    display: flex !important;*/
/*    flex-direction: column !important;*/
/*    padding: 12px !important;*/
/*    border: 1px solid var(--amadex-border) !important;*/
/*    border-radius: var(--amadex-radius-md) !important;*/
/*    min-height: auto !important;*/
/*    background: var(--amadex-white) !important;*/
/*    margin: 0 !important;*/
/*    visibility: visible !important; opacity: 1 !important;*/
/*    position: relative !important;*/
/*    height: auto !important;*/
/*    box-shadow: none !important;*/
/*  }*/

  /* Travellers spans full width */
/*  #travellers-field, .amadex-travellers-field { grid-column: 1 / -1 !important; max-height: none !important; }*/

/*  .amadex-modern-field:last-child { border-bottom: none !important; }*/
/*  .amadex-modern-field:not(:last-child):not(.amadex-swap-button) { border-right: none !important; }*/
  /*.amadex-modern-field:hover { background: var(--amadex-gray-50) !important; border-radius: 0 !important; }*/
/*  .amadex-modern-field.field-active { background: rgba(14, 125, 63, 0.04) !important; border: none !important; border-radius: 0 !important; margin: 0 !important; padding: 18px 0 !important; }*/

  /* Field typography */
/*  .amadex-field-label {*/
/*    display: block !important;*/
/*    font-size: var(--amadex-font-base) !important;*/
/*    font-weight: 600 !important;*/
/*    color: var(--amadex-green) !important;*/
/*    margin-bottom: 8px !important;*/
/*    text-transform: capitalize !important;*/
/*    visibility: visible !important; opacity: 1 !important;*/
/*  }*/

/*  .amadex-field-value {*/
/*    display: block !important;*/
/*    font-size: var(--amadex-font-sm) !important;*/
/*    font-weight: 500 !important;*/
/*    color: var(--amadex-black) !important;*/
/*    padding: 0 !important;*/
/*    visibility: visible !important; opacity: 1 !important;*/
/*    width: 100% !important;*/
/*    background: transparent !important; border: none !important;*/
/*    line-height: 1.3 !important;*/
/*  }*/

/*  .amadex-field-description {*/
/*    display: block !important;*/
/*    font-size: var(--amadex-font-sm) !important;*/
/*    color: var(--amadex-gray-500) !important;*/
/*    margin-top: 4px !important;*/
/*    visibility: visible !important; opacity: 1 !important;*/
/*  }*/

/*  .amadex-field-input-wrap {*/
/*    display: flex !important;*/
/*    flex-direction: column !important;*/
/*    visibility: visible !important; opacity: 1 !important;*/
/*    padding-right: 0 !important;*/
/*    border: none !important;*/
/*    background: none !important;*/
/*    padding: 0;*/
/*    gap: 10px !important;*/
/*  }*/

  /* Date display hidden on mobile — handled via custom calendar */
/*  #departure-display, #return-display, #departure-day, #return-day { display: none !important; }*/

/*  #modern-departure, #modern-return {*/
/*    position: absolute; inset: 0; opacity: 0;*/
/*    pointer-events: none !important;*/
/*    width: 1px; height: 1px; overflow: hidden; z-index: -1;*/
/*  }*/

  /* Travellers trigger */
/*  .amadex-travellers-trigger, .amadex-travellers-value, .amadex-cabin-value { display: flex !important; visibility: visible !important; opacity: 1 !important; }*/
/*  .amadex-travellers-trigger { padding: 0 !important; flex-direction: row !important; gap: 12px; }*/
/*  .amadex-travellers-value { font-size: var(--amadex-font-md); font-weight: 500; color: #121826; }*/
/*  .amadex-cabin-value { font-size: var(--amadex-font-md); color: #818898; }*/

  /* Swap button */
/*  .amadex-swap-button {*/
/*    display: flex !important;*/
/*    position: absolute !important;*/
/*    right: 0 !important; top: 50% !important;*/
/*    transform: translateY(-50%) !important;*/
/*    width: 44px !important; height: 44px !important; min-width: 44px !important;*/
/*    border-radius: 50% !important;*/
/*    background: var(--amadex-green) !important;*/
/*    border: 3px solid var(--amadex-white) !important;*/
/*    box-shadow: 0 3px 10px var(--amadex-green-shadow-lg) !important;*/
/*    z-index: 10 !important;*/
/*    align-items: center !important; justify-content: center !important;*/
/*    margin: 0 !important; padding: 0 !important;*/
/*  }*/

/*  .amadex-swap-button svg, .amadex-swap-button i { color: var(--amadex-white) !important; font-size: 20px !important; width: 20px !important; height: 20px !important; }*/

  /* Search button */
/*  button.amadex-search-btn,*/
/*  .amadex-modern-form button.amadex-search-btn {*/
/*    position: static !important;*/
/*    width: 100% !important; max-width: 100% !important;*/
/*    height: 40px !important;*/
/*    margin-top: 10px !important;*/
/*    padding: 0 24px !important;*/
/*    background: var(--amadex-green) !important;*/
/*    color: var(--amadex-white) !important;*/
/*    border: none !important;*/
/*    border-radius: var(--amadex-radius-xl) !important;*/
/*    font-size: var(--amadex-font-xl) !important;*/
/*    font-weight: 600 !important;*/
/*    cursor: pointer !important;*/
/*    display: flex !important;*/
/*    align-items: center !important; justify-content: center !important;*/
/*    gap: 10px !important;*/
/*    box-shadow: 0 4px 12px var(--amadex-green-shadow-lg) !important;*/
/*    left: auto !important; right: auto !important; bottom: auto !important; top: auto !important;*/
/*    transform: none !important;*/
/*  }*/

/*  button.amadex-search-btn:hover { background: var(--amadex-green-dark) !important; box-shadow: 0 6px 18px rgba(14, 125, 63, 0.45) !important; transform: translateY(-2px) !important; }*/

/*  .amadex-modern-form button.amadex-search-btn.loading,*/
/*  .amadex-search-btn.loading {*/
/*    position: static !important;*/
/*    transform: none !important;*/
/*    left: auto !important; right: auto !important; bottom: auto !important; top: auto !important;*/
/*  }*/

/*  .amadex-search-btn.loading::before { top: 85% !important; left: 48% !important; }*/

  /* Add city button */
/*  .amadex-add-city-btn {*/
/*    width: 100%; justify-content: center;*/
/*    margin: 20px 0 0;*/
/*    height: 42px;*/
/*    border-radius: var(--amadex-radius-full);*/
/*    border: 1px dashed #c2cad8;*/
/*    background: var(--amadex-white);*/
/*    font-size: var(--amadex-font-base);*/
/*  }*/

  /* Allow dropdown overflow */
/*  .amadex-modern-form, .amadex-search-container, .amadex-search-fields,*/
/*  .amadex-search-bar-wrapper, .amadex-search-bar-container { overflow: visible !important; position: relative !important; }*/

  /* Location fields */
/*  .amadex-location-field,*/
/*  #origin-field, #destination-field,*/
/*  .amadex-modern-field.amadex-location-field { position: relative !important; overflow: visible !important; z-index: auto !important; }*/

/*  .amadex-location-field { display: flex !important; visibility: visible !important; opacity: 1 !important; }*/
/*  .amadex-location-field.field-active { z-index: 1001 !important; }*/
/*  .amadex-location-field.field-active .amadex-suggestions-dropdown { z-index: 1002 !important; }*/
/*  .amadex-location-field input, .amadex-location-field .amadex-field-value { display: block !important; visibility: visible !important; opacity: 1 !important; }*/

  /* Suggestions dropdown */
/*  .amadex-suggestions-dropdown, .amadex-autocomplete-list,*/
/*  #origin-suggestions, #destination-suggestions {*/
/*    position: absolute !important;*/
/*    top: 100% !important; left: 0 !important; right: 0 !important;*/
/*    width: 100% !important; max-width: 100% !important;*/
/*    border-radius: var(--amadex-radius-xl) !important;*/
/*    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;*/
/*    max-height: 50vh !important;*/
/*    z-index: 1000 !important;*/
/*    background: var(--amadex-white) !important;*/
/*    margin-top: 8px !important;*/
/*    transform: translateY(0) !important;*/
/*  }*/

/*  .amadex-suggestions-dropdown.active, .amadex-autocomplete-list.active,*/
/*  #origin-suggestions.active, #destination-suggestions.active {*/
/*    display: block !important; visibility: visible !important;*/
/*    opacity: 1 !important; transform: translateY(0) !important;*/
/*  }*/

  /* Date fields */
/*  .amadex-date-field { display: flex !important; visibility: visible !important; opacity: 1 !important; align-items: flex-start; }*/
/*  .amadex-date-field .amadex-field-value { width: 100% !important; }*/
/*  .amadex-date-field .amadex-field-input-wrap { display: flex !important; flex-direction: row !important; visibility: visible !important; opacity: 1 !important; justify-content: flex-start; gap: 6px; margin: 10px;}*/

  /* Travellers field */
/*  .amadex-modern-field.amadex-travellers-field, #travellers-field { position: relative !important; z-index: 1002 !important; overflow: visible !important; opacity: 1 !important; }*/
/*  .amadex-location-field.field-active ~ .amadex-travellers-field,*/
/*  .amadex-location-field.field-active ~ #travellers-field,*/
/*  .amadex-date-field.field-active ~ .amadex-travellers-field,*/
/*  .amadex-date-field.field-active ~ #travellers-field { z-index: 1 !important; opacity: 1 !important; }*/
/*  .amadex-modern-field.amadex-travellers-field.field-active,*/
/*  #travellers-field.field-active, #travellers-field.active { z-index: 10001 !important; position: relative !important; opacity: 1 !important; }*/

  /* Travellers dropdown */
/*  .amadex-travellers-dropdown {*/
/*    position: absolute !important;*/
/*    top: calc(100% + 8px) !important;*/
/*    left: 0 !important; right: 0 !important;*/
/*    width: 100% !important; max-width: 100% !important;*/
/*    background: var(--amadex-white) !important;*/
/*    border: 1px solid var(--amadex-gray-200) !important;*/
/*    border-radius: var(--amadex-radius-xl) !important;*/
/*    box-shadow: var(--amadex-shadow-dropdown) !important;*/
/*    padding: 20px !important;*/
/*    z-index: 10003 !important;*/
/*    margin-top: 8px !important;*/
/*    max-height: 70vh !important; overflow-y: auto !important;*/
/*    -webkit-overflow-scrolling: touch !important;*/
/*    display: none !important; opacity: 0 !important; visibility: hidden !important;*/
/*    transform: translateY(-12px) !important;*/
/*    transition: all 0.35s var(--amadex-ease) !important;*/
/*  }*/

/*  .amadex-travellers-dropdown.active,*/
/*  .amadex-modern-field.amadex-travellers-field.field-active .amadex-travellers-dropdown,*/
/*  .amadex-modern-field.amadex-travellers-field.field-active .amadex-travellers-dropdown.active,*/
/*  #travellers-field.field-active .amadex-travellers-dropdown,*/
/*  #travellers-field.field-active .amadex-travellers-dropdown.active,*/
/*  #travellers-field.active .amadex-travellers-dropdown,*/
/*  #travellers-field.active .amadex-travellers-dropdown.active {*/
/*    display: block !important; visibility: visible !important;*/
/*    opacity: 1 !important; transform: translateY(0) !important;*/
/*    pointer-events: auto !important; z-index: 10003 !important;*/
/*    position: absolute !important;*/
/*    animation: slideInDown 0.35s var(--amadex-ease) !important;*/
/*  }*/

/*  .amadex-travellers-dropdown::before { left: 40px; }*/

/*  .amadex-travellers-dropdown .amadex-traveller-row { padding: 4px 0 !important; border-bottom: 1px solid var(--amadex-border-alt) !important; }*/
/*  .amadex-travellers-dropdown .amadex-counter-btn { width: 25px; height: 25px; }*/
/*  .amadex-travellers-dropdown .amadex-traveller-counter { gap: 14px; }*/
/*  .amadex-travellers-dropdown .amadex-travellers-apply-btn { margin-top: 10px; border-radius: var(--amadex-radius-2xl); font-size: var(--amadex-font-3xl); padding: 3px 3px; }*/

  /* Hide dropdown arrow on mobile */
/*  .amadex-travellers-field::after, .amadex-travellers-trigger::after { display: none !important; content: none !important; visibility: hidden !important; }*/

  /* Travellers dropdown ID override */
/*  #travellers-dropdown { width: 100% !important; margin-left: 0; min-width: 260px !important; padding: 10px 20px 20px 10px !important; }*/

  /* Inline travellers components on mobile */
/*  .amadex-traveller-type { font-size: var(--amadex-font-base); font-weight: 500; }*/
/*  .amadex-traveller-age { font-size: var(--amadex-font-xs); color: #818898; }*/
/*  .amadex-counter-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #dde2ea; background: var(--amadex-gray-50); font-size: 18px; line-height: 1; }*/
/*  .amadex-counter-value { min-width: 20px; text-align: center; font-size: var(--amadex-font-base); font-weight: 500; }*/
/*  .amadex-cabin-selector { margin-top: 12px; }*/
/*  .amadex-cabin-label { font-size: var(--amadex-font-sm); font-weight: 500; margin-bottom: 6px; }*/
/*  .amadex-cabin-options { display: flex; flex-wrap: wrap; gap: 6px !important; }*/
/*  .amadex-cabin-btn { flex: 1 1 calc(50% - 6px); border-radius: var(--amadex-radius-full); border: 1px solid #dde2ea; padding: 3px 6px; font-size: var(--amadex-font-sm); background: var(--amadex-white); }*/
/*  .amadex-cabin-btn.active { border-color: var(--amadex-green); background: var(--amadex-green); color: var(--amadex-white); }*/
/*  button.amadex-cabin-btn.active:focus { outline: none !important; }*/

  /* Calendar */
/*  .amadex-calendar-widget, #departure-calendar, #return-calendar {*/
/*    position: absolute !important;*/
/*    top: 50% !important; left: 0 !important; right: 0 !important;*/
/*    width: 100% !important; min-width: auto !important; max-width: 100% !important;*/
/*    margin: 0 !important; padding: 16px !important;*/
/*    border-radius: var(--amadex-radius-xl) !important;*/
/*    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;*/
/*    z-index: 10001 !important;*/
/*    display: none !important; visibility: hidden !important; opacity: 0 !important;*/
/*    transform: translateY(-8px) !important; pointer-events: none !important;*/
/*    height: auto !important; overflow-y: hidden !important;*/
/*    background: var(--amadex-white) !important;*/
/*  }*/

/*  .amadex-calendar-widget.active, #departure-calendar.active, #return-calendar.active {*/
/*    display: block !important; visibility: visible !important;*/
/*    opacity: 1 !important; transform: translateY(0) !important; pointer-events: auto !important;*/
/*  }*/

/*  .amadex-calendar-widget:not(.active), #departure-calendar:not(.active), #return-calendar:not(.active) {*/
/*    display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important;*/
/*  }*/

/*  .amadex-modern-field.amadex-date-field, #departure-field, #return-field { overflow: visible !important; }*/

/*  .amadex-calendar-header { padding: 0 12px 10px !important; flex-direction: row; align-items: flex-start; gap: 12px; }*/
/*  .amadex-calendar-months { display: block !important; width: 100% !important; padding-top: 0; grid-template-columns: 1fr !important; gap: 28px !important; }*/
/*  .amadex-calendar-months::before { display: none !important; }*/
/*  .amadex-calendar-month { width: 100% !important; max-width: 100% !important; min-width: auto !important; }*/
/*  .amadex-calendar-month-header { margin-bottom: 0; }*/
/*  .amadex-calendar-month-title { font-size: var(--amadex-font-xl) !important; font-weight: 700 !important; }*/
/*  .amadex-calendar-nav-btn { width: 40px !important; height: 40px !important; font-size: 28px !important; min-width: 40px !important; min-height: 40px !important; }*/

/*  .amadex-calendar-table { width: 100% !important; border-spacing: 4px !important; display: table !important; }*/
/*  .amadex-calendar-table tbody { display: table-row-group !important; }*/
/*  .amadex-calendar-table tr { display: table-row !important; }*/
/*  .amadex-calendar-table td { display: table-cell !important; }*/

/*  .amadex-calendar-day { width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; font-size: var(--amadex-font-md) !important; }*/
/*  .amadex-calendar-date-item { font-size: var(--amadex-font-sm); padding: 4px 8px; border-radius: var(--amadex-radius-full); }*/
/*  .amadex-calendar-date-item.active { background: none; color: var(--amadex-green); }*/
/*  .amadex-calendar-selected-date { font-size: 17px; display: flex; gap: 6px; }*/
/*  .amadex-calendar-trip-type { font-size: var(--amadex-font-xs); color: #6c7480; }*/

/*  .amadex-calendar-close-btn {*/
/*    top: -6px !important; right: 6px !important; padding: 10px !important;*/
/*    background: var(--amadex-gray-100) !important; border-radius: 50% !important;*/
/*    width: 36px !important; height: 36px !important;*/
/*    display: flex !important; align-items: center !important; justify-content: center !important;*/
/*  }*/
/*  .amadex-calendar-close-btn:hover { background: var(--amadex-gray-200) !important; }*/
/*  .amadex-calendar-close-btn svg { width: 18px !important; height: 18px !important; }*/

  /* Misc */
/*  .main-calnder-mobile { display: flex; }*/
/*  .amadex-booking-section { overflow-x: hidden !important; }*/
/*  .amadex-add-passenger-dropdown { min-width: 100%; }*/
/*  .amadex-paypal-option { width: 60%; }*/

/*  .amadex-search-bar-wrapper { display: none; background-color: transparent !important; }*/
/*  .amadex-search-bar-wrapper .amadex-search-bar-container { background-color: transparent; margin-top: -22px !important; }*/
/*  .amadex-search-bar-wrapper.amadex-search-bar-active { overflow: visible !important; padding-bottom: 0 !important; margin-bottom: -400px !important; }*/

/*  .amadex-search-bar-wrapper.amadex-search-bar-active .amadex-travellers-dropdown.active {*/
/*    position: fixed !important;*/
/*    left: 16px !important; right: 16px !important;*/
/*    width: calc(100% - 32px) !important; max-width: calc(100% - 32px) !important;*/
/*    max-height: calc(100vh - 120px) !important;*/
/*    top: auto !important; bottom: 20px !important; z-index: 10003 !important;*/
/*  }*/

/*  body.home .amadex-mobile-sort-bar { display: none !important; }*/
/*}*/


/* =============================================================
   24. MOBILE — MULTI-CITY LAYOUT (≤ 768px)
   ============================================================= */
/*@media only screen and (max-width: 768px) {*/
/*  .amadex-multi-city-mode { width: 100%; }*/

/*  .amadex-multi-city-mode .amadex-multi-city-flights { display: flex !important; flex-direction: column; gap: 16px; margin-bottom: 20px; }*/

/*  .amadex-multi-city-mode .amadex-flight-segment {*/
/*    display: block !important;*/
/*    background: none;*/
/*    border-radius: var(--amadex-radius-xl);*/
/*    padding: 16px;*/
/*    position: relative;*/
/*    border: none;*/
/*    margin-bottom: 0;*/
/*  }*/

/*  .amadex-segment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #E0E0E0; }*/
/*  .amadex-segment-title { font-size: var(--amadex-font-md); font-weight: 600; color: var(--amadex-green); margin: 0; }*/

/*  .amadex-segment-remove-btn, .amadex-remove-segment-btn {*/
/*    width: 28px; height: 28px; border-radius: 50%;*/
/*    background: var(--amadex-white); border: 1px solid #E0E0E0; color: #666666;*/
/*    display: flex; align-items: center; justify-content: center;*/
/*    cursor: pointer; font-size: var(--amadex-font-xl); padding: 0; line-height: 1; transition: all 0.2s ease;*/
/*  }*/

/*  .amadex-segment-remove-btn:hover, .amadex-remove-segment-btn:hover { background: #FEE2E2; border-color: #DC2626; color: #DC2626; }*/

/*  .amadex-multi-city-mode .amadex-add-city-btn,*/
/*  .amadex-multi-city-mode .amadex-add-segment-btn,*/
/*  .amadex-multi-city-mode button.amadex-add-city-btn,*/
/*  .amadex-multi-city-mode button.amadex-add-segment-btn {*/
/*    display: flex !important;*/
/*    width: 100%; max-width: 100%;*/
/*    margin: 16px 0 0; padding: 14px 20px;*/
/*    background: var(--amadex-green); color: var(--amadex-white);*/
/*    border: none; border-radius: var(--amadex-radius-xl);*/
/*    font-size: var(--amadex-font-xl); font-weight: 600;*/
/*    cursor: pointer; align-items: center; justify-content: flex-start;*/
/*    gap: 10px; box-shadow: var(--amadex-shadow-sm); transition: all 0.3s ease;*/
/*  }*/

/*  .amadex-multi-city-mode .amadex-add-city-btn:hover,*/
/*  .amadex-multi-city-mode button.amadex-add-city-btn:hover { background: var(--amadex-green-dark); transform: translateY(-1px); }*/

/*  .amadex-add-city-icon, .amadex-add-segment-icon {*/
/*    width: 20px; height: 20px; border-radius: 50%;*/
/*    border: 2px solid var(--amadex-white);*/
/*    display: inline-flex; align-items: center; justify-content: center;*/
/*    font-size: 18px; color: var(--amadex-white); line-height: 1;*/
/*  }*/

/*  .amadex-multi-city-mode .amadex-flight-segment .amadex-search-fields {*/
/*    display: flex; flex-direction: column; gap: 0;*/
/*    border: none; background: transparent; padding: 0;*/
/*    width: 100%; max-width: 100%; min-height: auto;*/
/*  }*/

/*  .amadex-multi-city-mode .amadex-flight-segment .amadex-modern-field {*/
/*    padding: 14px 0; border: none; background: transparent; margin: 0; min-height: auto;*/
/*  }*/

/*  .amadex-multi-city-mode .amadex-flight-segment .amadex-modern-field:hover { background: transparent; }*/
/*  .amadex-multi-city-mode .amadex-flight-segment .amadex-modern-field.field-active { background: transparent; border: none; }*/

/*  .amadex-multi-city-mode .amadex-flight-segment .amadex-field-label { font-size: var(--amadex-font-sm); font-weight: 500; color: var(--amadex-green); margin-bottom: 6px; }*/
/*  .amadex-multi-city-mode .amadex-flight-segment .amadex-field-value { font-size: var(--amadex-font-xl); font-weight: 600; color: var(--amadex-black); }*/
/*  .amadex-multi-city-mode .amadex-flight-segment .amadex-field-description { font-size: var(--amadex-font-base); color: var(--amadex-gray-500); }*/

/*  .amadex-multi-city-mode .amadex-flight-segment .amadex-swap-button {*/
/*    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);*/
/*    width: 36px; height: 36px; min-width: 36px; border-radius: 50%;*/
/*    background: var(--amadex-green); border: 2px solid var(--amadex-white);*/
/*    box-shadow: var(--amadex-shadow-sm); display: flex; align-items: center; justify-content: center;*/
/*  }*/

/*  .amadex-multi-city-mode .amadex-travellers-field { margin-top: 20px; padding: 16px 0; background: transparent; border: none; }*/
/*  .amadex-multi-city-mode button.amadex-search-btn { margin-top: 24px; width: 100%; max-width: 100%; }*/
/*  .amadex-multi-city-mode > .amadex-swap-button:not(.amadex-flight-segment .amadex-swap-button) { display: none; }*/

/*  .amadex-modern-form:not(.amadex-multi-city-mode) .amadex-search-fields { display: flex !important; flex-direction: column !important; gap: 10px !important; border: none !important; background: transparent !important; }*/
/*  .amadex-modern-form:not(.amadex-multi-city-mode) .amadex-modern-field { display: flex !important; visibility: visible !important; opacity: 1 !important; }*/

  /* Multi-city swap button position on mobile */
/*  .amadex-multi-city-flights button.amadex-swap-button {margin-left: 12.8rem !important; }*/
/*}*/


/* =============================================================
   25. SMALL PHONES (≤ 640px)
   ============================================================= */
/*@media (max-width: 640px) {*/
/*  .amadex-trip-selector { flex-wrap: wrap; gap: 8px; }*/
/*  .amadex-trip-label { padding: 8px 20px; font-size: var(--amadex-font-base); }*/
/*  .amadex-cabin-options { grid-template-columns: 1fr; }*/
/*}*/


/* =============================================================
   26. GALAXY S24 / LARGE PHONES (≤ 430px)
   ============================================================= */
/*@media (max-width: 430px) {*/
/*  .amadex-modern-form { padding: 12px 10px 16px !important; border-radius: var(--amadex-radius-xl) !important; margin: 10px auto 16px !important; }*/
/*  .amadex-field-value, #modern-origin, #modern-destination { font-size: var(--amadex-font-sm) !important; }*/
/*  .amadex-trip-label { padding: 5px 8px !important; font-size: var(--amadex-font-xs) !important; }*/
/*  .amadex-field-value { padding: 9px 10px !important; }*/
/*  .amadex-search-btn { padding: 12px 20px !important; font-size: var(--amadex-font-lg) !important; border-radius: var(--amadex-radius-md) !important; margin-top: 12px !important; }*/
/*  .amadex-add-city-btn { padding: 8px 14px !important; font-size: var(--amadex-font-sm) !important; border-radius: 10px !important; }*/
/*  .amadex-remove-segment-btn { padding: 8px 14px !important; font-size: var(--amadex-font-sm) !important; }*/
/*  .amadex-calendar-day { width: 36px !important; height: 36px !important; font-size: var(--amadex-font-base) !important; }*/
/*  .amadex-flight-segment { padding: 0 !important; border-radius: var(--amadex-radius-md) !important; }*/
/*}*/


/* =============================================================
   27. GALAXY S24 ULTRA (≤ 412px)
   ============================================================= */
/*@media (max-width: 412px) {*/
/*  .amadex-modern-form { padding: 10px 8px 14px !important; margin: 8px auto 14px !important; }*/
/*  .amadex-trip-label { padding: 4px 6px !important; font-size: 10px !important; }*/
/*  .amadex-field-value { padding: 9px 10px !important; font-size: var(--amadex-font-base) !important; }*/
/*  .amadex-search-btn { padding: 10px 16px !important; font-size: var(--amadex-font-md) !important; }*/
/*  .amadex-calendar-day { width: 32px !important; height: 32px !important; font-size: var(--amadex-font-sm) !important; }*/
/*  .amadex-flight-segment { padding: 0 !important; }*/
/*}*/


/* =============================================================
   28. iPHONE SE (≤ 375px)
   ============================================================= */
/*@media only screen and (max-width: 375px) {*/
/*  .amadex-trip-label { padding: 8px 14px !important; font-size: var(--amadex-font-sm) !important; }*/
/*  .amadex-field-label { font-size: var(--amadex-font-xs) !important; display: block !important; visibility: visible !important; }*/
/*  .amadex-field-value { font-size: var(--amadex-font-md) !important; display: block !important; visibility: visible !important; }*/
/*  .amadex-field-description { font-size: var(--amadex-font-sm) !important; display: block !important; visibility: visible !important; }*/
/*  button.amadex-search-btn { height: 48px !important; font-size: var(--amadex-font-md) !important; }*/
/*  .amadex-swap-button { width: 32px !important; height: 32px !important; min-width: 32px !important; }*/
/*  .amadex-swap-button svg, .amadex-swap-button i { font-size: var(--amadex-font-md) !important; }*/
/*  .amadex-modern-field, #origin-field, #destination-field, #departure-field, #return-field, #travellers-field { display: flex !important; visibility: visible !important; opacity: 1 !important; }*/
/*}*/


/* =============================================================
   29. ACCESSIBILITY & PRINT
   ============================================================= */
/*@media (prefers-reduced-motion: reduce) {*/
/*  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }*/
/*}*/

/*@media (prefers-contrast: high) {*/
/*  .amadex-modern-form { border: 2px solid currentColor; }*/
/*  .amadex-search-btn { border: 2px solid currentColor; }*/
/*}*/

/*@media print {*/
/*  .amadex-search-modern { box-shadow: none; }*/
/*  .amadex-modern-form { box-shadow: none; border: 1px solid #000; }*/
/*}*/


/* =============================================================
   31. FRONTEND / LEGACY PLUGIN STYLES
   (amadex-flight-search-container component)
   ============================================================= */

/* Misc utility overrides */
/*.entry-content.clearbutton.amadex-book {*/
/*  padding: 14px 40px !important;*/
/*}*/

/*a.amadex-call {*/
/*  text-decoration: none !important;*/
/*}*/

/* --- Search Container --- */
/*.amadex-flight-search-container {*/
/*  max-width: 100%;*/
/*  margin: 0 auto 30px;*/
/*  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;*/
/*  color: var(--amadex-dark-bg);*/
/*  border-radius: var(--amadex-radius-sm);*/
/*  overflow: hidden;*/
/*  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
/*}*/

/* --- Themes --- */
/*.amadex-theme-light {*/
/*  background-color: var(--amadex-gray-light);*/
/*  border: 1px solid var(--amadex-ddd);*/
/*}*/

/*.amadex-theme-dark {*/
/*  background-color: var(--amadex-dark-bg);*/
/*  color: var(--amadex-gray-light);*/
/*  border: 1px solid var(--amadex-dark-bg-3);*/
/*}*/

/*.amadex-theme-dark .amadex-flight-search-header {*/
/*  background-color: var(--amadex-dark-bg-3);*/
/*}*/

/* --- Header --- */
/*.amadex-flight-search-header {*/
/*  padding: 15px 20px;*/
/*  background-color: #f1f1f1;*/
/*  border-bottom: 1px solid var(--amadex-ddd);*/
/*}*/

/*.amadex-flight-search-title {*/
/*  margin: 0;*/
/*  font-size: var(--amadex-font-3xl);*/
/*  font-weight: 600;*/
/*}*/

/* --- Form Container & Form --- */
/*.amadex-flight-search-form-container {*/
/*  padding: 20px;*/
/*}*/

/*.amadex-flight-search-form {*/
/*  display: block;*/
/*}*/

/*.amadex-form-row {*/
/*  display: flex;*/
/*  flex-wrap: wrap;*/
/*  margin: 0 -10px 15px;*/
/*}*/

/*.amadex-form-group {*/
/*  flex: 1 1 calc(50% - 20px);*/
/*  margin: 0 10px 15px;*/
/*  position: relative;*/
/*}*/

/*.amadex-form-group label {*/
/*  display: block;*/
/*  font-weight: 500;*/
/*  margin-bottom: 8px;*/
/*}*/

/*.amadex-form-group input,*/
/*.amadex-form-group select {*/
/*  width: 100%;*/
/*  padding: 10px;*/
/*  border: 1px solid var(--amadex-ddd);*/
/*  border-radius: 4px;*/
/*  font-size: var(--amadex-font-md);*/
/*  line-height: 1.5;*/
/*  box-sizing: border-box;*/
/*}*/

/*.amadex-form-help {*/
/*  display: block;*/
/*  font-size: var(--amadex-font-sm);*/
/*  color: var(--amadex-gray-500);*/
/*  margin-top: 5px;*/
/*}*/

/*.amadex-form-submit {*/
/*  display: flex;*/
/*  align-items: flex-end;*/
/*}*/

/* Legacy search button (.amadex-search-button — distinct from .amadex-search-btn) */
/*.amadex-search-button {*/
/*  background-color: var(--amadex-blue);*/
/*  color: var(--amadex-white);*/
/*  padding: 10px 20px;*/
/*  border: none;*/
/*  border-radius: 4px;*/
/*  font-size: var(--amadex-font-md);*/
/*  font-weight: 500;*/
/*  cursor: pointer;*/
/*  transition: background-color 0.2s ease;*/
/*}*/

/*.amadex-search-button:hover {*/
/*  background-color: var(--amadex-blue-dark);*/
/*}*/

/* --- Autocomplete (legacy component) --- */
/*.amadex-autocomplete-wrapper {*/
/*  position: relative;*/
/*  width: 100%;*/
/*}*/

/*.amadex-autocomplete-results {*/
/*  position: absolute;*/
/*  z-index: 9999;*/
/*  top: 100%;*/
/*  left: 0;*/
/*  right: 0;*/
/*  background: var(--amadex-white);*/
/*  border: 1px solid var(--amadex-ddd);*/
/*  border-top: none;*/
/*  max-height: 250px;*/
/*  overflow-y: auto;*/
/*  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
/*  display: none;*/
/*  border-radius: 0 0 4px 4px;*/
/*}*/

/*.amadex-theme-dark .amadex-autocomplete-results {*/
/*  background: var(--amadex-dark-bg-2);*/
/*  border-color: var(--amadex-dark-border);*/
/*  color: #eeeeee;*/
/*}*/

/*.amadex-autocomplete-item {*/
/*  padding: 10px 15px;*/
/*  cursor: pointer;*/
/*  border-bottom: 1px solid #eeeeee;*/
/*}*/

/*.amadex-theme-dark .amadex-autocomplete-item {*/
/*  border-color: var(--amadex-dark-border);*/
/*}*/

/*.amadex-autocomplete-item:last-child {*/
/*  border-bottom: none;*/
/*}*/

/*.amadex-autocomplete-item:hover {*/
/*  background-color: var(--amadex-gray-150);*/
/*}*/

/*.amadex-theme-dark .amadex-autocomplete-item:hover {*/
/*  background-color: var(--amadex-dark-bg);*/
/*}*/

/*button.amadex-details-toggle {*/
/*  margin-top: 10px;*/
/*}*/

/* --- Status messages --- */
/*.amadex-no-results,*/
/*.amadex-loading-results,*/
/*.amadex-error-results {*/
/*  padding: 10px 15px;*/
/*  font-style: italic;*/
/*  color: var(--amadex-gray-500);*/
/*}*/

/*.amadex-theme-dark .amadex-no-results,*/
/*.amadex-theme-dark .amadex-loading-results,*/
/*.amadex-theme-dark .amadex-error-results {*/
/*  color: #bbbbbb;*/
/*}*/

/*.amadex-error-results {*/
/*  color: var(--amadex-red-error);*/
/*}*/

/* --- Loading spinner --- */
/*.amadex-loading {*/
/*  text-align: center;*/
/*  padding: 20px;*/
/*}*/

/*.amadex-spinner {*/
/*  display: inline-block;*/
/*  width: 40px;*/
/*  height: 40px;*/
/*  border: 4px solid var(--amadex-blue-border);*/
/*  border-radius: 50%;*/
/*  border-top-color: var(--amadex-blue);*/
/*  animation: amadex-spin 1s ease-in-out infinite;*/
/*  margin-bottom: 10px;*/
/*}*/

/*@keyframes amadex-spin {*/
/*  to { transform: rotate(360deg); }*/
/*}*/

/* --- Flight Results --- */
/*.amadex-flight-results {*/
/*  padding: 20px;*/
/*}*/

/*.amadex-results-header {*/
/*  margin-bottom: 20px;*/
/*}*/

/*.amadex-results-header h2 {*/
/*  margin: 0;*/
/*  font-size: 24px;*/
/*  font-weight: 600;*/
/*}*/

/* --- Flight Cards --- */
/*.amadex-flight-cards {*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  gap: 20px;*/
/*}*/

/*.amadex-flight-card {*/
/*  position: relative;*/
/*  border: 1px solid var(--amadex-ddd);*/
/*  border-radius: var(--amadex-radius-sm);*/
/*  overflow: hidden;*/
/*  background-color: var(--amadex-white);*/
/*  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);*/
/*  padding: 20px;*/
/*  margin-bottom: 15px;*/
/*}*/

/*.amadex-theme-dark .amadex-flight-card {*/
/*  background-color: var(--amadex-dark-bg-2);*/
/*  border-color: var(--amadex-dark-border);*/
/*}*/

/*.amadex-price-badge {*/
/*  position: absolute;*/
/*  top: 20px;*/
/*  right: 20px;*/
/*  background-color: var(--amadex-blue);*/
/*  color: var(--amadex-white);*/
/*  padding: 8px 12px;*/
/*  border-radius: 4px;*/
/*  font-weight: 600;*/
/*  font-size: var(--amadex-font-xl);*/
/*}*/

/*.amadex-flight-summary {*/
/*  display: flex;*/
/*  justify-content: space-between;*/
/*  align-items: center;*/
/*  margin-bottom: 15px;*/
/*}*/

/*.amadex-flight-price {*/
/*  font-size: var(--amadex-font-3xl);*/
/*  font-weight: 600;*/
/*  color: var(--amadex-blue);*/
/*}*/

/*.amadex-flight-code {*/
/*  font-size: var(--amadex-font-md);*/
/*  color: var(--amadex-gray-500);*/
/*}*/

/*.amadex-theme-dark .amadex-flight-code {*/
/*  color: #cccccc;*/
/*}*/

/*.amadex-select-flight {*/
/*  display: block;*/
/*  width: 100%;*/
/*  padding: 10px;*/
/*  margin-top: 15px;*/
/*  background-color: var(--amadex-blue);*/
/*  color: var(--amadex-white);*/
/*  border: none;*/
/*  border-radius: 4px;*/
/*  font-size: var(--amadex-font-md);*/
/*  font-weight: 500;*/
/*  cursor: pointer;*/
/*  text-align: center;*/
/*}*/

/*.amadex-select-flight:hover {*/
/*  background-color: var(--amadex-blue-dark);*/
/*}*/

/* --- Frontend responsive --- */
/*@media (max-width: 768px) {*/
/*  .amadex-form-row {*/
/*    flex-direction: column;*/
/*  }*/

/*  .amadex-form-group {*/
/*    flex: 1 1 100%;*/
/*    margin: 0 0 15px 0;*/
/*  }*/
/*}*/



@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes expandForm {
  from { opacity: 0.9; }
  to   { opacity: 1; }
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateAnticlockwise {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-180deg); }
}

@keyframes rotateAnticlockwisePositioned {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(-180deg); }
}

@keyframes formEntrance {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.amadex-modern-form { animation: formEntrance 0.6s var(--amadex-ease); }


/* =============================================================
   32. Enhanced Styles — Results Page, Filters, Boarding Pass
       Flight Cards, Promotional Containers, Animations,
       Modals, Call Banners, Passengers & Cabin
       (Source: amadex.css — Phase 5 merge)
   ============================================================= */

/* --- Reset additions --- */
/* box-sizing already set globally; body font-family handled by theme */
.amadex-search,
.amadex-results-page,
.amadex-modal {
  line-height: 1.6;
  color: #333;
}

.amadex-call-now-banner {
  display: none;
}

a.amadex-price-box-call.amadex-call-btn {
  justify-content: center;
}

/* --- Search Form (.amadex-search card) --- */
.amadex-search {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 20px 0;
}

.amadex-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: end;
}

button.amadex-flight-continue-btn.amadex-book-now-btn {
  max-width: 40%;
}

.amadex-field {
  display: flex;
  flex-direction: column;
}

.amadex-field label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.amadex-field input,
.amadex-field select {
  padding: 8px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.amadex-trip-types {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}

.amadex-trip-types label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
  cursor: pointer;
}

.amadex-button {
  background: linear-gradient(135deg, #007cba, #005a87);
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 200px;
}

.amadex-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
}

/* Results Page Styles */
.amadex-results-page {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Search Bar Wrapper - Full Width */
.amadex-search-bar-wrapper {
    width: 100%;
    margin: 0 auto;
    background-color: #EEF9F2;
    padding: 24px 0;
    position: relative !important;
    z-index: 25 !important;
}

.amadex-search-bar-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 20px;
    background: #eef9f2;
    border-radius: 20px;
    position: relative;
    z-index: 26;
}

/* Align search bar container with results container on tablets and larger screens */
@media only screen and (min-width: 768px) {
    .amadex-search-bar-wrapper {
        width: 100%;
    }
    
    .amadex-search-bar-container {
        max-width: 1500px;
        padding: 10px 20px;
    }
}

/* Fix conflict with dst-adivaha-wrapper */
.dst-adivaha-wrapper.js-dst-adivaha-wrapper.container.dst-wrapper.wp-block-ds-blocks-dst-wrapper {
    z-index: 10 !important;
}

.dst-adivaha-wrapper.js-dst-adivaha-wrapper.container.dst-wrapper.wp-block-ds-blocks-dst-wrapper.is-fixed {
    z-index: 15 !important;
}

/* Ensure search bar stays above dst-wrapper */
.amadex-search-bar-wrapper ~ .dst-adivaha-wrapper,
.dst-adivaha-wrapper ~ .amadex-search-bar-wrapper {
    position: relative;
}

/* Search Header */
.amadex-search-header {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amadex-search-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.amadex-route {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.amadex-dates,
.amadex-passengers,
.amadex-class {
    font-size: 14px;
    color: #666;
}

.amadex-search-again-btn {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Results Content - Full Width with Red Background */
.amadex-results-content-wrapper {
    width: 100%;
    background-color: #EEF9F2;
    padding: 24px 0;
}

.amadex-results-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Filters Sidebar - Desktop Only (Hidden on Mobile 320px-767px) */
.amadex-filters-sidebar {
    padding: 15px;
    position: sticky;
    top: 24px;
    height: fit-content;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 0px 0px 15px #00000029;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
    /* Hide scrollbar while maintaining scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.amadex-filters-sidebar::-webkit-scrollbar {
    display: none;
}

/* Hide filters sidebar on mobile devices (320px - 767px) */
@media only screen and (min-width: 320px) and (max-width: 767px) {
    .amadex-filters-sidebar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Exception: Show sidebar only inside mobile filter modal */
    .amadex-mobile-filter-modal .amadex-filters-sidebar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
        left: auto !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-direction: column !important;
    }
}

/* Ensure filters sidebar is visible on desktop (768px and above) */
@media only screen and (min-width: 768px) {
    .amadex-filters-sidebar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: sticky !important;
        height: fit-content !important;
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        width: auto !important;
        padding: 15px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

.amadex-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.amadex-filters-label {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    margin-bottom: 0!important;
}



.amadex-results-count {
    display: block;
    font-size: 13px;
    color: #6B7280;
    margin-top: 4px;
    display: none;
}

.amadex-clear-filters {
    background: #F0FDF4;
    border: 1px solid #C4E5D3;
    color: #0E7D3F;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amadex-clear-filters:hover {
    background: #0E7D3F;
    color: #ffffff;
}

.amadex-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.amadex-filter-tags:empty {
    display: none;
}

.amadex-filter-tag {
    background: #F0FFF7 0% 0% no-repeat padding-box;
    border: 1px solid #0E7D3F;
    border-radius: 13px;
    color: #000000;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.amadex-filter-tag svg {
    width: 10px;
    height: 10px;
    stroke: rgb(14 125 63);
    background: #FFF;
}

.amadex-filter-tag:hover {
    background: #0E7D3F;
    color: #ffffff;
}

.amadex-filter-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.amadex-filter-group {
    border-top: 1px solid #E6E6E6;
    padding: 20px 0;
}

.amadex-filter-group h4 {
    margin: 0;
    color: #000000;
    font-size: 16px;
   font-weight:700;
}
    

.amadex-filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amadex-filter-option {
    display: block;
    /* background: #ffffff;
    border: 1px solid #E2E8F0; */
    border-radius: 18px;
    padding: 5px 14px 5px 48px;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 40px;
}

.amadex-filter-option input[type="checkbox"] {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #D1D5DB;
    appearance: none;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amadex-filter-option input[type="checkbox"]::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 2px;
    left: 5px;
    opacity: 0;
}

/* .amadex-filter-option.is-checked {
    border-color: #0E7D3F;
    box-shadow: 0 10px 25px rgba(14,125,63,0.15);
} */

span.amadex-filter-price {
    display: none !important;
}

.amadex-filter-option input[type="checkbox"]:checked {
    background: #0E7D3F;
    border-color: #0E7D3F;
}

.amadex-filter-option input[type="checkbox"]:checked::after {
    opacity: 1;
}

.amadex-filter-option .amadex-filter-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #111827;
    line-height:30px;
}

.amadex-filter-option .amadex-filter-time,
.amadex-filter-option .amadex-filter-price {
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
    display: block;
}

.amadex-filter-option.is-checked .amadex-filter-label,
.amadex-filter-option.is-checked .amadex-filter-time,
.amadex-filter-option.is-checked .amadex-filter-price {
    color: #0E7D3F;
}

.amadex-filter-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.amadex-filter-time-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

div#amadex-stops-filter {
    display: flex;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .amadex-filter-time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.amadex-time-card {
    padding: 50px 6px 10px;
    min-height: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 15px;
    border: 1px solid #D1D5DB;
    position: relative;
    background: #ffffff;
}

.amadex-time-card input[type="checkbox"] {
    opacity: 0;
    pointer-events: none;
}

.amadex-time-icon {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 14px;
    /* background: #F3F4F6;
    color: #0E7D3F; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.amadex-time-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    stroke: none;
}

.amadex-time-card .amadex-filter-label {
    font-size: 14px;
    font-weight: 400;
    color: #111827;
    line-height: 1.5;
}

.amadex-time-card .amadex-filter-time {
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    display: none;
}

.amadex-time-card.is-checked {
    background: #0E7D3F;
    color: #ffffff;
    border-color: #0E7D3F;
    /* box-shadow: 0 14px 26px rgba(14,125,63,0.25); */
}

.amadex-time-card.is-checked .amadex-time-icon {
    /* background: rgba(255,255,255,0.2); */
    color: #ffffff;
}

.amadex-time-card.is-checked .amadex-filter-label,
.amadex-time-card.is-checked .amadex-filter-time {
    color: #ffffff;
}

.amadex-filter-options.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.amadex-price-values,
.amadex-duration-values {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #0E7D3F;
    font-weight: 600;
    justify-content: space-between;
}

span#amadex-duration-min-display {
    margin-top: 14px;
    color: #000000;
    font-weight: 400;
}

span#amadex-duration-max-display  {
    margin-top: 14px;
    color: #000000;
    font-weight: 400;
}
.amadex-price-divider {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #0E7D3F 0%, #34D399 100%);
    border-radius: 999px;
}

.amadex-price-range,
.amadex-duration-range {
    padding: 8px 0 0;
}

.amadex-price-slider,
.amadex-duration-slider {
    position: relative;
    padding: 12px 0;
    height: 32px;
}

.amadex-price-slider input[type="range"],
.amadex-duration-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 32px;
    margin: 0;
    background: transparent;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.amadex-price-slider input[type="range"]::-webkit-slider-thumb,
.amadex-duration-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #0E7D3F;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    pointer-events: auto;
}

.amadex-price-slider input[type="range"]::-moz-range-thumb,
.amadex-duration-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #0E7D3F;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    pointer-events: auto;
}

.amadex-price-slider-track,
.amadex-duration-slider-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    border-radius: 999px;
    background: #0E7D3F;
}

/* --- Modern Flight Card Layout --- */
/* Promotional Containers Styles */
.amadex-promotional-container {
    margin-bottom: 20px;
    transition: all 0.3s ease;
    
    /* CSS Variables for Precision Size Controls - Set inline by renderer */
    width: var(--pc-width, 100%);
    height: var(--pc-height, auto);
    min-width: var(--pc-min-width, 0);
    max-width: var(--pc-max-width, none);
    min-height: var(--pc-min-height, 0);
    max-height: var(--pc-max-height, none);
}

.amadex-promotional-container.amadex-promo-width-full {
    width: var(--pc-width, 100%);
}

.amadex-promotional-container.amadex-promo-width-compact {
    width: var(--pc-width, 65%);
    margin-left: auto;
    margin-right: auto;
}

.amadex-promotional-container.amadex-promo-width-mini {
    width: var(--pc-width, 45%);
    margin-left: auto;
    margin-right: auto;
}

.amadex-promo-content {
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: var(--pc-border-radius, 8px);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    
    /* CSS Variables for Padding - Set inline by renderer */
    /* Priority: individual > X/Y > uniform */
    /* If individual padding values are set, use them; otherwise fall back to uniform padding */
    padding-top: var(--pc-padding-top, var(--pc-padding, 20px));
    padding-right: var(--pc-padding-right, var(--pc-padding, 20px));
    padding-bottom: var(--pc-padding-bottom, var(--pc-padding, 20px));
    padding-left: var(--pc-padding-left, var(--pc-padding, 20px));
    
    /* CSS Variables for Gap (Grid Spacing) - Set inline by renderer */
    column-gap: var(--pc-gap-column, 20px);
    row-gap: var(--pc-gap-row, 20px);
    gap: var(--pc-gap-column, 20px) var(--pc-gap-row, 20px);
    
    /* Compactness adjustment - reduces spacing when compactness > 50% */
    /* Compactness is 0-1 scale (0 = spacious, 1 = compact) */
    /* Formula: multiplier = 1.2 - (compactness * 0.6) */
    /* At 0% (0.0): 1.2x spacing (spacious) */
    /* At 50% (0.5): 1.0x spacing (normal) */
    /* At 100% (1.0): 0.6x spacing (compact) */
    --compactness-factor: var(--pc-compactness, 0.5);
    --compactness-multiplier: calc(1.2 - var(--compactness-factor) * 0.6);
    
    /* Apply compactness to gap only (padding is controlled directly via CSS variables) */
    column-gap: calc(var(--pc-gap-column, 20px) * var(--compactness-multiplier));
    row-gap: calc(var(--pc-gap-row, 20px) * var(--compactness-multiplier));
}

.amadex-promotional-container:hover .amadex-promo-content {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Price Alert Container */
.amadex-promo-type-price_alert .amadex-promo-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #0e7d3f;
}

.amadex-promo-type-price_alert .amadex-promo-title {
    color: #0e7d3f;
    margin-bottom: 8px;
    font-size: calc(18px * var(--pc-typography-scale, 1.0));
    font-weight: 600;
}

.amadex-promo-type-price_alert .amadex-promo-description {
    color: #6b7280;
    margin-bottom: 0;
    font-size: calc(14px * var(--pc-typography-scale, 1.0));
}

.amadex-promo-type-price_alert .amadex-promo-form {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.amadex-promo-email-input,
.amadex-promo-phone-input {
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}


/* Airline Ad Container */
.amadex-promo-type-airline_ad .amadex-promo-content {
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
    border-left: 4px solid #f59e0b;
}

.amadex-promo-airline-logo {
    flex-shrink: 0;
}

.amadex-promo-airline-logo img {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
}

.amadex-promo-offer {
    color: #f59e0b;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 14px;
}

/* Product Cross-Sell Container */
.amadex-promo-type-product_cross_sell .amadex-promo-content {
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
    border-left: 4px solid #0284c7;
}

.amadex-promo-image {
    flex-shrink: 0;
}

.amadex-promo-image img {
    max-width: 100px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 6px;
}

/* Callback Container */
.amadex-promo-type-callback .amadex-promo-content {
    background: linear-gradient(135deg, #fce7f3 0%, #ffffff 100%);
    border-left: 4px solid #db2777;
    flex-direction: column;
    align-items: stretch;
}

.amadex-promo-type-callback .amadex-promo-form {
    margin-left: 0;
    margin-top: 15px;
}

.amadex-promo-message {
    margin-top: 10px;
    padding: 10px;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 6px;
    color: #166534;
    font-size: 14px;
}

/* Ad Slot Container */
.amadex-promo-type-ad .amadex-promo-content {
    padding: 15px;
    text-align: center;
    flex-direction: column;
}

.amadex-promo-ad-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 6px;
}

.amadex-promo-ad-link {
    display: block;
    text-decoration: none;
}

.amadex-promo-ad-link:hover {
    opacity: 0.9;
}

/* Promotional Button */
.amadex-promo-button {
    padding: 10px 20px;
    background: #0e7d3f;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.amadex-promo-button:hover {
    background: #0a5d2e;
    transform: translateY(-1px);
}

.amadex-promo-button:active {
    transform: translateY(0);
}

.amadex-promo-link {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* Promotional Text */
.amadex-promo-text {
    flex: 1;
}

.amadex-promo-title {
    margin: 0 0 8px 0;
    font-size: calc(18px * var(--pc-typography-scale, 1.0));
    font-weight: 600;
    color: #1f2937;
}

.amadex-promo-description {
    margin: 0;
    font-size: calc(14px * var(--pc-typography-scale, 1.0));
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .amadex-promotional-container.amadex-promo-width-compact,
    .amadex-promotional-container.amadex-promo-width-mini {
        width: 100%;
    }
    
    .amadex-promo-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .amadex-promo-type-price_alert .amadex-promo-form {
        margin-left: 0;
        flex-direction: column;
    }
    
    .amadex-promo-email-input,
    .amadex-promo-phone-input {
        min-width: 100%;
        width: 100%;
    }
    
    .amadex-promo-button {
        width: 100%;
    }
    
    .amadex-promo-image,
    .amadex-promo-airline-logo {
        align-self: center;
    }
}

/* ============================================
 * Template-Based Promotional Containers
 * ============================================
 */

/* Native Inline Card Template */
.amadex-template-native-inline-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.amadex-template-native-inline-card .amadex-template-image {
    flex-shrink: 0;
}

.amadex-template-native-inline-card .amadex-template-image img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 6px;
}

.amadex-template-native-inline-card .amadex-template-text {
    flex: 1;
}

.amadex-template-native-inline-card .amadex-template-action {
    flex-shrink: 0;
}

/* Itinerary Promo Template */
.amadex-template-itinerary-promo {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
}

.amadex-template-itinerary-promo .amadex-template-destination,
.amadex-template-itinerary-promo .amadex-template-dates {
    margin-top: 8px;
    font-size: 13px;
}

.amadex-template-itinerary-promo .amadex-template-dates {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.amadex-template-itinerary-promo .amadex-template-price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Three Agent Cards Template */
.amadex-template-three-agent-cards .amadex-template-header {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    text-align: center;
}

.amadex-template-three-agent-cards .amadex-template-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.amadex-template-card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amadex-template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.amadex-template-card-image {
    margin-bottom: 10px;
}

.amadex-template-card-image img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.amadex-template-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.amadex-template-card-description {
    font-size: 13px;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

/* Two Column Feature Template */
.amadex-template-two-column-feature .amadex-template-header {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    text-align: center;
}

.amadex-template-two-column-feature .amadex-template-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.amadex-template-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.amadex-template-column-image img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.amadex-template-column-content {
    line-height: 1.6;
}

/* Hero Spotlight Template */
.amadex-template-hero-spotlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    padding: 40px 20px;
    position: relative;
}

.amadex-template-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.1;
}

.amadex-template-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amadex-template-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.amadex-template-hero-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.amadex-template-hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.amadex-template-hero-description {
    font-size: 18px;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.amadex-template-hero-button {
    font-size: 18px;
    padding: 15px 40px;
}

/* Promo Carousel Template */
.amadex-template-promo-carousel .amadex-template-header {
    margin-bottom: 20px;
    text-align: center;
}

.amadex-template-carousel-wrapper {
    position: relative;
}

.amadex-template-carousel-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.amadex-template-carousel-slides::-webkit-scrollbar {
    display: none;
}

.amadex-template-carousel-slide {
    min-width: 100%;
    scroll-snap-align: start;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
}

.amadex-template-carousel-image img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
}

.amadex-template-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.amadex-template-carousel-prev,
.amadex-template-carousel-next {
    background: #0e7d3f;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.amadex-template-carousel-prev:hover,
.amadex-template-carousel-next:hover {
    background: #0a5d2e;
}

.amadex-template-carousel-dots {
    display: flex;
    gap: 8px;
}

/* Video Promo Tile Template */
.amadex-template-video-promo-tile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.amadex-template-video-thumbnail {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.amadex-template-video-thumbnail img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.amadex-template-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.amadex-template-video-thumbnail:hover .amadex-template-video-play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.amadex-template-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.amadex-template-video-link {
    text-decoration: none;
    display: block;
}

/* Responsive Styles for Templates */
@media (max-width: 1024px) {
    .amadex-template-itinerary-promo {
        grid-template-columns: 1fr 1fr;
    }
    
    .amadex-template-three-agent-cards .amadex-template-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .amadex-template-native-inline-card,
    .amadex-template-itinerary-promo,
    .amadex-template-video-promo-tile {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .amadex-template-three-agent-cards .amadex-template-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .amadex-template-two-column-feature .amadex-template-columns {
        grid-template-columns: 1fr;
    }
    
    .amadex-template-hero-spotlight {
        min-height: 300px;
        padding: 30px 15px;
    }
    
    .amadex-template-hero-title {
        font-size: 28px;
    }
    
    .amadex-template-hero-description {
        font-size: 16px;
    }
    
    .amadex-template-carousel-slide {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .amadex-template-video-thumbnail img {
        width: 100%;
        height: auto;
    }
}

/* ============================================
 * Skyscanner-Inspired Container Types
 * Standard display banners and native formats
 * ============================================
 */

/* Standard Display Banners - Fixed Dimensions */

/* 320×50 - Mobile Leaderboard */
.amadex-container-type-320x50 {
    width: 320px !important;
    height: 50px !important;
    max-width: 320px !important;
    min-width: 300px !important;
    max-height: 60px !important;
    min-height: 50px !important;
    margin: 0 auto;
}

.amadex-container-type-320x50 .amadex-promo-content {
    padding: 5px 10px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
}

.amadex-container-type-320x50 .amadex-promo-title {
    font-size: 12px !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amadex-container-type-320x50 .amadex-promo-description {
    display: none;
}

.amadex-container-type-320x50 .amadex-promo-button {
    padding: 6px 12px !important;
    font-size: 11px !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 320×100 - Mobile Large Banner */
.amadex-container-type-320x100 {
    width: 320px !important;
    height: 100px !important;
    max-width: 320px !important;
    min-width: 300px !important;
    max-height: 120px !important;
    min-height: 90px !important;
    margin: 0 auto;
}

.amadex-container-type-320x100 .amadex-promo-content {
    padding: 8px 12px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
}

.amadex-container-type-320x100 .amadex-promo-title {
    font-size: 14px !important;
    margin: 0 0 4px 0 !important;
}

.amadex-container-type-320x100 .amadex-promo-description {
    font-size: 11px !important;
    margin: 0 !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.amadex-container-type-320x100 .amadex-promo-button {
    padding: 8px 16px !important;
    font-size: 12px !important;
    flex-shrink: 0;
}

/* 300×250 - Medium Rectangle */
.amadex-container-type-300x250 {
    width: 300px !important;
    height: 250px !important;
    max-width: 320px !important;
    min-width: 280px !important;
    max-height: 270px !important;
    min-height: 230px !important;
    margin: 0 auto;
}

.amadex-container-type-300x250 .amadex-promo-content {
    padding: 15px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    text-align: center;
}

.amadex-container-type-300x250 .amadex-promo-title {
    font-size: 16px !important;
    margin: 0 0 8px 0 !important;
}

.amadex-container-type-300x250 .amadex-promo-description {
    font-size: 13px !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.amadex-container-type-300x250 .amadex-promo-image img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.amadex-container-type-300x250 .amadex-promo-button {
    width: 100%;
    padding: 10px !important;
    font-size: 13px !important;
}

/* 728×90 - Leaderboard */
.amadex-container-type-728x90 {
    width: 728px !important;
    height: 90px !important;
    max-width: 750px !important;
    min-width: 700px !important;
    max-height: 95px !important;
    min-height: 85px !important;
    margin: 0 auto;
}

.amadex-container-type-728x90 .amadex-promo-content {
    padding: 10px 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
}

.amadex-container-type-728x90 .amadex-promo-title {
    font-size: 18px !important;
    margin: 0 0 4px 0 !important;
}

.amadex-container-type-728x90 .amadex-promo-description {
    font-size: 13px !important;
    margin: 0 !important;
    line-height: 1.3;
}

.amadex-container-type-728x90 .amadex-promo-button {
    padding: 10px 24px !important;
    font-size: 14px !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 300×600 - Half Page */
.amadex-container-type-300x600 {
    width: 300px !important;
    height: 600px !important;
    max-width: 320px !important;
    min-width: 280px !important;
    max-height: 620px !important;
    min-height: 580px !important;
    margin: 0 auto;
}

.amadex-container-type-300x600 .amadex-promo-content {
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
}

.amadex-container-type-300x600 .amadex-promo-title {
    font-size: 20px !important;
    margin: 0 0 12px 0 !important;
}

.amadex-container-type-300x600 .amadex-promo-description {
    font-size: 14px !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.5;
    flex: 1;
}

.amadex-container-type-300x600 .amadex-promo-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.amadex-container-type-300x600 .amadex-promo-button {
    width: 100%;
    padding: 12px !important;
    font-size: 14px !important;
    margin-top: auto;
}

/* Native & Custom Formats */

/* Native Inline Card */
.amadex-container-type-native-inline {
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;
    margin: 0 auto;
}

.amadex-container-type-native-inline .amadex-promo-content {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Itinerary Style Native */
.amadex-container-type-itinerary-native {
    width: 100% !important;
    max-width: 800px !important;
    height: auto !important;
    min-height: 120px !important;
    margin: 0 auto;
}

.amadex-container-type-itinerary-native .amadex-promo-content {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Brand Banner */
.amadex-container-type-brand-banner {
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;
    min-height: 200px !important;
    max-height: 600px !important;
    margin: 0 auto;
}

.amadex-container-type-brand-banner .amadex-promo-content {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 40px !important;
    text-align: center;
}

.amadex-container-type-brand-banner .amadex-promo-title {
    font-size: 32px !important;
    margin: 0 0 15px 0 !important;
}

.amadex-container-type-brand-banner .amadex-promo-description {
    font-size: 18px !important;
    margin: 0 0 25px 0 !important;
}

.amadex-container-type-brand-banner .amadex-promo-button {
    padding: 15px 40px !important;
    font-size: 16px !important;
}

/* Carousel */
.amadex-container-type-carousel {
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;
    min-height: 200px !important;
    max-height: 500px !important;
    margin: 0 auto;
}

.amadex-container-type-carousel .amadex-promo-content {
    border-radius: 12px;
    overflow: hidden;
}

/* Hero Takeover */
.amadex-container-type-hero-takeover {
    width: 100% !important;
    height: auto !important;
    min-height: 400px !important;
    max-height: 800px !important;
    margin: 0;
}

.amadex-container-type-hero-takeover .amadex-promo-content {
    border-radius: 0;
    padding: 60px 40px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.amadex-container-type-hero-takeover .amadex-promo-title {
    font-size: 48px !important;
    margin: 0 0 20px 0 !important;
    font-weight: 700;
}

.amadex-container-type-hero-takeover .amadex-promo-description {
    font-size: 22px !important;
    margin: 0 0 30px 0 !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.amadex-container-type-hero-takeover .amadex-promo-button {
    padding: 18px 50px !important;
    font-size: 18px !important;
}

/* In-Banner Video */
.amadex-container-type-in-banner-video {
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;
    min-height: 200px !important;
    max-height: 600px !important;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.amadex-container-type-in-banner-video .amadex-promo-content {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding: 0 !important;
}

.amadex-container-type-in-banner-video .amadex-promo-content::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

/* Responsive Styles for Container Types */
@media (max-width: 1024px) {
    .amadex-container-type-728x90 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: 90px !important;
    }
    
    .amadex-container-type-300x600 {
        width: 100% !important;
        max-width: 400px !important;
        height: auto !important;
        min-height: 400px !important;
    }
    
    .amadex-container-type-hero-takeover {
        min-height: 350px !important;
    }
    
    .amadex-container-type-hero-takeover .amadex-promo-title {
        font-size: 36px !important;
    }
    
    .amadex-container-type-hero-takeover .amadex-promo-description {
        font-size: 18px !important;
    }
}

@media (max-width: 767px) {
    .amadex-container-type-320x50,
    .amadex-container-type-320x100 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    
    .amadex-container-type-300x250 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        min-height: 250px !important;
    }
    
    .amadex-container-type-728x90 {
        height: auto !important;
        min-height: 90px !important;
    }
    
    .amadex-container-type-300x600 {
        height: auto !important;
        min-height: 300px !important;
    }
    
    .amadex-container-type-hero-takeover {
        min-height: 300px !important;
        padding: 40px 20px !important;
    }
    
    .amadex-container-type-hero-takeover .amadex-promo-title {
        font-size: 28px !important;
    }
    
    .amadex-container-type-hero-takeover .amadex-promo-description {
        font-size: 16px !important;
    }
    
    .amadex-container-type-brand-banner {
        padding: 30px 20px !important;
    }
    
    .amadex-container-type-brand-banner .amadex-promo-title {
        font-size: 24px !important;
    }
    
    .amadex-container-type-brand-banner .amadex-promo-description {
        font-size: 16px !important;
    }
}

/* ============================================
   PREMIUM PROMOTIONAL CONTAINER ANIMATIONS
   Million-Dollar Quality Animations
   ============================================ */

/* Mobile performance optimizations */
@media (max-width: 767px) {
    .amadex-animation-mobile-disabled,
    .amadex-animation-mobile-disabled *,
    .amadex-animation-mobile-disabled::before,
    .amadex-animation-mobile-disabled::after {
        animation: none !important;
    }
}

/* 1. SHINE/SHIMMER - Enhanced premium light sweep effect with intensity */
@keyframes amadex-shine {
    0% {
        transform: translateX(-160%) skewX(-20deg);
        opacity: 0;
    }
    10% {
        opacity: calc(0.2 + (0.7 * var(--amadex-intensity, 0.5)));
    }
    35% {
        opacity: 0;
    }
    100% {
        transform: translateX(260%) skewX(-20deg);
        opacity: 0;
    }
}

.amadex-promotional-container.amadex-animation-shine {
    --amadex-intensity: 0.5;
    position: relative !important;
    overflow: hidden !important;
}

.amadex-promotional-container.amadex-animation-shine::after {
    content: "";
    position: absolute;
    inset: 0;
    width: calc(40% + (40% * var(--amadex-intensity, 0.5)));
    background: rgba(255, 255, 255, calc(0.5 + (0.5 * var(--amadex-intensity, 0.5))));
    mix-blend-mode: overlay;
    transform: translateX(-160%) skewX(-20deg);
    animation: amadex-shine 2.4s linear infinite;
    pointer-events: none;
    z-index: 10;
    will-change: transform, opacity;
}

/* 2. PULSE - Enhanced smooth breathing effect with intensity */
@keyframes amadex-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(calc(1 + (0.15 * var(--amadex-intensity, 0.5))));
        opacity: calc(1 - (0.1 * var(--amadex-intensity, 0.5)));
    }
}

.amadex-promotional-container.amadex-animation-pulse {
    --amadex-intensity: 0.5;
    animation: amadex-pulse var(--amadex-duration, 2s) cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation-delay: var(--amadex-delay, 0s);
    will-change: transform;
}

/* 3. FADE IN - Enhanced elegant entrance with intensity */
@keyframes amadex-fade-in {
    0% {
        opacity: 0;
        transform: translateY(calc(20px * var(--amadex-intensity, 0.5)));
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.amadex-promotional-container.amadex-animation-fade_in {
    --amadex-intensity: 0.5;
    animation: amadex-fade-in var(--amadex-duration, 0.8s) cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    animation-delay: var(--amadex-delay, 0s);
    will-change: transform, opacity;
}

/* 4. SLIDE IN LEFT - Enhanced dynamic entrance with intensity */
@keyframes amadex-slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(calc(-300px * var(--amadex-intensity, 0.5)));
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.amadex-animation-slide_in_left {
    --amadex-intensity: 0.5;
    animation: amadex-slide-in-left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: transform, opacity;
}

/* 5. SLIDE IN RIGHT - Enhanced dynamic entrance with intensity */
@keyframes amadex-slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(calc(300px * var(--amadex-intensity, 0.5)));
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.amadex-animation-slide_in_right {
    --amadex-intensity: 0.5;
    animation: amadex-slide-in-right 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: transform, opacity;
}

/* 6. BOUNCE - Enhanced playful entrance with intensity */
@keyframes amadex-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(calc(-40px * var(--amadex-intensity, 0.5)));
    }
    60% {
        transform: translateY(calc(-20px * var(--amadex-intensity, 0.5)));
    }
}

.amadex-animation-bounce {
    --amadex-intensity: 0.5;
    animation: amadex-bounce 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    will-change: transform;
}

/* 7. GLOW - Enhanced pulsing glow effect with intensity */
@keyframes amadex-glow {
    0%, 100% {
        box-shadow: 0 0 calc(3px + (7px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.2 + (0.3 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(6px + (14px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.15 + (0.25 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(9px + (21px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.1 + (0.2 * var(--amadex-intensity, 0.5))));
    }
    50% {
        box-shadow: 0 0 calc(6px + (14px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.4 + (0.5 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(12px + (28px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.3 + (0.4 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(18px + (42px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.2 + (0.3 * var(--amadex-intensity, 0.5))));
    }
}

.amadex-animation-glow {
    --amadex-intensity: 0.5;
}

.amadex-promotional-container.amadex-animation-glow .amadex-promo-content {
    animation: amadex-glow var(--amadex-duration, 2s) cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation-delay: var(--amadex-delay, 0s);
    will-change: box-shadow;
}

/* 8. ROTATE - Enhanced continuous rotation with intensity (speed) */
.amadex-animation-rotate {
    --amadex-intensity: 0.5;
    animation: amadex-rotate calc(30s - (27s * var(--amadex-intensity, 0.5))) linear infinite;
    will-change: transform;
}

@keyframes amadex-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.amadex-animation-rotate .amadex-promo-content {
    animation: none; /* Prevent double animation */
}

/* 9. BLINK - Enhanced attention-grabbing blink with intensity */
@keyframes amadex-blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: calc(0.5 - (0.5 * var(--amadex-intensity, 0.5)));
    }
}

.amadex-animation-blink {
    --amadex-intensity: 0.5;
    animation: amadex-blink 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: opacity;
}

/* 10. GRADIENT SHIFT - Animated gradient background */
@keyframes amadex-gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.amadex-promotional-container.amadex-animation-gradient_shift .amadex-promo-content {
    background: linear-gradient(-45deg, #f8f9fa, #ffffff, #e8f5e9, #f8f9fa);
    background-size: 400% 400%;
    animation: amadex-gradient-shift var(--amadex-duration, 4s) ease infinite !important;
    animation-delay: var(--amadex-delay, 0s);
}

/* 11. FLOAT - Enhanced gentle up/down movement with intensity */
@keyframes amadex-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(calc(-25px * var(--amadex-intensity, 0.5)));
    }
}

.amadex-promotional-container.amadex-animation-float {
    --amadex-intensity: 0.5;
    animation: amadex-float var(--amadex-duration, 3s) cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation-delay: var(--amadex-delay, 0s);
    will-change: transform;
}

/* 12. SHAKE - Enhanced shake effect with intensity */
@keyframes amadex-shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(calc(-15px * var(--amadex-intensity, 0.5)));
    }
    20%, 40%, 60%, 80% {
        transform: translateX(calc(15px * var(--amadex-intensity, 0.5)));
    }
}

.amadex-animation-shake {
    --amadex-intensity: 0.5;
    animation: amadex-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
    will-change: transform;
}

/* 13. ZOOM IN - Enhanced scale entrance with intensity */
@keyframes amadex-zoom-in {
    0% {
        transform: scale(calc(0.95 - (0.45 * var(--amadex-intensity, 0.5))));
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.amadex-animation-zoom_in {
    --amadex-intensity: 0.5;
    animation: amadex-zoom-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    will-change: transform, opacity;
}

/* 14. GLAZING - Enhanced premium frosted glass effect with intensity */
@keyframes amadex-glazing-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)));
    }
    100% {
        transform: translateX(200%) translateY(200%) rotate(45deg);
        opacity: 0;
    }
}

.amadex-promotional-container.amadex-animation-glazing {
    --amadex-intensity: 0.5;
    position: relative !important;
    overflow: hidden !important;
}

.amadex-promotional-container.amadex-animation-glazing::before {
    content: "" !important;
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)))) 50%,
        transparent 70%
    );
    animation-name: amadex-glazing-shine !important;
    animation-duration: var(--amadex-duration, 3s) !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-delay: var(--amadex-delay, 0s);
    pointer-events: none;
    z-index: 11;
    will-change: transform, opacity;
}

/* Handle case where duration is set to "infinite" (should be iteration-count, not duration) */
.amadex-promotional-container.amadex-animation-glazing[style*="--amadex-duration: infinite"]::before {
    animation-duration: 3s !important;
}

.amadex-promotional-container.amadex-animation-glazing .amadex-promo-content {
    backdrop-filter: blur(calc(5px + (10px * var(--amadex-intensity, 0.5))));
    background: rgba(255, 255, 255, calc(0.85 + (0.15 * var(--amadex-intensity, 0.5))));
    position: relative;
    z-index: 1;
}

/* 15. WAVE - Enhanced ocean-like wave motion with intensity */
@keyframes amadex-wave {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(calc(-10px * var(--amadex-intensity, 0.5))) rotate(calc(2deg * var(--amadex-intensity, 0.5)));
    }
    50% {
        transform: translateY(calc(-16px * var(--amadex-intensity, 0.5))) rotate(0deg);
    }
    75% {
        transform: translateY(calc(-10px * var(--amadex-intensity, 0.5))) rotate(calc(-2deg * var(--amadex-intensity, 0.5)));
    }
}

.amadex-animation-wave {
    --amadex-intensity: 0.5;
    animation: amadex-wave 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
}

/* 16. NEON GLOW - Enhanced cyberpunk-style neon border glow with intensity */
@keyframes amadex-neon-glow {
    0%, 100% {
        box-shadow: 0 0 calc(5px + (15px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(10px + (30px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(15px + (45px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(20px + (60px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)))),
                    inset 0 0 calc(5px + (15px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.2 + (0.4 * var(--amadex-intensity, 0.5))));
    }
    50% {
        box-shadow: 0 0 calc(10px + (30px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.6 + (0.4 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(20px + (60px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.6 + (0.4 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(30px + (90px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.6 + (0.4 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(40px + (120px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.5 + (0.3 * var(--amadex-intensity, 0.5)))),
                    inset 0 0 calc(10px + (30px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.4 + (0.4 * var(--amadex-intensity, 0.5))));
    }
}

.amadex-animation-neon_glow {
    --amadex-intensity: 0.5;
}

.amadex-animation-neon_glow .amadex-promo-content {
    border: 2px solid rgba(14, 125, 63, calc(0.6 + (0.4 * var(--amadex-intensity, 0.5))));
    animation: amadex-neon-glow 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: box-shadow;
}

/* 15. SHIMMER SWEEP - Enhanced shimmer with multiple light sweeps */
@keyframes amadex-shimmer-sweep {
    0% {
        transform: translateX(-200%) skewX(-25deg);
        opacity: 0;
    }
    15% {
        opacity: calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)));
    }
    30% {
        opacity: 0;
    }
    50% {
        transform: translateX(0%) skewX(-25deg);
        opacity: 0;
    }
    65% {
        opacity: calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)));
    }
    80% {
        opacity: 0;
    }
    100% {
        transform: translateX(200%) skewX(-25deg);
        opacity: 0;
    }
}

.amadex-promotional-container.amadex-animation-shimmer_sweep {
    --amadex-intensity: 0.5;
    position: relative !important;
    overflow: hidden !important;
}

.amadex-promotional-container.amadex-animation-shimmer_sweep::after {
    content: "";
    position: absolute;
    inset: 0;
    width: calc(50% + (30% * var(--amadex-intensity, 0.5)));
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, calc(0.4 + (0.6 * var(--amadex-intensity, 0.5)))),
        transparent
    );
    mix-blend-mode: overlay;
    transform: translateX(-200%) skewX(-25deg);
    animation: amadex-shimmer-sweep 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
    will-change: transform, opacity;
}

/* 16. CTA PULSE - Specialized pulse for call-to-action buttons */
@keyframes amadex-cta-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(14, 125, 63, calc(0.4 + (0.6 * var(--amadex-intensity, 0.5))));
    }
    50% {
        transform: scale(calc(1 + (0.1 * var(--amadex-intensity, 0.5))));
        box-shadow: 0 0 0 calc(10px + (20px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, 0);
    }
}

.amadex-animation-cta_pulse .amadex-promo-button {
    --amadex-intensity: 0.5;
    animation: amadex-cta-pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform, box-shadow;
}

/* 17. SLIDE IN SETTLE - Slide in with gentle bounce settle */
@keyframes amadex-slide-in-settle {
    0% {
        opacity: 0;
        transform: translateX(calc(-150px * var(--amadex-intensity, 0.5))) translateY(calc(-30px * var(--amadex-intensity, 0.5)));
    }
    60% {
        opacity: 1;
        transform: translateX(0) translateY(calc(10px * var(--amadex-intensity, 0.5)));
    }
    80% {
        transform: translateX(0) translateY(calc(-5px * var(--amadex-intensity, 0.5)));
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

.amadex-animation-slide_in_settle {
    --amadex-intensity: 0.5;
    animation: amadex-slide-in-settle 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    will-change: transform, opacity;
}

/* 18. NUMBER COUNTER - Animated number counting (requires JS) */
.amadex-animation-number_counter {
    --amadex-intensity: 0.5;
}

.amadex-animation-number_counter .amadex-counter-number {
    display: inline-block;
    animation: amadex-counter-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    will-change: transform;
}

@keyframes amadex-counter-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 19. HOVER MICROINTERACTION - Subtle interactive effects on hover */
.amadex-animation-hover_microinteraction .amadex-promo-content {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.amadex-animation-hover_microinteraction .amadex-promo-content:hover {
    transform: translateY(calc(-4px * var(--amadex-intensity, 0.5))) scale(calc(1 + (0.02 * var(--amadex-intensity, 0.5))));
    box-shadow: 0 calc(8px + (12px * var(--amadex-intensity, 0.5))) calc(16px + (24px * var(--amadex-intensity, 0.5))) rgba(0, 0, 0, calc(0.15 + (0.1 * var(--amadex-intensity, 0.5))));
}

.amadex-animation-hover_microinteraction .amadex-promo-button {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.amadex-animation-hover_microinteraction .amadex-promo-button:hover {
    transform: translateY(calc(-2px * var(--amadex-intensity, 0.5))) scale(calc(1 + (0.05 * var(--amadex-intensity, 0.5))));
    box-shadow: 0 calc(4px + (8px * var(--amadex-intensity, 0.5))) calc(12px + (16px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.3 + (0.2 * var(--amadex-intensity, 0.5))));
}

.amadex-animation-hover_microinteraction .amadex-promo-button:active {
    transform: translateY(0) scale(0.98);
}

/* 20. SEASONAL ORNAMENT EDGES - Decorative animated borders */
@keyframes amadex-ornament-sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: calc(0.6 + (0.4 * var(--amadex-intensity, 0.5)));
        transform: scale(calc(1.1 + (0.1 * var(--amadex-intensity, 0.5))));
    }
}

.amadex-animation-seasonal_ornament_edges {
    --amadex-intensity: 0.5;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.amadex-animation-seasonal_ornament_edges::before {
    content: "";
    position: absolute;
    inset: -2px;
    border: 2px solid;
    border-image: linear-gradient(
        45deg,
        rgba(14, 125, 63, calc(0.3 + (0.4 * var(--amadex-intensity, 0.5)))),
        rgba(246, 133, 31, calc(0.3 + (0.4 * var(--amadex-intensity, 0.5)))),
        rgba(14, 125, 63, calc(0.3 + (0.4 * var(--amadex-intensity, 0.5))))
    ) 1;
    border-radius: inherit;
    animation: amadex-ornament-rotate 4s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.amadex-animation-seasonal_ornament_edges::after {
    content: "✦";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(14, 125, 63, calc(0.6 + (0.4 * var(--amadex-intensity, 0.5))));
    font-size: 12px;
    animation: amadex-ornament-sparkle 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes amadex-ornament-rotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Mobile Animation Disable */
@media (max-width: 768px) {
    .amadex-promotional-container.amadex-animation-mobile-disabled,
    .amadex-promotional-container.amadex-animation-mobile-disabled::before,
    .amadex-promotional-container.amadex-animation-mobile-disabled::after,
    .amadex-promotional-container.amadex-animation-mobile-disabled .amadex-promo-content {
        animation: none !important;
    }
    
    /* Reset transforms on mobile when animations disabled */
    .amadex-promotional-container.amadex-animation-mobile-disabled {
        transform: none !important;
    }
    
    .amadex-promotional-container.amadex-animation-mobile-disabled::before,
    .amadex-promotional-container.amadex-animation-mobile-disabled::after {
        display: none !important;
    }
    
    /* Disable hover effects on mobile */
    .amadex-animation-hover_microinteraction .amadex-promo-content:hover {
        transform: none !important;
    }
}


/* --- Boarding Pass Flight Card (enhanced, supersedes legacy card in section 31) --- */
.amadex-flight-card {
    background: #FFFFFF;
    border: 1.5px solid #0E7D3F;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* Map background pattern */
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><path d="M50,20 Q100,10 150,20 T250,20" stroke="%23E5E7EB" stroke-width="0.5" fill="none" opacity="0.3"/><path d="M30,80 Q80,70 130,80 T230,80" stroke="%23E5E7EB" stroke-width="0.5" fill="none" opacity="0.3"/><path d="M40,140 Q90,130 140,140 T240,140" stroke="%23E5E7EB" stroke-width="0.5" fill="none" opacity="0.3"/><path d="M60,180 Q110,170 160,180 T260,180" stroke="%23E5E7EB" stroke-width="0.5" fill="none" opacity="0.3"/><circle cx="80" cy="60" r="8" fill="%23E5E7EB" opacity="0.2"/><circle cx="120" cy="100" r="6" fill="%23E5E7EB" opacity="0.2"/><circle cx="140" cy="150" r="7" fill="%23E5E7EB" opacity="0.2"/></svg>');
    background-size: 400px 400px;
    background-position: center;
    background-repeat: repeat;
}

/* Viewers Badge - Social Proof Indicator */
.amadex-viewers-badge {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #EE9C31;
    color: #FFFFFF;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);*/
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
    animation: amadexBadgeFadeIn 0.4s ease-out;
    pointer-events: none;
    max-width: 140px;
}

@keyframes amadexBadgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Badge Position Variants - Positioned relative to boarding-pass-content */
/*.amadex-viewers-badge-top-left {*/
/*    top: 8px;*/
/*    left: 8px;*/
/*    border-radius: 6px;*/
/*}*/

/*.amadex-viewers-badge-top-right {*/
/*    top: 8px;*/
/*    right: 8px;*/
/*    border-radius: 6px;*/
/*}*/

/*.amadex-viewers-badge-bottom-left {*/
/*    bottom: 8px;*/
/*    left: 8px;*/
/*    border-radius: 6px;*/
/*}*/

/*.amadex-viewers-badge-bottom-right {*/
/*    bottom: 8px;*/
/*    right: 8px;*/
/*    border-radius: 6px;*/
/*}*/

/* Badge Icon */
.amadex-viewers-badge-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.amadex-viewers-badge-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

/* Badge Count */
.amadex-viewers-badge-count {
    font-weight: 700;
    font-size: 12px;
    color: #FFFFFF;
}

/* Badge Text */
.amadex-viewers-badge-text {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.95;
    text-transform: lowercase;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments for badge */
@media screen and (max-width: 768px) {
    .amadex-viewers-badge {
        padding: 5px 8px;
        font-size: 10px;
        max-width: 120px;
        gap: 3px;
    }
    
    .amadex-viewers-badge-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .amadex-viewers-badge-count {
        font-size: 11px;
    }
    
    .amadex-viewers-badge-text {
        font-size: 9px;
    }
    
    .amadex-viewers-badge-top-left,
    .amadex-viewers-badge-top-right {
        top: 6px;
    }
    
    .amadex-viewers-badge-top-left,
    .amadex-viewers-badge-bottom-left {
        left: 6px;
    }
    
    .amadex-viewers-badge-top-right,
    .amadex-viewers-badge-bottom-right {
        right: 6px;
    }
    
    .amadex-viewers-badge-bottom-left,
    .amadex-viewers-badge-bottom-right {
        bottom: 6px;
    }
}

@media screen and (max-width: 480px) {
    .amadex-viewers-badge {
        padding: 4px 6px;
        font-size: 9px;
        max-width: 100px;
    }
    
    .amadex-viewers-badge-text {
        display: none; /* Hide text on very small screens, show only number */
    }
    
    .amadex-viewers-badge-icon svg {
        width: 11px;
        height: 11px;
    }
    
    .amadex-viewers-badge-count {
        font-size: 10px;
    }
    
    .amadex-viewers-badge-top-left,
    .amadex-viewers-badge-top-right {
        top: 4px;
    }
    
    .amadex-viewers-badge-top-left,
    .amadex-viewers-badge-bottom-left {
        left: 4px;
    }
    
    .amadex-viewers-badge-top-right,
    .amadex-viewers-badge-bottom-right {
        right: 4px;
    }
    
    .amadex-viewers-badge-bottom-left,
    .amadex-viewers-badge-bottom-right {
        bottom: 4px;
    }
}

button.amadex-price-box-select.amadex-select-flight-btn {
    display: none;
}

/* Boarding Pass Header */
.amadex-boarding-pass-header {
    background: linear-gradient(to right, #F6851F 0%, #F9B647 100%);
    color: #FFFFFF;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 8px 8px 0 0;
    position: relative;
}

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

.amadex-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    padding-left: 20px;
    /*position: relative;*/
}

/* Add vertical divider line in header before right section */
.amadex-header-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.3);
}

.amadex-boarding-pass-header .amadex-header-plane-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.amadex-boarding-pass-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    white-space: nowrap;
}

.amadex-header-subtitle {
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.05em;
    opacity: 0.95;
    text-transform: none;
}

.amadex-verified-flight-text {
    white-space: nowrap;
}

/* Boarding Pass Content */
.amadex-boarding-pass-content {
    position: relative;
    display: flex;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
}

.amadex-barcode-svg {
    width: 100%;
    height: 100%;
    max-height: 180px;
    transform: rotate(90deg);
    transform-origin: center;
}

/* Perforated Line - Cutout Holes Effect (Matching Boarding Pass Design) */
.amadex-perforated-line {
    position: relative;
    flex-shrink: 0;
    width: 6px;
    margin: 0 8px;
    background: transparent;
    z-index: 2;
    overflow: visible;
    align-self: stretch;
}

/* Create the main line with cutout holes using radial gradient mask */
.amadex-perforated-line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #0E7D3F;
    transform: translateX(-50%);
    /* Create circular cutout holes - spacing matches boarding pass design */
    mask-image: 
        radial-gradient(circle at center, transparent 4px, black 4px, black 5px, transparent 5px);
    mask-size: 2px 12px;
    mask-repeat: repeat-y;
    mask-position: center;
    -webkit-mask-image: 
        radial-gradient(circle at center, transparent 4px, black 4px, black 5px, transparent 5px);
    -webkit-mask-size: 2px 12px;
    -webkit-mask-repeat: repeat-y;
    -webkit-mask-position: center;
}

/* Add white circular cutouts to simulate actual holes */
.amadex-perforated-line::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFFFFF;
    transform: translateX(-50%);
    /* Create evenly spaced holes along the line - 12px spacing */
    box-shadow: 
        0 12px 0 0 #FFFFFF,
        0 24px 0 0 #FFFFFF,
        0 36px 0 0 #FFFFFF,
        0 48px 0 0 #FFFFFF,
        0 60px 0 0 #FFFFFF,
        0 72px 0 0 #FFFFFF,
        0 84px 0 0 #FFFFFF,
        0 96px 0 0 #FFFFFF,
        0 108px 0 0 #FFFFFF,
        0 120px 0 0 #FFFFFF,
        0 132px 0 0 #FFFFFF,
        0 144px 0 0 #FFFFFF,
        0 156px 0 0 #FFFFFF,
        0 168px 0 0 #FFFFFF,
        0 180px 0 0 #FFFFFF,
        0 192px 0 0 #FFFFFF,
        0 204px 0 0 #FFFFFF,
        0 216px 0 0 #FFFFFF,
        0 228px 0 0 #FFFFFF,
        0 240px 0 0 #FFFFFF,
        0 252px 0 0 #FFFFFF,
        0 264px 0 0 #FFFFFF,
        0 276px 0 0 #FFFFFF,
        0 288px 0 0 #FFFFFF,
        0 300px 0 0 #FFFFFF,
        0 312px 0 0 #FFFFFF,
        0 324px 0 0 #FFFFFF,
        0 336px 0 0 #FFFFFF,
        0 348px 0 0 #FFFFFF,
        0 360px 0 0 #FFFFFF;
}

.amadex-flight-card-header:empty {
    display: none;
}
.amadex-leg-path-line svg#Group_199 {
    width: 35%;
}
.amadex-flight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #FFF8ED;
    border: 1px solid #F8D7A4;
    font-weight: 600;
    color: #111827;
    font-size: 13px;
}

.amadex-flight-badge .badge-icon {
    width: 16px;
    height: 16px;
    color: #111827;
    flex-shrink: 0;
}

.amadex-flight-seats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #B80000;
    background: #B42318;
    background: #FFEEEE 0% 0% no-repeat padding-box;
    border-radius: 0px 0px 10px 10px;
}

/* .amadex-flight-seats.is-low {
    background: #B42318;
    border-color: #B42318;
} */

.amadex-flight-seats .seat-icon {
    width: 14px;
    height: 14px;
    color: #ffffff;
    flex-shrink: 0;
}

/*.amadex-viewers-badge-top-left {*/
/*    top: 17rem;*/
/*    left: 61.5rem;*/
/*    border-radius: 10px;*/
/*}*/

.amadex-flight-card-main {
    display: flex;
    gap: 0;
    align-items: stretch;
    width: 100%;
    padding-left: 15px; /* Removed barcode space */
    padding-right: 20px; /* Space for right edge */
    position: relative;
    z-index: 2;
    min-height: 0; /* Prevent flex items from overflowing */
}

.amadex-flight-card-info {
    flex: 1 1 75%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: stretch; /* Match height of price section */
}

.amadex-flight-airline-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #0E7D3F;
}

.amadex-flight-airline-chip img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    border: 1px solid #E2E2E2;
}

.amadex-flight-legs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 0;
}

/* .amadex-flight-leg {
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid #E6E6E6;
    padding-right: 10px;
} */

/* .amadex-flight-price-note - moved to allow price label to display */


.amadex-flight-leg:last-child {
    border-right: none;
    padding-right: 0;
}

.amadex-leg-title {
    font-weight: 700;
    font-size: 15px;
    color: #000000;
    line-height: 1.5;
}

.amadex-leg-airline-logo {
    margin: 8px 0;
    flex-shrink: 0;
}

.amadex-leg-airline-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    /* border: 1px solid #E2E2E2; */
    object-fit: contain;
}

.amadex-leg-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin:0;
    width: 100%;
}

/* Group airline logo and departure time block together */
.amadex-leg-route > .amadex-leg-airline-logo + .amadex-leg-time-block {
    margin-left: 0; /* No extra margin, gap handles spacing */
}

.amadex-leg-route > .amadex-leg-airline-logo {
    margin-right: 4px;
}

@media (max-width: 640px) {
    .amadex-leg-route {
        gap: 8px;
    }
}

.amadex-leg-time-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    /* min-width: 60px; */
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .amadex-leg-time-block {
        /* min-width: 50px; */
    }
}

.amadex-leg-time {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.2;
}

.amadex-leg-code {
    font-size: 13px;
    color: #6B7280;
    margin-top: 4px;
}

.amadex-leg-path {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 8px;
    min-height: 80px;
    max-width: 180px;
}

@media (max-width: 768px) {
    .amadex-leg-path {
        margin: 0 4px;
        gap: 0;
        min-height: 70px;
    }
}

@media (max-width: 640px) {
    .amadex-leg-path {
        max-width: 140px;
        gap: 0;
        min-height: 65px;
    }
    
    .amadex-leg-path-line {
        max-width: 140px;
    }
    
    .amadex-leg-path-line .amadex-path-line {
        max-width: 140px;
    }
}

.amadex-leg-duration {
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    color: #0E7D3F;
    line-height: 1.2;
    margin-bottom: 4px;
}

.amadex-leg-duration span {
    display: block;
    white-space: nowrap;
}

.amadex-leg-path small {
    font-size: 12px;
    color: #707070;
}

.amadex-leg-duration small {
    font-size: 12px;
    color: #9CA3AF;
}

.amadex-leg-path-line {
    width: 100%;
    max-width: 140px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 4px 0;
    position: relative;
    height: 2px;
}

.amadex-leg-path-line .amadex-path-line {
    width: 100%;
    max-width: 140px;
    height: 2px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.amadex-leg-path-line .amadex-plane-icon {
    position: absolute;
    right: 0;
    /*top: 50%;*/
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #ffffff;
    padding: 2px;
    z-index: 3;
    transition: transform 0.3s ease;
    transform: rotate(90deg);
}

/*.amadex-leg-path-line:hover .amadex-plane-icon {*/
/*    transform: translateY(-50%) scale(1.1);*/
/*}*/

.amadex-leg-info-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin-top: 2px;
}

@media (max-width: 640px) {
    .amadex-leg-info-row {
        gap: 3px;
        margin-top: 1px;
    }
}

.amadex-layover-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #707070;
    cursor: pointer;
    margin: 0;
    gap: 4px;
    white-space: nowrap;
}

.amadex-layover-trigger.non-stop {
    color: #0E7D3F;
    font-weight: 500;
}

/* .amadex-layover-trigger.non-stop {
    border-style: solid;
    border-color: rgba(14, 125, 63, 0.35);
    color: #0E7D3F;
} */

.amadex-layover-trigger:focus {
    outline: 2px solid rgba(14, 125, 63, 0.45);
    outline-offset: 2px;
}

.amadex-layover-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    min-width: 320px;
    max-width: 90vw;
    max-height: 80vh;
    background: #FFFFFF;
    color: #111827;
    border-radius: 12px;
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(14, 125, 63, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10000;
    overflow: hidden;
}

.amadex-layover-tooltip::before {
    display: none; /* Hide arrow for centered tooltip */
}

.amadex-layover-tooltip-header {
    background: #EEF9F2;
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 8px;
}

.amadex-layover-tooltip-header-icon {
    width: 16px;
    height: 16px;
    color: #0E7D3F;
}

.amadex-layover-tooltip-body {
    padding: 12px 16px;
    overflow-y: auto;
    max-height: calc(80vh - 60px); /* Account for header */
}

.amadex-layover-trigger:hover .amadex-layover-tooltip,
.amadex-layover-trigger:focus .amadex-layover-tooltip,
.amadex-layover-trigger.active .amadex-layover-tooltip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.amadex-layover-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

.amadex-layover-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.amadex-layover-row.has-plane-change,
.amadex-layover-row.has-terminal-change {
    background: #EEF9F2;
    padding: 12px 12px;
    border-radius: 8px;
    margin: 4px 0;
    border: 1px solid rgba(14, 125, 63, 0.15);
}

.amadex-layover-row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.amadex-layover-index {
    font-weight: 700;
    color: #0E7D3F;
    font-size: 15px;
}

.amadex-layover-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #0E7D3F;
    color: #FFFFFF;
    font-weight: 600;
}

.amadex-layover-badge.plane-change {
    background: #F6851F;
    color: #FFFFFF;
}

.amadex-layover-badge.terminal-change {
    background: #3B82F6;
    color: #FFFFFF;
}

.amadex-layover-badge-icon {
    width: 12px;
    height: 12px;
}

.amadex-layover-row-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.amadex-layover-duration {
    font-size: 15px;
    color: #B91C1C;
    font-weight: 600;
}

.amadex-layover-city {
    font-size: 12px;
    color: #111827;
    font-weight: 500;
}

.amadex-layover-terminal {
    display: inline-block;
    font-size: 15px;
    color: rgba(193, 31, 31, 1);
    font-weight: 500;
    margin-left: 4px;
}

.amadex-layover-dots {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 12px;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 2;
}

.amadex-layover-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 2px solid #707070;
    border-radius: 50%;
    transform: translateX(-50%) translateY(-50%);
    top: 50%;
    box-shadow: 0 0 0 2px #ffffff;
    z-index: 2;
}

.amadex-leg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #000000;
    margin-top: 0;
    font-weight: 500;
    width: 100%;
}

@media (max-width: 768px) {
    .amadex-leg-meta {
        gap: 6px;
        margin-top: 10px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .amadex-leg-meta {
        gap: 4px;
    margin-top: 8px;
        font-size: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
}

.amadex-leg-aircraft-info {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
    text-align: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(156, 163, 175, 0.1);
    white-space: nowrap;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.amadex-leg-aircraft-info:hover {
    background: rgba(14, 125, 63, 0.1);
    color: #0E7D3F;
}

.amadex-leg-aircraft-info.amadex-aircraft-loading {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 640px) {
    .amadex-leg-aircraft-info {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Aircraft Details Tooltip/Popup */
.amadex-aircraft-tooltip {
    position: absolute;
    z-index: 10000;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    max-width: 320px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-4px);
}

.amadex-aircraft-tooltip-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.amadex-aircraft-tooltip-hover {
    /* Hover tooltip styling for desktop */
}

.amadex-aircraft-tooltip-click {
    /* Click popup styling for mobile */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.amadex-aircraft-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
    border-radius: 8px 8px 0 0;
}

.amadex-aircraft-tooltip-code {
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    letter-spacing: 0.5px;
}

.amadex-aircraft-tooltip-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.amadex-aircraft-tooltip-close:hover {
    color: #374151;
}

.amadex-aircraft-tooltip-body {
    padding: 12px;
}

.amadex-aircraft-tooltip-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.amadex-aircraft-tooltip-description {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.5;
}

/* Mobile: Hide close button for hover tooltips, show for click popups */
@media (max-width: 768px) {
    .amadex-aircraft-tooltip-hover .amadex-aircraft-tooltip-close {
        display: none;
    }
    
    .amadex-aircraft-tooltip-click {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        max-width: 90%;
    }
    
    .amadex-aircraft-tooltip-click.amadex-aircraft-tooltip-visible {
        transform: translate(-50%, -50%) scale(1);
    }
}

.amadex-operating-carrier {
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 400;
    font-style: italic;
}

.amadex-leg-airline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .amadex-leg-airline {
        font-size: 12px;
        width: 100%;
    }
}

.amadex-leg-included {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-weight: 400;
}

.amadex-baggage-label {
    margin-right: 4px;
    color: #000000;
}

.amadex-baggage-icons-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.amadex-baggage-svg {
    flex-shrink: 0;
    display: inline-block;
    width: 10px;
    height: 14.545px;
}

.amadex-baggage-svg:last-of-type {
    width: 11.666px;
    height: 14.243px;
}

.amadex-leg-included.no-baggage {
    opacity: 0.5;
}

.amadex-leg-included.no-baggage .amadex-baggage-icons-wrapper {
    opacity: 0.5;
}

.amadex-leg-included.no-baggage .amadex-baggage-svg path {
    fill: #9CA3AF !important;
}

.amadex-baggage-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    flex-shrink: 0;
}

.amadex-baggage-cross svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.amadex-baggage-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.amadex-baggage-cross svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.amadex-baggage-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-block;
}

.amadex-flight-info-footer {
    margin-top: 0;
}

.amadex-flight-detail-link {
    background:none;
    box-shadow:none;
    border: none;
    color: #0E7D3F;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    outline: none!important;
}

.amadex-flight-detail-link span {
    font-size: 25px;
    margin-bottom: 3px;
}

.amadex-flight-card-price {
    flex: 0 0 25%;
    min-width: 200px;
    max-width: 250px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: stretch; /* Match height of info section */
    justify-content: flex-start; /* Align content to top */
}
.amadex-search-summary-modern button.amadex-search-btn:hover {
    color: #fff;
    background-color: #0E7D3F;
    box-shadow: 0 8px 24px rgba(14, 125, 63, 0.35), 0 4px 12px rgba(14, 125, 63, 0.2);
}

.amadex-flight-price-wrapper {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1.2;
}

.amadex-flight-price-wrapper .amadex-flight-price-note {
    font-size: 12px;
    color: #707070;
    font-weight: 400;
    display: inline-block;
}

.amadex-flight-price {
    font-size: 32px;
    font-weight: 700;
    color: #0B3D1F;
    display: inline-block;
}

.amadex-flight-price-note {
    font-size: 14px;
    color: #707070;
    font-weight: 400;
    display: inline-block;
}

.amadex-flight-card-price > .amadex-flight-price-note {
    font-size: 12px;
    color: #9CA3AF;
    margin-bottom: 8px;
    display: block;
}

.amadex-book-now-btn {
    width: 100%;
    border: 2px solid #0E7D3F;
    color: #0E7D3F;
    font-weight: 700;
    border-radius: 16px;
    padding: 12px 18px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.amadex-book-now-btn:hover {
    background: #0E7D3F;
    color: #ffffff;
}

.amadex-price-box-select {
    width: 100%;
    border: none;
    background: transparent;
    color: #0E7D3F;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
}

.amadex-price-box-call {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0E7D3F;
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 600;
}


.amadex-price-box-call .amadex-phone-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.amadex-call-icon-wrap {
    width: 28px;
    height: 32px;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.amadex-call-icon-wrap img {
    width: 18px;
    height: 18px;
    display: block;
}

.amadex-call-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Call Banner Wrapper - maintains exact same dimensions as Book Now button */
.amadex-call-banner-wrapper {
    width: 100%;
    min-height: 48px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 12px 18px;
    box-sizing: border-box;
    margin-top: 8px;
    overflow: hidden;
    position: relative;
}

.amadex-call-banner-wrapper > * {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure banner content matches button styling - DESKTOP: Collapsed to button size */
@media (min-width: 1024px) {
    .amadex-call-banner-wrapper {
        position: relative;
    }
    
    .amadex-call-banner-wrapper .tgn-banner {
        width: 100% !important;
        margin: 0 !important;
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
    }
    
    .amadex-call-banner-wrapper .tgn-card {
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }
    
    .amadex-call-banner-wrapper .tgn-drawer {
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Desktop: Position expanded panel to the left side as popup */
    .amadex-call-banner-wrapper .tgn-expanded {
        position: absolute !important;
        right: calc(100% + 12px) !important;
        top: 0 !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        max-height: calc(100vh - 200px) !important;
        min-width: 380px;
        max-width: 420px;
        width: auto !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: 99999 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        border-radius: 12px;
        transition: opacity 0.3s ease !important;
    }
    
    .amadex-call-banner-wrapper .tgn-drawer.tgn-open .tgn-expanded,
    .amadex-call-banner-wrapper .tgn-open .tgn-expanded {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Arrow pointer pointing to the right (towards the button) */
    .amadex-call-banner-wrapper .tgn-expanded::before {
        content: '';
        position: absolute;
        right: -6px;
        top: 20px;
        width: 12px;
        height: 12px;
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(2px);
        border-right: 1px solid rgba(255, 255, 255, 0.35);
        border-bottom: 1px solid rgba(255, 255, 255, 0.35);
        transform: rotate(-45deg);
        z-index: 1;
    }
    
    /* Prevent overflow issues */
    .amadex-call-banner-wrapper .tgn-panel {
        max-height: calc(100vh - 200px) !important;
        overflow-y: auto;
    }
}

/* Mobile: Keep drawer behavior as is */
@media (max-width: 1023px) {
    .amadex-call-banner-wrapper {
        min-height: 48px;
    }
    
    .amadex-call-banner-wrapper .tgn-expanded {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        left: auto !important;
    }
}

@media (max-width: 640px) {
    .amadex-call-banner-wrapper {
        padding: 10px 16px;
        min-height: 44px;
        border-radius: 14px;
    }
}

@media (max-width: 1024px) {
    .amadex-flight-card-main {
        flex-direction: column;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .amadex-boarding-pass-content {
        padding: 0 0 0 0;
    }
    
    .amadex-perforated-line {
        display: none; /* Hide perforated line on mobile/tablet when layout is vertical */
    }
    
    .amadex-flight-card-price {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        border-left: none;
        border-top: 1px solid #E4E4E7;
        padding-top: 16px;
        padding-left: 0;
        align-self: stretch;
    }
    
    .amadex-flight-card-info {
        flex: 1 1 100%;
        align-self: stretch;
    }
    
    .amadex-book-now-btn,
    .amadex-price-box-select,
    .amadex-price-box-call,
    .amadex-call-banner-wrapper {
        width: 100%;
        min-height: 48px;
    }
}

@media (max-width: 640px) {
    .amadex-boarding-pass-header {
        padding: 10px 16px 28px 16px; /* Extra bottom padding for subtitle */
        font-size: 11px;
        flex-wrap: wrap;
        align-items: flex-start;
        position: relative;
    }
    
    /* Top row: TRAVELAY PASS (left) and VERIFIED FLIGHT (right) */
    .amadex-header-left {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
        align-items: center;
        padding-right: 10px;
    }
    
    .amadex-header-right {
        flex: 0 0 auto;
        padding-left: 0;
        justify-content: flex-end;
        align-items: center;
    }
    
    .amadex-header-right::before {
        display: none; /* Hide divider on mobile */
    }
    
    .amadex-boarding-pass-header .amadex-header-plane-icon {
        width: 14px;
        height: 14px;
    }
    
    /* TRAVELAY PASS text - keep inline, remove subtitle from inline flow */
    .amadex-boarding-pass-text {
        font-size: 11px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }
    
    /* Subtitle - position absolutely relative to header, span full width below both sections */
    .amadex-header-subtitle {
        font-size: 9px;
        display: block;
        position: absolute;
        left: 16px; /* Match header padding */
        right: 16px; /* Match header padding */
        bottom: 8px; /* Position at bottom of header */
        width: auto;
        margin: 0;
        text-align: center;
        padding-top: 6px;
        white-space: normal;
        box-sizing: border-box;
    }
    
    .amadex-verified-flight-text {
        font-size: 11px;
        white-space: nowrap;
    }
    
    .amadex-boarding-pass-content {
        padding: 0 0 0 0;
    }
    
    .amadex-flight-card-main {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .amadex-perforated-line {
        display: none; /* Hide on mobile */
    }
}

/* Enhanced responsive styles for flight leg section */
@media (max-width: 768px) {
    .amadex-leg-title {
        font-size: 12px;
    }
    
    .amadex-leg-time {
        font-size: 16px;
    }
    
    .amadex-leg-code {
        font-size: 12px;
    }
    
    .amadex-leg-duration {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .amadex-flight-leg {
        padding: 0;
    }
    
    .amadex-leg-route {
        gap: 5px;
        margin: 0;
    }
    
    .amadex-leg-time {
        font-size: 15px;
    }
    
    .amadex-leg-code {
        font-size: 11px;
        margin-top: 2px;
    }
    
    .amadex-leg-duration {
        font-size: 11px;
    }
    
    .amadex-layover-trigger {
        font-size: 11px;
    }
}

.amadex-filter-search {
    position: relative;
    margin-bottom: 14px;
}

.amadex-filter-search input {
    width: 100%;
    border-radius: 16px;
    background: #F3F3F3 0% 0% no-repeat!important;
    border-radius: 20px!important;
    padding: 12px 46px 12px 16px;
    font-size: 14px;
    color: #000!important;
    background: #fff;
    transition: border-color 0.2s ease;
}


.amadex-filter-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
}

.amadex-filter-list-scroll {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

.amadex-filter-list-scroll::-webkit-scrollbar {
    width: 4px;
}

.amadex-filter-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(14,125,63,0.4);
    border-radius: 999px;
}

.amadex-switch {
    position: relative;
    display: inline-flex;
    width: 40px!important;
    height: 22px;
}

.amadex-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.amadex-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5E7EB;
    border-radius: 999px;
    transition: 0.2s;
}

.amadex-switch-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.amadex-switch input:checked + .amadex-switch-slider {
    background-color: #0E7D3F;
}

.amadex-switch input:checked + .amadex-switch-slider::before {
    transform: translateX(18px);
}

/* Main Results Area */
.amadex-results-main {
    width: 100%;
    max-width: 100%;
    background: #eef9f2;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.amadex-booking-progress {
    display: flex!important;
    align-items: center;
    gap: 16px;
    margin: 0 auto 32px;
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

.booking-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9CA3AF;
    font-weight: 500;
    font-size: 14px;
}

.booking-step.is-active {
    color: #0E7D3F;
}

.booking-step.is-complete {
    color: #0E7D3F;
    opacity: 0.8;
}

.booking-step-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.booking-step-divider {
    flex: 1;
    height: 1.5px;
    background: #0e7d3f;
}

.booking-step-label {
    white-space: nowrap;
    font-size: 14px !important;
    color: #707070;
}

.amadex-booking-header {
    flex-direction: column;
}

.amadex-back-link {
    text-align: left;
    width: 100%;
}

.amadex-flight-card.is-oneway-card .amadex-flight-legs {
    grid-template-columns: 1fr;
}

/* Segment Tabs Container for Multi-City Trips - Enhanced Design */
.amadex-segment-tabs-container {
    margin: 0 auto 24px;
    padding: 0;
    width: 100%;
}

.amadex-segment-tabs-wrapper {
    width: 100%;
}

.amadex-segment-tabs-header {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    align-items: stretch;
    margin-bottom: 0;
}

.amadex-segment-tab {
    background: #ffffff;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-width: 190px;
    flex: 1 1 190px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.amadex-segment-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.amadex-segment-tab:hover {
    border-color: #0E7D3F;
    box-shadow: 0 6px 16px rgba(14, 125, 63, 0.2);
    transform: translateY(-4px);
}

.amadex-segment-tab:hover::before {
    background: #0E7D3F;
}

.amadex-segment-tab.is-active {
    background: linear-gradient(135deg, #0E7D3F 0%, #0d6e35 100%);
    border-color: #0E7D3F;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(14, 125, 63, 0.3);
    transform: translateY(-2px);
}

/* .amadex-segment-tab.is-active::before {
    background: #ffffff;
    opacity: 0.3;
} */

/* Selected segment indicator */
.amadex-segment-tab.segment-selected {
    border-color: #0e7d3f;
    background: #F0FDF4;
}

.amadex-segment-tab.segment-selected.is-active {
    background: linear-gradient(135deg, #0e7d3f 0%, #0e7d3f 100%);
    border-color: #0e7d3f;
}

.segment-selected-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #0e7d3f;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.amadex-segment-tab.is-active .segment-selected-indicator {
    background: #ffffff;
    color: #0e7d3f;
}

/* Selected flight card */
.amadex-flight-card.flight-selected {
    border: 2px solid #0e7d3f;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    background: #F0FDF4;
}

.amadex-flight-card.flight-selected::before {
    content: '✓ Selected';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0e7d3f;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    display: none;
}

/* Selected segment indicator */
.amadex-segment-tab.segment-selected {
    border-color: #0e7d3f;
    background: #F0FDF4;
}

.amadex-segment-tab.segment-selected.is-active {
    background: linear-gradient(135deg, #0e7d3f 0%, #0e7d3f 100%);
    border-color: #0e7d3f;
}

.segment-selected-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #0e7d3f;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    z-index: 5;
}

.amadex-segment-tab.is-active .segment-selected-indicator {
    background: #ffffff;
    color: #0e7d3f;
}

.amadex-segment-tab-content {
    position: relative;
}

/* Selected flight card */
.amadex-flight-card.flight-selected {
    border: 2px solid #0e7d3f !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
    background: #FFF !important;
    position: relative;
}

.amadex-flight-card.flight-selected::after {
    content: '✓ Selected';
    position: absolute;
    top: 10px;
    right: 4px;
    background: #0e7d3f;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    margin-top:30px;
}

/* Multi-city feedback message */
.amadex-multicity-feedback {
    background: linear-gradient(135deg, #0e7d3f 0%, #059669 100%);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    margin: 16px 0;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amadex-segment-tab-content {
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.amadex-segment-tab-route {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.amadex-segment-tab-origin,
.amadex-segment-tab-destination {
    color: #111827;
    font-weight: 600;
    text-align: center;
}

.amadex-segment-tab.is-active .amadex-segment-tab-origin,
.amadex-segment-tab.is-active .amadex-segment-tab-destination {
    color: #ffffff;
}

.amadex-segment-tab-arrow {
    color: #6B7280;
    font-size: 20px;
    font-weight: 400;
}

.amadex-segment-tab.is-active .amadex-segment-tab-arrow {
    color: rgba(255, 255, 255, 0.9);
}

.amadex-segment-tab-date {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
    line-height: 1.5;
}

.amadex-segment-tab.is-active .amadex-segment-tab-date {
    color: rgba(255, 255, 255, 0.95);
}

.amadex-segment-tab-duration {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 500;
    margin-top: 4px;
}

.amadex-segment-tab.is-active .amadex-segment-tab-duration {
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .amadex-segment-tab {
        min-width: 240px;
        flex: 1 1 240px;
    }
}

@media (max-width: 768px) {
    .amadex-segment-tabs-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .amadex-segment-tab {
        width: 100%;
        min-width: 100%;
        flex: 1 1 100%;
    }
    
    .amadex-segment-tab-content {
        padding: 16px 20px;
    }
    
    .amadex-segment-tab-route {
        font-size: 16px;
    }
}

/* Results Sort Bar - Desktop Only (Hidden on Mobile 320px-767px) */
.amadex-results-sort-bar {
    margin: 0;
    width: 100%;
    /* background: #ffffff; */
    border-radius: 999px;
    padding: 12px 0;
    /* box-shadow: 0 18px 45px rgba(14, 125, 63, 0.12); */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Hide results sort bar on mobile devices (320px - 767px) */
@media only screen and (min-width: 320px) and (max-width: 767px) {
    .amadex-results-sort-bar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .amadex-flight-leg {
        border-right:none!important;
        padding: 0 !important;
    }
}

/* Ensure results sort bar is visible on desktop (768px and above) */
@media only screen and (min-width: 768px) {
    .amadex-results-sort-bar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
        padding: 12px 0 !important;
        margin: 0 auto 15px !important;
    }
}

.amadex-sort-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 0px 0px 0px #00000029;
    border-radius: 18px;
    padding: 6px 15px;
}

.sort-tab {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 999px;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    font-size: 15px;
}

.sort-tab.is-active {
    background: none;
    color: #0E7D3F;
}

.amadex-results-available {
    font-weight: 500;
    color: #000000;
    white-space: nowrap;
    font-size: 15px;
}

.amadex-results-controls {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    display: none;
}

.amadex-sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amadex-sort-controls label {
    font-weight: 600;
    color: #333;
    width: 33%;
}

.amadex-sort-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.amadex-price-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amadex-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.amadex-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.amadex-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.amadex-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.amadex-toggle input:checked + .amadex-toggle-slider {
    background-color: #007cba;
}

.amadex-toggle input:checked + .amadex-toggle-slider:before {
    transform: translateX(26px);
}

.amadex-toggle-label {
    font-size: 14px;
    color: #666;
}

/* Loading State */
/* No Results State - Positioned at top after header */
.amadex-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    margin: 20px 0;
    order: 1; /* Ensure it appears early in flex order if parent is flex */
    width: 100%;
}

.amadex-new-search-btn {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
}


/* Flight List */
.amadex-flights-list {
    width: 100%;
    padding: 0;
    background: #EEF9F2;
    display: flex;
    flex-direction: column;
    padding: 0 10px !important;
}

/* Ensure no-results appears at top after header */
.amadex-flights-list .amadex-no-results {
    order: 1;
    margin-top: 0;
    margin-bottom: 20px;
}

.amadex-flight-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
    transition: background-color 0.2s ease;
}

.amadex-flight-item:hover {
    background-color: #f8f9fa;
}

.amadex-flight-item:last-child {
    border-bottom: none;
}

.amadex-flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.amadex-flight-airline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #007cba;
}

.amadex-flight-airline-logo {
    width: 60px;
    height: 60px;
    /* background: #f0f0f0; */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.amadex-flight-price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.amadex-flight-segments {
    margin-bottom: 15px;
}

/*.amadex-flight-segment {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*    padding: 10px 0;*/
/*     border-bottom: 1px solid #f0f0f0; */
/*}*/

/*.amadex-flight-segment:last-child {*/
/*    border-bottom: none;*/
/*}*/

.amadex-segment-airports {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.amadex-segment-airport {
    text-align: center;
    min-width: 80px;
}

.amadex-segment-airport-code {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.amadex-segment-airport-name {
    font-size: 12px;
    color: #666;
}

.amadex-segment-duration {
    font-size: 14px;
    color: #666;
    text-align: center;
    min-width: 100px;
}

.amadex-segment-connection {
    font-size: 12px;
    color: #666;
    text-align: center;
    min-width: 100px;
}

.amadex-flight-details {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.amadex-flight-detail {
    display: flex;
    align-items: center;
    gap: 5px;
}

.amadex-flight-detail-icon {
    width: 16px;
    height: 16px;
    background: #f0f0f0;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.amadex-flight-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.amadex-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.amadex-btn-primary {
    background: #28a745;
    color: #fff;
}

.amadex-btn-primary:hover {
    background: #218838;
}

.amadex-btn-secondary {
    background: #007cba;
    color: #fff;
    text-decoration: none !important;
}

.amadex-btn-secondary:hover {
    background: #005a87;
}
div#amadex-load-more-wrap {
    text-align: center;
    background: #0E7D3F 0% 0% no-repeat padding-box;
    border: 1px solid #0E7D3F;
    border-radius: 20px;
}
/* .amadex-load-more-wrap:hover {
   background:#fff!important;
} */
button#amadex-load-more:hover{
    color:#fff;
}
button#amadex-clear-filters {
    background: none;
    border: none;
    box-shadow: none;
    font-size: 16px;
    padding: 0;
    color: #0E7D3F;
    /* text-decoration:underline; */
}
button#amadex-load-more {
    font-size: 20px;
    padding: 10px 20px;
}
.amadex-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.amadex-results-showing {
    padding: 10px 0;
}
span#amadex-results-count {
    color: green;
    font-weight: 700;
}
.amadex-btn-outline {
    background: transparent;
    color: #fff;
}

/* .amadex-btn-outline:hover {
    background: #fff;
    color: #0e7d3f;
} */

/* Modal Styles */
.amadex-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.amadex-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 40%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.amadex-modal-header {
    background: #007cba;
    color: #fff;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.amadex-flight-details-header {
    background: #fff !important;
    color: #111827 !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid #E5E7EB !important;
    position: relative;
}

.amadex-flight-details-header h3 {
    color: #111827 !important;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.amadex-flight-details-close {
    background: #0E7D3F !important;
    color: #fff !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* .amadex-flight-details-close:hover {
    background: #0b6a34 !important;
    transform: scale(1.1);
} */

.amadex-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.amadex-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.amadex-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.amadex-modal-body {
    padding: 20px;
}

/* Flight Detail Modal - Modern Pixel Perfect Design */

.amadex-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: amadex-fadeIn 0.3s ease-out;
}

.amadex-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes amadex-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.amadex-flight-details-modal-wrapper {
    background: #ffffff;
    border-radius: 24px;
    max-width: 700px;
    width: 95%;
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: amadex-slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
}

@keyframes amadex-slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.amadex-flight-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 0;
    background: #ffffff;
    position: relative;
}

.amadex-flight-details-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.amadex-flight-details-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #E5E7EB;
    color: #6B7280;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 20px;
    right: 24px;
}

/* .amadex-flight-details-close:hover {
    background: #F9FAFB;
    border-color: #111827;
    color: #111827;
    transform: rotate(90deg) scale(1.05);
} */

.amadex-flight-details-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #E5E7EB transparent;
}

.amadex-flight-details-body::-webkit-scrollbar {
    width: 8px;
}

.amadex-flight-details-body::-webkit-scrollbar-track {
    background: transparent;
}

.amadex-flight-details-body::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 4px;
}

.amadex-flight-details-body::-webkit-scrollbar-thumb:hover {
    background: #D1D5DB;
}

div#amadex-flight-details-modal {
    max-width: 100%;
}

.amadex-flight-tabs {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    border-bottom: 2px solid #F3F4F6;
    margin: 0;
    padding: 0 28px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 5;
}

.amadex-flight-tab {
    flex: 0 1 auto;
    border: none;
    background: transparent;
    color: #000000;
    font-weight: 600;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    position: relative;
    outline: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    outline: none!important;
}

.amadex-flight-tab:hover {
    color: #0E7D3F;
    background: rgba(14, 125, 63, 0.05);
}

.amadex-flight-tab.is-active {
    color: #0E7D3F;
    border-bottom-color: #0E7D3F;
    background: transparent;
    font-weight: 700;
}

.amadex-flight-tab-panels {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 28px;
}

.amadex-flight-tab-panel {
    display: none;
    animation: amadex-fadeInPanel 0.3s ease-out;
}

@keyframes amadex-fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amadex-flight-tab-panel.is-active {
    display: block;
}

.amadex-flight-overview-card {
    background: #F3F8F4;
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid #E5E7EB;
    margin-bottom: 16px;
}

.amadex-flight-summary-left {
    flex: 1;
}

.amadex-flight-route-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.amadex-flight-overview-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.amadex-flight-overview-meta span {
    display: inline-flex;
    align-items: center;
}

.amadex-flight-chip {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(14, 125, 63, 0.1);
    color: #0E7D3F;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.amadex-flight-overview-card h4 {
    margin: 0;
    font-size: 20px;
    color: #111827;
}

.amadex-flight-date {

    color: #000;
    font-size: 14px;
}

.amadex-flight-overview-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
    font-weight: 600;
    color: #111827;
}

.amadex-flight-airline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amadex-airline-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #E5E7EB;
}

.amadex-airline-pill img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.amadex-airline-cabin {
    font-weight: 600;
    color: #0E7D3F;
}

.amadex-flight-info-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 12px 0 4px;
}

.amadex-info-pill {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 12px 16px;
}

.amadex-info-pill .label {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 4px;
}

.amadex-info-pill strong {
    font-size: 15px;
    color: #111827;
}

.amadex-flight-segment-list {
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Detailed Segment Display */
/* .amadex-segment-detailed {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 0;
    background: #ffffff;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.amadex-segment-detailed:last-child {
    margin-bottom: 0;
} */

.amadex-segment-airline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #EEF9F2 0% 0%;
    border-radius: 20px 20px 0px 0px;
}

.amadex-segment-meta-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.amadex-segment-aircraft {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
    padding: 4px 10px;
    background: #F9FAFB;
    border-radius: 6px;
}

.amadex-segment-airline-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.amadex-segment-airline-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 18px;
}

.amadex-segment-airline-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amadex-segment-airline-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
}

.amadex-segment-flight-number {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.amadex-segment-travel-class {
    font-size: 14px;
    color: #0E7D3F;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(14, 125, 63, 0.1);
    border-radius: 6px;
}

.amadex-segment-timeline-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    position: relative;
}

.amadex-segment-timeline-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    padding-bottom: 0;
}

.amadex-segment-departure,
.amadex-segment-arrival,
.amadex-segment-departure-section,
.amadex-segment-arrival-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.amadex-segment-airport-code {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-top: 4px;
}

.amadex-segment-airport-name {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    line-height: 1.3;
}

.amadex-segment-city-name {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    margin-top: 2px;
}

.amadex-segment-time-main {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.amadex-day-diff {
    font-size: 12px;
    color: #0E7D3F;
    font-weight: 600;
    vertical-align: super;
    margin-left: 2px;
}

.amadex-segment-airport-full {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amadex-segment-airport-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.amadex-segment-date-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    margin-top: 6px;
}

.amadex-date-text {
    color: #6B7280;
    font-weight: 500;
    line-height: 1.4;
}

.amadex-terminal-text {
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.amadex-segment-duration-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    position: relative;
    padding: 0 8px;
    flex-shrink: 0;
}

.amadex-segment-line-vertical {
    width: 2px;
    flex: 1;
    background: #8b8ca4;
    min-height: 34px;
    border-radius: 1px;
}

.amadex-segment-duration-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    /* padding: 8px 12px;
    background: #F0FDF4;
    border: 1px solid #0E7D3F;
    border-radius: 8px; */
    white-space: nowrap;
}

.amadex-duration-text {
    font-size: 13px;
    font-weight: 600;
    color: #707070;
    line-height: 1.2;
    border: none;
}

.amadex-segment-plane-icon {
    width: 16px;
    height: 16px;
    color: #0E7D3F;
    flex-shrink: 0;
}

.amadex-layover-info {
    margin-top: 16px;
    padding: 8px 16px;
    background: #FFF9EB;
    border: 1px dashed #F59E0B;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.amadex-layover-label {
    color: #92400E;
    font-weight: 600;
}

.amadex-layover-duration {
    color: #92400E;
    font-weight: 600;
}

/* Baggage Info Section */
.amadex-baggage-info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0 0 0;
    padding: 20px;
    border-radius: 15px;
    background: transparent linear-gradient(90deg, #EFEFEF 0%, #EFEFEF00 100%) 0% 0% no-repeat padding-box;
}

.amadex-baggage-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

.amadex-baggage-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.amadex-baggage-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amadex-baggage-label {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
}

.amadex-baggage-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.amadex-baggage-status-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.amadex-baggage-status-text {
    white-space: nowrap;
    font-weight: 600;
}

.amadex-baggage-included {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
}

.amadex-baggage-included .amadex-baggage-status-text {
    color: #0E7D3F !important;
}

.amadex-baggage-chargeable {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
}

.amadex-baggage-chargeable .amadex-baggage-status-text {
    color: #DC2626 !important;
}

.amadex-baggage-details {
    font-size: 14px;
    color: #6B7280;
    font-weight: 400;
    line-height: 1.5;
    /*margin-top: 4px;*/
}

/* Legacy support for old column layout */
.amadex-baggage-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px;
    border-right: 1px solid #E5E7EB;
}

.amadex-baggage-column:first-child {
    padding-left: 0;
}

.amadex-baggage-column:last-child {
    border-right: none;
    padding-right: 0;
}

.amadex-baggage-header {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
    margin-bottom: 4px;
}

.amadex-baggage-content {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    line-height: 1.4;
}

/* Amenities Section */
.amadex-amenities-section {
    margin: 0;
    padding: 16px 0;
    /* background: #F9FAFB;
    border-top: 1px solid #E5E7EB; */
}

.amadex-amenities-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.amadex-amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.amadex-amenity-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    /* background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 6px; */
    font-size: 13px;
}

.amadex-amenity-icon {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amadex-amenity-icon svg,
.amadex-wifi-icon,
.amadex-ac-power-icon,
.amadex-usb-power-icon,
.amadex-personal-device-icon,
.amadex-live-tv-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

.amadex-ac-power-icon {
    width: 14px;
    height: 16px;
}

.amadex-usb-power-icon {
    width: 12px;
    height: 16px;
}

.amadex-personal-device-icon {
    width: 14px;
    height: 16px;
}

.amadex-live-tv-icon {
    width: 16px;
    height: 14px;
}

.amadex-amenity-name {
    font-size: 13px;
    color: #111827;
    font-weight: 500;
    line-height: 1.4;
}

.amadex-segment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.amadex-segment-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
}

.amadex-segment-time .time {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.amadex-segment-time .code {
    font-size: 14px;
    color: #0E7D3F;
    font-weight: 600;
}

.amadex-segment-time .city {
    font-size: 13px;
    color: #6B7280;
}

.amadex-segment-middle {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    color: #6B7280;
    font-weight: 600;
}

.amadex-segment-middle .segment-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #0E7D3F, rgba(14,125,63,0));
    border-radius: 999px;
}

.amadex-layover-row {
    padding: 0;
    background: #202924;
    border-radius: 12px;
    font-size: 13px;
    color: #92400E;
    justify-content: center;
}

.amadex-flight-footer-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    border: none;
    /* margin-top: 24px; */
    z-index: 10;
    border-radius: 0;
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    box-shadow: 0px 0px 15px #00000029;
    border: 1px solid #0E7D3F !important;
    border-radius: 20px 20px 0px 0px;
}

.amadex-flight-price-wrap {
    color: #ffffff;
}

.amadex-flight-price-wrap .amadex-price-label {
    color: #000000;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-weight: 700;
}

.amadex-price-row .amadex-flight-price {
    color: #000000;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.amadex-discount-badge {
    background:#77dfa530;
    color: #0E7D3F;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 1px dashed #0E7D3F;
}


.amadex-flight-continue-btn:hover {
    background: #F0FDF4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #000000;
}

.amadex-flight-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amadex-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
}


.amadex-flight-price {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.amadex-discount-pill {
    background: #0E7D3F;
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.amadex-flight-continue-btn {
    background: #0E7D3F!important;
    color: #fff!important;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 30%;
}
.amadex-flight-continue-btn:hover {
    background: #0b6a34;
}

.amadex-fare-rules-card {
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px;
    background: #fff;
}

.amadex-fare-rules-card h4 {
    margin: 0 0 6px;
}

.amadex-fare-intro {
    margin: 0 0 18px;
    color: #6B7280;
}

.amadex-fare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.amadex-fare-grid .label {
    font-size: 12px;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.amadex-fare-rule-list {
    margin: 0;
    padding-left: 18px;
    color: #4B5563;
    line-height: 1.6;
}

.amadex-empty-details {
    text-align: center;
    color: #6B7280;
    padding: 40px 0;
}

/* Connecting Flight Banner */
.amadex-connecting-banner {
    background: #FFF9EB;
    border: 1px dashed #F59E0B;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.amadex-connecting-text {
    font-size: 14px;
    font-weight: 600;
    color: #92400E;
}

.amadex-connecting-time {
    font-size: 14px;
    font-weight: 600;
    color: #92400E;
}

/* Fare Rules Buttons */
.amadex-fare-rules-route-section {
    margin-bottom: 30px;
}

.amadex-fare-rules-route-section:last-child {
    margin-bottom: 0;
}

.amadex-fare-rules-route-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

.amadex-fare-rules-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.amadex-fare-rule-btn {
    padding: 10px 18px;
    border: 2px solid #0E7D3F;
    background: #ffffff;
    color: #0E7D3F;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amadex-fare-rule-btn:hover {
    background: #F0FDF4;
}

.amadex-fare-rule-btn.active {
    background: #0E7D3F;
    color: #ffffff;
}

.amadex-fare-rules-content {
    margin-top: 16px;
}

.amadex-fare-rule-text {
    display: none;
    font-size: 14px;
    line-height: 1.6;
    color: #4B5563;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.amadex-fare-rule-text.active {
    display: block;
}

/* Update Flight Footer Bar */
.amadex-flight-price-wrap {
    color: #ffffff;
}

.amadex-flight-price {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.amadex-flight-continue-btn:hover {
    background: #F0FDF4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==================== Sticky Call Now Banner ==================== */
/* Pulse Animation Keyframes */
@keyframes amadex-call-banner-pulse {
    0% {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(14, 125, 63, 0.7);
    }
    50% {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(14, 125, 63, 0);
    }
    100% {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(14, 125, 63, 0);
    }
}

@-webkit-keyframes amadex-call-banner-pulse {
    0% {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(14, 125, 63, 0.7);
    }
    50% {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(14, 125, 63, 0);
    }
    100% {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(14, 125, 63, 0);
    }
}

/* Base banner styles - hidden by default */
.amadex-call-now-banner {
    display: none;
}

/* Floating banner - hidden on desktop, shown only on mobile */
.amadex-call-now-floating {
    display: none !important;
}

/* Pulse effect for floating banner - hidden on desktop */
.amadex-call-now-pulse.amadex-call-now-floating {
    display: none !important;
}

/* Explicitly hide on desktop/large devices (MacBook, large screens) */
@media (min-width: 769px) {
    .amadex-call-now-banner.amadex-call-now-floating,
    .amadex-call-now-banner.amadex-call-now-floating.amadex-call-now-pulse,
    .amadex-call-now-floating,
    .amadex-call-now-pulse.amadex-call-now-floating {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

/* Hide on very large screens (MacBook Pro, large desktops) */
@media (min-width: 1024px) {
    .amadex-call-now-banner.amadex-call-now-floating,
    .amadex-call-now-banner.amadex-call-now-floating.amadex-call-now-pulse {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Mobile-only banner - shows only on mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .outer-route {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0e7d3f;
    padding: 10px 20px;
    border-radius: 80px;
}
.amadex-results-content-wrapper {
    padding: 0px !important;
}
    /* Floating banner - show on mobile devices */
    .amadex-call-now-floating {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #fff;
        border-radius: 20px 20px 0 0 !important;
        padding: 12px 16px;
        z-index: 99999 !important;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
        margin: 0 !important;
        max-width: 100% !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }
    .amadex-call-now-banner.amadex-call-now-floating.amadex-call-now-pulse{
        border-radius: 20px;
    }
    
    .amadex-call-now-floating:hover,
    .amadex-call-now-floating:active {
        background: #0a5d2e;
    }
    
    .amadex-call-now-floating:active {
        transform: translateY(2px);
    }
    
    /* Pulse effect for floating banner on mobile */
    .amadex-call-now-pulse.amadex-call-now-floating {
        display: block !important;
        animation: amadex-call-banner-pulse 2s ease-in-out infinite;
        -webkit-animation: amadex-call-banner-pulse 2s ease-in-out infinite;
    }
    
    .amadex-call-now-mobile-only,
    .amadex-call-now-banner:not(.amadex-call-now-floating) {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #0E7D3F;
        border-radius: 20px 20px 0 0 !important;
        padding: 12px 16px;
        z-index: 99999 !important;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
        margin: 0 !important;
        max-width: 100% !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }
    
    .amadex-call-now-mobile-only:hover,
    .amadex-call-now-mobile-only:active,
    .amadex-call-now-banner:not(.amadex-call-now-floating):hover,
    .amadex-call-now-banner:not(.amadex-call-now-floating):active {
        background: #0a5d2e;
    }
    
    .amadex-call-now-mobile-only:active,
    .amadex-call-now-banner:not(.amadex-call-now-floating):active {
        transform: translateY(2px);
    }

    
    .amadex-call-now-pulse.amadex-call-now-mobile-only,
    .amadex-call-now-pulse.amadex-call-now-banner:not(.amadex-call-now-floating) {
        animation: amadex-call-banner-pulse 2s ease-in-out infinite;
        -webkit-animation: amadex-call-banner-pulse 2s ease-in-out infinite;
    }

    .amadex-call-banner-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        max-width: 100%;
        margin: 0 auto;
        flex-wrap: wrap;
    }

    .amadex-call-banner-left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .amadex-call-icon-circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .amadex-call-icon-circle svg {
        width: 20px;
        height: 20px;
        color: #0E7D3F;
    }

    .amadex-call-phone-number {
        font-size: 16px;
        font-weight: 700;
        color: #ffffff;
        text-decoration: none;
        white-space: nowrap;
        transition: opacity 0.2s ease;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .amadex-call-phone-number:hover {
        opacity: 0.9;
        color: #ffffff;
        text-decoration: none;
    }

    .amadex-call-banner-middle {
        order: 3;
        width: 100%;
        flex: 1 1 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    .amadex-call-cta-text {
        background: #ffffff;
        color: #0E7D3F;
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        text-align: center;
        width: 100%;
        max-width: 280px;
    }

    .amadex-call-banner-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
    }

    .amadex-call-service-image {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        overflow: hidden;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 3px solid rgba(255, 255, 255, 0.3);
    }

    .amadex-call-service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
}

/* Extra small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .amadex-call-now-banner {
        padding: 10px 12px;
        border-radius: 0 !important;
    }

    .amadex-call-banner-content {
        gap: 8px;
    }

    .amadex-call-icon-circle {
        width: 36px;
        height: 36px;
    }

    .amadex-call-icon-circle svg {
        width: 18px;
        height: 18px;
    }

    .amadex-call-phone-number {
        font-size: 14px;
    }

    .amadex-call-cta-text {
        padding: 5px 12px;
        font-size: 11px;
    }

    .amadex-call-service-image {
        width: 50px;
        height: 50px;
    }
}

/* Add padding to prevent content from being hidden behind banner */
/* JavaScript will handle this dynamically for better browser compatibility */
/* Base padding for floating banners - only on mobile */
@media (max-width: 768px) {
    body.amadex-has-call-banner {
        padding-bottom: 90px;
    }
}

@media (max-width: 480px) {
    body.amadex-has-call-banner {
        padding-bottom: 80px;
    }
}

/* Remove padding on desktop/large devices where banner is hidden */
@media (min-width: 769px) {
    body.amadex-has-call-banner {
        padding-bottom: 0 !important;
    }
    
    /* Ensure banner doesn't take up space on desktop */
    .amadex-call-now-banner.amadex-call-now-floating,
    .amadex-call-now-banner.amadex-call-now-floating.amadex-call-now-pulse {
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
}


/* ==================== Galaxy S24 Ultra & Large Phones (412px - 430px) ==================== */
@media (max-width: 430px) {
    /* Flight Cards */
    .amadex-flight-card {
        padding: 0;
        border-radius: 16px !important;
    }
    
    .amadex-flight-card-main {
        gap: 0;
    }

    .amadex-flight-price {
        font-size: 20px !important;
    }
    
    /* Flight Details Modal */
    .amadex-flight-details-modal-wrapper {
        width: 96% !important;
        max-width: 96% !important;
        margin: 10px !important;
        border-radius: 16px !important;
    }
    
    .amadex-flight-details-header {
        padding: 14px 12px !important;
    }
    
    .amadex-flight-details-header h3 {
        font-size: 18px !important;
    }
    
    .amadex-flight-tabs {
        padding: 8px 6px !important;
        gap: 6px !important;
    }
    
    .amadex-flight-tab {
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }
    
    .amadex-flight-footer-bar {
        padding: 12px 14px !important;
        border-radius: 0 0 16px 16px !important;
    }
    
    .amadex-flight-price-wrap {
        gap: 4px !important;
    }
    
    .amadex-price-label {
        font-size: 11px !important;
    }
    
    .amadex-flight-price {
        font-size: 20px !important;
    }

    .amadex-modal-body {
    padding: 12px;
}
    
    .amadex-flight-continue-btn {
        padding: 12px 20px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }
    
    /* Flight Segments */
    .amadex-flight-segment-list {
        padding: 12px !important;
    }
    
    .amadex-segment-airline-header {
        padding: 10px 12px !important;
    }
    
    .amadex-segment-airline-logo {
        width: 40px !important;
        height: 40px !important;
    }
    
    .amadex-segment-airline-name {
        font-size: 13px !important;
    }
    
    .amadex-segment-point {
        padding: 10px 12px !important;
    }
    
    .amadex-segment-point-time {
        font-size: 16px !important;
    }
    
    .amadex-segment-point-airport {
        font-size: 12px !important;
    }
    
    /* Connecting Banner */
    .amadex-connecting-banner {
        padding: 10px 12px !important;
        margin: 12px 0 !important;
        border-radius: 10px !important;
        font-size: 12px !important;
    }
    
    /* Baggage Info */
    .amadex-baggage-info-section {
        padding: 12px !important;
    }
    
    .amadex-baggage-item {
        padding: 10px 12px !important;
    }
    
    .amadex-baggage-label {
        font-size: 12px !important;
    }
    
    .amadex-baggage-value {
        font-size: 14px !important;
    }
    
    /* Call Now Banner */
    .amadex-call-now-banner {
        padding: 12px 14px !important;
        border-radius: 20px !important;
    }
    
    .amadex-call-banner-content {
        gap: 10px !important;
    }
    
    .amadex-call-phone-number {
        font-size: 15px !important;
    }
    
    .amadex-call-cta-text {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
}

/* ==================== Galaxy S24 Ultra Specific (412px) ==================== */
@media (max-width: 412px) {
    .amadex-flight-card {
        padding: 12px 10px !important;
    }
    
    .amadex-flight-details-modal-wrapper {
        width: 98% !important;
        max-width: 98% !important;
        margin: 5px !important;
    }
    
    .amadex-flight-tabs {
        padding: 6px 4px !important;
        gap: 4px !important;
    }
    
    .amadex-flight-tab {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    .amadex-flight-price {
        font-size: 18px !important;
    }
    
    .amadex-flight-continue-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .amadex-segment-point-time {
        font-size: 15px !important;
    }
    
    .amadex-call-now-banner {
        padding: 10px 12px !important;
    }
    
    .amadex-call-phone-number {
        font-size: 14px !important;
    }
}

@media (max-width: 640px) {
    .amadex-flight-tabs {
        flex-direction:row;
    }
    
    .amadex-flight-overview-card {
        flex-direction: column;
        gap: 10px;
    }
    
    .amadex-flight-footer-bar {
        flex-direction: column;
        align-items: center;
    }
    
    .amadex-flight-continue-btn {
        width: 100%;
        text-align: center;
    }
}

/* Booking Form */
.amadex-booking-form h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.amadex-form-group {
    margin-bottom: 20px;
}

.amadex-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.amadex-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}



.amadex-booking-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Responsive Design - Tablets and Larger Screens (768px and above) */
@media only screen and (min-width: 768px) {
    /* Ensure consistent container widths and alignment */
    .amadex-search-bar-wrapper {
        width: 100%;
    }
    
    .amadex-results-content-wrapper {
        width: 100%;
    }
    
    .amadex-results-content {
        max-width: 1500px;
        grid-template-columns: 320px 1fr;
        gap: 28px;
        padding: 0 20px;
    }
    
    /* Ensure main results area fills available space */
    .amadex-results-main {
        width: 100%;
        max-width: 100%;
    }
    
    /* Ensure booking progress bar aligns properly */
    .amadex-booking-progress {
        width: 100%;
        max-width: 100%;
    }
    
    /* Ensure sort bar aligns properly */
    .amadex-results-sort-bar {
        width: 100%;
    }
}

/* Responsive Design - Large Screens (1024px and above) */
@media only screen and (min-width: 1024px) {
    /* Maintain consistent max-width and alignment */
    .amadex-results-content {
        max-width: 1500px;
        grid-template-columns: 320px 1fr;
        gap: 28px;
        padding: 0 20px;
    }
    
    .amadex-search-bar-container {
        max-width: 1500px;
        padding: 10px 20px;
    }
}

/* Responsive Design - Extra Large Screens (1280px and above) */
@media only screen and (min-width: 1280px) {
    /* Ensure layout remains stable on very large screens */
    .amadex-results-content {
        max-width: 1500px;
    }
    
    .amadex-search-bar-container {
        max-width: 1500px;
    }
}

/* Responsive Design - Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .amadex-form {
        grid-template-columns: 1fr;
    }
    
    .amadex-search-bar-wrapper {
        padding: 16px 0;
        width: 100%;
    }
    
    .amadex-search-bar-container {
        padding: 0 15px;
    }
    
    .amadex-results-content-wrapper {
        padding: 16px 0;
        width: 100%;
    }
    
    .amadex-results-content {
        grid-template-columns: 1fr;
        padding: 0 15px;
        max-width: 100%;
    }
    
    .amadex-filters-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .amadex-search-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .amadex-search-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .amadex-results-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .amadex-flight-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .amadex-flight-actions {
        flex-direction: column;
    }
    
    .amadex-segment-airports {
        flex-direction: column;
        gap: 10px;
    }
    
    .amadex-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Utility Classes */
.amadex-hidden {
    display: none !important;
}

.amadex-text-center {
    text-align: center;
}

.amadex-text-success {
    color: #28a745;
}

.amadex-text-error {
    color: #dc3545;
}

.amadex-mb-20 {
    margin-bottom: 20px;
}

.amadex-mt-20 {
    margin-top: 20px;
}

/* Call Now Popup Styles */
/* ==================== New Adobe XD Popup Design ==================== */
.amadex-call-modal-content {
    max-width: 750px;
    width: 95%;
    margin: 2% auto;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-top: 20rem;
    position: relative;
}

.amadex-call-popup-new {
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Limited Time Offer Banner */
.amadex-popup-banner {
    background: rgb(253 225 175);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    font-weight: 600;
    font-size: 14px;
    border-radius: 15px;
}

.amadex-banner-text {
    font-weight: 600;
}

.amadex-banner-countdown {
    font-weight: 600;
    color: #000;
}

.amadex-banner-countdown #amadex-countdown {
    font-weight: 700;
    color: #AA2300;
}

/* Two Column Layout */
.amadex-popup-content-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 400px;
}

/* Left Column: Flight Details */
.amadex-popup-left-column {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent linear-gradient(90deg, #FFEFDB 0%, #FBE8D000 100%) 0% 0% no-repeat padding-box;
    border-radius: 20px;
}

.amadex-popup-deal-heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.amadex-deal-label {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.amadex-deal-destination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.amadex-deal-destination {
    font-size: 30px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.amadex-deal-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.amadex-price-label-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.amadex-price-amount-large {
    font-size: 28px;
    font-weight: 700;
    color: #0E7D3F;
    line-height: 1;
}

/* Flight Itinerary Box */
.amadex-popup-flight-box {
    border: none;
    border-radius: 12px;
    padding: 20px;
    /* background: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='305' height='134' viewBox='0 0 305 134'%3E%3Cg id='Subtraction_1' data-name='Subtraction 1' transform='translate(-16)' fill='%23fff' stroke-linecap='round' stroke-dasharray='3'%3E%3Cpath d='M301,134H36a20,20,0,0,1-20-20V75.5h.629a8.749,8.749,0,0,0,0-17.5H16V20A20,20,0,0,1,36,0H301a20,20,0,0,1,20,20V58h-2.63a8.749,8.749,0,0,0,0,17.5H321V114a20,20,0,0,1-20,20Z' stroke='none'/%3E%3C/g%3E%3C/svg%3E"); */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
    border: 1px dashed #0e7d3f;
    box-shadow: 0px 0px 15px #615c5c45;
    background: #fff;
}

/* .amadex-popup-flight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='305' height='134' viewBox='0 0 305 134'%3E%3Cg id='Subtraction_1' data-name='Subtraction 1' transform='translate(-16)' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-dasharray='3 3'%3E%3Cpath d='M301,134H36a20,20,0,0,1-20-20V75.5h.629a8.749,8.749,0,0,0,0-17.5H16V20A20,20,0,0,1,36,0H301a20,20,0,0,1,20,20V58h-2.63a8.749,8.749,0,0,0,0,17.5H321V114a20,20,0,0,1-20,20Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 0;
} */

.amadex-popup-flight-box > * {
    position: relative;
    z-index: 1;
}

.amadex-flight-box-header {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    background: #F6F6F6 0% 0% no-repeat padding-box;
    border-radius: 11px;
    padding: 10px 12px;
    width: auto;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.amadex-flight-box-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.amadex-flight-box-segment {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.amadex-flight-box-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.amadex-flight-box-code {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.amadex-flight-box-city {
    font-size: 14px;
    color: #666;
}

.amadex-flight-box-date {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.amadex-flight-box-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.amadex-flight-box-arrow svg {
    width: 100px;
    height: 100px;
}

.amadex-segment-duration-line svg {
    transform: rotate(90deg);
}

/* Call Button */
.amadex-popup-call-button-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #0e7d3f;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.amadex-popup-call-button-large:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.amadex-call-icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.amadex-call-button-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Right Column: Customer Service & Trust */
.amadex-popup-right-column {
    flex: 0 0 320px;
}

.amadex-customer-service-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.amadex-customer-service-placeholder {
    width: 120px;
    height: 120px;
    background: #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Trust Badges */
.amadex-popup-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.amadex-trust-badge-years {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.amadex-trust-badge-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

.amadex-trust-years-text {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
}

.amadex-trust-badge-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: #22c55e;
    padding: 4px 12px;
    border-radius: 4px;
    color: #ffffff;
    margin-top: -8px;
    position: relative;
    z-index: 1;
}

.amadex-trust-badge-trustpilot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.amadex-trustpilot-logo {
    font-size: 16px;
    font-weight: 700;
    color: #00b67a;
    letter-spacing: 0.5px;
}

.amadex-trustpilot-stars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.amadex-star {
    color: #00b67a;
    font-size: 18px;
    line-height: 1;
}

.amadex-star-partial {
    opacity: 0.5;
}

.amadex-trustpilot-rating {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

/* Call Modal Close Button */
.amadex-call-modal-content .amadex-modal-close {
    color: #161313;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s 
ease;
    position: absolute;
    top: -10px;
    right: 4px;
    z-index: 10;
}

.amadex-call-modal-content .amadex-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

/* Responsive Design for New Popup */
@media (max-width: 768px) {
    /* Prevent body scroll when modal is open */
    body.amadex-modal-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .amadex-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20vh;
    }
    
    .amadex-call-modal-content {
        max-width: 95%;
        width: 95%;
        margin: 0 auto;
        border-radius: 20px;
        max-height: 96vh;
        overflow-y: auto;
        position: relative;
        -webkit-overflow-scrolling: touch;
    }
    
    .amadex-call-modal-content .amadex-modal-close {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
        padding: 6px;
        background: rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .amadex-call-modal-content .amadex-modal-close svg {
        width: 16px;
        height: 16px;
    }
    
    .amadex-popup-content-wrapper {
        flex-direction: row;
        min-height: auto;
        flex-wrap: nowrap;
    }
    
    .amadex-popup-left-column {
        padding: 20px 16px;
        gap: 16px;
       flex-direction: column;
    }
    
    .amadex-popup-right-column {
        flex: 1;
        padding: 20px 16px;
        border-radius: 0 0 20px 20px;
    }
    
    /* Banner adjustments */
    .amadex-popup-banner {
        padding: 10px 16px;
        font-size: 10px;
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .amadex-banner-text {
        font-size: 13px;
        font-weight: 600;
    }
    
    .amadex-banner-countdown {
        font-size: 13px;
        font-weight: 600;
    }
    
    .amadex-banner-countdown #amadex-countdown {
        font-size: 14px;
        font-weight: 700;
        color: #DC2626;
    }
    
    /* Deal heading adjustments */
    .amadex-popup-deal-heading {
        gap: 8px;
    }
    
    .amadex-deal-label {
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.3px;
    }
    
    .amadex-deal-destination-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .amadex-deal-destination {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
        flex: 1;
        min-width: 0;
    }
    
    .amadex-deal-price-section {
        align-items: flex-end;
        gap: 2px;
    }
    
    .amadex-price-amount-large {
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
    }
    
    /* Flight box adjustments */
    .amadex-popup-flight-box {
        padding: 8px;
        border-radius: 12px;
    }
    
    .amadex-flight-box-header {
        font-size: 12px;
        padding: 8px 12px;
        width: auto;
        margin-bottom: 12px;
        text-align: center;
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .amadex-flight-box-route {
        flex-direction: row;
        gap: 8px;
        align-items: flex-start;
    }
    
    .amadex-flight-box-segment {
        flex: 1;
        gap: 4px;
        min-width: 0;
    }
    
    .amadex-flight-box-label {
        font-size: 11px;
        font-weight: 500;
        color: #666;
        margin-bottom: 2px;
    }
    
    .amadex-flight-box-code {
        font-size: 18px;
        font-weight: 700;
        color: #000;
        line-height: 1.2;
    }
    
    .amadex-flight-box-city {
        font-size: 13px;
        color: #666;
        font-weight: 400;
        line-height: 1.3;
        margin-top: 2px;
    }
    
    .amadex-flight-box-date {
        font-size: 11px;
        color: #666;
        margin-top: 4px;
        line-height: 1.3;
    }
    
    .amadex-flight-box-arrow {
        width: 40px;
        height: auto;
        flex-shrink: 0;
        padding: 0 4px;
        align-self: center;
    }
    
    .amadex-flight-box-arrow svg {
        width: 100%;
        max-width: 80px;
        height: auto;
    }
    
    /* Call button adjustments */
    .amadex-popup-call-button-large {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        font-weight: 700;
        border-radius: 16px;
        gap: 10px;
    }
    
    .amadex-call-icon-svg {
        width: 18px;
        height: 18px;
    }
    
    .amadex-call-button-text {
        font-size: 12px;
        font-weight: 700;
        min-height: auto;
    }
    
    /* Right column adjustments */
    .amadex-popup-right-column {
        padding: 20px 16px;
        gap: 20px;
    }
    
    .amadex-customer-service-img {
        max-width: 180px;
        margin: 0 auto;
    }
    
    .amadex-popup-trust-badges {
        gap: 16px;
    }
    
    .amadex-trust-badge-circle {
        width: 70px;
        height: 70px;
    }
    
    .amadex-trust-years-text {
        font-size: 12px;
    }
    
    .amadex-trust-badge-label {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .amadex-trustpilot-logo {
        font-size: 14px;
    }
    
    .amadex-star {
        font-size: 16px;
    }
    
    .amadex-trustpilot-rating {
        font-size: 11px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .amadex-modal {
        padding: 5px;
        padding-top: 20vh;
    }


    .amadex-popup-banner {
        position: absolute;
        bottom: 1rem;
        width: 90%;
        margin: auto;
    }

.amadex-modal-body {
min-height: 380px;
}
    
    .amadex-call-modal-content {
        max-width: 98%;
        width: 98%;
        margin: 0 auto;
        border-radius: 16px;
        max-height: 98vh;
    }
    
    .amadex-call-modal-content .amadex-modal-close {
        width: 28px;
        height: 28px;
        top: 8px;
        right: 8px;
        padding: 5px;
        background: rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.15);
    }
    
    .amadex-call-modal-content .amadex-modal-close svg {
        width: 14px;
        height: 14px;
    }
    
    .amadex-popup-left-column {
        padding: 16px 12px;
        gap: 14px;
    }
    
    .amadex-popup-right-column {
        padding: 0;
        align-items: center;
        display: flex;
    }
    
    .amadex-popup-banner {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .amadex-banner-countdown #amadex-countdown {
        font-size: 13px;
    }
    
    .amadex-deal-label {
        font-size: 13px;
    }
    
    .amadex-deal-destination {
        font-size: 14px;
    }
    
    .amadex-price-amount-large {
        font-size: 14px;
    }
    
    .amadex-popup-flight-box {
        padding: 8px;
    }
    
    .amadex-flight-box-header {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .amadex-flight-box-code {
        font-size: 10px;
    }
    
    .amadex-flight-box-city {
        font-size: 10px;
    }
    
    .amadex-flight-box-date {
        font-size: 10px;
    }
    
    .amadex-flight-box-arrow {
        width: 30px;
        padding: 0 2px;
    }
    
    .amadex-popup-call-button-large {
        padding: 12px 10px;
        font-size: 15px;
    }
    
    .amadex-customer-service-img {
        max-width: 175px;
    }
    
    .amadex-trust-badge-circle {
        width: 60px;
        height: 60px;
    }
    
    .amadex-trust-years-text {
        font-size: 11px;
    }
}

/* Airline Logo Styles */
.amadex-flight-airline-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.amadex-flight-airline-logo span {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

/* Passengers & Cabin Trigger Styles */
.amadex-passengers-cabin-field {
    position: relative;
}

.amadex-passengers-cabin-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amadex-passengers-cabin-trigger:hover {
    border-color: #007cba;
}

.amadex-pax-icon {
    font-size: 18px;
}

.amadex-pax-summary {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.amadex-cabin-summary {
    font-size: 14px;
    color: #666;
}

.amadex-trigger-arrow {
    margin-left: auto;
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.amadex-passengers-cabin-trigger.active .amadex-trigger-arrow {
    transform: rotate(180deg);
}

/* Passengers & Cabin Modal Styles */
.amadex-passengers-cabin-modal-content {
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.amadex-passengers-cabin-modal-content .amadex-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

.amadex-passengers-cabin-modal-content .amadex-modal-close:hover {
    color: #333;
}

.amadex-passengers-cabin-modal-content .amadex-modal-body {
    padding: 30px;
}

/* Cabin Section */
.amadex-cabin-section {
    margin-bottom: 30px;
}

.amadex-cabin-section h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.amadex-cabin-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.amadex-cabin-btn {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amadex-cabin-btn:hover {
    border-color: #007cba;
}

.amadex-cabin-btn.active {
    background: #F0FFF7;
    border-color: #0e7d3f;
    color: #0e7d3f;
}

/* Travelers Section */
.amadex-travelers-section {
    margin-bottom: 25px;
}

.amadex-travelers-section h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.amadex-traveler-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.amadex-traveler-row:last-child {
    border-bottom: none;
}

.amadex-traveler-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.amadex-traveler-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.amadex-traveler-age {
    font-size: 13px;
    color: #666;
}

.amadex-traveler-counter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.amadex-counter-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.amadex-counter-btn:hover:not(:disabled) {
    border-color: #007cba;
    background: #f0f8ff;
}

.amadex-counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.amadex-counter-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: center;
}

.amadex-unaccompanied-minor {
    margin-top: 15px;
    text-align: center;
}

.amadex-unaccompanied-link {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.amadex-unaccompanied-link:hover {
    text-decoration: underline;
}

/* Done Button */
.amadex-modal-actions {
    margin-top: 25px;
}

.amadex-done-btn {
    width: 100%;
    padding: 15px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amadex-done-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Responsive for Modal */
@media (max-width: 768px) {
    .amadex-passengers-cabin-modal-content {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .amadex-cabin-options {
        grid-template-columns: 1fr;
    }
    
    .amadex-passengers-cabin-modal-content .amadex-modal-body {
        padding: 20px;
    }
}



/*New*/
.amadex-calendar-widget, #departure-calendar, #return-calendar {
    left: 34rem;
    right: auto;
    border-radius: 10px;
}


.amadex-se-hero, .amadex-se-popular, .close_amadex_form {
    display: none;
}

/*.amadex-modern-field, #origin-field, #destination-field, #departure-field, #return-field, #travellers-field {*/
/*    padding: 0 !important;*/
/*}*/
.amadex-search-fields {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
}
input[type="radio"] {
  accent-color: #0E7D3F;
}
button#swap-locations {
    outline: none;
}

.wrapper input[type=text], .wrapper input[type=email], .wrapper input[type=phone], .wrapper input[type=tel], .wrapper input[type=number], .wrapper input[type=date], .wrapper input[type=file], .wrapper input[type=password], .wrapper textarea, .wrapper select{
    background: transparent !important;
}
button#amadex-modify-search-btn {
    margin: 0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.wrapper input[type=text], .wrapper input[type=email], .wrapper input[type=phone], .wrapper input[type=tel], .wrapper input[type=number], .wrapper input[type=date], .wrapper input[type=file], .wrapper input[type=password], .wrapper textarea, .wrapper select {
    box-sizing: border-box;
    background-color: var(--dst--input-bg-color, #fff);
    color: var(--dst--input-color);
    border: var(--dst--input-border-width, 1px) solid var(--dst--input-border-color, #666);
    border-radius: var(--dst--input-border-radius, 5px);
    font-size: clamp(16px,1vw,var(--dst--input-font-size));
    font-weight: var(--dst--input-font-weight, 400);
}

input#modern-departure {
    padding: 0;
}

div#origin-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: #fff;
    margin-top: 8px;
    border-radius: 10px;
    z-index: 9000;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

div#destination-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: #fff;
    margin-top: 8px;
    border-radius: 10px;
    z-index: 9000;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Tablet Devices */
@media (min-width: 768px) and (max-width: 1024px) {
    .amadex-travellers-value {
    font-size: 12px;
}
.amadex-field-value {
    font-size: 12px;
}
.amadex-travellers-value {
    justify-content: space-between !important;
    align-items: center !important;
    background: #fff;
    padding: 12px 14px;
}
}

/* Mobile Devices */
@media (max-width: 1024px) {
    .amadex-calendar-month {
    display: flex;
    flex-direction: column;
    align-items: center;
}
    .amadex-calendar-widget, #departure-calendar, #return-calendar {
    left: 0;
    top: 15rem;
    right: auto;
    border-radius: 10px;
}
    button#swap-locations {
    position: absolute;
    top: 10rem;
    right: 5px;
}
div#dateID {
    border: 0;
}
.amadex-modern-form.amadex-multi-city-mode .amadex-modern-field.amadex-date-field.field-disabled.return-promo {
    background: none !important;
}

.amadex-modern-field, #origin-field, #destination-field, #departure-field, #return-field, #travellers-field {
    padding: 0 !important;
}
div#return-field {
    border: 0 !important;
}

.amadex-travellers-trigger {
    padding: 0;
}

.amadex-travellers-value {
    justify-content: space-between !important;
    align-items: center !important;
    background: #fff;
    border-radius: 10px !important;
    padding: 12px 14px;
}
    
    .amadex-search-fields {
    background: transparent;
    flex-direction: column;
    gap: 10px;
}

.amadex-field-input-wrap {
    background: #fff;
    border-radius: 10px;
    height: 5rem;
    padding: 12px;
}
   .submit-btn-amadex {
    width: 100%;
}
button#amadex-modify-search-btn {
    border-radius: 10px;
}
}
/* ============================================
   MULTI-CITY: Force return field to look like One Way
   Hides "Book round trip and Save More" text
   ============================================ */
.amadex-modern-form.amadex-multi-city-mode #return-field,
.amadex-modern-form.amadex-multi-city-mode #return-field.return-promo,
.amadex-modern-form.amadex-multi-city-mode #return-field.field-disabled.return-promo {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

/* Hide the promo text completely in multi-city */
.amadex-modern-form.amadex-multi-city-mode #return-display {
    color: #999 !important;
    font-weight: 400 !important;
    font-size: inherit !important;
}

/* Hide the <strong>Save More</strong> in multi-city */
.amadex-modern-form.amadex-multi-city-mode #return-display strong {
    display: none !important;
}

/* Replace text visually — hide "Book round trip and " via font-size 0 trick */
.amadex-modern-form.amadex-multi-city-mode #return-display {
    font-size: 0 !important;
}

/* Show only a dash/placeholder when in multi-city mode */
.amadex-modern-form.amadex-multi-city-mode #return-display::after {
    content: "Return Date";
    font-size: 12px !important;
    color: #999 !important;
    font-weight: 400 !important;
}
/* div#return-field {
    padding: 0 !important;
} */
/* ============================================
   MULTI-CITY ROW STYLES (#amadex-multicity-wrapper)
   ============================================ */
#amadex-multicity-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.amadex-multi-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
}

.amadex-multi-row .amadex-mc-field {
    flex: 1;
    min-width: 0;
    position: relative;
}

.amadex-multi-row .amadex-mc-field .amadex-field-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 14px;
    height: 56px;
    cursor: pointer;
}

.amadex-multi-row .amadex-mc-field .amadex-field-value {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
    width: 100%;
}

.amadex-multi-row .amadex-mc-field .amadex-field-value::placeholder {
    color: #999;
}

.amadex-multi-row .amadex-mc-field .mc-date-display {
    flex: 1;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.amadex-multi-row .amadex-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.amadex-multi-row .amadex-suggestions-dropdown.active {
    display: block;
}

/* Remove button */
.amadex-remove-mc-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    height: 56px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.amadex-remove-mc-btn:hover {
    background: #fff0f0;
    border-color: #e53e3e;
    color: #e53e3e;
}

@media (max-width: 768px) {
    .amadex-multi-row {
        flex-wrap: wrap;
    }
    .amadex-multi-row .amadex-mc-field {
        flex: 1 1 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
    .amadex-remove-mc-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Hide old add-city-btn when new multi-city system is active */
.amadex-modern-form.amadex-multi-city-mode #add-city-btn {
    display: none !important;
}

/* Multi-city uses existing addFlightSegment system — hide new wrapper */
#amadex-multicity-wrapper { display: none !important; }
#amadex-add-city { display: none !important; }

/* Ensure add-city-btn shows properly in multi-city */
.amadex-modern-form.amadex-multi-city-mode #add-city-btn {
    display: inline-flex !important;
}

/* Remove button in existing segments — hide on segment 1 */
.amadex-flight-segment[data-segment="1"] .amadex-remove-segment-btn {
    display: none !important;
}

/* Multi-city segment autocomplete dropdowns — position relative to their parent field */
[id^="origin-suggestions-"],
[id^="destination-suggestions-"] {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: #fff;
    margin-top: 8px;
    border-radius: 10px;
    z-index: 9000;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: none;
}

[id^="origin-suggestions-"].active,
[id^="destination-suggestions-"].active {
    display: block;
}

/* Ensure segment location fields are position:relative so dropdowns anchor correctly */
.amadex-flight-segment .amadex-location-field {
    position: relative !important;
    overflow: visible !important;
}
 
button.amadex-swap-button.amadex-segment-swap {
    width: 31px;
    height: 32px;
    background: #0d7d40 !important;
    border-radius: 29px;
}

.pointernone {
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.2 !important;
}

button.amadex-swap-button:focus {
  outline: none;
  box-shadow: none;
}

.page-id-803 .amadex-results-page .amadex-search-bar-wrapper{
    display: none !important;
}

/* =============================================================================
   APPENDED SECTION — Missing CSS for flight-results page
   Added to replace commented-out enqueue calls without touching search bar CSS.
   Sources: amadex-loading-animations.css, amadex-virtual-scroll.css,
            amadex-regional-settings.css, amadex-step-elements.css,
            amadex-creative-experience.css
   Last updated: 19-03-26
   ============================================================================= */


/* =============================================================================
   A. LOADING ANIMATIONS & SKELETON UI
   Source: amadex-loading-animations.css
   ============================================================================= */

.amadex-loading-animation {
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.amadex-loading-content {
    max-width: 320px;
    margin: 0 auto;
}

.amadex-airplane-container {
    margin-bottom: 1rem;
}

.amadex-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid #e0e0e0;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: amadex-spin-loader 0.8s linear infinite;
}

@keyframes amadex-spin-loader {
    to { transform: rotate(360deg); }
}

.amadex-loading-message {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #333;
}

.amadex-progress-container {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.amadex-progress-bar {
    height: 100%;
    width: 30%;
    background: #0073aa;
    border-radius: 2px;
    animation: amadex-progress-anim 1.2s ease-in-out infinite;
}

@keyframes amadex-progress-anim {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(233%); }
}

.amadex-loading-animation.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Skeleton placeholders */
.amadex-skeleton-container {
    margin-bottom: 1rem;
}

.amadex-skeleton-card {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.amadex-skeleton-header {
    margin-bottom: 0.75rem;
}

.amadex-skeleton-content {
    margin-bottom: 0.75rem;
}

.amadex-skeleton-price {
    overflow: hidden;
}

.amadex-skeleton-line {
    background: linear-gradient(90deg, #e8e8e8 25%, #f0f0f0 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: amadex-skeleton-shine 1.2s ease-in-out infinite;
}

@keyframes amadex-skeleton-shine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.amadex-skeleton-container.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* =============================================================================
   B. VIRTUAL SCROLL
   Source: amadex-virtual-scroll.css
   ============================================================================= */

.amadex-virtual-scroll-container {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.amadex-virtual-scroll-wrapper {
    position: relative;
    width: 100%;
}

.amadex-virtual-scroll-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.amadex-virtual-scroll-item {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .amadex-virtual-scroll-container {
        -webkit-overflow-scrolling: touch;
    }
}


/* =============================================================================
   C. REGIONAL SETTINGS MODAL & BUTTON
   Source: amadex-regional-settings.css
   ============================================================================= */

.amadex-regional-settings-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.amadex-regional-settings-btn:hover:not(.amadex-regional-settings-btn--capsule) {
    background: #f5f5f5;
    border-color: #0E7D3F;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.amadex-regional-settings-btn:focus {
    outline: none;
    border-color: #0E7D3F;
    box-shadow: 0 0 0 3px rgba(14,125,63,0.1);
}

/* Capsule Variant */
#amadex-regional-settings-trigger.amadex-regional-settings-btn--capsule,
.amadex-regional-settings-btn.amadex-regional-settings-btn--capsule,
button.amadex-regional-settings-btn--capsule {
    gap: 6px !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    background: #0E7D3F !important;
    color: #ffffff !important;
    border: 1px solid #0E7D3F !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 4px rgba(14,125,63,0.2) !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    height: auto !important;
}

.amadex-regional-settings-btn--capsule .amadex-regional-settings-code {
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

.amadex-regional-settings-btn--capsule .amadex-regional-settings-divider {
    color: rgba(255,255,255,0.7) !important;
    opacity: 0.8 !important;
    margin: 0 2px !important;
    font-weight: 400 !important;
}

#amadex-regional-settings-trigger.amadex-regional-settings-btn--capsule:hover,
.amadex-regional-settings-btn.amadex-regional-settings-btn--capsule:hover,
button.amadex-regional-settings-btn--capsule:hover {
    background: #0E7D3F !important;
    border-color: #0E7D3F !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(14,125,63,0.4), 0 0 20px rgba(14,125,63,0.2) !important;
}

#amadex-regional-settings-trigger.amadex-regional-settings-btn--capsule:focus,
.amadex-regional-settings-btn.amadex-regional-settings-btn--capsule:focus,
button.amadex-regional-settings-btn--capsule:focus {
    outline: none !important;
    border-color: #0E7D3F !important;
    box-shadow: 0 0 0 3px rgba(14,125,63,0.3) !important;
}

.amadex-regional-settings-btn--capsule .screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.amadex-regional-settings-labels {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.amadex-regional-settings-language,
.amadex-regional-settings-country,
.amadex-regional-settings-currency {
    font-size: 14px;
    font-weight: 400;
    line-height: 1rem;
    color: #333;
}

.amadex-regional-settings-btn-header {
    margin-left: auto;
}

.amadex-regional-settings-btn-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Regional Settings Modal */
.amadex-regional-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.amadex-regional-modal[style*="display: flex"],
.amadex-regional-modal:not([style*="display: none"]) {
    display: flex !important;
}

.amadex-regional-modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.amadex-regional-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10001;
    animation: amadex-regional-modal-fade-in 0.3s ease-out;
}

@keyframes amadex-regional-modal-fade-in {
    from { opacity: 0; transform: scale(0.95) translateY(-20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.amadex-regional-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.amadex-regional-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.amadex-regional-modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amadex-regional-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.amadex-regional-modal-body {
    padding: 24px;
}

.amadex-regional-field {
    margin-bottom: 24px;
}

.amadex-regional-field:last-child {
    margin-bottom: 0;
}

.amadex-regional-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.amadex-regional-label-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.amadex-regional-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.amadex-regional-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-16.1%208.1-3.9%204.9-4.6%2011.4-2.1%2017.4l139.3%20192.6c3.9%205.3%2010.8%208.6%2018.2%208.6s14.3-3.3%2018.2-8.6l139.3-192.6c2.5-6%201.8-12.5-2.1-17.4Z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.amadex-regional-select:hover { border-color: #0E7D3F; }
.amadex-regional-select:focus {
    outline: none;
    border-color: #0E7D3F;
    box-shadow: 0 0 0 3px rgba(14,125,63,0.1);
}

.amadex-regional-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid #e0e0e0;
}

.amadex-regional-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.amadex-regional-btn-cancel {
    background: #ffffff;
    color: #333;
    border: 1px solid #d0d0d0;
}

.amadex-regional-btn-cancel:hover {
    background: #f5f5f5;
    border-color: #0E7D3F;
    color: #0E7D3F;
}

.amadex-regional-btn-save {
    background: #0E7D3F;
    color: #ffffff;
}

.amadex-regional-btn-save:hover {
    background: #0d6e35;
    box-shadow: 0 4px 12px rgba(14,125,63,0.3);
}

.amadex-regional-btn-save:active { transform: translateY(1px); }

/* Notification */
.amadex-regional-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10002;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: amadex-regional-notif-in 0.3s ease-out;
    max-width: 300px;
}

.amadex-regional-notification-success { background: #0E7D3F; color: #ffffff; }
.amadex-regional-notification-error   { background: #dc3545; color: #ffffff; }
.amadex-regional-notification-info    { background: #0d6efd; color: #ffffff; }

@keyframes amadex-regional-notif-in {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

@media (max-width: 768px) {
    .amadex-regional-modal-content {
        width: 95%;
        max-width: none;
        border-radius: 12px;
        max-height: 95vh;
    }
    .amadex-regional-modal-header,
    .amadex-regional-modal-body,
    .amadex-regional-modal-footer { padding: 20px; }
    .amadex-regional-modal-title  { font-size: 20px; }
    .amadex-regional-modal-footer { flex-direction: row; }
    .amadex-regional-btn          { width: 100%; }
    .amadex-regional-settings-btn-floating { top: 10px; right: 10px; padding: 6px 10px; }
    .amadex-regional-settings-labels { flex-direction: column; align-items: flex-start; gap: 4px; }
    .amadex-regional-settings-language,
    .amadex-regional-settings-country,
    .amadex-regional-settings-currency { font-size: 0.7rem; }
    .amadex-regional-settings-btn--capsule { padding: 3px 10px !important; font-size: 11px !important; }
    .amadex-regional-settings-btn--capsule .amadex-regional-settings-code { font-size: 11px !important; }
}


/* =============================================================================
   D. STEP ELEMENTS (amadex-se-* classes used on results page)
   Source: amadex-step-elements.css
   ============================================================================= */

:root {
    --amadex-se-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --amadex-se-dur: 0.35s;
    --amadex-se-dur-slow: 0.5s;
    --amadex-se-primary: var(--amadex-ce-color-brand, #0e7d3f);
    --amadex-se-primary-light: rgba(14, 125, 63, 0.12);
    --amadex-se-muted: var(--amadex-ce-color-muted, #6b7280);
    --amadex-se-shadow: 0 2px 12px rgba(14, 125, 63, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    :root { --amadex-se-dur: 0.01ms; --amadex-se-dur-slow: 0.01ms; }
}

.amadex-se-hero {
    font-size: calc(1.75rem * var(--amadex-ce-text-scale, 1));
    font-weight: 700;
    line-height: 1.5;
    color: var(--amadex-ce-color-primary, #111827);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(-8px);
    animation: amadex-se-fade-in var(--amadex-se-dur-slow) var(--amadex-se-ease) forwards;
}

.amadex-se-hero svg {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    color: var(--amadex-se-primary);
}

.amadex-se-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--amadex-se-primary);
    background: var(--amadex-se-primary-light);
    border-radius: 999px;
    margin-top: 0.75rem;
    opacity: 0;
    transform: scale(0.95);
    animation: amadex-se-badge-in var(--amadex-se-dur-slow) var(--amadex-se-ease) 0.3s forwards;
}

.amadex-se-badge svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.amadex-se-teaser {
    font-size: calc(0.9375rem * var(--amadex-ce-text-scale, 1));
    font-weight: 500;
    line-height: 1.5;
    color: var(--amadex-se-muted);
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.amadex-se-teaser svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--amadex-se-primary);
    flex-shrink: 0;
}

.amadex-se-strip {
    background: var(--amadex-se-primary-light);
    border: 1px solid rgba(14, 125, 63, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--amadex-se-shadow);
}

.amadex-se-strip svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--amadex-se-primary);
    flex-shrink: 0;
}

.amadex-se-route-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    font-size: calc(1rem * var(--amadex-ce-text-scale, 1));
    font-weight: 500;
    color: var(--amadex-ce-color-primary, #374151);
}

.amadex-se-route-mini .amadex-se-route-dash {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--amadex-se-primary));
    border-radius: 1px;
}

.amadex-se-route-mini .amadex-se-route-plane {
    width: 20px;
    height: 20px;
    color: var(--amadex-se-primary);
}

.amadex-se-route-mini .amadex-se-route-dash + .amadex-se-route-dash {
    background: linear-gradient(90deg, var(--amadex-se-primary), transparent);
}

.amadex-se-micro-progress {
    font-size: 0.8125rem;
    color: var(--amadex-se-muted);
    margin-bottom: 0.75rem;
}

.amadex-se-micro-progress strong { color: var(--amadex-se-primary); }

.amadex-se-popular {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

.amadex-se-popular > span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--amadex-se-muted);
    margin-right: 0.25rem;
}

.amadex-se-popular-chip {
    padding: 0.6875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--amadex-se-dur), border-color var(--amadex-se-dur), transform var(--amadex-se-dur), box-shadow var(--amadex-se-dur);
    white-space: nowrap;
}

.amadex-se-popular-chip:hover {
    background: var(--amadex-se-primary-light);
    border-color: rgba(14, 125, 63, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--amadex-se-shadow);
}

.amadex-se-finding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--amadex-se-primary);
    background: var(--amadex-se-primary-light);
    border-radius: 12px;
    margin-top: 1.25rem;
    opacity: 0;
    animation: amadex-se-fade-in var(--amadex-se-dur) var(--amadex-se-ease) forwards;
}

/* Hide se-finding and se-results-hero-wrap on results page (already searched) */
.amadex-se-finding,
.amadex-se-results-hero-wrap { display: none !important; }

.amadex-se-finding-plane {
    width: 1.5rem;
    height: 1.5rem;
    animation: amadex-se-plane-move 1.2s var(--amadex-se-ease) infinite;
}

@keyframes amadex-se-plane-move {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(6px); }
}

.amadex-se-results-hero {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.amadex-se-results-count {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--amadex-se-primary);
}

.amadex-se-select-strip { margin-top: 1rem; margin-bottom: 1rem; }

.amadex-se-skip-ok {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--amadex-se-muted);
    margin-top: 0.75rem;
}

.amadex-se-protected {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--amadex-se-primary);
    margin-bottom: 1.25rem;
}

.amadex-se-protected svg { width: 1.125rem; height: 1.125rem; }

.amadex-se-field-wrap { position: relative; }

.amadex-se-field-success {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--amadex-se-primary);
    opacity: 0;
    transition: opacity var(--amadex-se-dur) var(--amadex-se-ease);
}

.amadex-se-field-wrap.is-valid .amadex-se-field-success { opacity: 1; }

.amadex-se-book-dots { position: absolute; pointer-events: none; }

.amadex-se-book-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amadex-se-primary);
    animation: amadex-se-dot-out 0.5s var(--amadex-se-ease) forwards;
    opacity: 0.9;
}

@keyframes amadex-se-dot-out {
    to { transform: translate(var(--dx, 0), var(--dy, 0)) scale(0); opacity: 0; }
}

.amadex-se-enter .amadex-flight-detail-card,
.amadex-se-enter .amadex-review-section {
    opacity: 0;
    transform: translateY(12px);
    animation: amadex-se-card-in var(--amadex-se-dur-slow) var(--amadex-se-ease) forwards;
}

.amadex-se-enter .amadex-flight-detail-card:nth-child(1),
.amadex-se-enter .amadex-review-section:nth-child(1) { animation-delay: 0.05s; }
.amadex-se-enter .amadex-flight-detail-card:nth-child(2),
.amadex-se-enter .amadex-review-section:nth-child(2) { animation-delay: 0.1s; }
.amadex-se-enter .amadex-flight-detail-card:nth-child(3),
.amadex-se-enter .amadex-review-section:nth-child(3) { animation-delay: 0.15s; }
.amadex-se-enter .amadex-flight-detail-card:nth-child(4),
.amadex-se-enter .amadex-review-section:nth-child(4) { animation-delay: 0.2s; }
.amadex-se-enter .amadex-flight-detail-card:nth-child(5),
.amadex-se-enter .amadex-review-section:nth-child(5) { animation-delay: 0.25s; }

@keyframes amadex-se-card-in {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes amadex-se-fade-in {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes amadex-se-badge-in {
    to { opacity: 1; transform: scale(1); }
}

.amadex-se-optional {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--amadex-se-muted);
    margin-left: 0.5rem;
}

.amadex-se-recommended {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--amadex-se-primary);
    margin-left: 0.5rem;
}

.amadex-se-secure-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--amadex-se-primary);
    background: var(--amadex-se-primary-light);
    border-bottom: 1px solid rgba(14, 125, 63, 0.2);
}

.amadex-se-secure-bar svg { width: 1.125rem; height: 1.125rem; }

@media (prefers-reduced-motion: reduce) {
    .amadex-se-hero,
    .amadex-se-badge,
    .amadex-se-finding { animation: none; opacity: 1; transform: none; }
    .amadex-se-finding-plane { animation: none; }
    .amadex-se-popular-chip:hover { transform: none; }
    .amadex-se-book-dot { display: none; }
    .amadex-se-enter .amadex-flight-detail-card,
    .amadex-se-enter .amadex-review-section { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 767px) {
    .amadex-se-hero  { font-size: 1.5rem; }
    .amadex-se-strip { padding: 0.875rem 1rem; font-size: 0.9375rem; }
    .amadex-se-popular { margin-bottom: 1rem; }
    .amadex-se-popular-chip { padding: 0.625rem 1rem; font-size: 0.875rem; }
    .amadex-se-results-hero { font-size: 1.25rem; }
}


/* =============================================================================
   E. CREATIVE EXPERIENCE — Design tokens & micro-interactions
   Source: amadex-creative-experience.css
   ============================================================================= */

:root {
    --amadex-ce-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --amadex-ce-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --amadex-ce-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --amadex-ce-duration-fast: 0.2s;
    --amadex-ce-duration-normal: 0.35s;
    --amadex-ce-duration-slow: 0.5s;
    --amadex-ce-primary: #0e7d3f;
    --amadex-ce-primary-hover: #0a5f2f;
    --amadex-ce-glass-bg: rgba(255, 255, 255, 0.85);
    --amadex-ce-glass-border: rgba(255, 255, 255, 0.4);
    --amadex-ce-shadow-sm: 0 2px 8px rgba(14, 125, 63, 0.08);
    --amadex-ce-shadow-md: 0 8px 24px rgba(14, 125, 63, 0.12);
    --amadex-ce-shadow-lg: 0 16px 48px rgba(14, 125, 63, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --amadex-ce-duration-fast: 0.01ms;
        --amadex-ce-duration-normal: 0.01ms;
        --amadex-ce-duration-slow: 0.01ms;
    }
}

/* Micro-interactions — Buttons & CTAs */
.amadex-btn,
button.amadex-btn,
#amadex-confirm-book,
.amadex-step-next,
[id*="amadex-confirm"],
input[type="submit"].amadex-submit {
    position: relative;
    overflow: hidden;
    transition:
        transform var(--amadex-ce-duration-fast) var(--amadex-ce-ease-out),
        box-shadow var(--amadex-ce-duration-normal) var(--amadex-ce-ease-out),
        background-color var(--amadex-ce-duration-fast) var(--amadex-ce-ease-out),
        border-color var(--amadex-ce-duration-fast) var(--amadex-ce-ease-out);
}

.amadex-btn:not(:disabled):hover,
button.amadex-btn:not(:disabled):hover,
#amadex-confirm-book:not(:disabled):hover,
.amadex-step-next:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: var(--amadex-ce-shadow-md);
}

.amadex-btn:not(:disabled):active,
button.amadex-btn:not(:disabled):active,
#amadex-confirm-book:not(:disabled):active,
.amadex-step-next:not(:disabled):active {
    transform: translateY(0) scale(0.98);
    transition-duration: var(--amadex-ce-duration-fast);
}

.amadex-btn:focus-visible,
#amadex-confirm-book:focus-visible,
.amadex-step-next:focus-visible {
    outline: 3px solid var(--amadex-ce-primary);
    outline-offset: 2px;
}

/* Ripple */
.amadex-ce-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: amadex-ce-ripple-out var(--amadex-ce-duration-slow) var(--amadex-ce-ease-out) forwards;
    pointer-events: none;
}

@keyframes amadex-ce-ripple-out {
    to { transform: scale(4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .amadex-ce-ripple { display: none; }
}

button#amadex-modify-search-btn {
    position: unset;
}

/* =============================================
   BOOKING SIDEBAR — Sticky fix
   Root cause: overflow-x:hidden on parent breaks sticky
   ============================================= */
@media (min-width: 768px) {
    /* Fix: overflow-x:hidden on parent kills sticky — use clip instead */
    #amadex-booking-page.amadex-booking-page {
        overflow-x: clip !important;
    }

    .amadex-booking-content {
        overflow: visible !important;
        align-items: start !important;
    }

    .amadex-booking-page .amadex-booking-sidebar,
    .amadex-booking-content .amadex-booking-sidebar {
        /* position: sticky !important; */
        top: 20px !important;
        align-self: flex-start !important;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        overflow-x: visible;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .amadex-booking-page .amadex-booking-sidebar::-webkit-scrollbar,
    .amadex-booking-content .amadex-booking-sidebar::-webkit-scrollbar {
        display: none;
    }
}

/* @media (max-width: 1350px) {
.amadex-flight-legs {
    display: flex !important;
    flex-direction: column !important;
    margin-top: 10px !important;
}

.amadex-flight-leg {
    border: 0 !important;
}
} */
 
/* =============================================================================
   FLIGHT CARD — Aesthetic Enhancement
   Paste at bottom of amadex-custom.css
   Zero conflicts — all rules are more specific or scoped to results page
   ============================================================================= */

/* ── CARD SHELL ─────────────────────────────────────────────────────────────
   Softer shadow, remove harsh green border, clean hover lift               */
.amadex-results-page .amadex-flight-card {
    border: none !important;
    border-radius: 18px !important;
    box-shadow:
        0 0 0 1px rgba(14, 125, 63, 0.18),
        0 2px 10px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 16px !important;
    transition: box-shadow 0.22s ease, transform 0.22s ease !important;
    background-image: none !important; /* remove svg pattern noise */
    background-color: #ffffff !important;
}

.amadex-results-page .amadex-flight-card:hover {
    box-shadow:
        0 0 0 1.5px #0E7D3F,
        0 6px 20px rgba(14, 125, 63, 0.12) !important;
    transform: translateY(-2px);
}

/* ── BOARDING PASS HEADER ───────────────────────────────────────────────────
   Stays green gradient, just tighten padding & radius to match card        */
.amadex-results-page .amadex-boarding-pass-header {
    border-radius: 18px 18px 0 0 !important;
    padding: 9px 20px !important;
}

.amadex-results-page .amadex-boarding-pass-text {
    font-size: 13.5px !important;
    gap: 6px !important;
}

/* ── CARD MAIN BODY ─────────────────────────────────────────────────────────
   Balanced padding top/bottom                                               */
.amadex-results-page .amadex-flight-card-main {
    padding: 16px 16px 14px 16px !important;
    align-items: stretch !important;
    gap: 0 !important;
}

/* ── FLIGHT INFO (left side) ────────────────────────────────────────────────
   Clean gap between legs and footer                                         */
.amadex-results-page .amadex-flight-card-info {
    gap: 8px !important;
    padding-right: 16px;
}

/* ── FLIGHT LEGS GRID ───────────────────────────────────────────────────────
   More breathing room between departure and return legs                     */
.amadex-results-page .amadex-flight-legs {
    gap: 0 !important;
}

/* ── LEG DIVIDER — replace border with subtle gap ──────────────────────────*/
.amadex-results-page .amadex-flight-leg {
    padding: 0 20px 0 0;
    border-right: 1px solid #EFEFEF;
}

.amadex-results-page .amadex-flight-leg:last-child {
    padding: 0 0 0 20px;
    border-right: none !important;
}

/* One-way: only one leg, no border */
.amadex-results-page .amadex-flight-card.is-oneway-card .amadex-flight-leg {
    padding: 0 !important;
    border-right: none !important;
}

/* ── LEG TITLE (Departure • Friday, Mar 27) ─────────────────────────────── */
.amadex-results-page .amadex-leg-title {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    /* color: #9CA3AF !important; */
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 10px !important;
}

/* ── AIRLINE LOGO ───────────────────────────────────────────────────────── */
.amadex-results-page .amadex-leg-airline-logo img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    object-fit: contain;
    border: 1px solid #F0F0F0;
    padding: 2px;
    background: #fff;
}

/* ── LEG META (airline name + baggage row) ──────────────────────────────── */
.amadex-results-page .amadex-leg-meta {
    margin-top: 10px !important;
    padding-top: 8px !important;
    border-top: 1px dashed #4f4f4f;
    gap: 6px !important;
    font-size: 13px !important;
}

/* ── FLIGHT DETAIL LINK ─────────────────────────────────────────────────── */
.amadex-results-page .amadex-flight-detail-link {
    color: #0E7D3F !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    gap: 2px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: gap 0.15s ease !important;
}

.amadex-results-page .amadex-flight-detail-link:hover {
    gap: 5px !important;
}

.amadex-results-page .amadex-flight-info-footer {
    padding: 4px 0 2px !important;
}

/* ── PRICE COLUMN ──────────────────────────────────────────────────────────
   Clean left border, centered content, tighter gap                         */
.amadex-results-page .amadex-flight-card-price {
    border-left: 1px solid #F0F0F0;
    padding-left: 18px !important;
    gap: 8px !important;
    justify-content: center !important;
    min-width: 195px !important;
    /* max-width: 230px !important; */
}

/* ── SEATS BADGE ────────────────────────────────────────────────────────── */
.amadex-results-page .amadex-flight-seats {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 4px 10px !important;
    background: #FFF0F0 !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #B80000 !important;
    border: none !important;
    width: max-content;
    /* align-self: flex-start !important; */
}

/* ── CABIN CLASS ────────────────────────────────────────────────────────── */
.amadex-results-page .amadex-flight-class {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
}

/* ── PRICE ──────────────────────────────────────────────────────────────── */
.amadex-results-page .amadex-flight-card-price .amadex-flight-price {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0B3D1F !important;
    letter-spacing: -0.3px;
}

.amadex-results-page .amadex-flight-price-wrapper .amadex-flight-price-note {
    font-size: 11px !important;
    /* color: #9CA3AF !important; */
    font-weight: 400 !important;
}
.amadex-price-row.total {
    padding: 10px !important;
}
/* ── BOOK NOW BUTTON ────────────────────────────────────────────────────── */
.amadex-results-page .amadex-book-now-btn {
    width: 100% !important;
    border: 2px solid #0E7D3F !important;
    color: #0E7D3F !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    padding: 11px 16px !important;
    text-align: center !important;
    text-decoration: none !important;
    font-size: 14px !important;
    background: transparent !important;
    transition: background 0.18s ease, color 0.18s ease !important;
    display: block !important;
}

.amadex-results-page .amadex-book-now-btn:hover {
    background: #0E7D3F !important;
    color: #ffffff !important;
}

/* ── CALL BUTTON ────────────────────────────────────────────────────────── */
.amadex-results-page a.amadex-price-box-call.amadex-call-btn {
    width: 100% !important;
    border-radius: 999px !important;
    padding: 11px 14px !important;
    gap: 8px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    background: #0E7D3F !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: background 0.18s ease, box-shadow 0.18s ease !important;
    letter-spacing: 0.01em;
}

.amadex-results-page a.amadex-price-box-call.amadex-call-btn:hover {
    background: #0a6835 !important;
    box-shadow: 0 4px 14px rgba(14, 125, 63, 0.3) !important;
}

.amadex-results-page .amadex-price-box-call .amadex-phone-icon svg {
    width: 16px !important;
    height: 16px !important;
}
.amadex-flight-class-wrapper {
    justify-content: center;
}
/* ── RESPONSIVE: 768px – 1150px ─────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1150px) {
    .amadex-results-page .amadex-flight-card-price {
    border-left: 0;
}
    .amadex-results-page .amadex-flight-card-price {
        min-width: 170px !important;
        /* max-width: 200px !important; */
        padding-left: 14px !important;
    }

    .amadex-results-page .amadex-flight-card-price .amadex-flight-price {
        font-size: 20px !important;
    }

    .amadex-results-page .amadex-book-now-btn {
        font-size: 13px !important;
        padding: 9px 12px !important;
    }

    .amadex-results-page a.amadex-price-box-call.amadex-call-btn {
        font-size: 12px !important;
        padding: 9px 10px !important;
    }

    .amadex-results-page .amadex-flight-leg {
        padding: 0 14px 0 0 !important;
    }

    .amadex-results-page .amadex-flight-leg:last-child {
        padding: 0 0 0 14px !important;
    }
    /* .amadex-results-page .amadex-flight-price-wrapper .amadex-flight-price-note {
    width: 15rem;
} */
}

/* ── Mobile Sort / Filter Bar ── */
/* Overrides for amadex-mobile-sort-bar (generated by amadex-mobile-filters.js) */
.amadex-mobile-sort-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #E6E6E6;
  padding: 12px 16px;
  z-index: 99;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.amadex-mobile-sort-bar-content {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

/* ── Filter Icon (≡) ── */
.amadex-mobile-filter-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
  color: #0E7D3F;
  border: 1.5px solid #e0e0e0;
  border-radius: 999px;
  padding: 4px;
  background: #ffffff;
  transition: border-color 0.18s, color 0.18s;
  box-sizing: content-box;
}

.amadex-mobile-filter-icon:hover {
  border-color: #0E7D3F;
  color: #0E7D3F;
}

/* ── Sort Pill Buttons ── */
.amadex-mobile-sort-options {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.amadex-mobile-sort-options::-webkit-scrollbar {
  display: none;
}

.amadex-mobile-sort-btn {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid #e0e0e0;
  background: #f5f5f5;
  color: #333333;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.amadex-mobile-sort-btn:hover:not(.active) {
  border-color: #0E7D3F;
  color: #0E7D3F;
}

/* Active / selected pill */
.amadex-mobile-sort-btn.active {
  border-color: #0E7D3F;
  color: #0E7D3F;
  font-weight: 600;
  background: #EEF9F2;
}

/* Show on mobile */
@media (max-width: 767px) {
    .amadex-results-page .amadex-flight-legs {
    gap: 6rem !important;
}
  .amadex-mobile-sort-bar {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .amadex-mobile-sort-bar {
    padding: 10px 12px;
  }
  .amadex-mobile-sort-btn {
    padding: 7px 12px;
    font-size: 12px;
  }
  .amadex-mobile-sort-options {
    gap: 6px;
  }
}

/* =============================================================================
   MOBILE FILTER MODAL — Fix freeze + visibility
   Paste at bottom of amadex-custom.css
   Zero conflict — all rules scoped to mobile filter elements only
   ============================================================================= */

/* ── OVERLAY: must be visible AND block touches when active ── */
.amadex-mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9998 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* don't block touches until fully active */
}

.amadex-mobile-filter-overlay.active {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important; /* only block touches when shown */
}

/* ── MODAL: fix right:-8px offset, ensure it slides up correctly ── */
.amadex-mobile-filter-modal {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;          /* fix the -8px bug */
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 24px 24px 0 0 !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 9999 !important;
    transform: translateY(100%) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 0 80px 0 !important;  /* bottom padding for apply button */
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18) !important;
    box-sizing: border-box !important;
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

/* Slide UP when active */
.amadex-mobile-filter-modal.active {
    transform: translateY(0) !important;
}

/* ── HEADER: sticky at top of modal ── */
.amadex-mobile-filter-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 18px 20px 14px !important;
    position: sticky !important;
    top: 0 !important;
    background: #ffffff !important;
    z-index: 10 !important;
    border-bottom: 1px solid #F0F0F0 !important;
    margin-bottom: 0 !important;
}

.amadex-mobile-filter-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 !important;
}

.amadex-mobile-filter-count {
    font-size: 13px !important;
    color: #6B7280 !important;
    margin-top: 2px !important;
}

/* ── CLOSE BUTTON ── */
.amadex-mobile-filter-close {
    width: 32px !important;
    height: 32px !important;
    border: none !important;
    background: #F3F4F6 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease !important;
}

.amadex-mobile-filter-close:hover {
    background: #E5E7EB !important;
}

/* ── FILTER CONTENT inside modal ── */
.amadex-mobile-filter-content {
    padding: 16px 20px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ── APPLY BUTTON: fixed at bottom of modal ── */
.amadex-mobile-filter-apply {
    position: sticky !important;
    bottom: -80px !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    padding: 14px 20px !important;
    border-top: 1px solid #F0F0F0 !important;
    z-index: 11 !important;
}

button.amadex-mobile-filter-apply-btn {
    width: 100% !important;
    background: #0E7D3F !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.18s ease !important;
}

button.amadex-mobile-filter-apply-btn:hover {
    background: #0a6835 !important;
}

/* ── BODY scroll lock: only apply when modal open ── */
body.amadex-filter-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
}

/* ── SORT BAR: make room above it on mobile ── */
@media (max-width: 768px) {
    /* Ensure modal content is scrollable and visible */
    .amadex-mobile-filter-modal .amadex-filter-group {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 16px 0 !important;
        border-top: 1px solid #F0F0F0 !important;
    }

    .amadex-mobile-filter-modal .amadex-filter-group h4 {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #111827 !important;
        margin: 0 0 12px !important;
    }

    .amadex-mobile-filter-modal .amadex-filter-options {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .amadex-mobile-filter-modal .amadex-filter-chip-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .amadex-mobile-filter-modal .amadex-filter-time-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Price / duration slider visible */
    .amadex-mobile-filter-modal .amadex-price-range,
    .amadex-mobile-filter-modal .amadex-duration-range,
    .amadex-mobile-filter-modal .amadex-price-slider,
    .amadex-mobile-filter-modal .amadex-duration-slider {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* All checkboxes visible */
    .amadex-mobile-filter-modal input[type="checkbox"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Switch toggles visible */
    .amadex-mobile-filter-modal .amadex-switch {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* =============================================================================
   STICKY ROUTE HEADER — Mobile results page
   Route title + edit button stays fixed at top when scrolling
   Paste at bottom of amadex-custom.css
   Zero conflict — scoped to .amadex-results-page on max-width:768px only
   ============================================================================= */

@media (max-width: 768px) {
div#amadex-mobile-route-title {
    color: #fff;
}div#amadex-mobile-route-title {
    color: #fff;
}
    /* ── Make results page a clean scroll container ── */
    .amadex-results-page {
        padding-top: 0 !important;
    }

    /* ── STICKY ROUTE HEADER ── */
.amadex-results-page .amadex-route-header {
    position: sticky !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    /* background: #0e7d3f !important; */
    padding: 10px 18px !important;
    border-bottom: 1px solid #E8E8E8 !important;
    /* border-radius: 45px !important; */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 0 !important;
    will-change: transform;
}

    /* Route info: route title + details row */
    .amadex-results-page .amadex-route-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

 .amadex-results-page .amadex-route-details, .amadex-results-page #amadex-mobile-route-details {
    font-size: 11px !important;
    color: #fff !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
}
    /* .amadex-results-page .amadex-route-details,
    .amadex-results-page #amadex-mobile-route-details {
        font-size: 12px !important;
        color: #6B7280 !important;
        font-weight: 400 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.3 !important;
    } */

    /* ── EDIT BUTTON ── */
    .amadex-results-page .amadex-route-edit,
    .amadex-results-page #amadex-mobile-edit-search {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 50% !important;
        border: 1.5px solid #E0E0E0 !important;
        background: #ffffff !important;
        color: #0E7D3F !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        margin-left: 12px !important;
        transition: background 0.18s ease, border-color 0.18s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .amadex-results-page .amadex-route-edit:hover,
    .amadex-results-page #amadex-mobile-edit-search:hover,
    .amadex-results-page .amadex-route-edit.active,
    .amadex-results-page #amadex-mobile-edit-search.active {
        background: #0E7D3F !important;
        border-color: #0E7D3F !important;
        color: #ffffff !important;
    }

    .amadex-results-page .amadex-route-edit svg,
    .amadex-results-page #amadex-mobile-edit-search svg {
        width: 16px !important;
        height: 16px !important;
        stroke: currentColor !important;
        flex-shrink: 0 !important;
    }

    /* ── SEARCH BAR WRAPPER: slide-down sheet below sticky header ── */
    /* When closed: hidden, not taking space */
    .amadex-results-page .amadex-search-bar-wrapper {
        display: none !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 199 !important;
        background: #EEF9F2 !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
        max-height: calc(100vh - 57px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* When open: visible */
    .amadex-results-page .amadex-search-bar-wrapper.amadex-search-bar-active1 {
        display: block !important;
    }
.desktop-search-bar {
    display: none;
}
    /* ── RESULTS CONTENT: add top margin to account for sticky header ── */
    .amadex-results-page .amadex-results-content-wrapper {
        margin-top: 0 !important;
    }

    /* ── RESULTS HEADER MOBILE (flight count): below route header ── */
    .amadex-results-page .amadex-results-header-mobile {
        padding: 10px 16px 6px !important;
        background: #EEF9F2 !important;
        display: block !important;
    }
.page-id-803 .m-shortcode__container.container {
    padding: 0;
}
    .amadex-results-page .amadex-results-count-mobile {
        font-size: 14px !important;
        color: #374151 !important;
        font-weight: 500 !important;
        display: none;
    }

    .amadex-results-page .amadex-results-count-mobile strong {
        color: #0E7D3F !important;
        font-weight: 700 !important;
    }

    /* ── SORT BAR: fixed at bottom, above call banner ── */
    .amadex-mobile-sort-bar {
        bottom: 0 !important;
        z-index: 99 !important;
    }

}

/* ── MOBILE HEADER MODIFY SHEET — title bar inside the sheet ── */
@media (max-width: 768px) {
    .amadex-search-modern .amadex-search-fields {
    width: 100%!important;
}
    .amadex-flight-class-wrapper {
    justify-content: flex-start;
}
    .amadex-search-bar-header-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 16px 10px !important;
        border-bottom: 1px solid #D1E8D8 !important;
        background: #EEF9F2 !important;
    }

    .amadex-search-bar-title {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #111827 !important;
    }

    button.amadex-search-bar-close {
        background: none !important;
        border: none !important;
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: #6B7280 !important;
        border-radius: 50% !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

.amadex-flight-card-main {
    background: #fff;
}

.amadex-confirmation-content {
    display: flex;
    gap: 30px;
}

.amadex-confirmation-main {
    width: 60%;
}

aside.amadex-confirmation-sidebar {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amadex-greeting-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 23px;
}

.amadex-greeting-text {
    margin-left: 15px;
}

p.amadex-greeting-message {
    font-size: 12px;
}

h1.amadex-greeting-title {
    font-weight: 600;
    color: #0e7d3f;
    font-size: 18px;
}

.amadex-booking-section {
    padding: 20px 10px;
    margin-bottom: 0;
    border: 1px solid #fff;
    border-radius: 10px;
    /* box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1); */
}

.amadex-confirmation-greeting {
    border-radius: 10px;
}
.amadex-booking-section {
    padding: 20px 10px;
    margin-bottom: 0;
}

p.amadex-status-text strong {
    color: #000;
}

strong.amadex-booking-id-value {
    color: #000;
}

/* .amadex-booking-section {
    background: #0e7d3f;
} */

.amadex-passenger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: 12px;
    overflow: hidden;
}
/* Remove table look completely */
.amadex-passenger-table,
.amadex-passenger-table tbody,
.amadex-passenger-table tr,
.amadex-passenger-table td {
    display: block;
    width: 100%;
}

/* Hide header permanently */
.amadex-passenger-table thead {
    display: none;
}

/* Each passenger = card */
.amadex-passenger-table tr {
    border-radius: 14px;
    margin-bottom: 16px;
}
.amadex-segment-travel-class-right span {
    font-size: 14px;
}
/* Row layout */
.amadex-passenger-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    border: none;
}
section.amadex-card.amadex-passenger-details-card {
    margin: 0 10px !important;
}
/* Label (left side) */
.amadex-passenger-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
}

/* Value (right side) */
.amadex-passenger-table td {
    color: #222;
    font-weight: 500;
}

/* Name highlight */
td[data-label="Name"] {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

/* Seat highlight */
td[data-label="Seat Selection"] {
    color: #1a7f37;
    font-weight: 600;
}

/* Contact lighter */
td[data-label="Contact"] {
    color: #777;
    font-size: 13px;
}

/* Small spacing fix */
.amadex-passenger-table td:not(:last-child) {
    border-bottom: 1px dashed #0e7b3e;
}

.amadex-next-steps li {
    font-size: 14px;
}

.amadex-next-steps li::before {
    top: 8px !important;
}

.amadex-booking-id {
    color: #000;
    font-size: 15px;
    margin-bottom: 12px;
}

span.amadex-segment-type-label {
    font-size: 14px;
    color: #0e7d3f;
    font-weight: 700;
}

span.amadex-segment-date-label {
    font-size: 14px;
    color: #0e7d3f;
    font-weight: 700;
}

.amadex-support-illustration {
    display: none;
}
.amadex-support-header p {
    font-size: 15px;
}

.amadex-segment-airline-info {
    width: 100%;
    justify-content: space-between;
}

.amadex-greeting-text {
    margin-left: 15px;
    width: 100%;
}

.amadex-greeting-left svg {
    display: none;
}

.amadex-greeting-icons svg {
    display: block !important;
}

.amadex-timeline-line-vertical {
    width: 100px;
    height: 2px;
    background: #8b8ca4;
    position: relative;
    border-radius: 999px;
}

a#amadex-back-to-results-confirmation {
    margin-bottom: 24px;
}

/* Desktop: show the desktop bar, hide mobile sheet header */
@media (min-width: 1025px) {
    .desktop-search-bar {
        display: block !important;
    }
    .amadex-search-bar-wrapper {
        display: block !important;
        position: static !important;
    }
    .amadex-search-bar-header-mobile {
        display: none !important;
    }
}

/* Mobile: hide desktop bar */
@media (max-width: 1024px) {
    .desktop-search-bar {
        display: none !important;
    }
}

/* ── Flight Results Desktop Bar — Tablet View (768px – 1024px) ── */
@media (min-width: 768px) and (max-width: 1024px) {

    .desktop-search-bar {
        display: block !important;
    }

    .amadex-results-page .desktop-search-bar .amadex-search-fields,
    .amadex-results-page .amadex-search-summary-modern .amadex-search-fields {
        background: transparent !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .amadex-results-page .desktop-search-bar .amadex-field-input-wrap,
    .amadex-results-page .amadex-search-summary-modern .amadex-field-input-wrap {
        background: #fff !important;
        border-radius: 10px !important;
        height: 5rem !important;
        padding: 12px !important;
    }

    .amadex-results-page .desktop-search-bar .amadex-travellers-value,
    .amadex-results-page .amadex-search-summary-modern .amadex-travellers-value {
        justify-content: space-between !important;
        align-items: center !important;
        background: #fff !important;
        border-radius: 10px !important;
        padding: 12px 14px !important;
    }

    .amadex-results-page .desktop-search-bar .submit-btn-amadex,
    .amadex-results-page .amadex-search-summary-modern .submit-btn-amadex {
        width: 100% !important;
    }

    .amadex-results-page .desktop-search-bar button#amadex-modify-search-btn,
    .amadex-results-page .amadex-search-summary-modern button#amadex-modify-search-btn {
        border-radius: 10px !important;
    }

    .amadex-results-page .desktop-search-bar button#swap-locations,
    .amadex-results-page .amadex-search-summary-modern button#swap-locations {
        position: absolute !important;
        top: 10rem !important;
        right: 5px !important;
    }

    .amadex-results-page .desktop-search-bar div#dateID,
    .amadex-results-page .desktop-search-bar div#return-field {
        border: 0 !important;
    }

    .amadex-results-page .desktop-search-bar .amadex-modern-field,
    .amadex-results-page .desktop-search-bar #origin-field,
    .amadex-results-page .desktop-search-bar #destination-field,
    .amadex-results-page .desktop-search-bar #departure-field,
    .amadex-results-page .desktop-search-bar #return-field,
    .amadex-results-page .desktop-search-bar #travellers-field {
        padding: 0 !important;
    }
}

.amadex-search-modern .amadex-trip-option input[type="radio"]:checked + .amadex-trip-label {
    background: #ffffff00 !important;
}

button#amadex-modify-search-btn {
    background: #0E7D3F !important;
}

h4.amadex-itinerary-label {
    padding: 12px 8px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #0e7d3f;
    border-radius: 10px;
    margin-bottom: 25px;
    margin-top: 25px;
}