/* ==========================================================================
   SX — search page. Cinematic query header, sticky search bar with category
   chips, and a distinct result form per type (journey cards, destination tiles,
   hotel rows, page rows). Mobile: app-style sticky bar, list rows, 2-col tiles.
   ========================================================================== */
.sx { --sx-ink: #0a1428; --sx-sub: #56657d; --sx-mute: #8e9ab0; --sx-line: rgba(10,20,40,.09); --sx-paper: #f6f4ef; --sx-ease: cubic-bezier(.16, 1, .3, 1);
  background: #fbfaf7; color: var(--sx-ink); padding-bottom: 72px; }
body:has(.sx) .site-footer { margin-top: 0; }

/* hero */
.sx-hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 96px; color: #fff;
  background: radial-gradient(70% 90% at 85% 0%, color-mix(in srgb, var(--tp) 42%, transparent), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(56,120,255,.22), transparent 60%), linear-gradient(160deg, #0f1c36, #070c18); }
.sx-contours { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background: repeating-radial-gradient(circle at 80% 30%, transparent 0 30px, rgba(255,255,255,.05) 31px 32px);
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%); }
.sx-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #f6dfaa; }
.sx-title { margin: 14px 0 0; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; color: #fff; max-width: 20ch; text-wrap: balance; word-break: break-word; }
.sx-meta { margin: 14px 0 0; font-size: 1rem; color: rgba(255,255,255,.72); }

/* sticky search bar + chips */
.sx-barwrap { position: sticky; top: var(--sx-top, 64px); z-index: 30; margin-top: -40px; padding-bottom: 6px; transition: background .3s, box-shadow .3s; }
.sx-barwrap.is-stuck { background: rgba(251,250,247,.97); box-shadow: 0 12px 24px -20px rgba(10,20,40,.4); }
.sx-bar { display: flex; align-items: center; gap: 6px; height: 72px; padding: 0 8px 0 22px; border-radius: 22px; background: #fff; border: 1px solid var(--sx-line);
  box-shadow: 0 30px 60px -34px rgba(4,10,24,.55); transition: box-shadow .3s, border-color .3s, height .3s var(--sx-ease); }
.sx-barwrap.is-stuck .sx-bar { height: 60px; margin-top: 8px; box-shadow: none; }
.sx-bar:focus-within { border-color: var(--tp); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tp) 14%, transparent), 0 30px 60px -34px rgba(4,10,24,.55); }
.sx-bar-ic { color: var(--tp); display: grid; place-items: center; }
.sx-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.15rem; font-weight: 600; color: var(--sx-ink); padding: 0 8px; }
.sx-input::placeholder { color: #aab3c3; font-weight: 500; }
.sx-input::-webkit-search-cancel-button { display: none; }
.sx-clear { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--sx-paper); color: var(--sx-sub); cursor: pointer; }
.sx-clear[hidden] { display: none; }
.sx-go { display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 24px; border: 0; border-radius: 16px; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--tp), var(--tp-2, var(--tp))); transition: gap .3s var(--sx-ease), transform .15s; }
.sx-barwrap.is-stuck .sx-go { height: 46px; }
.sx-go:hover { gap: 12px; } .sx-go:active { transform: scale(.97); }
.sx-chips { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.sx-chips::-webkit-scrollbar { display: none; }
.sx-chips button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--sx-line); background: #fff;
  font-weight: 700; font-size: .86rem; color: var(--sx-sub); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.sx-chips button b { font-size: .72rem; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--sx-paper); color: var(--sx-ink); }
.sx-chips button.is-on { background: var(--sx-ink); border-color: var(--sx-ink); color: #fff; }
.sx-chips button.is-on b { background: rgba(255,255,255,.16); color: #fff; }

/* groups */
.sx-body { padding-top: 26px; }
.sx-group { margin-top: 30px; }
.sx-group[hidden] { display: none; }
.sx-gh { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sx-mute); }
.sx-gh span { display: inline-flex; align-items: center; gap: 8px; color: var(--sx-ink); }
.sx-gh::after { content: ""; flex: 1; height: 1px; background: var(--sx-line); order: 2; }
.sx-gh em { order: 3; font-style: normal; color: var(--sx-mute); }
.sx mark { background: color-mix(in srgb, var(--tp) 16%, transparent); color: inherit; padding: 0 2px; border-radius: 4px; }
.sx-fb { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.45); background: radial-gradient(90% 90% at 80% 10%, color-mix(in srgb, var(--tp) 45%, transparent), transparent 60%), linear-gradient(150deg, #16264a, #070e1f); }
.sx-go-ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--sx-paper); color: var(--sx-ink); transition: background .3s, color .3s, transform .45s var(--sx-ease); }

/* packages → journey cards */
.sx-pk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sx-pkc { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--sx-line); color: var(--sx-ink); text-decoration: none;
  transition: transform .5s var(--sx-ease), box-shadow .5s, border-color .3s; }
