/* =====================================================================
   Miles Hub — home page (sky hero, search panel, destinations, promos)
   + the shared search-forms component (.sf-*, .ac-*, .pop-*, compact bar)
   + the "Surprise me" modal (.sp-*). Uses the tokens from base.css.
   ===================================================================== */

/* ---------------------------------------------------------------- search forms component */
.sf { position: relative; }
.sf-tabs { display: flex; gap: .25rem; overflow-x: auto; padding: .45rem 0 .55rem; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.sf-tabs::-webkit-scrollbar { display: none; }
.sf-tab { display: inline-flex; align-items: center; gap: .45rem; border: 0; background: transparent; color: var(--muted); font-weight: 700; padding: .55rem .95rem; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, transform .15s var(--ease); }
.sf-tab:hover { background: var(--surface-2); color: var(--text); transform: translateY(-1px); }
.sf-tab.active { background: var(--primary-soft); color: var(--primary); }
.sf-tab .icon { flex: none; }
.sf-form { padding-top: .2rem; }
.sf-toprow { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .75rem 0 0; }
.sf-grid { display: grid; gap: .75rem .6rem; align-items: end; margin-top: .7rem; position: relative; }
.sf-field { min-width: 0; position: relative; }
.sf-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .32rem; }
.sf-field .input { height: 48px; font-weight: 500; }
.sf-field .error-text { margin: .3rem 0 0; }
.sf-field.has-error .input, .sf-field.has-error .pop-btn { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
.sf-field.has-error .sf-label { color: var(--danger); }
.sf-field.shake { animation: sf-shake .35s var(--ease); }
@keyframes sf-shake { 0%, 100% { translate: 0 0; } 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
.sf-field.is-disabled { opacity: .45; pointer-events: none; }
.sf-swap { align-self: end; height: 48px; width: 44px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); color: var(--primary); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .15s var(--ease), border-color .2s; }
.sf-swap:hover { background: var(--primary-soft); border-color: var(--primary); transform: translateY(-1px); }
.sf-swap .icon { transform: rotate(90deg); transition: transform .3s var(--ease); }
.sf-swap.spin .icon { animation: sf-spin .45s var(--ease); }
@keyframes sf-spin { from { transform: rotate(90deg); } to { transform: rotate(270deg); } }
.sf-actions { align-self: end; }
.sf-submit { height: 48px; width: 100%; font-size: 1rem; padding-left: .9rem; padding-right: .9rem; }
.sf-submit.is-busy { opacity: .8; }
.sf-dt { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: .4rem; }
.sf-money { position: relative; }
.sf-cur { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.sf-money .input { padding-left: 1.8rem; }
.sf-stars { height: 48px; align-items: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.sf-stars .chip { padding: .5rem .72rem; display: inline-flex; align-items: center; gap: .2rem; white-space: nowrap; }
.sf-stars .chip .icon { color: var(--accent); }
.sf-stars .chip.active .icon { color: var(--primary-ink); }
.sf-diff { font-weight: 600; color: var(--muted); }
.sf-meta-note { display: none; align-items: center; gap: .5rem; color: var(--muted); font-size: .82rem; padding: .55rem 0 0; }
.sf-loading .sf-meta-note { display: flex; }
.sf-meta-note .spinner { width: 14px; height: 14px; border-width: 2px; }
.sf-foot { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .9rem; padding-top: .7rem; border-top: 1px dashed var(--border); }
.sf-spark { color: var(--accent); }

/* grid areas */
.sf-flights { grid-template-columns: minmax(0, 1.35fr) 44px minmax(0, 1.35fr) minmax(0, .95fr) minmax(0, .95fr); grid-template-areas: "from swap to depart return" "trav trav cabin cabin actions"; }
.sf-from { grid-area: from; } .sf-swap { grid-area: swap; } .sf-to { grid-area: to; } .sf-depart { grid-area: depart; } .sf-return { grid-area: return; } .sf-trav { grid-area: trav; } .sf-cabin { grid-area: cabin; } .sf-actions { grid-area: actions; }
.sf-hotels { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-areas: "city city in out guests guests" "kind area starsf starsf max actions"; }
.sf-city { grid-area: city; } .sf-in { grid-area: in; } .sf-out { grid-area: out; } .sf-guests { grid-area: guests; } .sf-kind { grid-area: kind; } .sf-area { grid-area: area; } .sf-starsf { grid-area: starsf; } .sf-max { grid-area: max; }
.sf-cars { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "pickup pickup pickup pickup" "pdate pdate ddate ddate" "age cat cat actions"; }
.sf-cars.diff { grid-template-areas: "pickup pickup dropoff dropoff" "pdate pdate ddate ddate" "age cat cat actions"; }
.sf-pickup { grid-area: pickup; } .sf-dropoff { grid-area: dropoff; } .sf-pdate { grid-area: pdate; } .sf-ddate { grid-area: ddate; } .sf-age { grid-area: age; } .sf-cat { grid-area: cat; }
.sf-trains { grid-template-columns: minmax(0, 1.3fr) 44px minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, .95fr) minmax(0, .95fr) minmax(0, 1fr); grid-template-areas: "from swap to tdate pax class actions"; }
.sf-tdate { grid-area: tdate; } .sf-pax { grid-area: pax; } .sf-class { grid-area: class; }
@media (max-width: 1040px) {
  .sf-trains { grid-template-columns: minmax(0, 1.3fr) 44px minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "from swap to tdate" "pax class class actions"; }
}
@media (max-width: 860px) {
  .sf-flights { grid-template-columns: 1fr 1fr; grid-template-areas: "from from" "swap swap" "to to" "depart return" "trav trav" "cabin cabin" "actions actions"; }
  .sf-trains { grid-template-columns: 1fr 1fr; grid-template-areas: "from from" "swap swap" "to to" "tdate tdate" "pax class" "actions actions"; }
  .sf-hotels { grid-template-columns: 1fr 1fr; grid-template-areas: "city city" "in out" "guests guests" "kind area" "starsf starsf" "max max" "actions actions"; }
  .sf-cars, .sf-cars.diff { grid-template-columns: 1fr 1fr; grid-template-areas: "pickup pickup" "dropoff dropoff" "pdate pdate" "ddate ddate" "age cat" "actions actions"; }
  .sf-swap { justify-self: center; height: 36px; width: 36px; border-radius: 50%; margin: -.95rem 0; z-index: 2; box-shadow: var(--shadow); }
  .sf-swap .icon { transform: none; }
  @keyframes sf-spin { from { transform: rotate(0); } to { transform: rotate(180deg); } }
  .sf-grid { gap: .7rem .6rem; }
}
@media (max-width: 420px) {
  .sf-tabs { gap: .1rem; }
  .sf-tab { padding: .5rem .55rem; gap: .3rem; font-size: .92rem; }
}

/* autocomplete */
.ac { position: relative; }
.ac-icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: grid; z-index: 1; transition: color .2s; }
.ac.has-value .ac-icon { color: var(--primary); }
.ac-input { padding-left: 2.45rem; padding-right: 2.3rem; text-overflow: ellipsis; }
.ac-clear { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface-2); color: var(--muted); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.ac-clear:hover { background: var(--border); color: var(--text); }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .45), var(--shadow); max-height: 330px; overflow: auto; padding: .35rem; min-width: 280px; animation: pop .15s var(--ease); }
.ac-head { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; padding: .45rem .65rem .25rem; }
.ac-row { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: 10px; cursor: pointer; transition: background .15s; }
.ac-row[role="option"]:hover, .ac-row.active { background: var(--primary-soft); }
.ac-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; font-size: .78rem; background: var(--surface-2); color: var(--text); padding: .3rem .4rem; border-radius: 7px; min-width: 46px; text-align: center; flex: none; letter-spacing: .03em; }
.ac-row.active .ac-code, .ac-row:hover .ac-code { background: var(--primary); color: var(--primary-ink); }
.ac-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; color: var(--primary); flex: none; }
.ac-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ac-main { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-sub { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-loading, .ac-empty { color: var(--muted); cursor: default; font-size: .9rem; }
.ac-loading .spinner { width: 14px; height: 14px; border-width: 2px; }

/* popover + steppers */
.pop { position: relative; }
.pop-btn { display: flex; align-items: center; gap: .6rem; text-align: left; cursor: pointer; height: 48px; }
.pop-icon { color: var(--muted); display: grid; flex: none; }
.pop-summary { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.pop-chev { color: var(--muted); display: grid; transition: transform .2s; flex: none; }
.pop-btn[aria-expanded="true"] { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.pop-btn[aria-expanded="true"] .pop-chev { transform: rotate(180deg); }
.pop-panel { position: absolute; left: 0; top: calc(100% + 6px); z-index: 70; min-width: 310px; max-width: 94vw; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .45), var(--shadow); padding: .4rem 1rem .8rem; animation: pop .15s var(--ease); }
.pop-foot { display: flex; justify-content: flex-end; padding-top: .6rem; }
.pop-body .help-text, .pop-body .error-text { margin: .5rem 0 0; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.pop-body .stepper:last-of-type { border-bottom: 0; }
.st-label { font-weight: 600; }
.st-sub { font-size: .78rem; color: var(--muted); }
.st-ctl { display: inline-flex; align-items: center; gap: .6rem; }
.st-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--primary); font-size: 1.25rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .15s var(--ease), border-color .15s; font-weight: 600; padding: 0; }
.st-btn:hover:not([disabled]) { background: var(--primary-soft); border-color: var(--primary); transform: scale(1.08); }
.st-btn:active:not([disabled]) { transform: scale(.96); }
.st-btn[disabled] { opacity: .35; cursor: default; }
.st-val { min-width: 1.5rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
@media (max-width: 560px) { .pop-panel { right: 0; min-width: 0; } .ac-list { min-width: 0; } }

/* compact bar (results pages) */
.sf-compact-row { display: flex; align-items: center; gap: .6rem; }
.sf-compact-bar { flex: 1; min-width: 0; display: flex; align-items: center; gap: .4rem; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: .3rem .8rem .3rem .3rem; cursor: pointer; text-align: left; color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s, transform .15s var(--ease); overflow: hidden; }
.sf-compact-bar:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-1px); }
.sf-compact-bar[aria-expanded="true"] { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.sf-pills { display: flex; align-items: center; gap: .35rem; flex: 1; min-width: 0; overflow: hidden; }
.sf-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .84rem; font-weight: 600; color: var(--muted); padding: .32rem .62rem; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.sf-pill .icon { opacity: .8; }
.sf-pill.route { color: var(--text); font-weight: 800; background: transparent; padding-left: .25rem; overflow: hidden; text-overflow: ellipsis; }
.sf-pill.route.empty { color: var(--muted); font-weight: 600; }
.sf-pill.type { background: var(--primary-soft); color: var(--primary); width: 36px; height: 36px; justify-content: center; padding: 0; border-radius: 50%; flex: none; }
.sf-pill.extra { display: none; }
@media (min-width: 900px) { .sf-pill.extra { display: inline-flex; } }
.sf-edit { margin-left: auto; display: inline-flex; align-items: center; gap: .2rem; color: var(--primary); font-weight: 700; font-size: .85rem; padding-left: .5rem; flex: none; }
.sf-edit .icon { transition: transform .2s; }
.sf-compact-bar[aria-expanded="true"] .sf-edit .icon { transform: rotate(180deg); }
.sf-compact-search { height: 44px; border-radius: 999px; flex: none; padding-left: 1.1rem; padding-right: 1.1rem; }
.sf-compact-panel { margin-top: .7rem; padding: 0 .2rem .4rem; animation: pop .2s var(--ease); }
.sf-compact-panel .sf-tabs { padding-top: .15rem; }
.sf-compact-panel .sf-actions .sf-submit { height: 46px; }
@media (max-width: 640px) {
  .sf-pills { overflow-x: auto; scrollbar-width: none; }
  .sf-pills::-webkit-scrollbar { display: none; }
  .sf-edit span, .sf-compact-search span { display: none; }
  .sf-compact-search { width: 44px; padding: 0; }
}

/* ---------------------------------------------------------------- surprise modal */
.sp-title { display: inline-flex; align-items: center; gap: .4rem; }
.sp-spark { color: var(--accent); }
.sp-search { text-align: center; padding: .4rem 0 1rem; }
.sp-sky { position: relative; height: 160px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, var(--sky-2), var(--sky-1)); color: var(--primary); margin-bottom: 1.1rem; }
.sp-arc { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-arc path { opacity: .6; }
.sp-plane { color: var(--primary); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }
.sp-cloud { position: absolute; width: 70px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .85); animation: sp-drift 9s linear infinite; }
.sp-cloud::after { content: ""; position: absolute; left: 18px; top: -14px; width: 32px; height: 32px; border-radius: 50%; background: inherit; }
.sp-cloud.a { top: 34px; left: -90px; }
.sp-cloud.b { top: 96px; left: -90px; animation-delay: -4.5s; transform: scale(.7); }
@keyframes sp-drift { to { translate: 640px 0; } }
.sp-finding { font-size: 1.15rem; margin-bottom: .3rem; }
.sp-hint { min-height: 1.5em; opacity: 0; transition: opacity .35s; margin: 0; }
.sp-hint.in { opacity: 1; }
.sp-result .sp-card { margin-bottom: .9rem; }
.sp-card .offer-card { width: 100%; max-width: none; }
.sp-why { background: var(--accent-soft); border-radius: 12px; padding: .75rem .95rem; margin-bottom: .6rem; }
.sp-why h3 { font-size: .9rem; display: flex; align-items: center; gap: .35rem; color: var(--accent); margin-bottom: .25rem; }
.sp-why p { margin: 0; }
.sp-ctx { display: flex; align-items: center; gap: .3rem .6rem; flex-wrap: wrap; margin-bottom: .45rem; }
.sp-ctx a { display: inline-flex; align-items: center; gap: .2rem; font-weight: 600; }
.sp-meta { margin-bottom: .4rem; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.sp-actions .btn.left { margin-right: auto; }
.sp-mini { overflow: hidden; }
.sp-mini-img { position: relative; height: 180px; background: linear-gradient(135deg, var(--sky-1), var(--sky-2)); }
.sp-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-mini-img .badge { position: absolute; left: .6rem; top: .6rem; background: var(--surface); }
.sp-mini-body { padding: .85rem .95rem; display: flex; flex-direction: column; gap: .5rem; }
.sp-mini-head { display: flex; gap: .65rem; align-items: center; }
.sp-mini-title { font-weight: 800; color: var(--text); font-size: 1.02rem; }
.sp-mini-price { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.sp-fail .big .icon { color: var(--warn); }
@media (max-width: 560px) { .sp-actions { flex-direction: column-reverse; } .sp-actions .btn { width: 100%; } .sp-actions .btn.left { margin-right: 0; } }

/* ---------------------------------------------------------------- home page */
.home { --sky-top: #b9dcff; --cloud: rgba(255, 255, 255, .96); --cloud-shadow: rgba(80, 130, 220, .22); --sun: #ffd37a; --sun-core: #fff7d6; --sun-glow: rgba(255, 205, 110, .38); --route: rgba(36, 89, 230, .5); --star: 0; }
:root[data-theme="dark"] .home { --sky-top: #0a1430; --cloud: rgba(140, 170, 235, .1); --cloud-shadow: transparent; --sun: #e6ecff; --sun-core: #ffffff; --sun-glow: rgba(190, 205, 255, .16); --route: rgba(143, 169, 255, .55); --star: .9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .home { --sky-top: #0a1430; --cloud: rgba(140, 170, 235, .1); --cloud-shadow: transparent; --sun: #e6ecff; --sun-core: #ffffff; --sun-glow: rgba(190, 205, 255, .16); --route: rgba(143, 169, 255, .55); --star: .9; }
}
.hero { position: relative; overflow: hidden; padding: 4.4rem 0 7.6rem; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-1) 58%, var(--bg) 100%); }
.sky { position: absolute; inset: 0; pointer-events: none; }
.hero-stars { position: absolute; inset: 0; opacity: var(--star); transition: opacity .4s;
  background-image: radial-gradient(1.6px 1.6px at 8% 22%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 18% 60%, #fff 50%, transparent 52%), radial-gradient(1.8px 1.8px at 27% 14%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 36% 44%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 47% 8%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 56% 30%, #fff 50%, transparent 52%), radial-gradient(1.8px 1.8px at 64% 18%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 72% 50%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 81% 12%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 90% 38%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 95% 66%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 12% 80%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 42% 72%, #fff 50%, transparent 52%);
  animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { from { filter: brightness(.7); } to { filter: brightness(1.2); } }
.hero-sun { position: absolute; right: 9%; top: 14%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 42% 40%, var(--sun-core), var(--sun) 56%, transparent 72%); box-shadow: 0 0 120px 40px var(--sun-glow); opacity: .95; animation: sun-breathe 8s ease-in-out infinite alternate; }
@keyframes sun-breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
.cloud { position: absolute; width: 180px; height: 56px; background: var(--cloud); border-radius: 999px; filter: drop-shadow(0 12px 22px var(--cloud-shadow)); animation: drift linear infinite; will-change: translate; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 70px; height: 70px; left: 28px; top: -34px; }
.cloud::after { width: 96px; height: 96px; left: 72px; top: -52px; }
.cloud.c1 { top: 24%; left: -8%; transform: scale(.9); animation-duration: 95s; }
.cloud.c2 { top: 48%; left: 28%; transform: scale(.55); animation-duration: 125s; animation-delay: -40s; opacity: .85; }
.cloud.c3 { top: 12%; left: 56%; transform: scale(1.1); animation-duration: 145s; animation-delay: -70s; }
.cloud.c4 { top: 62%; left: 78%; transform: scale(.5); animation-duration: 110s; animation-delay: -20s; opacity: .75; }
@keyframes drift { from { translate: -30vw 0; } to { translate: 120vw 0; } }
.hero-path { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--route); }
.hero-plane { color: var(--primary); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .22)); }
.hero-inner { position: relative; text-align: center; }
.hero-title { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.hero-hl { background: linear-gradient(90deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 660px; margin: .9rem auto 0; font-size: 1.1rem; color: var(--muted); }
@media (max-width: 760px) { .hero { padding: 2.6rem 0 6.6rem; } .hero-sub { font-size: 1rem; } .hero-sun { width: 80px; height: 80px; right: 6%; top: 8%; } }

.home-panel-wrap { position: relative; z-index: 2; margin-top: -5.4rem; }
.home-panel { padding: .4rem 1.15rem 1.15rem; border-radius: 20px; box-shadow: 0 30px 60px -28px rgba(16, 24, 40, .45), var(--shadow); }
@media (max-width: 560px) { .home-panel { padding: .3rem .85rem .9rem; border-radius: 16px; } }
.home-under { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; flex-wrap: wrap; margin-top: 1rem; padding: 0 .3rem; }
.home-surprise { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.home-surprise .muted { max-width: 420px; }
.home-surprise-btn { font-weight: 800; box-shadow: 0 12px 26px -12px var(--accent); }
.home-surprise-btn .sp-spark { color: #1a1200; }
.home-surprise-btn:hover { transform: translateY(-2px) rotate(-1deg); }
.home-recent { display: flex; align-items: center; gap: .5rem; min-width: 0; flex-wrap: wrap; }
.home-recent-label { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.recent-chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--surface); color: var(--text); }
.recent-chip:hover { transform: translateY(-1px); }
.recent-clear { padding: .3rem .45rem; display: inline-grid; place-items: center; }
.recent-clear:hover { color: var(--danger); border-color: var(--danger); }

.home-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.home-sec-head h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.45rem; }
.home-sec-head h2 .icon { color: var(--primary); }
.home-sec-head p { margin: .2rem 0 0; }
.home-popular { padding-top: 2.6rem; }
.home-dests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1000px) { .home-dests { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .home-dests { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } }
.dest { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); text-decoration: none !important; color: #fff; background: var(--surface-2); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dest-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 50, .04) 30%, rgba(10, 20, 50, .8) 100%); }
.dest-tag { position: absolute; left: .7rem; top: .7rem; background: rgba(255, 255, 255, .92); color: var(--sky-3); font-size: .72rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; backdrop-filter: blur(4px); }
.dest-body { position: absolute; left: .9rem; bottom: .85rem; right: 6.4rem; display: flex; flex-direction: column; }
.dest-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.dest-country { font-size: .8rem; opacity: .92; }
.dest-price { position: absolute; right: .8rem; bottom: .8rem; background: var(--surface); color: var(--text); border-radius: 12px; padding: .35rem .6rem; display: flex; align-items: baseline; gap: .25rem; font-size: .78rem; box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.dest-price b { font-size: 1.05rem; color: var(--primary); font-variant-numeric: tabular-nums; }
.muted-inv { color: var(--muted); }
.dest:hover .dest-price { transform: translateY(-2px) scale(1.04); }
@media (max-width: 760px) { .dest-name { font-size: 1rem; } .dest-tag { display: none; } .dest-body { right: 5.2rem; } }

.home-how { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.6rem 0; margin-top: 1.2rem; }
.home-how h2 { text-align: center; font-size: 1.45rem; margin-bottom: 1.5rem; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr; } }
.how-step { position: relative; padding: 1.4rem 1.3rem 1.2rem; background: var(--bg); }
.how-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.how-num { position: absolute; top: 1rem; right: 1rem; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.how-ico { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; margin-bottom: .9rem; box-shadow: 0 10px 20px -10px var(--primary); transition: transform .3s var(--ease); }
.how-step:hover .how-ico { transform: rotate(-6deg) scale(1.05); }
.how-step h3 { margin-bottom: .35rem; }
.how-step p { margin: 0; font-size: .92rem; }

.home-promos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; margin-top: 2.6rem; }
@media (max-width: 900px) { .home-promos { grid-template-columns: 1fr; } }
.promo { display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; padding: 1.4rem; text-decoration: none !important; color: var(--text); overflow: hidden; position: relative; }
.promo h2 { font-size: 1.35rem; margin: .5rem 0 .4rem; }
.promo p { font-size: .95rem; }
.promo-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.promo-cta { align-self: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; transition: transform .25s var(--ease), background .2s, color .2s; position: relative; z-index: 1; }
.promo:hover .promo-cta { transform: translateX(4px); background: var(--primary); color: var(--primary-ink); }
.promo-plan { background: linear-gradient(135deg, var(--surface) 55%, var(--accent-soft)); }
.promo-plan::after { content: "✦"; position: absolute; right: -10px; bottom: -48px; font-size: 190px; color: var(--accent); opacity: .08; line-height: 1; pointer-events: none; }
.promo-chips { margin-top: .8rem; }
.promo-chips .chip { background: var(--surface); }
.promo-chips .chip:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.promo-miles { background: linear-gradient(135deg, var(--surface) 55%, var(--primary-soft)); }
.promo-logos { margin-top: .9rem; }
.promo-logos .logo-wrap { transition: transform .25s var(--ease); }
.promo:hover .promo-logos .logo-wrap { transform: translateY(-3px); }

.home-platforms { margin-top: 2.6rem; text-align: center; }
.home-platforms h2 { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 1rem; }
.plat-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.2rem; margin-bottom: 1.4rem; min-height: 44px; }
.plat { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--muted); padding: .35rem .7rem .35rem .4rem; border-radius: 999px; transition: color .2s, background .2s, box-shadow .2s, transform .15s var(--ease), filter .2s; filter: grayscale(.35); }
.plat:hover { color: var(--text); background: var(--surface); box-shadow: var(--shadow); filter: none; transform: translateY(-2px); }
.plat-skel { width: 120px; height: 40px; border-radius: 999px; display: inline-block; }
.home-sample-note { text-align: left; max-width: 900px; margin: 0 auto; background: var(--surface); border: 1px dashed var(--border); color: var(--muted); }
.home-sample-note b { color: var(--text); }
@media (max-width: 760px) { .plat-name { display: none; } .plat { padding: .3rem; } .plat-skel { width: 40px; } }
