/* ═══════════════════════════════════════════════════════════════════════════
   BnbScout — marketing site header.
   Pixel-identical to the product app's collapsing search header (AppBar),
   minus the dark-theme toggle. Lifted verbatim from bnbapp/app.css and scoped
   so it overlays the cinematic hero (position: fixed) without colliding with
   the site's own .sf / .brand styles.
   ═══════════════════════════════════════════════════════════════════════════ */

/* vars the app header relies on that the site palette doesn't define */
:root {
  --panel-2:  #FFFFFF;
  --hair-2:   rgba(20,18,28,.05);
  --gold-ink: #6B4708;
  --shadow-sm: 0 1px 2px rgba(20,18,40,.05), 0 6px 18px -10px rgba(36,28,90,.28);
  --shadow-md: 0 18px 40px -22px rgba(36,28,90,.42);
}

/* ── app shell · collapsing search header ── */
.shead {
  --c: 0;
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hair);
  transition: background .4s ease, border-color .4s ease, -webkit-backdrop-filter .4s ease, backdrop-filter .4s ease;
}
/* homepage: header is transparent at the very top (hero shows through);
   as soon as it collapses on scroll, the base glass background applies again */
/* homepage header is ALWAYS transparent — the hero shows through at the top
   and stays background-free when collapsed on scroll */
.shead:not(.pagehdr) {
  background: transparent; border-bottom-color: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.shead-top {
  position: relative; height: 76px;
  display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(16px, 3vw, 30px);
}
.shead .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; cursor: pointer; flex: none; }
.shead .brand span { color: var(--violet); }
.brand-logo { height: 44px; width: auto; display: block; }

/* category tabs — fly up + fade as the search morphs into their place */
.cats {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; gap: 6px;
  transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
.shead.compact .cats { transform: translate(-50%, -210%); opacity: 0; pointer-events: none; }
.cat {
  display: inline-flex; align-items: center; gap: 8px; position: relative; white-space: nowrap; text-decoration: none;
  border: 0; background: transparent; cursor: pointer; color: var(--ink-3);
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px; letter-spacing: -.01em;
  padding: 8px 14px; border-radius: 999px; transition: color .18s, background .18s;
}
.cat svg { color: var(--violet-2); opacity: .85; }
.cat-ico { width: 50px; height: 50px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 4px rgba(20,18,30,.16)); transform-origin: bottom center; will-change: transform; }
.cat:hover { color: var(--ink); background: transparent; }
.cat.active { color: var(--ink); }

/* per-icon hover animations — each icon moves in its own character */
@media (prefers-reduced-motion: no-preference) {
  .cat:hover .cat-ico-stays { animation: ico-hop 1.05s cubic-bezier(.3,.7,.4,1) infinite; }
  .cat:hover .cat-ico-experiences { animation: ico-float 2.4s ease-in-out infinite; transform-origin: center bottom; }
  .cat:hover .cat-ico-scout { animation: ico-wobble 1.7s ease-in-out infinite; transform-origin: center 56%; }
  .cat:hover .cat-ico-cruises { animation: ico-sail 2.1s ease-in-out infinite; transform-origin: center bottom; }
}
@keyframes ico-sail {
  0%,100% { transform: translateY(0) rotate(-4deg) scale(1.16); }
  50% { transform: translateY(-7px) rotate(4deg) scale(1.18); }
}
/* fallback: still grow a touch with no motion */
.cat:hover .cat-ico { transform: scale(1.16); }
@media (prefers-reduced-motion: no-preference) { .cat:hover .cat-ico { transform: none; } }

