/**
 * Amadeus_API Frontend Styles
 */

/*
 * GoZayaan-style flight search UI
 * (matches the screenshot layout: tabs, one-way/round/multi, segmented inputs, yellow search button)
 */
.amadeus-api-flight-search-container.amadeus-api-gz {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.10);
    /* Allow dropdown popups (From/To) to render above the card */
    overflow: visible;
    border: none;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-flight-search-form-container {
    padding: 18px 22px 22px;
}

.amadeus-api-gz-tabs {
    display: flex;
    justify-content: center;
    gap: 34px;
    padding: 18px 22px 14px;
    background: #f7fbff;
}

.amadeus-api-gz-tab {
    border: 0;
    background: transparent;
    padding: 10px 10px 14px;
    cursor: pointer;
    font: inherit;
    color: #2b3a4b;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0.85;
}

.amadeus-api-gz-tab:disabled {
    cursor: default;
    opacity: 0.55;
}

.amadeus-api-gz-tab-icon {
    font-size: 18px;
    line-height: 1;
}

.amadeus-api-gz-tab-label {
    font-weight: 600;
    font-size: 15px;
}

.amadeus-api-gz-tab.is-active {
    opacity: 1;
    color: #0a1f44;
}

.amadeus-api-gz-tab.is-active .amadeus-api-gz-tab-underline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: #f6c100;
    margin: 0 auto;
}

.amadeus-api-gz-body {
    background: #ffffff;
}

.amadeus-api-gz-triptype {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 4px 2px 14px;
}

.amadeus-api-gz-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0a1f44;
}

.amadeus-api-gz-radio input {
    width: 16px;
    height: 16px;
}

.amadeus-api-gz-radio.is-disabled {
    opacity: 0.45;
}

.amadeus-api-gz-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1.05fr 0.9fr 0.9fr 0.85fr;
    gap: 0;
    background: #ffffff;
    border: 1px solid #d9dee7;
    border-radius: 10px;
    /* IMPORTANT: the destination dropdown is absolutely positioned inside
       each field. If the grid clips overflow, the dropdown will appear
       "underneath"/hidden. */
    overflow: visible;
}

/* Wrapper to mimic GoZayaan multi-row container */
.amadeus-api-gz-multiwrap{
    background: #ffffff;
    border: 1px solid #d9dee7;
    border-radius: 10px;
    overflow: visible;
}
.amadeus-api-gz-multiwrap .amadeus-api-gz-grid{
    border: 0;
    border-radius: 0;
}
.amadeus-api-flight-search-container.is-trip-multi .amadeus-api-gz-grid{
    grid-template-columns: 1.05fr 1.05fr 0.9fr 0.85fr;
}
.amadeus-api-flight-search-container.is-trip-multi .amadeus-api-gz-swap{ display:none; }
.amadeus-api-flight-search-container.is-trip-multi .amadeus-api-gz-field--return{ display:none; }

/* ---- Multi-city rows ---- */
.amadeus-api-gz-multicity { margin-top: 0; }
.amadeus-api-gz-multicity-rows { display: flex; flex-direction: column; gap: 0; }
.amadeus-api-gz-mc-row { 
    display: grid; 
    grid-template-columns: 1.05fr 1.05fr 0.9fr 0.85fr; 
    gap: 0; 
    align-items: stretch;
    border-top: 1px solid #d9dee7;
}

