/* AMUSTAY Flight v113 complete clean preview.
 * Visual foundation preserved from the working v73/v75/v86 frontend.
 * One resulting stylesheet; no legacy overlay stylesheet stack.
 */


/* ===== preserved source: flight-cached-base-v73.css ===== */

:root{
  color-scheme:light;
  --ink:#172238;
  --muted:#637087;
  --line:#d6deea;
  --soft:#f5f8fc;
  --accent:#184f8c;
  --accent2:#0d3869;
  --danger:#a12626;
  --success:#17643a;
}
*{box-sizing:border-box}
body{
  margin:0;
  background:#eef3f8;
  color:var(--ink);
  font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.cached-shell-v51{max-width:1120px;margin:auto;padding:0 20px 50px}
.cached-header-v51{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:18px 0;
}
.cached-brand-v51{font-size:20px;font-weight:800;color:var(--ink);text-decoration:none}
.cached-header-nav-v51{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cached-header-link-v51{color:var(--accent);text-decoration:none;font-weight:700;font-size:14px}
.cached-hero-v51{
  margin:12px 0 22px;padding:34px;
  border-radius:24px;background:#fff;box-shadow:0 16px 45px rgba(27,51,82,.10)
}
.cached-eyebrow-v51{
  margin:0 0 8px;color:var(--accent);font-size:13px;font-weight:800;
  letter-spacing:.08em;text-transform:uppercase
}
.cached-hero-v51 h1{font-size:clamp(30px,5vw,54px);line-height:1.05;margin:0 0 16px}
.cached-hero-v51>p{max-width:760px;margin:0;color:var(--muted);font-size:18px}
.cached-card-v51{
  margin-top:24px;border:1px solid var(--line);border-radius:20px;
  background:var(--soft);padding:22px
}
.cached-profile-row-v51{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-bottom:16px
}
#cached-profile-v51{font-size:14px;color:var(--muted);font-weight:700}
#cached-reset-v51{
  border:0;background:transparent;color:var(--accent);cursor:pointer;
  font:700 13px/1.2 inherit;text-decoration:underline
}
.cached-grid-v51{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:start}
.cached-side-v51 h2{font-size:17px;margin:0 0 10px}
.cached-inputs-v51{display:grid;gap:9px}
.cached-inputs-v51 input{
  width:100%;border:1px solid #b8c4d3;border-radius:11px;background:#fff;
  padding:12px 13px;font:inherit;color:var(--ink)
}
.cached-inputs-v51 input:focus{outline:3px solid rgba(24,79,140,.16);border-color:var(--accent)}
.cached-arrow-v51{font-size:28px;padding-top:48px;color:var(--muted)}
.cached-fixed-v51{
  margin:18px 0 14px;padding:12px 14px;border-radius:12px;
  background:#fff;color:var(--muted);font-size:14px
}
.cached-submit-v51{
  width:100%;border:0;border-radius:14px;padding:17px 22px;
  background:linear-gradient(180deg,var(--accent),var(--accent2));
  color:#fff;font:800 20px/1.2 inherit;cursor:pointer;
  box-shadow:0 10px 24px rgba(13,56,105,.25)
}
.cached-submit-v51:hover{filter:brightness(1.06)}
.cached-submit-v51:disabled{opacity:.55;cursor:wait}
#cached-status-v51{min-height:26px;margin:14px 2px 0;font-weight:700}
#cached-status-v51[data-kind="error"]{color:var(--danger)}
#cached-status-v51[data-kind="success"]{color:var(--success)}
#cached-status-v51[data-kind="working"]{color:var(--accent)}
.cached-results-v51{display:grid;gap:14px;margin-top:22px}
.cached-result-v51,.cached-empty-v51{
  background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;
  box-shadow:0 8px 24px rgba(31,54,83,.07)
}
.cached-result-v51 h3{margin:0 0 8px;font-size:18px}
.cached-price-v51{display:block;font-size:29px;margin:6px 0}
.cached-dates-v51{margin:0 0 7px;font-weight:700}
.cached-note-v51{margin:0 0 15px;color:var(--muted);font-size:14px}
.cached-live-button-v51{
  display:inline-block;border-radius:11px;padding:11px 15px;background:var(--ink);
  color:#fff;text-decoration:none;font-weight:800
}
.cached-empty-v51 p{font-size:17px}
.cached-footer-v51{
  display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;
  padding-top:28px;color:var(--muted);font-size:13px
}
.cached-footer-v51 a{color:var(--muted)}
@media(max-width:760px){
  .cached-shell-v51{padding:0 12px 35px}
  .cached-hero-v51{padding:24px 16px;border-radius:18px}
  .cached-card-v51{padding:15px}
  .cached-grid-v51{grid-template-columns:1fr}
  .cached-arrow-v51{transform:rotate(90deg);padding:0;text-align:center;line-height:1}
  .cached-header-v51{align-items:flex-start}
}


/* v52: unmistakable account/language band */
.cached-header-v51{
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:15px max(20px,calc((100vw - 1120px)/2 + 20px));
  background:#111827;
  color:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}
.cached-brand-v51,
.cached-header-link-v51{
  color:#fff;
}
.cached-header-link-v51{
  padding:7px 9px;
  border-radius:9px;
}
.cached-header-link-v51:hover,
.cached-header-link-v51:focus{
  background:rgba(255,255,255,.13);
  outline:none;
}
#cached-account-v51{
  padding:8px 13px;
  border:1px solid rgba(255,255,255,.55);
  background:#fff;
  color:#111827;
  border-radius:999px;
}
#cached-account-v51:hover,
#cached-account-v51:focus{
  background:#e8eef8;
  color:#111827;
}