@keyframes ico-hop {
  0%   { transform: translateY(0)    scale(1.16, 1.16); }
  18%  { transform: translateY(-9px) scale(1.12, 1.22); }
  40%  { transform: translateY(0)    scale(1.22, 1.08); }
  56%  { transform: translateY(-3px) scale(1.15, 1.18); }
  74%  { transform: translateY(0)    scale(1.19, 1.13); }
  100% { transform: translateY(0)    scale(1.16, 1.16); }
}
@keyframes ico-float {
  0%   { transform: translateY(0)     rotate(0deg)   scale(1.16); }
  25%  { transform: translateY(-8px)  rotate(-7deg)  scale(1.17); }
  50%  { transform: translateY(-11px) rotate(2deg)   scale(1.18); }
  75%  { transform: translateY(-6px)  rotate(6deg)   scale(1.17); }
  100% { transform: translateY(0)     rotate(0deg)   scale(1.16); }
}
@keyframes ico-wobble {
  0%   { transform: rotate(0deg)   scale(1.16); }
  16%  { transform: rotate(-26deg) scale(1.16); }
  38%  { transform: rotate(20deg)  scale(1.16); }
  56%  { transform: rotate(-13deg) scale(1.16); }
  74%  { transform: rotate(8deg)   scale(1.16); }
  88%  { transform: rotate(-4deg)  scale(1.16); }
  100% { transform: rotate(0deg)   scale(1.16); }
}
.cat.active::after { content: ""; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%); width: 26px; height: 2.5px; border-radius: 3px; background: var(--violet); }
/* click "pop" — the icon snaps small then springs back when you land on the page */
.cat-ico.cat-pop { animation: catIconPop .44s cubic-bezier(.3,1.25,.5,1) !important; }
@keyframes catIconPop { 0% { transform: scale(1); } 32% { transform: scale(.86); } 66% { transform: scale(1.08); } 100% { transform: scale(1); } }.cat .new { font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--gold-ink); background: linear-gradient(180deg,#FFCB63,var(--gold)); padding: 2px 6px; border-radius: 6px; transform: translateY(-7px); margin-left: -3px; }

.shead-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }

/* "Inizia a ospitare" — text only, faint box appears on hover */
.host-link { border: 0; background: transparent; font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  color: var(--ink); cursor: pointer; padding: 9px 15px; border-radius: 999px; white-space: nowrap;
  transition: background .18s, opacity .25s ease, transform .42s cubic-bezier(.4,0,.2,1); }
.host-link:hover { background: var(--hair-2); }
@media (max-width: 980px) { .host-link { display: none; } }

/* globe button */
.globe-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair); background: var(--panel);
  color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; transition: border-color .18s, color .18s, opacity .25s ease, transform .42s cubic-bezier(.4,0,.2,1); }
.globe-btn:hover { color: var(--ink); border-color: var(--violet); }
.globe-btn svg { width: 19px; height: 19px; }
/* fly up + fade on scroll (same as the category tabs), reappear at the top */
.shead.compact .host-link, .shead.compact .globe-btn { opacity: 0; transform: translateY(-210%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .globe-btn:hover svg { animation: globeSpin 1.1s ease; } }
@keyframes globeSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ── site modals (globe + host) ── */
.smodal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 20px;
  background: rgba(20,18,40,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: smFade .2s ease; }
.smodal[hidden] { display: none; }
@keyframes smFade { from { opacity: 0; } }
.smodal-card { position: relative; width: min(720px, 100%); max-height: 86vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--hair); border-radius: 26px; padding: 26px 28px 30px;
  box-shadow: 0 40px 90px -30px rgba(20,18,60,.5); animation: smPop .3s cubic-bezier(.2,.8,.3,1.05); }
.smodal-card.smodal-host { width: min(540px, 100%); text-align: center; }
@keyframes smPop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.smodal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(20,18,28,.06); color: var(--ink-2); font-size: 19px; line-height: 1; cursor: pointer; transition: background .15s; z-index: 2; }
.smodal-close:hover { background: rgba(20,18,28,.12); }

.smodal-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--hair); margin: 4px 0 20px; }
.smodal-tab { border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-3);
  cursor: pointer; padding: 6px 2px 13px; position: relative; }
.smodal-tab.is-on { color: var(--ink); }
.smodal-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 3px; background: var(--ink); }