/* Column dividers for every cell, including the action cell */
.amadeus-api-gz-mc-row > *{ border-right: 1px solid #d9dee7; }
.amadeus-api-gz-mc-row > *:last-child{ border-right: none; }

/* Action cell shouldn't inherit .amadeus-api-gz-field padding */
.amadeus-api-gz-mc-action{
    display:flex;
    align-items:stretch;
    padding: 0;
    min-height: 76px;
}

.amadeus-api-gz-mc-actioncell{
    display:flex;
    align-items:stretch;
    padding: 0;
    min-height: 76px;
}
.amadeus-api-gz-mc-addcell{
    flex: 1;
    border: 0;
    background: transparent;
    font-weight: 700;
    font-size: 14px;
    color: #0a1f44;
    cursor: pointer;
    text-align: center;
}
.amadeus-api-gz-mc-addcell:hover{ background: rgba(10,31,68,0.04); }

.amadeus-api-gz-mc-remove{
    width: 46px;
    border: 0;
    border-left: 1px solid #d9dee7;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #3c4a5c;
}
.amadeus-api-gz-mc-remove:hover{ background: rgba(0,0,0,0.04); }

.amadeus-api-flight-search-container.is-trip-multi .amadeus-api-gz-multicity{ display:block; }
@media (max-width: 900px) {
  .amadeus-api-flight-search-container.is-trip-multi .amadeus-api-gz-grid{ grid-template-columns: 1fr; }
  .amadeus-api-gz-mc-row { grid-template-columns: 1fr; }
  .amadeus-api-gz-mc-row .amadeus-api-gz-field{ border-right: 0; border-bottom: 1px solid #d9dee7; }
  .amadeus-api-gz-mc-row .amadeus-api-gz-field:last-child{ border-bottom: 0; }
  .amadeus-api-gz-mc-actioncell{ min-height: 64px; }
}

/* Ensure the autocomplete dropdown stacks above the form grid */
.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-wrapper{
    position: relative;
    z-index: 50;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-results{
    position: absolute;
    left: 0;
    right: 0;
    z-index: 999999;
}

.amadeus-api-gz-field {
    padding: 10px 14px;
    min-height: 76px;
    border-right: 1px solid #d9dee7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.amadeus-api-gz-field:last-child {
    border-right: none;
}

.amadeus-api-gz-field-label {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #3c4a5c;
    margin-bottom: 4px;
}

.amadeus-api-gz-input {
    width: 100% !important;
    border: 0 !important;
    outline: none !important;
    padding: 0 !important;
    background: transparent !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0a1f44 !important;
    line-height: 1.15 !important;
}

.amadeus-api-gz-input::placeholder {
    color: #9aa5b1;
    font-weight: 600;
}

.amadeus-api-gz-field-sub {
    font-size: 12px;
    color: #7a8796;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amadeus-api-gz-swap {
    position: absolute;
    /* Center over the divider between FROM and TO */
    left: 22%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 18px;
    border: 1px solid #d9dee7;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #3c4a5c;
}

/* Ensure swap button stays centered between FROM/TO on desktop and doesn't drift */
#amadeus-api-swap.amadeus-api-gz-swap{
    left: 22% !important;
}

.amadeus-api-gz-field--return.is-disabled {
    opacity: 0.55;
}

/* Allow clicking the Return Date field even when the input is disabled */
.amadeus-api-gz-field--return.is-disabled input,
.amadeus-api-gz-field--return.is-disabled .amadeus-api-gz-input {
    pointer-events: none;
}

.amadeus-api-gz-traveler-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.amadeus-api-gz-input--traveler {
    width: 54px !important;
}

.amadeus-api-gz-traveler-suffix {
    font-size: 18px;
    font-weight: 700;
    color: #0a1f44;
}

.amadeus-api-gz-select {
    border: 0;
    background: transparent;
    padding: 0;
    margin-top: 4px;
    font-size: 12px;
    color: #7a8796;
    outline: none;
}

/* Default: mobile traveler card is hidden (desktop uses the original inputs) */
.amadeus-api-gz-traveler-card { display: none; }

.amadeus-api-gz-actions {
    display: flex;
    justify-content: center;
    padding: 18px 0 6px;
}

.amadeus-api-gz-search {
    background: #f6c100 !important;
    color: #0a1f44 !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    padding: 12px 54px !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.amadeus-api-gz-search:hover {
    filter: brightness(0.98);
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-results {
    border-radius: 10px;
    border: 1px solid #d9dee7;
    border-top: 0;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-item {
    padding: 10px 12px;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-section {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #f6f7fb;
    border-top: 1px solid #e5e7eb;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-mid {
    font-weight: 600;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-sub {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

@media (max-width: 980px) {
    .amadeus-api-gz-grid {
        grid-template-columns: 1fr;
    }
    .amadeus-api-gz-field {
        border-right: 0;
        border-bottom: 1px solid #d9dee7;
    }
    .amadeus-api-gz-field:last-child { border-bottom: 0; }
    .amadeus-api-gz-swap { display: none; }
}

/* Mobile (match provided screenshot: 2-column grid + compact typography) */
@media (max-width: 600px) {
    .amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-flight-search-form-container {
        padding: 14px 14px 16px;
    }

    .amadeus-api-gz-tabs {
        gap: 18px;
        padding: 14px 12px 10px;
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
    }

    .amadeus-api-gz-tab {
        gap: 8px;
        padding: 8px 8px 12px;
    }

    .amadeus-api-gz-tab-icon { font-size: 16px; }
    .amadeus-api-gz-tab-label { font-size: 13px; }

    .amadeus-api-gz-triptype {
        gap: 14px;
        padding: 2px 0 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .amadeus-api-gz-radio { font-size: 13px; }

    .amadeus-api-gz-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "origin destination"
            "depart returndate"
            "traveler traveler";
        border-radius: 14px;
    }

    .amadeus-api-gz-field {
        min-height: 78px;
        border-right: 0;
        border-bottom: 1px solid #d9dee7;
        padding: 10px 12px;
    }

    /* Template uses --from/--to (not --origin/--destination) */
    .amadeus-api-gz-field--from { grid-area: origin; border-right: 1px solid #d9dee7; }
    .amadeus-api-gz-field--to { grid-area: destination; }
    .amadeus-api-gz-field--depart { grid-area: depart; border-right: 1px solid #d9dee7; }
    .amadeus-api-gz-field--return { grid-area: returndate; }
    .amadeus-api-gz-field--traveler { grid-area: traveler; border-bottom: 0; }

    .amadeus-api-gz-field-label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .amadeus-api-gz-input {
        font-size: 18px !important;
        font-weight: 800 !important;
    }

    .amadeus-api-gz-field-sub {
        font-size: 11px;
        margin-top: 3px;
    }

    /* Show swap button between FROM/TO like the screenshot */
    .amadeus-api-gz-swap {
        display: block;
        left: 50%;
        top: 78px;
        transform: translate(-50%, -50%);
        width: 38px;
        height: 38px;
        border-radius: 999px;
        z-index: 30;
    }

    /* Extra specificity for iOS/Theme overrides */
    #amadeus-api-swap.amadeus-api-gz-swap{
        left: 50% !important;
    }

    .amadeus-api-gz-actions { padding: 16px 0 2px; }
    .amadeus-api-gz-search {
        border-radius: 14px !important;
        padding: 12px 56px !important;
        font-size: 18px !important;
        width: auto;
    }

    /* Traveler card (mobile) */
    .amadeus-api-gz-traveler-desktop { display: none; }
    .amadeus-api-gz-traveler-card {
        display: block;
        width: 100%;
        border: 0;
        background: transparent;
        text-align: left;
        padding: 0;
        cursor: pointer;
    }
    .amadeus-api-gz-traveler-card-title {
        font-size: 18px;
        font-weight: 800;
        color: #0a1f44;
        line-height: 1.15;
    }
    .amadeus-api-gz-traveler-card-sub {
        font-size: 12px;
        color: #7a8796;
        margin-top: 4px;
    }
}

/* Traveler/Class sheet (mobile) */
.amadeus-api-gz-sheet {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

body.amadeus-api-gz-noscroll { overflow: hidden; }

.amadeus-api-gz-sheet.is-open { display: block; }

.amadeus-api-gz-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.amadeus-api-gz-sheet-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100% - 24px));
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    overflow: hidden;
}

.amadeus-api-gz-sheet-close {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.amadeus-api-gz-sheet-body {
    padding: 16px 16px 10px;
}

.amadeus-api-gz-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f6;
}

.amadeus-api-gz-stepper:last-of-type { border-bottom: 0; }

.amadeus-api-gz-stepper-title {
    font-weight: 700;
    color: #0a1f44;
    font-size: 13px;
}

.amadeus-api-gz-stepper-sub {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.amadeus-api-gz-stepper-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.amadeus-api-gz-stepper-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #cfd6e4;
    background: #ffffff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #0a1f44;
}

.amadeus-api-gz-stepper-value {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    color: #0a1f44;
}

.amadeus-api-gz-sheet-section {
    padding-top: 12px;
}

.amadeus-api-gz-sheet-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #0a1f44;
    margin-bottom: 8px;
}

.amadeus-api-gz-radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0a1f44;
    margin-right: 14px;
}

.amadeus-api-gz-sheet-actions {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px 16px;
}

.amadeus-api-gz-sheet-done {
    background: #f6c100;
    color: #0a1f44;
    border: 0;
    border-radius: 10px;
    font-weight: 800;
    padding: 10px 18px;
    cursor: pointer;
}

/* Desktop popover variant (appears below/above the TRAVELER, CLASS field) */
.amadeus-api-gz-sheet.is-popover .amadeus-api-gz-sheet-backdrop {
    background: transparent;
}

.amadeus-api-gz-sheet.is-popover .amadeus-api-gz-sheet-panel {
    position: fixed;
    transform: none;
    width: 340px;
    max-width: calc(100vw - 24px);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

.amadeus-api-gz-sheet.is-popover .amadeus-api-gz-sheet-close {
    display: none;
}

@media (max-width: 600px) {
    .amadeus-api-gz-sheet.is-popover .amadeus-api-gz-sheet-panel {
        width: min(520px, calc(100% - 24px));
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%);
    }
}

/* Container */
.amadeus-api-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: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Themes */
.amadeus-api-theme-light {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}

.amadeus-api-theme-dark {
    background-color: #333;
    color: #f8f9fa;
    border: 1px solid #222;
}

.amadeus-api-theme-dark .amadeus-api-flight-search-header {
    background-color: #222;
}

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

.amadeus-api-flight-search-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

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

/* Form */
.amadeus-api-flight-search-form {
    display: block;
}

.amadeus-api-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px;
}

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

.amadeus-api-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.amadeus-api-form-group input,
.amadeus-api-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

.amadeus-api-form-help {
    display: block;
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.amadeus-api-form-submit {
    display: flex;
    align-items: flex-end;
}

.amadeus-api-search-button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.amadeus-api-search-button:hover {
    background-color: #005a87;
}

/* Autocomplete Wrapper */
.amadeus-api-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

/* Autocomplete Results Container */
.amadeus-api-autocomplete-results {
    position: absolute;
    z-index: 9999;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    /* Show ~5 destinations in the viewport, scroll for more */
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    border-radius: 0 0 4px 4px;
}

.amadeus-api-theme-dark .amadeus-api-autocomplete-results {
    background: #444;
    border-color: #555;
    color: #eee;
}

/* Autocomplete Item */
.amadeus-api-autocomplete-item {
    padding: 10px 15px;
    /* Keep each destination row a consistent height so 5 items fit nicely */
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.amadeus-api-theme-dark .amadeus-api-autocomplete-item {
    border-color: #555;
}

.amadeus-api-autocomplete-item:last-child {
    border-bottom: none;
}

.amadeus-api-autocomplete-item:hover {
    background-color: #f5f5f5;
}

.amadeus-api-theme-dark .amadeus-api-autocomplete-item:hover {
    background-color: #333;
}

/* No Results Message */
.amadeus-api-no-results,
.amadeus-api-loading-results,
.amadeus-api-error-results {
    padding: 10px 15px;
    font-style: italic;
    color: #777;
}

.amadeus-api-theme-dark .amadeus-api-no-results,
.amadeus-api-theme-dark .amadeus-api-loading-results,
.amadeus-api-theme-dark .amadeus-api-error-results {
    color: #bbb;
}

.amadeus-api-error-results {
    color: #d9534f;
}

/* Loading indicator */
.amadeus-api-loading {
    text-align: center;
    padding: 20px;
}

.amadeus-api-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 115, 170, 0.2);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: amadeus-api-spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes amadeus-api-spin {
    to { transform: rotate(360deg); }
}

/* Flight Results */
.amadeus-api-flight-results {
    padding: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #ffffff 100%);
    border-radius: 18px;
}

/* --------------------------------------------------------------------------
   Modern, interactive flight results UI (UI-only upgrade)
   -------------------------------------------------------------------------- */
.amadeus-api-results-shell{
    margin-top: 16px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(226,232,240,0.9);
    background: rgba(248,250,252,0.8);
}

.amadeus-api-results-topbar{
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226,232,240,0.9);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.amadeus-api-results-h{
    font-size: 18px;
    font-weight: 800;
    color: #0a1f44;
    line-height: 1.1;
}

.amadeus-api-results-sub{
    margin-top: 4px;
    font-size: 12.5px;
    color: #64748b;
}

.amadeus-api-results-actions{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.amadeus-api-sort{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.amadeus-api-sort span{
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.amadeus-api-sort-select{
    border: 0;
    background: transparent;
    outline: none;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    padding: 0;
}

.amadeus-api-filter-toggle{
    display: none;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    padding: 9px 12px;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
}

.amadeus-api-view-toggle{
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    padding: 9px 12px;
    font-weight: 900;
    color: #0f172a;
    cursor: pointer;
}

.amadeus-api-view-toggle[aria-pressed="true"]{
    border-color: #c7d2fe;
    background: #eef2ff;
}

.amadeus-api-results-layout{
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 14px;
    margin-top: 14px;
    align-items: start;
}

.amadeus-api-filters{
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.amadeus-api-filters-inner{
    padding: 14px;
}

.amadeus-api-filter-section{
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.amadeus-api-filter-section:last-child{
    border-bottom: 0;
}

.amadeus-api-filter-title{
    font-size: 12.5px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.amadeus-api-filter-chips{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amadeus-api-chip-btn{
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
}

.amadeus-api-chip-btn.is-active{
    border-color: #0f172a;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10);
}

.amadeus-api-price-range{
    display: grid;
    gap: 8px;
}

.amadeus-api-price-slider{
    width: 100%;
}

.amadeus-api-price-meta{
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.amadeus-api-airline-list{
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
}

.amadeus-api-airline-search{
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    padding: 2px 0 6px;
}

.amadeus-api-airline-search-input{
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    outline: none;
}

.amadeus-api-airline-search-input:focus{
    border-color: rgba(15, 23, 42, 0.45);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.amadeus-api-airline-label{
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.amadeus-api-airline-name{
    color: #475569;
    font-weight: 800;
}

.amadeus-api-check{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.amadeus-api-check input{
    width: 16px;
    height: 16px;
}

.amadeus-api-filter-footer{
    display: flex;
    gap: 10px;
    padding-top: 14px;
}

.amadeus-api-btn-primary,
.amadeus-api-btn-ghost{
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 900;
    border: 1px solid transparent;
    cursor: pointer;
}

.amadeus-api-btn-primary{
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.amadeus-api-btn-ghost{
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
}

.amadeus-api-results-list{
    display: grid;
    gap: 12px;
}

.amadeus-api-offer{
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.amadeus-api-offer:hover{
    transform: translateY(-1px);
    border-color: rgba(148,163,184,0.8);
    box-shadow: 0 18px 56px rgba(15, 23, 42, 0.10);
}

.amadeus-api-offer-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.amadeus-api-offer-airlines{
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.amadeus-api-airline-badge{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #0f172a;
}

/* Airline logos (UI-only)
   - Use a wrapper so custom sizes never stretch/break card layouts.
   - The <img> always scales down with object-fit:contain.
*/
.amadeus-airline-logo-wrap{
    width: var(--logo-w, 30px);
    height: var(--logo-h, 30px);
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 1px 0 rgba(15,23,42,0.04);
}

/* Presets */
.amadeus-airline-logo-wrap.amadeus-airline-logo--sm{ --logo-w: 22px; --logo-h: 22px; border-radius: 10px; }
.amadeus-airline-logo-wrap.amadeus-airline-logo--md{ --logo-w: 30px; --logo-h: 30px; border-radius: 12px; }
.amadeus-airline-logo-wrap.amadeus-airline-logo--lg{ --logo-w: 40px; --logo-h: 40px; border-radius: 14px; }

.amadeus-airline-logo-img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Custom size mode (px inputs):
   Render like a real airline logo (rectangular, no "boxed whitespace"),
   while still respecting max-width/max-height clamps in JS.
*/
.amadeus-airline-logo-wrap.is-custom{
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.amadeus-airline-logo-wrap.is-custom .amadeus-airline-logo-img{
    width: auto;
    height: var(--logo-h, 24px);
    max-width: var(--logo-w, 80px);
    object-fit: contain;
}

/* Flight card airline row */
.amadeus-api-offer-airlines{
    align-items: center;
    gap: 10px;
}

/* Remove extra container styling if present */
.amadeus-api-airline-badge{
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
}

/* Filter list: show clean, real-logo-like appearance */
.amadeus-api-airline-list .amadeus-airline-logo-wrap{
    border: none;
    box-shadow: none;
    background: transparent;
}
.amadeus-api-airline-list .amadeus-airline-logo-wrap,
.amadeus-api-airline-list .amadeus-airline-logo-wrap.is-custom{
    --logo-h: 16px;
    --logo-w: 34px;
}

/* Airline title text: Name first, then code in brackets */
.amadeus-api-offer-airline-title{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}
.amadeus-api-offer-airline-name-text{
    font-weight: 800;
    color: #0f172a;
}
.amadeus-api-offer-airline-code-text{
    color: #64748b;
    font-weight: 700;
}

/* Airline filter label layout */
.amadeus-api-airline-label{
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.amadeus-api-airline-logo-mini{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.amadeus-api-airline-label .amadeus-api-airline-name{
    font-weight: 700;
    color: #0f172a;
}
.amadeus-api-airline-label .amadeus-api-airline-code{
    color: #64748b;
    font-weight: 700;
}


/* Back-compat if any templates still use old class */
.amadeus-api-airline-logo,
.amadeus-airline-logo{
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.amadeus-api-best{
    align-self: flex-end;
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #0e7490;
    font-weight: 1000;
    font-size: 11px;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.amadeus-api-offer-airline-codes{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.amadeus-api-chip{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 900;
    font-size: 12px;
}

.amadeus-api-offer-meta{
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
}

.amadeus-api-offer-right{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.amadeus-api-price-sub{
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    margin-top: -2px;
}

.amadeus-api-price{
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
}

.amadeus-api-offer-body{
    padding: 12px 14px;
    display: grid;
    gap: 10px;
}

.amadeus-api-itin{
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 12px;
    background: #fbfdff;
}

.amadeus-api-itin-label{
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #475569;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.amadeus-api-itin-row{
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 10px;
    align-items: center;
}

.amadeus-api-itin-code{
    font-size: 18px;
    font-weight: 1000;
    color: #0f172a;
}

.amadeus-api-itin-time{
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
}

.amadeus-api-itin-date{
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

.amadeus-api-itin-mid{
    text-align: center;
}

.amadeus-api-itin-duration{
    font-size: 12px;
    font-weight: 900;
    color: #0f172a;
}

.amadeus-api-itin-stops{
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    margin-top: 2px;
}

.amadeus-api-itin-line{
    margin-top: 8px;
    height: 2px;
    background: linear-gradient(90deg, rgba(148,163,184,0.2), rgba(15,23,42,0.35), rgba(148,163,184,0.2));
    border-radius: 999px;
    position: relative;
}

.amadeus-api-details{
    padding: 0 14px 14px;
}

.amadeus-api-details > summary{
    list-style: none;
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
    color: #0f172a;
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
}

.amadeus-api-details > summary::-webkit-details-marker{ display:none; }

.amadeus-api-details-inner{
    padding-top: 8px;
    display: grid;
    gap: 10px;
}

/* Compact list view (UI-only) */
.amadeus-api-results-shell.is-compact .amadeus-api-offer-head{
    padding: 12px 12px;
}

.amadeus-api-results-shell.is-compact .amadeus-api-offer-body{
    padding: 0 12px 12px;
}

.amadeus-api-results-shell.is-compact .amadeus-api-itin{
    padding: 10px 10px;
    border-radius: 12px;
}

.amadeus-api-results-shell.is-compact .amadeus-api-itin:nth-of-type(n+2){
    display: none;
}

.amadeus-api-seg-group{
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.amadeus-api-seg-title{
    padding: 10px 12px;
    font-weight: 1000;
    font-size: 12.5px;
    color: #0f172a;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.amadeus-api-seg{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
}

.amadeus-api-seg + .amadeus-api-seg{
    border-top: 1px solid #f1f5f9;
}

.amadeus-api-seg-main{
    font-weight: 1000;
    color: #0f172a;
}

.amadeus-api-seg-sub{
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.amadeus-api-seg-right{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.amadeus-api-layover{
    padding: 8px 12px;
    background: #fbfdff;
    border-top: 1px dashed #e2e8f0;
    font-size: 12px;
    font-weight: 800;
    color: #475569;
}

.amadeus-api-divider{
    height: 1px;
    background: #e2e8f0;
    border-radius: 999px;
}

.amadeus-api-muted{
    color: #64748b;
    font-weight: 700;
}

.amadeus-api-empty-state{
    border: 1px dashed #cbd5e1;
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    color: #475569;
    font-weight: 800;
}

/* Skeleton loaders (UI-only) */
.amadeus-api-results-shell.is-skeleton .amadeus-api-offer,
.amadeus-api-results-shell.is-skeleton .amadeus-api-filters{
    pointer-events: none;
}

.amadeus-api-skel{
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 999px;
}

.amadeus-api-skel::after{
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, rgba(241,245,249,0) 0%, rgba(226,232,240,0.9) 50%, rgba(241,245,249,0) 100%);
    animation: amadeus-api-shimmer 1.2s infinite;
}

.skel-line{ height: 12px; margin: 8px 0; }
.skel-avatar{ width: 30px; height: 30px; border-radius: 10px; }
.skel-btn{ height: 36px; width: 100px; border-radius: 12px; }

@keyframes amadeus-api-shimmer{
    100%{ transform: translateX(100%); }
}

/* Responsive: drawer-style filters */
@media (max-width: 980px){
    .amadeus-api-results-layout{
        grid-template-columns: 1fr;
    }
    .amadeus-api-filter-toggle{ display: inline-flex; }
    .amadeus-api-filters{
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        max-height: 76vh;
        transform: translateY(110%);
        transition: transform 220ms ease;
        z-index: 999999;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -20px 50px rgba(15,23,42,0.20);
    }
    .amadeus-api-results-shell.is-filters-open .amadeus-api-filters{
        transform: translateY(0);
    }
}

@media (max-width: 640px){
    /* Mobile header alignment: keep airline name, code badge, duration and price in one vertical alignment */
    .amadeus-api-offer-head{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .amadeus-api-offer-left,
    .amadeus-api-offer-right{
        width: 100%;
    }
    .amadeus-api-offer-left{
        display: flex;
        justify-content: center;
    }
    .amadeus-api-offer-airlines{
        justify-content: center;
        width: 100%;
    }
    .amadeus-api-offer-airlines > div{
        align-items: center;
        text-align: center;
    }
    .amadeus-api-offer-airline-title{
        justify-content: center;
        width: 100%;
    }
    .amadeus-api-offer-airline-codes{
        justify-content: center;
    }
    .amadeus-api-offer-meta{
        justify-content: center;
    }
    .amadeus-api-offer-right{
        align-items: center;
    }
    .amadeus-api-price,
    .amadeus-api-price-sub{
        text-align: center;
        width: 100%;
    }
    .amadeus-api-select-flight{
        width: 100%;
    }

    .amadeus-api-itin-row{
        grid-template-columns: 1fr;
        text-align: left;
    }
    .amadeus-api-itin-mid{ text-align: left; }
}


.amadeus-api-results-header {
    margin-bottom: 20px;
}

.amadeus-api-results-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

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

.amadeus-api-flight-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 15px;
}

.amadeus-api-theme-dark .amadeus-api-flight-card {
    background-color: #444;
    border-color: #555;
}

.amadeus-api-price-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #0073aa;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
}

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

.amadeus-api-flight-price {
    font-size: 18px;
    font-weight: 600;
    color: #0073aa;
}

.amadeus-api-flight-code {
    font-size: 14px;
    color: #666;
}

.amadeus-api-theme-dark .amadeus-api-flight-code {
    color: #ccc;
}

.amadeus-api-select-flight {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.amadeus-api-select-flight:hover {
    background-color: #005a87;
}

/* Responsive styles */
@media (max-width: 768px) {
    .amadeus-api-form-row {
        flex-direction: column;
    }
    
    .amadeus-api-form-group {
        flex: 1 1 100%;
        margin: 0 0 15px 0;
    }
}

/* --------------------------------------------------------------------------
   GoZayaan-style destination popdown (pixel-match to provided screenshot)
   -------------------------------------------------------------------------- */
.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-results{
    top: calc(100% + 10px);
    background: #ffffff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    padding: 0;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-search{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #e7eaf2;
    background: #ffffff;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-search-icon{
    font-size: 14px;
    opacity: 0.55;
    line-height: 1;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-search-input{
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    padding: 0;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-search-input::placeholder{
    color: #9aa3b2;
    font-weight: 500;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-list{
    /* ~5 items visible, then scroll */
    max-height: 340px;
    overflow-y: auto;
    padding: 6px 0;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    min-height: 64px;
    cursor: pointer;
    background: #ffffff;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-item:hover{
    background: #f4f7ff;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-left{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-title{
    font-size: 15px;
    font-weight: 800;
    color: #1b2a7a;
    line-height: 1.15;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-sub{
    font-size: 12.5px;
    font-weight: 500;
    color: #6b7aa9;
    line-height: 1.2;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-code{
    font-size: 13px;
    font-weight: 800;
    color: #6f7ed3;
    letter-spacing: 0.02em;
    margin-left: 18px;
}

.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-empty{
    padding: 14px 18px;
    font-size: 13px;
    color: #6b7280;
}

/* Scrollbar styling (WebKit) */
.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-list::-webkit-scrollbar{
    width: 10px;
}
.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-list::-webkit-scrollbar-track{
    background: rgba(17, 24, 39, 0.06);
    border-radius: 999px;
    margin: 10px 6px;
}
.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-list::-webkit-scrollbar-thumb{
    background: rgba(17, 24, 39, 0.35);
    border-radius: 999px;
}
.amadeus-api-flight-search-container.amadeus-api-gz .amadeus-api-autocomplete-list::-webkit-scrollbar-thumb:hover{
    background: rgba(17, 24, 39, 0.48);
}


/* --- Booking system (Phase 1+2) --- */
.amadeus-api-checkout { margin-top: 18px; }
.amadeus-api-checkout-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 992px) { .amadeus-api-checkout-grid { grid-template-columns: 1.6fr 0.9fr; align-items: start; } }
.amadeus-api-checkout-main h2 { margin: 0 0 12px; }
.amadeus-api-field-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .amadeus-api-field-row { grid-template-columns: 1fr 1fr; } }
.amadeus-api-checkout-form input[type="text"],
.amadeus-api-checkout-form input[type="email"],
.amadeus-api-checkout-form input[type="date"],
.amadeus-api-checkout-form select { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.amadeus-api-traveler-card, .amadeus-api-summary-card, .amadeus-api-payment-card, .amadeus-api-card { border: 1px solid #eee; border-radius: 14px; padding: 14px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.04); margin-bottom: 12px; }
.amadeus-api-payment-card .description { margin: 6px 0 0; color: #6b7280; }
.amadeus-api-primary { padding: 10px 16px !important; border-radius: 12px !important; }
.amadeus-api-thankyou .amadeus-api-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.amadeus-api-my-bookings .amadeus-api-table { width: 100%; border-collapse: collapse; }
.amadeus-api-my-bookings .amadeus-api-table th, .amadeus-api-my-bookings .amadeus-api-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; text-align: left; }
.amadeus-api-pagination { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.amadeus-api-pagination a { padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 10px; text-decoration: none; }
.amadeus-api-pagination a.active { background: #111827; color: #fff; border-color: #111827; }



/* Mobile fare + header alignment (UI only) */
@media (max-width: 640px){
  .amadeus-api-offer-head{
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: center;
  }

  .amadeus-api-offer-airlines{
    width: 100%;
    justify-content: center;
  }

  .amadeus-api-offer-right{
    width: 100%;
    align-items: center;
  }

  .amadeus-api-price,
  .amadeus-api-price-sub{
    width: 100%;
    text-align: center;
  }

  .amadeus-api-select-flight{
    width: 100%;
  }
}


/* GoZayaan-style search type panels (Flight/Hotel/Tour/Visa) */
.amadeus-api-gz-panels{display:block;}
.amadeus-api-gz-panel{display:none;}
.amadeus-api-gz-panel.is-active{display:block;}
.amadeus-api-gz-htv{padding:16px 0;}
.amadeus-api-gz-htv__img img{max-width:100%;height:auto;border-radius:12px;}
.amadeus-api-gz-btn{display:inline-block;padding:10px 14px;border-radius:12px;background:#111;color:#fff;text-decoration:none;}

/* ------------------------------------------------------------------
 * Primary Search Results Design (UI-only)
 * Mobile-first layout inspired by the provided screenshot.
 * ------------------------------------------------------------------ */

.amadeus-api-results--primary{background:#f4f6f8; padding: 12px 0;}

/* Date strip (cheapest-day slider) */
.ama-date-strip{position: sticky; top: 0; z-index: 50; background:#fff; border-bottom: 1px solid #e9eef2;}
.ama-date-strip.is-stuck{box-shadow: 0 6px 16px rgba(0,0,0,0.06);}
.ama-date-strip-inner{display:flex; align-items:center; gap:10px; padding: 12px 12px 6px;}
.ama-date-nav{flex:0 0 auto; width: 34px; height: 34px; border-radius: 12px; border: 1px solid #e6ebf0; background:var(--ama-date-nav-bg, #fff); color:var(--ama-date-nav-color, #0b2d5f); display:flex; align-items:center; justify-content:center; font-size: 18px; cursor:pointer;}
.ama-date-nav:focus{outline: 2px solid rgba(13,110,253,0.25); outline-offset: 2px;}
.ama-date-slider{position:relative; flex: 1 1 auto; display:flex; gap: 16px; overflow-x:auto; -webkit-overflow-scrolling: touch; scroll-behavior:smooth; padding: 0 6px 10px; scrollbar-width: none;}
.ama-date-slider::-webkit-scrollbar{display:none;}
.ama-date-item{position:relative; min-width: 118px; text-align:center; cursor:pointer; user-select:none; padding: 6px 8px 10px; border-radius: 14px;}
.ama-date-day{display:block; font-size: 13px; color:#6b7280; line-height: 1.2;}
.ama-date-price{display:block; font-size: 18px; font-weight: 800; color:#0b2d5f; letter-spacing: -0.2px; margin-top: 4px;}
.ama-date-item.is-active .ama-date-day{color:#111827; font-weight: 600;}
.ama-date-item.is-active .ama-date-price{color:#0a2a6c;}

/* Animated underline: one moving bar inside the slider */
.ama-underline{position:absolute; height: 4px; background:var(--ama-date-underline-color, #ffc400); border-radius: 3px; bottom: 2px; left: 0; width: 60px; transform: translateX(0); transition: transform 260ms ease, width 260ms ease; will-change: transform, width;}

/* Make primary design resilient to theme color overrides */
.amadeus-api-results--primary .ama-date-strip,
.amadeus-api-results--primary .ama-date-strip *{box-sizing:border-box;}
.amadeus-api-results--primary .ama-date-day{color:#6b7280;}
.amadeus-api-results--primary .ama-date-price{color:#0b2d5f;}
.amadeus-api-results--primary .ama-date-item.is-active .ama-date-day{color:#111827;}
.amadeus-api-results--primary .ama-date-item.is-active .ama-date-price{color:#0a2a6c;}

.ama-trend-btn{flex:0 0 auto; width: 40px; height: 40px; border-radius: 14px; border: 1px solid #e6ebf0; background:var(--ama-date-nav-bg, #fff); color:var(--ama-date-nav-color, #0b2d5f); display:flex; align-items:center; justify-content:center; cursor:pointer;}
.ama-trend-btn svg{width:22px; height:22px; display:block;}

/* Trend icon on the right */
.ama-trend-btn{flex:0 0 auto; width: 44px; height: 44px; border-radius: 14px; border: 1px solid #e6ebf0; background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer;}
.ama-trend-btn svg{width: 22px; height: 22px; opacity: 0.85;}

/* Route header gradient bar */
.ama-route-header{display:flex; align-items:center; gap: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, var(--ama-route-base-color, #0a2a6c), var(--ama-route-base-color, #1e3c8a)); color:#fff; margin: 14px 12px 14px;}
.ama-route-badge{background: rgba(255,255,255,0.15); padding: 8px 14px; border-radius: 12px; font-weight: 700; letter-spacing: 0.2px;}
.ama-route-title{font-size: 18px; font-weight: 700;}

/* Layout wrapper to keep cards nicely centered on desktop */
/* Primary search results wrapper should match Classic width (inherit page content width) */
.amadeus-api-results-wrap{max-width: 100%; margin: 0 auto;}

@media (min-width: 768px){
  .ama-date-strip-inner{padding: 14px 16px 8px;}
  .ama-date-item{min-width: 140px;}
  .ama-route-header{margin: 18px 16px; padding: 22px; border-radius: 18px;}
  .ama-route-title{font-size: 20px;}
}

@media (min-width: 1024px){
  .amadeus-api-results--primary{padding: 18px 0;}
  .ama-date-item{min-width: 150px;}
}

/* Trend modal (UI-only) */
.ama-modal-backdrop{position:fixed; inset:0; background: rgba(0,0,0,0.45); z-index: 9998; display:none; align-items:center; justify-content:center; padding: 18px;}
.ama-modal-backdrop.is-open{display:flex;}
.ama-modal{background:#fff; border-radius: 18px; width: min(520px, 96vw); max-height: 85vh; overflow:auto; box-shadow: 0 18px 60px rgba(0,0,0,0.25);}
.ama-modal-head{display:flex; align-items:center; justify-content:space-between; padding: 14px 16px; border-bottom: 1px solid #eef2f6;}
.ama-modal-title{font-weight: 800;}
.ama-modal-close{border: 1px solid #e6ebf0; background:#fff; border-radius: 12px; padding: 8px 10px; cursor:pointer;}
.ama-modal-body{padding: 14px 16px 18px;}
.ama-trend-chart{width:100%; height: 180px; border-radius: 14px; background: #f7fafc; border: 1px solid #eef2f6; display:flex; align-items:center; justify-content:center;}

/* =====================================================================
 * Primary Search Results Design (Pixel-match)
 * UI-only: safe styling layer that does NOT alter API behavior.
 * Customizable via CSS variables output from admin settings.
 * ===================================================================== */

.amadeus-api-results--primary{
    /* Defaults (can be overridden by wp_add_inline_style variables) */
    --ama-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --ama-font-size: 14px;
    --ama-text: #0f172a;
    --ama-muted: #64748b;
    --ama-icon: #0a2a6c;
    --ama-accent: #f7c600;
    --ama-range: #ff8a00;
    --ama-bg: #f5f7fb;
    --ama-card: #ffffff;
    --ama-btn: #f7c600;
    --ama-btn-text: #111827;
    --ama-promo-bg: #e8f8ee;
    --ama-promo-text: #137a4c;
    --ama-route-base-color: #0a2a6c;
    --ama-date-nav-color: #0b2d5f;

    font-family: var(--ama-font);
    font-size: var(--ama-font-size);
    color: var(--ama-text);
}

.amadeus-api-results--primary .amadeus-api-results-wrap{
    background: var(--ama-bg);
    padding: 12px;
    border-radius: 14px;
}

/* Date strip */
.amadeus-api-results--primary .ama-date-strip{
    position: sticky;
    top: 0;
    z-index: 30;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e6edf7;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    margin-bottom: 10px;
}
.amadeus-api-results--primary .ama-date-strip.is-stuck{
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}
.amadeus-api-results--primary .ama-date-strip-inner{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
}
.amadeus-api-results--primary .ama-date-nav{
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e5eaf3;
    background: #fff;
    color: var(--ama-date-nav-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.amadeus-api-results--primary .ama-date-slider{
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 10px;
    flex: 1;
    padding: 2px 6px;
    scroll-behavior: smooth;
}
.amadeus-api-results--primary .ama-date-item{
    min-width: 120px;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    user-select: none;
    background: #fff;
    border: 1px solid transparent;
    text-align: center;
}
.amadeus-api-results--primary .ama-date-item .ama-date-day{ display:block; color: var(--ama-muted); font-weight: 600; font-size: 12px; }
.amadeus-api-results--primary .ama-date-item .ama-date-price{ display:block; color: var(--ama-text); font-weight: 800; margin-top: 4px; }
.amadeus-api-results--primary .ama-date-item.is-active{ border-color: #e5eaf3; }
.amadeus-api-results--primary .ama-underline{
    position:absolute;
    left: 0;
    bottom: 2px;
    height: 4px;
    background: var(--ama-accent);
    border-radius: 999px;
    transition: transform 220ms ease, width 220ms ease;
}
.amadeus-api-results--primary .ama-explore{
    border: 1px solid #e5eaf3;
    background: #fff;
    border-radius: 12px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--ama-icon);
    white-space: nowrap;
}
.amadeus-api-results--primary .ama-explore svg{ width: 18px; height: 18px; }
.amadeus-api-results--primary .ama-explore-text{ font-weight: 700; }

/* Route header */
.amadeus-api-results--primary .ama-route-header{
    background: linear-gradient(135deg, var(--ama-route-base-color), #163b8f);
    color: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}
.amadeus-api-results--primary .ama-route-header:after{
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.16), transparent 60%);
    transform: rotate(10deg);
}
.amadeus-api-results--primary .ama-route-badge{
    background: rgba(0,0,0,0.18);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
    z-index: 1;
}
.amadeus-api-results--primary .ama-route-title{
    font-size: 18px;
    font-weight: 800;
    z-index: 1;
}

/* Top picks */
.amadeus-api-results--primary .ama-top-picks{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.amadeus-api-results--primary .ama-pick{
    border: 1px solid #dbe6ff;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.amadeus-api-results--primary .ama-pick-title{ font-weight: 800; color: var(--ama-icon); font-size: 16px; }
.amadeus-api-results--primary .ama-pick-sub{ color: var(--ama-muted); margin-top: 4px; font-weight: 600; }

/* Layout */
.amadeus-api-results--primary .amadeus-api-results-shell{
    background: transparent;
}
.amadeus-api-results--primary .amadeus-api-results-layout{
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
}
.amadeus-api-results--primary .amadeus-api-filters{
    background: var(--ama-card);
    border: 1px solid #e6edf7;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

/* Mobile controls row */
.amadeus-api-results--primary .ama-topbar-primary{ padding: 0; margin: 0 0 12px; background: transparent; border: 0; }
.amadeus-api-results--primary .ama-mobile-controls{ display:none; gap: 12px; align-items: center; }
.amadeus-api-results--primary .ama-sort{
    flex: 1;
    display:flex;
    align-items:center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: 12px;
    padding: 10px 12px;
}
.amadeus-api-results--primary .ama-sort-label{ color: var(--ama-muted); font-weight: 700; }
.amadeus-api-results--primary .ama-sort select{
    border: 0;
    background: transparent;
    font-weight: 800;
    flex: 1;
}
.amadeus-api-results--primary .ama-filter-btn{
    background: var(--ama-btn);
    color: var(--ama-btn-text);
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

/* Offer card */
.amadeus-api-results--primary .ama-offer{
    background: var(--ama-card);
    border: 1px solid #e6edf7;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
    margin-bottom: 14px;
}
.amadeus-api-results--primary .ama-offer.ama-flash{ outline: 3px solid rgba(247, 198, 0, 0.55); }
.amadeus-api-results--primary .ama-offer-main{
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 14px;
    padding: 14px 16px;
    align-items: center;
}
.amadeus-api-results--primary .ama-offer-airline{ display:flex; align-items:center; gap: 10px; flex-wrap: wrap; }
.amadeus-api-results--primary .ama-offer-airline-name{ font-weight: 900; }
.amadeus-api-results--primary .ama-offer-points{ display:flex; align-items:center; gap: 6px; color: var(--ama-muted); font-weight: 700; font-size: 12px; }
.amadeus-api-results--primary .ama-offer-points-ico{ color: var(--ama-accent); }
.amadeus-api-results--primary .ama-offer-itin{ display:grid; grid-template-columns: 110px 1fr 110px; align-items:center; gap: 8px; }
.amadeus-api-results--primary .ama-offer-time{ font-weight: 900; font-size: 20px; }
.amadeus-api-results--primary .ama-offer-code{ color: var(--ama-muted); font-weight: 800; }
.amadeus-api-results--primary .ama-offer-itin-mid{ text-align:center; }
.amadeus-api-results--primary .ama-offer-dur{ color: var(--ama-muted); font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.amadeus-api-results--primary .ama-offer-line{ display:flex; align-items:center; justify-content:center; gap: 8px; }
.amadeus-api-results--primary .ama-offer-line .ama-dot{ width: 10px; height: 10px; border-radius: 999px; border: 2px solid #88a7ff; background: #fff; }
.amadeus-api-results--primary .ama-offer-line .ama-line{ height: 2px; width: 120px; background: #88a7ff; border-radius: 999px; }
.amadeus-api-results--primary .ama-offer-stops{ color: var(--ama-muted); font-weight: 800; font-size: 12px; margin-top: 6px; }
.amadeus-api-results--primary .ama-offer-price{ text-align:right; }
.amadeus-api-results--primary .ama-offer-price-label{ color: var(--ama-muted); font-weight: 700; font-size: 12px; }
.amadeus-api-results--primary .ama-offer-price-amt{ font-weight: 950; font-size: 20px; margin-top: 2px; }
/*
 * UI-only: Primary result CTA layout
 * - Default (side-by-side): row layout with wrap
 * - Stacked: column layout
 */
.amadeus-api-results--primary .ama-offer-cta{ margin-top: 10px; display:flex; flex-direction:row; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.amadeus-api-results--primary .ama-offer-cta.ama-cta--stacked{ flex-direction: column; align-items: stretch; justify-content: flex-start; }
.amadeus-api-results--primary .ama-offer-cta .ama-btn{ margin-top: 0; }
.amadeus-api-results--primary .ama-offer-cta.ama-cta--stacked .ama-btn{ width: 100%; }
.amadeus-api-results--primary .ama-btn{
    margin-top: 10px;
    background: var(--ama-btn);
    color: var(--ama-btn-text);
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 950;
    cursor: pointer;
}
.amadeus-api-results--primary .ama-offer-details-link{ display:inline-block; margin-top: 10px; color: #2563eb; font-weight: 800; text-decoration: underline; }

.amadeus-api-results--primary .ama-offer-promo{
    background: var(--ama-promo-bg);
    color: var(--ama-promo-text);
    padding: 10px 16px;
    text-align: center;
    font-weight: 800;
}

/* Hide the <details> summary in Primary (we use the link) but keep accessible */
.amadeus-api-results--primary .ama-details-summary{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow:hidden; }
.amadeus-api-results--primary details.ama-details{ padding: 0 16px 14px; }

/* Responsive */
@media (max-width: 1024px){
    .amadeus-api-results--primary .amadeus-api-results-layout{ grid-template-columns: 1fr; }
    .amadeus-api-results--primary .amadeus-api-filters{ position: fixed; inset: 0; z-index: 2000; display:none; border-radius: 0; }
    .amadeus-api-results--primary .amadeus-api-results-shell.is-filters-open .amadeus-api-filters{ display:block; }
    .amadeus-api-results--primary .ama-mobile-controls{ display:flex; }
    .amadeus-api-results--primary .ama-top-picks{ display:none; }
}

@media (max-width: 720px){
    .amadeus-api-results--primary .ama-date-item{ min-width: 96px; }
    .amadeus-api-results--primary .ama-explore-text{ display:none; }
    .amadeus-api-results--primary .ama-offer-main{ grid-template-columns: 1fr; text-align:left; }
    .amadeus-api-results--primary .ama-offer-price{ text-align:left; }
    .amadeus-api-results--primary .ama-offer-itin{ grid-template-columns: 1fr; }
    .amadeus-api-results--primary .ama-offer-itin-mid{ text-align:left; }
    .amadeus-api-results--primary .ama-offer-line{ justify-content:flex-start; }
    .amadeus-api-results--primary .ama-offer-line .ama-line{ width: 160px; }
}


/* ============================================================
   UI-only: Primary Search Results Enhancements
   - View Fares dropdown
   - Explore Fares side panel
   - Additional theme variables (no API impact)
   ============================================================ */

:root{
  --ama-route-text: var(--ama-text, #0b1b3f);
  --ama-route-badge-bg: rgba(255,255,255,.18);
  --ama-timeline: var(--ama-icon, #2b5cff);
  --ama-link: #1f5bd8;
  --ama-card-shadow: 0 8px 24px rgba(11,27,63,.08);
  --ama-radius: 14px;
  --ama-spacing: 1; /* 1=comfortable, 0.85=compact */
}

/* Card radius + shadow controls */
.amadeus-api-results--primary .ama-offer{
  border-radius: var(--ama-radius);
  box-shadow: var(--ama-card-shadow);
}
.amadeus-api-results--primary.ama-density-compact .ama-offer{
  --ama-spacing: .85;
}

/* Route bar finer controls */
.amadeus-api-results--primary .ama-route{
  color: var(--ama-route-text);
}
.amadeus-api-results--primary .ama-route-badge{
  background: var(--ama-route-badge-bg);
}

/* Timeline colors */
.amadeus-api-results--primary .ama-time-line,
.amadeus-api-results--primary .ama-time-dot{
  border-color: var(--ama-timeline);
}
.amadeus-api-results--primary .ama-time-dot{
  background: #fff;
}

/* Link color */
.amadeus-api-results--primary a,
.amadeus-api-results--primary .ama-offer-details-link{
  color: var(--ama-link);
}

/* "View Fares" dropdown */
.amadeus-api-results--primary .ama-fares-dropdown{ position: relative; display: inline-block; }
.amadeus-api-results--primary .ama-fares-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: #fff;
  border: 1px solid rgba(11,27,63,.12);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11,27,63,.14);
  padding: 6px;
  z-index: 999;
  display: none;
}
.amadeus-api-results--primary .ama-fares-dropdown.is-open .ama-fares-menu{ display:block; }
.amadeus-api-results--primary .ama-fares-item{
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ama-text, #0b1b3f);
  font-weight: 600;
}
.amadeus-api-results--primary .ama-fares-item:hover,
.amadeus-api-results--primary .ama-fares-item:focus{
  background: rgba(43,92,255,.10);
  outline: none;
}

/* Explore fares side panel */
.ama-explore-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
  z-index: 10000;
}
.ama-explore-backdrop.is-open{ opacity: 1; pointer-events: auto; }

.ama-explore-panel{
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: #fff;
  transform: translateX(102%);
  transition: transform .22s ease;
  z-index: 10001;
  box-shadow: -16px 0 32px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
}
.ama-explore-panel.is-open{ transform: translateX(0); }

.ama-explore-panel__head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 16px;
  border-bottom: 1px solid rgba(11,27,63,.10);
}
.ama-explore-panel__title{
  font-size: 18px;
  font-weight: 800;
  color: var(--ama-text, #0b1b3f);
}
.ama-explore-panel__close{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 10px;
}
.ama-explore-panel__close:hover,
.ama-explore-panel__close:focus{
  background: rgba(43,92,255,.10);
  outline: none;
}
.ama-explore-panel__body{
  padding: 14px 16px;
  overflow: auto;
}
.ama-explore-panel__hint{
  font-size: 13px;
  color: rgba(11,27,63,.72);
  margin-bottom: 10px;
}
.ama-explore-cal{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ama-explore-day{
  border: 1px solid rgba(11,27,63,.12);
  background: #fff;
  border-radius: 14px;
  padding: 12px 12px;
  text-align: left;
  cursor: pointer;
}
.ama-explore-day__d{ font-weight: 800; color: var(--ama-text, #0b1b3f); }
.ama-explore-day__p{ margin-top: 4px; font-weight: 800; color: var(--ama-highlight, #f6c000); }
.ama-explore-day.is-active{
  border-color: var(--ama-highlight, #f6c000);
  box-shadow: 0 0 0 3px rgba(246,192,0,.18);
}
.ama-explore-day.is-cheapest .ama-explore-day__p{ color: #0a7a3b; }

/* Accessibility: focus ring */
.amadeus-api-results--primary button:focus-visible,
.amadeus-api-results--primary a:focus-visible,
.ama-explore-panel button:focus-visible{
  outline: 3px solid rgba(43,92,255,.35);
  outline-offset: 2px;
}

/* Reduced motion option (UI-only). Can be forced by setting data-ama-reduce-motion on body */
@media (prefers-reduced-motion: reduce){
  .ama-explore-backdrop, .ama-explore-panel{ transition: none !important; }
}
body[data-ama-reduce-motion="1"] .ama-explore-backdrop,
body[data-ama-reduce-motion="1"] .ama-explore-panel{
  transition: none !important;
}