/* v52: detailed cached conditions remain inside the same search */
.cached-advanced-v52{
  margin:15px 0;
  border:1px solid #c7d2df;
  border-radius:13px;
  background:#fff;
}
.cached-advanced-v52 summary{
  cursor:pointer;
  padding:13px 15px;
  color:#263a55;
  font-weight:800;
  list-style-position:inside;
}
.cached-advanced-v52[open] summary{
  border-bottom:1px solid #d8e0ea;
}
.cached-advanced-grid-v52{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  padding:15px;
}
.cached-advanced-grid-v52 label{
  display:grid;
  gap:6px;
  color:#4f5f75;
  font-size:13px;
  font-weight:750;
}
.cached-advanced-grid-v52 input,
.cached-advanced-grid-v52 select{
  width:100%;
  min-width:0;
  padding:10px;
  border:1px solid #b8c4d3;
  border-radius:10px;
  background:#fff;
  color:#172238;
  font:inherit;
}
.cached-advanced-note-v52{
  margin:0;
  padding:0 15px 15px;
  color:#69778d;
  font-size:13px;
}
@media(max-width:900px){
  .cached-advanced-grid-v52{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:520px){
  .cached-header-v51{
    padding-left:12px;
    padding-right:12px;
  }
  .cached-header-nav-v51{
    gap:4px;
  }
  .cached-advanced-grid-v52{
    grid-template-columns:1fr;
  }
}


/* ===== preserved source: flight-money-v73.css ===== */
/* AMUSTAY Flight v73 compact currency selector. */
.flight-currency-v73{display:inline-flex;align-items:center;flex:0 0 auto;margin:0}
.flight-currency-v73 select{width:4.25rem;min-width:4.25rem;min-height:2rem;padding:.28rem 1.1rem .28rem .42rem;border:1px solid #94a3b8;border-radius:.48rem;background:#fff;color:#172238;font:800 .72rem/1 system-ui}
.cached-header-v51 .flight-currency-v73{order:2;margin-left:auto}.cached-header-v51 .cached-header-nav-v51{margin-left:0}
.live71-topbar .flight-currency-v73 select{border-color:#cbd5e1;background:#fff;color:#172238}
@media(max-width:520px){.flight-currency-v73 select{width:3.85rem;min-width:3.85rem;padding-left:.3rem;font-size:.65rem}.cached-header-v51 .flight-currency-v73{margin-left:auto}}


/* ===== preserved source: flight-route-groups-v73.css ===== */
/* AMUSTAY Flight v68 — compact chip editor, automatic history, mobile two-column route grid. */
.flight-v68-legacy{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.cached-side-v51>h2{position:absolute!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;width:1px!important;height:1px!important;overflow:hidden!important;white-space:nowrap!important}
.flight-v68-panel{display:grid;gap:.38rem;min-width:0;margin:0}
.flight-v68-editor{display:flex;flex-wrap:wrap;align-content:flex-start;gap:.28rem;min-height:3rem;padding:.38rem;border:1px solid #94a3b8;border-radius:.75rem;background:#fff;cursor:text}
.flight-v68-editor:focus-within{outline:2px solid #38bdf8;outline-offset:1px}
.flight-v68-chip{display:inline-flex;align-items:center;gap:.26rem;min-width:0;max-width:100%;border:1px solid #cbd5e1;border-radius:999px;background:#f8fafc;padding:.22rem .24rem .22rem .48rem;line-height:1}
.flight-v68-chip>b{font:800 .76rem/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.02em}
.flight-v68-chip>span{max-width:8.2rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#475569;font-size:.66rem}
.flight-v68-chip>button{border:0;background:transparent;color:#64748b;font:900 .83rem/1 system-ui;cursor:pointer;padding:.08rem .24rem}
.flight-v68-inline-input{flex:1 1 3.2rem;min-width:2.8rem;width:4.5rem;border:0;outline:0;background:transparent;color:#0f172a;font:800 .78rem/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-transform:uppercase;padding:.2rem}
.flight-v68-inline-input::placeholder{color:#64748b}
.flight-v68-quick,.flight-v68-more-groups,.flight-v68-country-list{display:flex;flex-wrap:wrap;gap:.24rem}
.flight-v68-quick button,.flight-v68-more button,.flight-v68-toolbar button{border:1px solid #94a3b8;border-radius:.48rem;background:#fff;color:#0f172a;font:750 .66rem/1.05 system-ui;padding:.34rem .42rem;cursor:pointer}
.flight-v68-quick button:hover,.flight-v68-more button:hover,.flight-v68-toolbar button:hover{background:#e0f2fe;border-color:#38bdf8}
.flight-v68-recent{display:grid;gap:.2rem}
.flight-v68-history-row{display:grid;grid-template-columns:minmax(0,1fr) 1.65rem;gap:.2rem;align-items:center}
.flight-v68-history-row button{min-width:0;min-height:1.55rem;border:1px solid #d7dee8;border-radius:.42rem;background:#fff;font-size:.62rem;padding:.2rem .34rem;cursor:pointer}
.flight-v68-history-use{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.flight-v68-more{border-top:1px solid #e2e8f0;padding-top:.25rem}
.flight-v68-more summary{cursor:pointer;font-size:.68rem;font-weight:800;color:#334155}
.flight-v68-more h4{margin:.52rem 0 .24rem;font-size:.66rem}
.flight-v68-all-presets{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.28rem;align-items:center;margin:.2rem 0 .48rem}
.flight-v68-all-presets select,.flight-v68-country select{min-width:0;min-height:2rem;border:1px solid #94a3b8;border-radius:.46rem;background:#fff;padding:.3rem .38rem;font-size:.68rem}
.flight-v68-country{display:grid;grid-template-columns:auto minmax(5rem,1fr) auto;gap:.28rem;align-items:center}
.flight-v68-country h4{margin:0}.flight-v68-country-list{grid-column:1/-1;max-height:10rem;overflow:auto}.flight-v68-country-list button{font-weight:500;font-size:.61rem}
.flight-v68-location{margin-top:.4rem}.flight-v68-status{min-height:.8rem;margin:.22rem 0 0;font-size:.64rem;color:#475569}.flight-v68-status.is-error{color:#b91c1c;font-weight:700}
.flight-v68-toolbar{display:flex;align-items:center;justify-content:center;gap:.35rem;margin:.42rem 0}.flight-v68-trip{display:inline-flex;gap:.2rem}.flight-v68-trip button{font-size:.66rem;padding:.36rem .52rem}.flight-v68-trip button.is-active,.flight-v68-trip button[aria-pressed="true"]{background:#0f172a;color:#fff;border-color:#0f172a;font-weight:800}.flight-v68-hidden-trip{display:none!important}
.flight-v68-swap{font-size:1.25rem!important;line-height:1!important;padding:.28rem .48rem!important;align-self:stretch;display:flex;align-items:center;justify-content:center}
#flight-v68-toolbar[data-trip-warning]::after{content:attr(data-trip-warning);font-size:.68rem;color:#9b1c1c;margin-left:.25rem}
/* Keep departure and arrival side-by-side on phones; chips wrap inside each half. */
@media(max-width:760px){
  .cached-shell-v51{padding-left:7px!important;padding-right:7px!important}
  .cached-hero-v51{padding:18px 9px!important}.cached-card-v51{padding:9px!important}
  .cached-grid-v51{grid-template-columns:minmax(0,1fr) 1.8rem minmax(0,1fr)!important;gap:.25rem!important;align-items:stretch!important}
  .cached-arrow-v51{transform:none!important;padding:0!important;text-align:center!important;line-height:1!important}
  .flight-v68-chip{padding-left:.38rem}.flight-v68-chip>b{font-size:.7rem}.flight-v68-chip>span{max-width:4.7rem;font-size:.59rem}.flight-v68-chip>button{padding-left:.13rem;padding-right:.13rem}
  .flight-v68-editor{min-height:4.1rem;padding:.28rem;gap:.2rem}.flight-v68-quick{gap:.18rem}.flight-v68-quick button{font-size:.57rem;padding:.29rem .31rem}
  .flight-v68-history-row button{font-size:.56rem}.flight-v68-more summary{font-size:.62rem}
  .flight-v68-all-presets{grid-template-columns:1fr}.flight-v68-all-presets button{width:100%}
  .flight-v68-country{grid-template-columns:1fr auto}.flight-v68-country h4{grid-column:1/-1}
}
@media(max-width:390px){.flight-v68-chip>span{display:none}.flight-v68-quick button{font-size:.54rem;padding:.27rem}.flight-v68-history-row{grid-template-columns:minmax(0,1fr) 1.45rem}}


/* ===== preserved source: flight-cached-v73.css ===== */
/* AMUSTAY Flight v68 cached-result enhancements. */
.cached-meta-v68{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin:.1rem 0 .7rem;color:#475569;font-size:.82rem}
.cached-airline-v68{display:inline-flex;align-items:center;gap:.38rem;font-weight:800;color:#263a55}.cached-airline-v68 img{width:30px;height:30px;object-fit:contain;border-radius:7px;background:#fff;border:1px solid #d8e0ea;padding:2px}.cached-stops-v68{font-weight:700}
.cached-result-v51{position:relative}.cached-live-button-v51{margin-top:.1rem}
@media(max-width:520px){.cached-result-v51{padding:14px}.cached-result-v51 h3{font-size:15px}.cached-price-v51{font-size:23px}.cached-dates-v51{font-size:.78rem}.cached-note-v51{font-size:.72rem;margin-bottom:10px}.cached-meta-v68{font-size:.7rem;gap:.4rem}.cached-airline-v68 img{width:25px;height:25px}.cached-live-button-v51{display:block;text-align:center;padding:10px 12px}}

/* AMUSTAY Flight v70 cache-warm progress */
.cached-warm-meter-v70{height:.42rem;margin:.45rem 0 .2rem;overflow:hidden;border-radius:999px;background:rgba(80,90,110,.16)}
.cached-warm-meter-v70[hidden]{display:none!important}
.cached-warm-meter-v70>span{display:block;width:8%;height:100%;border-radius:inherit;background:currentColor;transition:width .55s ease;animation:cached-warm-pulse-v70 1.4s ease-in-out infinite}
@keyframes cached-warm-pulse-v70{0%,100%{opacity:.42}50%{opacity:1}}
/* v73: actual airline logo proportions from the Aviasales image CDN. */
.cached-airline-v68 img{width:58px;height:26px;border-radius:6px;padding:2px;object-fit:contain}.cached-airline-v68 span{white-space:nowrap}
@media(max-width:520px){.cached-airline-v68 img{width:52px;height:24px}}


/* ===== preserved source: flight-itinerary-shelf-v75.css ===== */
/* AMUSTAY Flight v75 itinerary controls — visible but secondary to the restored v68/v69 design. */
.flight-v75-shelf{display:none;max-width:1080px;margin:.5rem auto 0;padding:0 .6rem}.flight-v75-shelf.has-items{display:block}.flight-v75-shelf-row{display:flex;gap:.45rem;overflow-x:auto;padding:.1rem 0 .35rem}
.flight-v75-plan{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.45rem;min-width:min(38rem,94vw);padding:.5rem .6rem;border:1px solid #dbe3ec;border-radius:12px;background:#fff;box-shadow:0 5px 14px rgba(15,23,42,.05);font-size:.72rem}.flight-v75-plan-main{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.flight-v75-plan-main b{color:#24364b}.flight-v75-plan-actions{display:flex;gap:.22rem;align-items:center}
.flight-v75-plan-actions button,.flight-v75-card-actions button{border:1px solid #d5dee8;background:#fff;color:#536274;border-radius:8px;padding:.3rem .46rem;font-size:.67rem;font-weight:750;line-height:1.15;cursor:pointer}.flight-v75-plan-actions button:hover,.flight-v75-card-actions button:hover,.flight-v75-card-actions button.is-active{border-color:#7fa6c9;background:#eef6fb;color:#184f8c}
.flight-v75-card-actions{display:flex;align-items:center;gap:.32rem;flex-wrap:wrap;margin:.65rem 0 .1rem;padding:.55rem .65rem;border:1px solid #e2e8ef;border-radius:10px;background:#f8fafc}.live71-card .flight-v75-card-actions{margin:.7rem 0 0;border-left:0;border-right:0;border-radius:0;padding:.65rem 1rem}.flight-v75-connect{margin-left:auto}.flight-v75-note{color:#7a8795;font-size:.64rem;white-space:nowrap}
@media(max-width:720px){.flight-v75-shelf{margin-top:.3rem;padding:0 .35rem}.flight-v75-plan{min-width:95vw;grid-template-columns:auto minmax(0,1fr)}.flight-v75-plan-actions{grid-column:1/-1;justify-content:flex-end;flex-wrap:wrap}.flight-v75-card-actions{padding:.5rem .55rem}.flight-v75-connect{margin-left:0}}


/* ===== preserved source: flight-chip-card-remove-v86.css ===== */
.flight-v86-whole-remove{cursor:pointer;touch-action:manipulation}.flight-v86-whole-remove:focus-visible{outline:3px solid currentColor;outline-offset:2px}.flight-v86-whole-remove button,.flight-v86-whole-remove [role="button"]{pointer-events:auto}


/* ===== v113 single-structure integration ===== */
.flight-v113-preview-note{
  margin:.65rem 0 0;
  color:#64748b;
  text-align:right;
  font-size:.72rem;
}
.flight-v113-currency select{
  width:4.25rem;
  min-height:2.15rem;
  padding:.34rem .42rem;
  border:1px solid #94a3b8;
  border-radius:.48rem;
  background:#fff;
  color:#172238;
  font-weight:800;
  font-size:.72rem;
}
.flight-v113-hidden-trip{display:none!important}
#flight-v113-shelf{max-width:1120px}
#flight-v113-shelf:not(.has-items){display:none}
#flight-v113-swap{
  margin:0;
  border:1px solid #94a3b8;
  background:#fff;
  color:#64748b;
  border-radius:.48rem;
  cursor:pointer;
}
#flight-v113-swap:hover,#flight-v113-swap:focus{
  background:#e0f2fe;
  border-color:#38bdf8;
  outline:none;
}
.flight-v113-debug{
  margin:1rem 0;
  padding:1rem;
  border:2px dashed #7b8797;
  border-radius:.8rem;
  background:#fff;
}
.flight-v113-debug pre{
  max-height:32rem;
  overflow:auto;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:.7rem;
}
.flight-v113-partial{
  color:#8a5800!important;
}
.flight-v113-panel-loading{
  min-height:12.4rem;
  border:1px solid #d8e0ea;
  border-radius:.75rem;
  background:
    linear-gradient(90deg,transparent,rgba(255,255,255,.65),transparent),
    #f8fafc;
  background-size:200% 100%;
  animation:flight-v113-loading 1.2s linear infinite;
}
@keyframes flight-v113-loading{
  from{background-position:200% 0}
  to{background-position:-200% 0}
}

/* The editor is the real input from first paint; there is no hidden legacy
   five-input form underneath it. */
.flight-v68-panel{width:100%}
.flight-v68-editor{min-height:6.15rem}
.flight-v68-inline-input{
  text-transform:none;
}
.flight-v68-inline-input::placeholder{
  text-transform:none;
}
.flight-v68-chip.flight-v113-whole-remove{
  cursor:pointer;
}
.flight-v68-chip.flight-v113-whole-remove:hover{
  background:#eef6fb;
  border-color:#7fa6c9;
}
.flight-v68-chip.flight-v113-whole-remove:focus{
  outline:2px solid #38bdf8;
  outline-offset:1px;
}
.flight-v68-history-row button:first-child{
  text-align:left;
  padding-left:.45rem;
}
.flight-v68-more[open]{
  padding-bottom:.2rem;
}
.flight-v68-country-list{
  margin-top:.35rem;
  max-height:12rem;
  overflow:auto;
}
.flight-v68-country-list button{
  text-align:left;
}
#flight-v68-toolbar{
  position:relative;
}
#flight-v68-toolbar[data-trip-warning]::after{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  z-index:2;
  min-width:max-content;
  padding:.2rem .35rem;
  border-radius:.35rem;
  background:#fff3f3;
}
#cached-status-v51[data-kind="warning"]{color:#8a5800}
.cached-results-v51 .flight-v75-card-actions{
  margin-top:.7rem;
}
.flight-v75-shelf{
  padding-top:.3rem;
}
.flight-v75-plan-main b{
  font-variant-numeric:tabular-nums;
}
.flight-v113-result-warning{
  margin:.25rem 0;
  color:#8a5800;
  font-size:.76rem;
  font-weight:700;
}

/* Preserve the original side-by-side mobile route chooser. */
@media(max-width:760px){
  .flight-v113-preview-note{
    padding:0 .35rem;
    text-align:left;
  }
  .flight-v113-currency select{
    width:3.75rem;
    min-height:1.95rem;
    font-size:.66rem;
  }
  .flight-v68-editor{
    min-height:7.2rem;
  }
}
@media(max-width:520px){
  .cached-header-link-v51{
    padding:6px 5px;
    font-size:11px;
  }
  #cached-account-v51{
    padding:7px 9px;
  }
  .flight-v75-plan-actions button{
    font-size:.61rem;
  }
}