.gl-hero { display: flex; align-items: center; gap: 16px; background: var(--hair-2); border-radius: 18px; padding: 14px 18px; margin-bottom: 22px; }
.gl-scout { width: 92px; height: 92px; object-fit: contain; flex: none; }
.gl-trans { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex: 1; min-width: 0; }
.gl-trans-tx b { display: block; font-size: 15px; color: var(--ink); }
.gl-trans-tx small { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.gl-switch { width: 50px; height: 30px; border-radius: 999px; border: 0; background: var(--hair); cursor: pointer; position: relative; flex: none; transition: background .25s; }
.gl-switch.is-on { background: var(--violet); }
.gl-switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.22); transition: transform .25s; }
.gl-switch.is-on span { transform: translateX(20px); }
.gl-h { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.gl-opt { text-align: left; border: 1px solid transparent; background: transparent; border-radius: 12px; padding: 10px 13px; cursor: pointer; font: inherit; transition: background .15s, border-color .15s; }
.gl-opt:hover { background: var(--hair-2); }
.gl-opt.is-on { border-color: var(--ink); }
.gl-opt b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.gl-opt small { font-size: 12.5px; color: var(--ink-3); }
.gl-sym { color: var(--ink-3); font-weight: 700; }

.smodal-title { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -.02em; color: var(--ink); margin: 4px 0 6px; }
.smodal-sub { font-size: 14.5px; color: var(--ink-2); margin: 0 auto 4px; max-width: 38ch; }
.host-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.host-choice { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px;
  border: 1px solid var(--hair); background: var(--panel); border-radius: 18px; padding: 22px 14px 18px; cursor: pointer; font: inherit;
  transition: border-color .18s, transform .18s, box-shadow .2s; }
.host-choice:hover { border-color: var(--violet); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.host-choice.is-sel { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft, rgba(124,108,255,.18)); }
.host-choice img { width: 58px; height: 58px; object-fit: contain; }
.host-choice b { font-size: 15px; color: var(--ink); }
.host-choice small { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
@media (max-width: 560px) {
  .host-choices { grid-template-columns: 1fr; }
  .smodal-card { padding: 22px 18px 24px; }
  .gl-grid { grid-template-columns: 1fr 1fr; }
}

/* auth (login / register) modal */
.smodal-card.smodal-auth { width: min(440px, 100%); }
.auth-logo { height: 30px; width: auto; display: block; margin: 6px auto 16px; }
.auth-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; text-align: center; color: var(--ink); margin: 0 0 4px; }
.auth-welcome { text-align: center; font-size: 14px; color: var(--ink-2); margin: 0 0 20px; }
.auth-field { display: block; margin-bottom: 12px; }
.auth-field span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.auth-input { width: 100%; box-sizing: border-box; border: 1px solid var(--hair); border-radius: 12px; padding: 13px 15px;
  font: inherit; font-size: 15px; color: var(--ink); background: var(--panel); outline: none; transition: border-color .15s, box-shadow .15s; }
.auth-input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft, rgba(124,108,255,.18)); }
.auth-input[readonly] { color: var(--ink-3); }
.auth-continue { width: 100%; margin-top: 6px; border: 0; border-radius: 12px; padding: 14px; font: inherit; font-weight: 700; font-size: 15px;
  color: #fff; background: linear-gradient(180deg, var(--violet), var(--violet-2)); cursor: pointer; transition: transform .15s; }
.auth-continue:hover { transform: translateY(-1px); }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--ink-3); font-size: 12.5px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.auth-social { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--hair);
  background: var(--panel); border-radius: 12px; padding: 12px; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; margin-bottom: 10px; transition: border-color .15s; }
.auth-social:hover { border-color: var(--ink-3); }
.auth-social svg { width: 20px; height: 20px; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--ink-2); cursor: pointer; padding: 0 0 12px; }
.auth-back svg { width: 16px; height: 16px; }
.auth-fine { font-size: 11.5px; color: var(--ink-3); line-height: 1.45; margin: 6px 0 14px; }
button.acct-item { border: 0; background: transparent; width: 100%; text-align: left; font: inherit; cursor: pointer; }

/* compact-search selected category icon (left of "Where") */
.ms-cat { display: none; align-items: center; flex: 0 0 auto; padding-left: 4px; }
.shead.compact .ms-cat { display: flex; }
.ms-cat-ico { width: 30px; height: 30px; object-fit: contain; display: block; filter: drop-shadow(0 2px 4px rgba(20,18,30,.16)); }

/* shared site toast */
.site-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(14px); z-index: 1400;
  background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 600; padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.site-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair); background: var(--panel); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; position: relative; transition: .18s; }
.iconbtn:hover { color: var(--ink); border-color: var(--violet); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn .ndot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); border: 1.5px solid var(--bg); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; cursor: pointer; border: 0; flex: none; }
.avatar svg { stroke: currentColor; }

