/* Flight search form (homepage + results page): trip type, places, dates, passengers, multi-city. */
.inline-search { background:#fff; border-radius:18px; padding:.9rem 1rem 1rem; box-shadow:0 10px 30px -12px rgba(9,88,201,.22); margin-bottom:1.2rem; }
.is-top { display:flex; align-items:center; justify-content:space-between; gap:.6rem 1rem; flex-wrap:wrap; margin-bottom:.8rem; }
.is-trip { display:inline-flex; background:#f0f5fc; border-radius:12px; padding:3px; }
.is-trip-btn { border:none; background:none; font:inherit; font-size:13px; font-weight:700; color:#51667e; padding:7px 14px; border-radius:9px; cursor:pointer; text-decoration:none; transition:background .15s, color .15s; }
.is-trip-btn:hover { color:#0c73fe; }
.is-trip-btn.active { background:#fff; color:#0c73fe; box-shadow:0 2px 8px -2px rgba(9,88,201,.25); }
.is-toggle { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:#51667e; cursor:pointer; user-select:none; }
.is-toggle input { position:absolute; opacity:0; pointer-events:none; }
.is-toggle-track { width:34px; height:20px; border-radius:20px; background:#dfe7f2; position:relative; transition:background .15s; }
.is-toggle-track::after { content:''; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.2); transition:transform .15s; }
.is-toggle input:checked + .is-toggle-track { background:#0c73fe; }
.is-toggle input:checked + .is-toggle-track::after { transform:translateX(14px); }
.is-toggle input:focus-visible + .is-toggle-track { box-shadow:0 0 0 3px rgba(12,115,254,.3); }
.is-main { display:flex; align-items:stretch; gap:6px; }
.is-row { display:flex; align-items:stretch; gap:6px; flex:1; min-width:0; }
.is-actions { display:flex; align-items:stretch; gap:6px; flex:0 0 auto; }
.is-actions .is-pax { width:190px; flex:0 0 auto; }
.is-multi { display:none; flex-direction:column; gap:8px; }
.is-multi-rows { display:flex; flex-direction:column; gap:8px; }
.is-multi-mode .is-main { flex-direction:column; }
.is-multi-mode .is-row { display:none; }
.is-multi-mode .is-multi { display:flex; }
.is-seg { display:flex; align-items:stretch; gap:6px; }
.is-seg-no { flex:0 0 28px; align-self:center; height:28px; border-radius:50%; background:#eaf2fe; color:#0c73fe; font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.is-seg .is-place { flex:1.4 1 0; }
.is-seg .is-date { flex:.9 1 0; }
.is-seg-del { flex:0 0 34px; align-self:center; height:34px; border-radius:50%; border:1.5px solid #f5d0d0; background:#fff; color:#e5484d; font-size:20px; line-height:1; cursor:pointer; transition:background .15s, border-color .15s; }
.is-seg-del:hover { background:#fff1f0; border-color:#e5484d; }
.is-add { display:none; align-items:center; justify-content:center; gap:6px; margin-right:auto; padding:0 18px; border:1.5px dashed #9cc3fb; border-radius:12px; background:#f4f8ff; color:#0c73fe; font:inherit; font-size:13.5px; font-weight:700; cursor:pointer; transition:background .15s, border-color .15s; }
.is-add svg { width:15px; height:15px; }
.is-add:hover:not(:disabled) { background:#eaf2fe; border-color:#0c73fe; }
.is-add:disabled { opacity:.45; cursor:default; }
.is-multi-mode .is-add { display:inline-flex; }
.is-field { position:relative; display:flex; flex-direction:column; justify-content:center; gap:2px; min-width:0; padding:8px 12px; border:1.5px solid #e6edf7; border-radius:12px; background:#fff; transition:border-color .15s, box-shadow .15s, background .15s; }
.is-field:hover { border-color:#c9daf3; }
.is-field:focus-within { border-color:#0c73fe; box-shadow:0 0 0 3px rgba(12,115,254,.12); }
.is-field.is-invalid { border-color:#e5484d; box-shadow:0 0 0 3px rgba(229,72,77,.12); }
.is-field[hidden] { display:none; }
.is-place { flex:1.4 1 0; }
.is-date { flex:.9 1 0; cursor:pointer; }
.is-pax { flex:1 1 0; }
.is-label { font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:#8ba0b8; }
.is-field input[type=text], .is-field input[type=date] { border:none; outline:none; background:none; padding:0; font:inherit; font-size:14.5px; font-weight:700; color:#132540; width:100%; min-width:0; text-overflow:ellipsis; }
.is-date { cursor:pointer; outline:none; }
.is-date:focus-visible { border-color:#0c73fe; box-shadow:0 0 0 3px rgba(12,115,254,.2); }
.is-date-val { font-size:14.5px; font-weight:700; color:#132540; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.is-date-val.is-empty { color:#a8b6c7; font-weight:600; }
.is-field input::placeholder { color:#a8b6c7; font-weight:600; }
.is-field input:disabled { color:#a8b6c7; }
.is-place:first-child { padding-right:26px; }
.is-swap + .is-place { padding-left:26px; }
.is-swap { flex:0 0 auto; align-self:center; width:34px; height:34px; margin:0 -20px; z-index:2; border-radius:50%; border:1.5px solid #e1ebfb; background:#fff; color:#0c73fe; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px -2px rgba(9,88,201,.25); transition:transform .25s, background .15s; }
.is-swap:hover { background:#eaf2fe; transform:rotate(180deg); }
.is-swap svg { width:15px; height:15px; }
.is-pax-btn { border:none; background:none; padding:0; font:inherit; font-size:14.5px; font-weight:700; color:#132540; text-align:left; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.is-pax-pop { position:absolute; top:calc(100% + 8px); right:0; z-index:60; width:290px; background:#fff; border-radius:16px; padding:14px; box-shadow:0 22px 48px -16px rgba(9,58,120,.4); border:1px solid #eef4fe; }
.pp-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px solid #f0f4fa; }
.pp-row b { display:block; font-size:14px; color:#132540; }
.pp-row small { font-size:11.5px; color:#8ba0b8; }
.pp-stepper { display:flex; align-items:center; gap:10px; }
.pp-stepper button { width:32px; height:32px; border-radius:50%; border:1.5px solid #cfe0f7; background:#fff; color:#0c73fe; font-size:18px; line-height:1; cursor:pointer; transition:background .15s, border-color .15s; }
.pp-stepper button:hover:not(:disabled) { background:#eaf2fe; border-color:#0c73fe; }
.pp-stepper button:disabled { color:#c5d0dd; border-color:#e6edf7; cursor:default; }
.pp-stepper output { min-width:16px; text-align:center; font-weight:800; font-size:15px; }
.pp-cabin { display:grid; grid-template-columns:repeat(4, 1fr); gap:4px; background:#f0f5fc; padding:3px; border-radius:11px; margin:12px 0; }
.pp-cabin button { border:none; background:none; font:inherit; font-size:12.5px; font-weight:700; color:#51667e; padding:8px 2px; border-radius:8px; cursor:pointer; }
.pp-cabin button.active { background:#fff; color:#0c73fe; box-shadow:0 2px 8px -2px rgba(9,88,201,.25); }
.pp-done { width:100%; border:none; border-radius:11px; padding:10px; background:#0c73fe; color:#fff; font:inherit; font-weight:700; cursor:pointer; }
.pp-done:hover { background:#0958c9; }
.is-search-btn { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; gap:8px; border:none; border-radius:12px; padding:0 24px; background:linear-gradient(135deg,#fa742d,#f45d1a); color:#fff; font:inherit; font-size:15px; font-weight:800; cursor:pointer; white-space:nowrap; box-shadow:0 10px 22px -10px rgba(250,116,45,.85); transition:transform .15s, box-shadow .15s; }
.is-search-btn svg { width:18px; height:18px; }
.is-search-btn:hover { transform:translateY(-1px); box-shadow:0 14px 26px -10px rgba(250,116,45,.95); }
@media (max-width:980px) {
    .is-main { flex-direction:column; }
    .is-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
    .is-actions { flex-wrap:wrap; }
    .is-actions .is-pax { flex:1 1 200px; width:auto; }
    .is-multi-mode .is-add { flex:1 1 100%; padding:11px; margin-right:0; }
    .is-seg { display:grid; grid-template-columns:28px 1fr 1fr 34px; }
    .is-seg .is-date { grid-column:2 / 4; }
    .is-seg-del { grid-column:4; grid-row:1; }
    .is-swap { position:absolute; left:50%; margin:0; transform:translate(-50%, 0); display:none; }
    .is-search-btn { flex:1 1 160px; }
    .is-place:first-child, .is-swap + .is-place { padding:8px 12px; }
    .is-search-btn { padding:13px; }
    .is-pax-pop { left:0; right:auto; width:100%; max-width:340px; }
}
@media (max-width:480px) {
    .is-row { grid-template-columns:1fr; }
    .is-seg { grid-template-columns:28px 1fr 34px; }
    .is-seg .is-place, .is-seg .is-date { grid-column:2; }
    .is-seg-del { grid-column:3; }
    .is-trip { width:100%; }
    .is-trip-btn { flex:1; text-align:center; padding:7px 8px; }
}

/* Place fields read as buttons until focused for typing */
.is-place, .is-place input[type=text] { cursor:pointer; }
.is-place input[type=text]:focus { cursor:text; }

/* From/to suggestions panel */
.autocomplete-list.ac-panel { position:fixed; z-index:2000; display:none; box-sizing:border-box; max-width:calc(100vw - 20px); max-height:min(430px, 64vh); max-height:min(430px, 64dvh); overflow-y:auto; overscroll-behavior:contain; padding:6px; background:#fff; border:none; border-radius:16px; box-shadow:0 24px 60px -18px rgba(9,40,90,.38), 0 0 0 1px rgba(9,58,120,.07); animation:acIn .14s ease-out; }
@keyframes acIn { from { opacity:0; transform:translateY(-4px); } }
.ac-sec { padding:10px 10px 5px; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#8ba0b8; }
.ac-sec:not(:first-child) { margin-top:4px; border-top:1px solid #eef3fa; padding-top:12px; }
.ac-item { display:flex; align-items:center; gap:11px; width:100%; padding:8px 10px; border:none; border-radius:11px; background:none; font:inherit; color:#132540; text-align:left; cursor:pointer; }
.ac-item.hl { background:#f0f6ff; }
.ac-ico { width:36px; height:36px; flex:0 0 36px; border-radius:11px; display:flex; align-items:center; justify-content:center; background:#f1f5fb; color:#51667e; }
.ac-ico svg { width:18px; height:18px; }
.ac-ico.plane svg { width:16px; height:16px; transform:rotate(45deg); }
.ac-ico.recent { background:#fff3ea; color:#e0641f; }
.ac-ico.near { background:#e5f5ee; color:#12805c; }
.ac-item.hl .ac-ico:not(.recent):not(.near) { background:#dfeafd; color:#0c73fe; }
.ac-item.is-child { padding-left:24px; }
.ac-item.is-child .ac-ico { width:28px; height:28px; flex-basis:28px; border-radius:9px; background:none; }
.ac-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.ac-main b { font-size:14px; font-weight:700; line-height:1.3; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.ac-main b mark { background:none; color:#0c73fe; }
.ac-main small { font-size:12px; color:#8ba0b8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ac-side { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.ac-side em { font-style:normal; font-size:11.5px; font-weight:600; color:#8ba0b8; }
.ac-iata { min-width:38px; padding:4px 7px; border-radius:7px; background:#eef4fd; color:#0958c9; font-size:11.5px; font-weight:800; letter-spacing:.03em; text-align:center; }
.ac-item.hl .ac-iata { background:#0c73fe; color:#fff; }
.ac-empty { padding:20px 14px; font-size:13px; color:#8ba0b8; text-align:center; }

/* Thin top progress line while the next search page opens */
.nav-progress { position:fixed; top:0; left:0; z-index:9999; height:3px; width:0; background:linear-gradient(90deg,#0c73fe,#fa742d); box-shadow:0 0 10px rgba(12,115,254,.5); animation:navProg 2.4s cubic-bezier(.1,.7,.2,1) forwards; }
@keyframes navProg { to { width:85%; } }

/* Hotel search form */
.hs-place { flex:2 1 0; }
.hs-ages { display:flex; flex-direction:column; gap:8px; margin:4px 0 12px; }
.hs-age { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px; font-weight:600; color:#51667e; }
.hs-age select { border:1.5px solid #e6edf7; border-radius:9px; padding:6px 8px; font:inherit; font-size:13px; color:#132540; background:#fff; }

/* Transfer search form */
.tr-time { flex:0 0 108px; }
.tr-time select { border:none; outline:none; background:none; padding:0; font:inherit; font-size:14.5px; font-weight:700; color:#132540; width:100%; cursor:pointer; appearance:none; }
.tr-pax { width:150px; flex:0 0 auto; justify-content:center; }
.tr-pax .pp-stepper { justify-content:space-between; gap:6px; }
.tr-pax .pp-stepper button { width:28px; height:28px; font-size:16px; }
.tr-pax output { font-size:14.5px; font-weight:700; }
@media (max-width:980px) { .tr-time, .tr-pax { flex:1 1 auto; width:auto; } }

/* Phones: place search fills the screen while typing */
.ac-back { display:none; }
@media (max-width:640px) {
    html.ac-lock, html.ac-lock body { overflow:hidden; }
    html.ac-lock .st-nav, html.ac-lock .st-tabbar, html.ac-lock .st-install { visibility:hidden; }
    .is-field.ac-full { position:fixed; top:0; left:0; right:0; z-index:6000; height:calc(64px + env(safe-area-inset-top)); padding:env(safe-area-inset-top) 16px 0 60px !important; justify-content:center; border:none; border-bottom:1px solid #e6edf7; border-radius:0; background:#fff; box-shadow:0 6px 20px -16px rgba(9,40,90,.5); }
    .is-field.ac-full::before { content:''; position:fixed; inset:0; z-index:-1; background:#fff; }
    .is-field.ac-full input[type=text] { font-size:17px !important; }
    .ac-full .ac-back { all:unset; box-sizing:border-box; display:flex; align-items:center; justify-content:center; position:absolute; left:10px; top:calc(env(safe-area-inset-top) + 12px); width:40px; height:40px; border-radius:12px; color:#132540; cursor:pointer; }
    .ac-full .ac-back:active { background:#f2f6fc; }
    .ac-full .ac-back svg { width:22px; height:22px; }
    .ac-full .autocomplete-list.ac-panel { top:calc(64px + env(safe-area-inset-top)) !important; left:0 !important; right:0; bottom:0; width:auto !important; max-width:none; max-height:none; border:none; border-radius:0; box-shadow:none; padding:6px 8px calc(16px + env(safe-area-inset-bottom)); }
    .ac-full .ac-item { padding:11px 10px; }
}

/* Phones: passengers & class open as a bottom sheet */
@keyframes isSheetUp { from { transform:translateY(100%); } }
@media (max-width:640px) {
    .is-pax-pop { position:fixed; top:auto; left:0; right:0; bottom:0; z-index:6000; width:auto; max-width:none; max-height:85dvh; overflow-y:auto; border:none; border-radius:22px 22px 0 0; padding:8px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow:0 0 0 100vmax rgba(8,24,48,.45); animation:isSheetUp .22s cubic-bezier(.2,.8,.2,1); }
    .is-pax-pop::before { content:''; display:block; width:40px; height:4px; border-radius:2px; background:#d5dfeb; margin:0 auto 10px; }
    .is-pax-pop .pp-row { padding:13px 0; }
    .is-pax-pop .pp-row b { font-size:15.5px; }
    .is-pax-pop .pp-stepper button { width:40px; height:40px; font-size:20px; }
    .is-pax-pop .pp-cabin button { padding:11px 2px; font-size:13px; }
    .is-pax-pop .pp-done { padding:15px; font-size:16px; border-radius:14px; }
    html.is-pax-open, html.is-pax-open body { overflow:hidden; }
    html.is-pax-open .st-tabbar, html.is-pax-open .st-install { visibility:hidden; }
}