.sx-pkc:hover { color: var(--sx-ink); transform: translate3d(0, -5px, 0); box-shadow: 0 30px 50px -34px rgba(10,20,40,.55); border-color: color-mix(in srgb, var(--tp) 25%, var(--sx-line)); }
.sx-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0a1428; }
.sx-media img, .sx-dc img, .sx-row-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--sx-ease); }
.sx-pkc:hover .sx-media img, .sx-dc:hover img { transform: scale(1.06); }
.sx-tag { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(8,14,30,.6); }
.sx-pkc-b { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 16px; flex: 1; }
.sx-place { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-pkc-t { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.sx-pkc-f { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--sx-line); }
.sx-price small { font-size: .72rem; color: var(--sx-mute); font-weight: 600; }
.sx-price b { font-size: 1.2rem; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sx-pkc:hover .sx-go-ic, .sx-row:hover .sx-go-ic { background: var(--sx-ink); color: #fff; transform: rotate(-35deg); }

/* destinations → image tiles */
.sx-dest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sx-dc { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; isolation: isolate; background: #0a1428; color: #fff; text-decoration: none; }
.sx-dc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,8,18,0) 45%, rgba(4,8,18,.85) 100%); }
.sx-dc:hover { color: #fff; }
.sx-dc-n { position: absolute; z-index: 2; left: 16px; right: 56px; bottom: 16px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.sx-dc-n mark { background: none; color: inherit; padding: 0; box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--tp) 80%, transparent); border-radius: 0; }
.sx-dc-c { position: absolute; z-index: 2; left: 16px; top: 14px; font-size: .7rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(8,14,30,.55); }
.sx-dc-go { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--sx-ink); transition: transform .45s var(--sx-ease); }
.sx-dc:hover .sx-dc-go { transform: rotate(-35deg); }

/* hotels / pages → rows */
.sx-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sx-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 18px; background: #fff; border: 1px solid var(--sx-line); color: var(--sx-ink); text-decoration: none;
  transition: border-color .3s, transform .4s var(--sx-ease), box-shadow .4s; }
.sx-row:hover { color: var(--sx-ink); transform: translate3d(0, -3px, 0); box-shadow: 0 20px 36px -28px rgba(10,20,40,.5); border-color: color-mix(in srgb, var(--tp) 25%, var(--sx-line)); }
.sx-row-img { position: relative; flex: 0 0 84px; height: 72px; border-radius: 13px; overflow: hidden; background: #0a1428; }
.sx-row-ic { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--tp) 10%, #fff); color: var(--tp); }
.sx-row-pg { padding: 12px 14px; }
.sx-row-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sx-row-t { font-weight: 800; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-row-m { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--sx-sub); }
.sx-stars { color: #f0a92e; letter-spacing: 1px; }

/* empty / discovery */
.sx-empty { text-align: center; padding: 30px 20px 10px; }
.sx-empty-ic { width: 70px; height: 70px; border-radius: 22px; display: inline-grid; place-items: center; color: var(--tp); background: color-mix(in srgb, var(--tp) 10%, #fff); }
.sx-empty h2 { margin: 16px 0 6px; font-size: 1.8rem; font-weight: 800; letter-spacing: -.035em; }
.sx-empty p { color: var(--sx-sub); margin: 0; }
.sx-empty a { color: var(--tp); font-weight: 700; }
.sx-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sx-quick a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--sx-line); color: var(--sx-ink); font-weight: 600; font-size: .86rem; text-decoration: none; transition: border-color .25s, color .25s; }
.sx-quick a:hover { border-color: var(--tp); color: var(--tp); }

/* entrance */
.sx-js .sx-pkc, .sx-js .sx-dc, .sx-js .sx-row { animation: sxUp .7s var(--sx-ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes sxUp { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
.sx a:focus-visible, .sx button:focus-visible { outline: 2px solid var(--tp); outline-offset: 3px; }

/* tablet */
@media (max-width: 991.98px) {
  .sx-pk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-dest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-list { grid-template-columns: 1fr; }
}

/* phones — app-style */
@media (max-width: 767.98px) {
  .sx { padding-bottom: 40px; }
  .sx .container { padding-left: 16px; padding-right: 16px; }
  .sx-hero { padding: 30px 0 64px; }
  .sx-title { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .sx-meta { font-size: .88rem; }
  .sx-barwrap { top: var(--sx-top, 56px); margin-top: -34px; }
  .sx-bar { height: 58px; padding: 0 5px 0 14px; border-radius: 18px; gap: 4px; }
  .sx-barwrap.is-stuck .sx-bar { height: 52px; margin-top: 6px; }
  .sx-input { font-size: 16px; padding: 0 4px; }
  .sx-go { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 14px; }
  .sx-barwrap.is-stuck .sx-go { width: 42px; height: 42px; }
  .sx-go span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sx-chips { margin: 10px -16px 0; padding: 2px 16px 6px; }
  .sx-chips button { height: 36px; padding: 0 12px; font-size: .8rem; }
  .sx-body { padding-top: 12px; }
  .sx-group { margin-top: 24px; }
  /* journeys become compact list rows */
  .sx-pk { grid-template-columns: 1fr; gap: 10px; }
  .sx-pkc { flex-direction: row; align-items: stretch; border-radius: 18px; }
  .sx-media { flex: 0 0 112px; aspect-ratio: auto; min-height: 112px; }
  .sx-tag { top: 8px; left: 8px; height: 22px; padding: 0 8px; font-size: .64rem; }
  .sx-pkc-b { padding: 12px 12px 12px 14px; gap: 4px; min-width: 0; }
  .sx-pkc-t { font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sx-pkc-f { padding-top: 8px; }
  .sx-price b { font-size: 1.05rem; }
  .sx-go-ic { flex-basis: 32px; width: 32px; height: 32px; }
  .sx-dest { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sx-dc { border-radius: 18px; }
  .sx-dc-n { font-size: 1.15rem; left: 12px; bottom: 12px; right: 48px; }
  .sx-dc-go { width: 30px; height: 30px; right: 10px; bottom: 10px; }
  .sx-row-img { flex-basis: 72px; height: 64px; }
  .sx-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px 4px; }
  .sx-quick::-webkit-scrollbar { display: none; }
  .sx-quick a { flex: 0 0 auto; }
  .sx-pkc:active, .sx-dc:active, .sx-row:active, .sx-chips button:active { transform: scale(.98); transition: transform .12s; }
}

@media (prefers-reduced-motion: reduce) {
  .sx *, .sx *::before, .sx *::after { animation: none !important; transition-duration: .001ms !important; }
}