/* ── account dropdown (site header) ── */
.acct { position: relative; }
.acct-menu { position: absolute; top: calc(100% + 12px); right: 0; min-width: 248px;
  background: var(--panel-2); border: 1px solid var(--hair); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 8px; z-index: 90;
  transform-origin: top right; transform: translateY(-8px) scale(.96); opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .24s cubic-bezier(.2,.8,.3,1.1); }
.acct.open .acct-menu { opacity: 1; pointer-events: auto; transform: none; }
.acct-id { display: flex; align-items: center; gap: 11px; padding: 8px 10px 10px; }
.acct-ava { width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff;
  display: grid; place-items: center; font-family: var(--font-body); font-weight: 700; font-size: 14px; }
.acct-meta { display: flex; flex-direction: column; min-width: 0; }
.acct-meta b { font-size: 14px; color: var(--ink); font-weight: 700; }
.acct-meta small { font-size: 12px; color: var(--ink-3); }
.acct-sep { height: 1px; background: var(--hair); margin: 5px 6px; }
.acct-item { display: flex; align-items: center; gap: 12px; padding: 10px 11px; border-radius: 11px;
  text-decoration: none; color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: 14px;
  transition: background .15s, color .15s, transform .15s; }
.acct-item svg { width: 18px; height: 18px; flex: none; color: var(--violet-2); stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.acct-item:hover { background: var(--hair-2); transform: translateX(2px); }
.acct-item:hover svg { color: var(--violet); }
.acct-quiet { color: var(--ink-2); }
.acct-quiet svg { color: var(--ink-3); }
.acct-quiet:hover svg { color: var(--ink); }

/* each menu icon springs to life on hover */
@media (prefers-reduced-motion: no-preference) {
  .acct-item:nth-of-type(1):hover svg { animation: acIcoPop .5s cubic-bezier(.3,1.4,.5,1); }
  .acct-item:nth-of-type(2):hover svg { animation: acIcoSwing .6s ease; transform-origin: 50% 20%; }
  .acct-item:nth-of-type(3):hover svg { animation: acIcoSpin .6s ease; }
  .acct-item:nth-of-type(4):hover svg { animation: acIcoWiggle .5s ease; }
  .acct-item:nth-of-type(5):hover svg { animation: acIcoBob .55s ease; }
  .acct-item:nth-of-type(6):hover svg { animation: acIcoHop .55s ease; }
  .acct-item:nth-of-type(7):hover svg { animation: acIcoSlide .5s ease; }
}
@keyframes acIcoPop   { 0%{transform:scale(1)} 45%{transform:scale(1.3)} 100%{transform:scale(1)} }
@keyframes acIcoSwing { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-15deg)} 60%{transform:rotate(11deg)} 80%{transform:rotate(-5deg)} }
@keyframes acIcoSpin  { 0%{transform:rotate(0) scale(1)} 50%{transform:rotate(180deg) scale(1.2)} 100%{transform:rotate(360deg) scale(1)} }
@keyframes acIcoWiggle{ 0%,100%{transform:translateX(0) rotate(0)} 25%{transform:translateX(-2px) rotate(-11deg)} 75%{transform:translateX(2px) rotate(11deg)} }
@keyframes acIcoBob   { 0%,100%{transform:translateY(0)} 40%{transform:translateY(-4px) scale(1.12)} }
@keyframes acIcoHop   { 0%,100%{transform:translateY(0)} 30%{transform:translateY(-5px)} 55%{transform:translateY(0)} 72%{transform:translateY(-2px)} }
@keyframes acIcoSlide { 0%{transform:translateX(0)} 50%{transform:translateX(4px)} 100%{transform:translateX(0)} }
.acct.open .acct-item { animation: acctItemIn .3s cubic-bezier(.2,.7,.3,1); }
@keyframes acctItemIn { from { opacity: 0; transform: translateY(6px); } }
.acct.open .acct-item:nth-of-type(1) { animation-delay: .04s; }
.acct.open .acct-item:nth-of-type(2) { animation-delay: .07s; }
.acct.open .acct-item:nth-of-type(3) { animation-delay: .10s; }
.acct.open .acct-item:nth-of-type(4) { animation-delay: .13s; }
.acct.open .acct-item:nth-of-type(5) { animation-delay: .16s; }
.acct.open .acct-item:nth-of-type(6) { animation-delay: .19s; }
.acct.open .acct-item:nth-of-type(7) { animation-delay: .22s; }
@media (prefers-reduced-motion: reduce) {
  .acct.open .acct-menu { animation: none; opacity: 1; transform: none; }
  .acct.open .acct-item { animation: none; }
}

/* ── morphing search box: ONE element that shrinks, then rises into the tabs' place ── */
.shead-space { height: 92px; transition: height .42s cubic-bezier(.4,0,.2,1); }
.shead.compact .shead-space { height: 0; }
.morph-search {
  position: absolute; left: 50%; top: 84px; transform: translateX(-50%);
  width: min(720px, 72vw); height: 58px; z-index: 5;
  background: var(--panel-2); border: 1px solid var(--hair); border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: width .42s cubic-bezier(.4,0,.2,1), height .38s ease,
              top .55s cubic-bezier(.3,1.3,.5,1) .1s, box-shadow .3s ease;
  will-change: top, width;
}
.shead.compact .morph-search { width: min(620px, 80vw); height: 54px; top: 11px; box-shadow: var(--shadow-sm); cursor: pointer; }
.shead.compact .morph-search:hover { box-shadow: var(--shadow-md); }

.ms-full { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; padding: 0 6px 0 8px; opacity: 1; transition: opacity .22s ease; }
.shead.compact .ms-full { opacity: 1; pointer-events: auto; }
/* neutralise the site's bare `.sf { flex: 1 }` so the header search fields size to content */
.ms-full .sf { flex: 0 0 auto; display: flex; align-items: center; border: 0; background: transparent; cursor: pointer; padding: 8px 18px; border-radius: 999px; font: inherit; text-align: left; transition: background .16s; }
.ms-full .sf:hover { background: var(--hair-2); }
.ms-full .sf-lab { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.ms-full .sf-val { font-size: 14px; color: var(--ink); border: 0; background: transparent; outline: none; font-family: inherit; cursor: pointer; padding: 0; max-width: 170px; }
.ms-full .sf-val.dim { color: var(--ink-3); }
.ms-full .sf-div { width: 1px; background: var(--hair); margin: 8px 0; }
.ms-full .sf-go { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; margin-left: auto;
  color: #fff; background: linear-gradient(180deg, var(--violet), var(--violet-2)); display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(90,71,224,.7); transition: transform .16s; }
.ms-full .sf-go:hover { transform: scale(1.06); }
/* paper-plane logo flying inside the search button (replaces the magnifier) */
.sf-go-logo, .ms-go-logo { width: 26px; height: auto; display: block; pointer-events: none;
  filter: brightness(0) invert(1) drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.ms-go-logo { width: 19px; }
@media (prefers-reduced-motion: no-preference) {
  .sf-go-logo, .ms-go-logo { animation: planeFly 2.8s ease-in-out infinite; transform-origin: center; }
}
.sf-go:hover .sf-go-logo, .ms-mini:hover .ms-go-logo { animation: planeTakeoff .75s cubic-bezier(.3,.7,.4,1); }
@keyframes planeFly {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50%     { transform: translate(1.5px,-2px) rotate(-7deg); }
}
@keyframes planeTakeoff {
  0%   { transform: translate(0,0) rotate(0deg); }
  35%  { transform: translate(-3px,2px) rotate(10deg); }
  100% { transform: translate(9px,-8px) rotate(-16deg); opacity: .85; }
}

.ms-mini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
  cursor: pointer; padding: 0 7px 0 18px; opacity: 0; pointer-events: none; transition: opacity .3s ease .14s; }
.shead.compact .ms-mini { opacity: 0; pointer-events: none; }
.ms-mini .dim { color: var(--ink-3); }
.ms-mini .ms-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); flex: none; }
.ms-mini .ms-go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--violet), var(--violet-2)); flex: none; }
.ms-mini .ms-go svg { width: 15px; height: 15px; }

@media (max-width: 980px) {
  .shead .hide-sm { display: none; }
}

/* push the hero composition clear of the fixed header */
#hero { padding-top: 150px; box-sizing: border-box; }
@media (max-width: 860px) { #hero { padding-top: 128px; } }

@media (max-width: 860px) {
  /* mobile header: ONLY logo (left) · 3 category icons (top) · search bar (bottom) */
  .shead-top { gap: 10px; height: 60px; }
  .shead-actions { display: none; }           /* hide bell/avatar — minimal header */

  .cats {
    display: flex; position: absolute; left: auto; right: clamp(12px, 4vw, 18px); top: 50%;
    transform: translateY(-50%); gap: 4px;
    transition: transform .42s cubic-bezier(.4,0,.2,1), opacity .26s ease;
  }
  .shead.compact .cats { transform: translateY(-260%); opacity: 0; pointer-events: none; }
  .cat { padding: 9px; gap: 0; }
  .cat span:first-of-type, .cat .label, .cat .new { display: none; }
  .cat svg { width: 22px; height: 22px; opacity: 1; }
  .cat-ico { width: 59px; height: 59px; margin: 0; }
  .cat.active::after { width: 18px; bottom: -2px; }

  .shead-space { height: 60px; }
  .shead.compact .shead-space { height: 0; }
  .morph-search {
    left: clamp(12px, 4vw, 18px); right: clamp(12px, 4vw, 18px); width: auto; transform: none;
    top: 62px; height: 52px;
  }
  .shead.compact .morph-search { top: 7px; left: clamp(12px,4vw,18px); right: clamp(12px,4vw,18px); width: auto; height: 46px; }
  .ms-full { padding: 0 4px 0 6px; }
  .ms-full .sf { padding: 8px 12px; }
  .ms-full .sf-val { max-width: 90px; }
  .ms-mini { font-size: 12.5px; }
  .ms-mini span:not(.ms-go):not(.ms-dot) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ═══ header search dropdowns (Where / When / Who) — shared by homepage +
   catalogue pages so the bar is fully functional everywhere ═══ */
.shead, .morph-search { overflow: visible; }
.sb { position: relative; }
.sb-cell.sb-active .sf-lab, .sb-active .sf-lab { color: var(--violet-2); }
.sb-pop { position: absolute; top: calc(100% + 14px); background: var(--panel-2); border: 1px solid var(--hair); border-radius: 18px; box-shadow: var(--shadow-md); padding: 8px; z-index: 90; }
@keyframes sbPop { from { opacity: 0; transform: translateY(-6px); } }
.sb-when-pop { left: 50%; transform: translateX(-50%); }
.sb-who-pop { right: 0; min-width: 280px; padding: 4px 16px; }
.cal { width: 300px; max-width: 86vw; display: block; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.cal-head b { font-family: var(--font-display); font-size: 15px; }
.cal-nav { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hair); background: var(--panel-2); color: var(--ink); font-size: 16px; cursor: pointer; }
.cal-dow { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; padding: 0 0 4px; }
.cal-dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-empty { aspect-ratio: 1; }
.cal-day { aspect-ratio: 1; border: 0; background: none; border-radius: 9px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; transition: background .14s; }
.cal-day .cd-n { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.cal-day:hover:not(.past):not(.sel) { background: var(--hair-2); }
.cal-day.past { opacity: .32; cursor: default; }
.cal-day.inr { background: var(--violet-soft, rgba(124,108,255,.16)); border-radius: 0; }
.cal-day.sel { background: linear-gradient(180deg, var(--violet), var(--violet-2)); }
.cal-day.sel .cd-n { color: #fff; }
.cal-hint { text-align: center; font-size: 12px; color: var(--ink-3); padding: 8px 4px 4px; }
.who-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; }
.who-tx b { font-size: 14.5px; display: block; color: var(--ink); }
.who-tx small { font-size: 12px; color: var(--ink-3); }
.who-divide { height: 1px; background: var(--hair); }
.who-step { display: inline-flex; align-items: center; gap: 12px; }
.who-step button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hair); background: var(--panel-2); color: var(--ink); font-size: 18px; cursor: pointer; display: grid; place-items: center; transition: border-color .15s, color .15s; }
.who-step button:hover:not(:disabled) { border-color: var(--violet); color: var(--violet-2); }
.who-step button:disabled { opacity: .35; cursor: default; }
.who-step span { min-width: 18px; text-align: center; font-weight: 700; font-size: 14px; color: var(--ink); }
@media (max-width: 600px) {
  .sb-who-pop { left: 8px; right: 8px; min-width: 0; transform: none; }
  .sb-when-pop { left: 50%; }
}
/* nudge when search is run without a destination */
@keyframes sfShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.sf-shake { animation: sfShake .42s cubic-bezier(.36,.07,.19,.97); }
.sf-shake .sf-lab { color: var(--violet-2); }
.shead.compact .ms-mini { cursor: pointer; }
