:root{
  color-scheme:light;
  --paper:#F2F6F9; --card:#FFFFFF; --ink:#0F2A44; --muted:#587086; --line:#D9E3EA;
  --brand:#74BAE2; --accent:#1F7FC0; --accent-ink:#FFFFFF; --accent-soft:#E0EFF9;
  --pass:#0F2A44; --pass-ink:#EAF4FB; --tag:#74BAE2; --tag-ink:#0F2A44;
  --visited:#E5383B;
  --good:#1E8A4C; --good-soft:#DFF2E6; --warn:#B56A07; --warn-soft:#FBEBD2; --bad:#B8322A; --bad-soft:#F8E0DD;
  --shadow:0 1px 2px rgba(15,42,68,.06),0 4px 14px rgba(15,42,68,.05);
  --display:"Nunito",ui-rounded,ui-sans-serif,system-ui,sans-serif;
  --body:"Nunito Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  color-scheme:dark;
  --paper:#0B1824; --card:#122536; --ink:#E4EEF5; --muted:#93A8B9; --line:#22384B;
  --accent:#5FB0E6; --accent-ink:#06223A; --accent-soft:#16344C;
  --pass:#17324B; --tag-ink:#0B1824; --visited:#FF5A5F;
  --good:#52C487; --good-soft:#123324; --warn:#E6A24A; --warn-soft:#3A2A12; --bad:#EE7A70; --bad-soft:#3D1A18;
  --shadow:0 1px 2px rgba(0,0,0,.3);
}}
:root[data-theme="dark"]{
  color-scheme:dark;
  --paper:#0B1824; --card:#122536; --ink:#E4EEF5; --muted:#93A8B9; --line:#22384B;
  --accent:#5FB0E6; --accent-ink:#06223A; --accent-soft:#16344C;
  --pass:#17324B; --tag-ink:#0B1824; --visited:#FF5A5F;
  --good:#52C487; --good-soft:#123324; --warn:#E6A24A; --warn-soft:#3A2A12; --bad:#EE7A70; --bad-soft:#3D1A18;
  --shadow:0 1px 2px rgba(0,0,0,.3);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{background:var(--paper);color:var(--ink);font:15px/1.5 var(--body);margin:0}
.wrap{max-width:1000px;margin:0 auto;padding-inline:16px;padding-block:calc(14px + env(safe-area-inset-top,0px)) 110px}
h1,h2,h3{font-family:var(--display);margin:0;text-wrap:balance;font-weight:800}
h2{font-size:1.35rem}
h3{font-size:1.05rem}
.mono{font-family:var(--mono)}
.muted{color:var(--muted)}
.small{font-size:.84rem}
.label{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
a{color:var(--accent)}

/* Top bar */
.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.logo{display:block;width:150px;max-width:40vw;aspect-ratio:640/475;background:var(--brand);-webkit-mask:url(logo-mask.png) center/contain no-repeat;mask:url(logo-mask.png) center/contain no-repeat}
.top-right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-width:0;flex:1}
.top-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.picker select{max-width:220px}
.sync{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:700;color:var(--muted)}
.sync i{width:8px;height:8px;border-radius:50%;background:var(--muted)}
.sync[data-s="cloud"] i{background:var(--good)}
.sync[data-s="saving"] i{background:var(--warn)}
.sync[data-s="local"] i{background:var(--muted)}
.sync[data-s="error"] i{background:var(--bad)}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:inline-grid;place-items:center;font-weight:800;border:0;cursor:pointer}

.banner{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--accent-soft);border:1px solid var(--line);border-radius:14px;padding:10px 14px;margin-bottom:12px;font-size:.9rem}

/* Boarding pass */
.pass{background:var(--pass);color:var(--pass-ink);border-radius:16px;display:grid;grid-template-columns:1fr auto;overflow:hidden}
.pass-main{padding:18px 20px;display:flex;flex-direction:column;gap:10px;min-width:0}
.pass-top{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}
.trip-name{font-family:var(--display);font-weight:800;font-size:1.1rem}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:3px 9px;border-radius:99px;background:var(--tag);color:var(--tag-ink)}
.route{display:flex;align-items:center;gap:14px}
.iata{font-family:var(--mono);font-weight:700;font-size:clamp(2rem,7vw,3rem);line-height:1}
.route .arrow{flex:1;min-width:40px;height:0;border-top:2px dashed rgba(234,244,251,.35);position:relative}
.route .arrow svg{position:absolute;right:-4px;top:-12px;width:22px;height:22px;fill:var(--brand)}
.pass-meta{display:flex;gap:20px;flex-wrap:wrap;font-size:.85rem}
.pass-meta div span{display:block;font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;opacity:.65}
.pass-meta b{font-family:var(--mono);font-weight:500}
.stub{border-left:2px dashed rgba(234,244,251,.25);padding:18px 22px;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:124px;text-align:center}
.stub .big{font-family:var(--mono);font-weight:700;font-size:2.2rem;line-height:1;color:var(--brand)}
.stub small{opacity:.75;font-size:.75rem}
@media (max-width:560px){.pass{grid-template-columns:1fr}.stub{border-left:0;border-top:2px dashed rgba(234,244,251,.25);flex-direction:row;gap:10px;justify-content:flex-start;padding:12px 20px}.stub .big{font-size:1.6rem}}

/* Tabs */
.tabs{display:flex;gap:4px;background:var(--card);border:1px solid var(--line);padding:4px;border-radius:14px;margin-block:16px;position:sticky;top:env(safe-area-inset-top,0px);z-index:20;box-shadow:var(--shadow)}
.tab{flex:1;border:0;background:none;padding:9px 6px;border-radius:10px;cursor:pointer;font-weight:700;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:7px;font-size:.92rem}
.tab svg{width:18px;height:18px;flex:none}
.tab[aria-selected="true"]{background:var(--accent);color:var(--accent-ink)}
@media (max-width:720px){
  .tabs{position:fixed;left:0;right:0;bottom:0;top:auto;margin:0;border-radius:0;border-width:1px 0 0;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px))}
  .tab{flex-direction:column;gap:2px;font-size:.68rem;padding:6px 2px}
}

.panel{display:flex;flex-direction:column;gap:16px}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:var(--shadow)}
.card-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.grid2{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.field{display:flex;flex-direction:column;gap:4px;min-width:0}
.field label{font-size:.78rem;color:var(--muted);font-weight:700}
input,select,textarea{background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:9px 10px;width:100%;min-width:0}
textarea{resize:vertical;min-height:70px}
input:focus,select:focus,textarea:focus{border-color:var(--accent);outline:none}
.btn{border:1px solid var(--line);background:var(--card);padding:9px 14px;border-radius:10px;cursor:pointer;font-weight:700;display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:var(--ink);font-size:.9rem;white-space:nowrap}
.btn:hover{border-color:var(--accent)}
.btn:disabled{opacity:.55;cursor:default}
.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.btn.danger{color:var(--bad);border-color:var(--bad)}
.btn.ghost{border-color:transparent;background:none;color:var(--muted);padding:6px 8px}
.btn.ghost:hover{color:var(--bad)}
.btn.sm{padding:5px 10px;font-size:.8rem}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}

.stat{padding:14px;border-radius:12px;background:var(--paper);border:1px solid var(--line);display:flex;flex-direction:column;gap:4px}
.stat .v{font-family:var(--mono);font-weight:700;font-size:1.35rem;font-variant-numeric:tabular-nums}
.bar{height:6px;background:var(--line);border-radius:9px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--accent);border-radius:9px;transition:width .3s}

/* Valigia */
.pack-cat{display:flex;flex-direction:column;gap:2px}
.pack-cat h3{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:6px;border-bottom:1px solid var(--line);margin-bottom:4px}
.item{display:flex;align-items:center;gap:10px;padding:6px 2px;border-radius:6px}
.item input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent);flex:none;margin:0}
.item label{flex:1;cursor:pointer}
.item .qty{font-family:var(--mono);font-size:.8rem;color:var(--muted);background:var(--paper);border:1px solid var(--line);border-radius:5px;padding:0 6px}
.item.done label{text-decoration:line-through;color:var(--muted)}
.item .btn.ghost{opacity:0;padding:2px 6px}
.item:hover .btn.ghost,.item:focus-within .btn.ghost{opacity:1}
@media (hover:none){.item .btn.ghost{opacity:.6}}
.toggles{display:flex;flex-wrap:wrap;gap:6px}
.toggle{border:1px solid var(--line);background:var(--paper);padding:6px 12px;border-radius:99px;cursor:pointer;font-weight:600;font-size:.88rem}
.toggle[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent)}
.note{font-size:.85rem;padding:10px 12px;border-radius:9px;background:var(--warn-soft);color:var(--ink);border-left:3px solid var(--warn)}
.note.info{background:var(--accent-soft);border-left-color:var(--accent)}
.note.err{background:var(--bad-soft);border-left-color:var(--bad)}

/* Itinerario */
.day{display:grid;grid-template-columns:74px 1fr;gap:14px}
.day+.day{margin-top:6px}
.day-tag{background:var(--tag);color:var(--tag-ink);border-radius:10px;padding:8px 6px;text-align:center;align-self:start;position:sticky;top:70px}
.day-tag .n{font-family:var(--mono);font-weight:700;font-size:1.4rem;line-height:1}
.day-tag small{display:block;font-size:.68rem;text-transform:uppercase;letter-spacing:.06em;font-weight:800}
.stops{display:flex;flex-direction:column;border-left:2px solid var(--line);padding-left:14px;gap:10px;padding-block:4px 10px}
.stop{position:relative;display:grid;grid-template-columns:52px 1fr auto;gap:10px;align-items:start}
.stop::before{content:"";position:absolute;left:-21px;top:6px;width:12px;height:12px;border-radius:50%;background:var(--card);border:2px solid var(--accent)}
.stop.ai::before{border-style:dashed}
.stop .t{font-family:var(--mono);font-size:.85rem;color:var(--muted);padding-top:1px}
.stop b{display:block;font-weight:700}
.stop a{font-size:.82rem;text-decoration:none}
.stop .cost{font-family:var(--mono);font-size:.85rem;font-variant-numeric:tabular-nums;text-align:right}
.add-stop{display:grid;grid-template-columns:90px 1fr 1fr 90px auto;gap:6px}
@media (max-width:640px){.add-stop{grid-template-columns:1fr 1fr}.add-stop .span2{grid-column:span 2}.day{grid-template-columns:1fr}.day-tag{position:static;display:flex;gap:10px;align-items:baseline;padding:6px 10px;justify-self:start}}
.empty{color:var(--muted);font-size:.88rem;font-style:italic;margin:0}
.ai-answer{white-space:pre-wrap;font-size:.92rem;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:12px;margin:10px 0 0}
.sparkle{width:16px;height:16px;flex:none}

/* Volo */
.verdict{border-radius:14px;padding:18px;display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;border:1px solid}
.verdict.buy{background:var(--good-soft);border-color:var(--good)}
.verdict.wait{background:var(--warn-soft);border-color:var(--warn)}
.verdict.now{background:var(--bad-soft);border-color:var(--bad)}
.stamp{font-family:var(--display);font-weight:900;font-size:1.5rem;padding:10px 14px;border:3px solid currentColor;border-radius:12px;transform:rotate(-4deg);text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}
.verdict.buy .stamp{color:var(--good)}.verdict.wait .stamp{color:var(--warn)}.verdict.now .stamp{color:var(--bad)}
.verdict ul{margin:6px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:3px;font-size:.92rem}
@media (max-width:560px){.verdict{grid-template-columns:1fr}.stamp{justify-self:start}}
.window,.range{position:relative;height:44px;margin-top:8px}
.window .track,.range .track{position:absolute;left:0;right:0;top:18px;height:8px;background:var(--line);border-radius:9px}
.window .sweet,.range .sweet{position:absolute;top:18px;height:8px;background:var(--good);border-radius:9px;opacity:.75}
.window .now-mark,.range .now-mark{position:absolute;top:10px;width:3px;height:24px;background:var(--ink);border-radius:2px}
.window .lbl,.range .lbl{position:absolute;top:0;font-size:.7rem;font-family:var(--mono);color:var(--muted);transform:translateX(-50%);white-space:nowrap}
.window .lbl.b,.range .lbl.b{top:32px}
.level{font-weight:800;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;padding:3px 9px;border-radius:99px}
.level.low{background:var(--good-soft);color:var(--good)}
.level.typical{background:var(--accent-soft);color:var(--accent)}
.level.high{background:var(--bad-soft);color:var(--bad)}
.hist{width:100%;height:160px;display:block}
.hist text{fill:var(--muted);font-family:var(--mono);font-size:10px}
table.log{width:100%;border-collapse:collapse;font-size:.88rem;font-variant-numeric:tabular-nums}
table.log td{padding:6px 4px;border-bottom:1px solid var(--line)}
table.log td.num{text-align:right;font-family:var(--mono)}
.src{font-size:.68rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:1px 6px;border-radius:99px;background:var(--accent-soft);color:var(--ink)}
.live-head{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.kpis{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));margin-block:12px}
.offers{display:flex;flex-direction:column;gap:10px}
.offer{border:1px solid var(--line);border-radius:12px;padding:12px 14px;display:grid;grid-template-columns:1fr auto;gap:8px 14px;align-items:center;background:var(--card)}
.offer.tracked{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.offer .legs{display:flex;flex-direction:column;gap:4px;min-width:0}
.leg{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;font-size:.9rem}
.leg .tm{font-family:var(--mono);font-weight:700}
.leg .rt{font-family:var(--mono);color:var(--muted);font-size:.8rem;overflow-wrap:anywhere}
.offer .meta{font-size:.78rem;color:var(--muted)}
.offer .pr{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.offer .pr b{font-family:var(--mono);font-size:1.25rem}
.badge{font-size:.66rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;padding:2px 7px;border-radius:99px;margin-right:4px}
.badge.cheap{background:var(--good-soft);color:var(--good)}
.badge.fast{background:var(--accent-soft);color:var(--accent)}
.badge.trk{background:var(--accent);color:var(--accent-ink)}
@media (max-width:560px){.offer{grid-template-columns:1fr}.offer .pr{flex-direction:row;justify-content:space-between;align-items:center;text-align:left}}
.spin{width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:sp 1s linear infinite;display:inline-block}
@keyframes sp{to{transform:rotate(360deg)}}
.links{display:flex;gap:8px;flex-wrap:wrap}

/* Globo */
.globe-card{padding:0;overflow:hidden;position:relative;background:#050B14;border-color:#15283a}
#globe{width:100%;height:min(72vh,640px);min-height:380px;touch-action:none}
.globe-overlay{position:absolute;left:12px;top:12px;right:12px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;pointer-events:none}
.globe-overlay>*{pointer-events:auto}
.gchip{background:rgba(11,24,36,.78);color:#EAF4FB;border:1px solid rgba(116,186,226,.35);border-radius:99px;padding:6px 12px;font-size:.8rem;font-weight:700;display:inline-flex;gap:8px;align-items:center;backdrop-filter:blur(6px)}
.gchip i{width:10px;height:10px;border-radius:50%;display:inline-block}
.globe-loading{position:absolute;inset:0;display:grid;place-items:center;color:#EAF4FB;font-weight:700}
.place-list{display:flex;flex-direction:column;gap:6px}
.place-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px 10px;border:1px solid var(--line);border-radius:10px;cursor:pointer;background:var(--card);text-align:left;width:100%}
.place-row:hover{border-color:var(--accent)}
.dot{width:10px;height:10px;border-radius:50%;background:var(--visited);flex:none}
.dot.plan{background:var(--brand)}
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin-top:10px}
.photo{position:relative;border-radius:10px;overflow:hidden;aspect-ratio:1;background:var(--paper);border:1px solid var(--line)}
.photo img{width:100%;height:100%;object-fit:cover;display:block;cursor:zoom-in}
.photo button{position:absolute;top:4px;right:4px;background:rgba(0,0,0,.55);color:#fff;border:0;border-radius:99px;width:26px;height:26px;cursor:pointer}
.photo figcaption{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,rgba(0,0,0,.65));color:#fff;font-size:.72rem;padding:14px 6px 4px}
.drop{border:2px dashed var(--line);border-radius:12px;padding:14px;text-align:center;color:var(--muted);font-size:.88rem}
.drop.over{border-color:var(--accent);background:var(--accent-soft)}

/* Dialog */
dialog{border:1px solid var(--line);border-radius:16px;padding:0;background:var(--card);color:var(--ink);width:min(440px,calc(100vw - 32px));box-shadow:0 20px 60px rgba(0,0,0,.25)}
dialog::backdrop{background:rgba(6,16,28,.55)}
.dlg{padding:20px;display:flex;flex-direction:column;gap:12px}
.lightbox{width:min(1000px,calc(100vw - 24px));background:#000;border:0}
.lightbox img{display:block;max-width:100%;max-height:82vh;margin:0 auto}
.lightbox .cap{color:#fff;padding:8px 12px;font-size:.9rem;display:flex;justify-content:space-between;gap:8px}

.foot{margin-top:24px;font-size:.78rem;color:var(--muted);text-align:center;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------- Cerca (voli, hotel, auto) ---------- */
.search-card{padding:14px 16px 18px}
.seg{display:inline-flex;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:3px;gap:2px;margin-bottom:12px}
.seg button{border:0;background:none;padding:8px 14px;border-radius:9px;font-weight:700;cursor:pointer;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--card);color:var(--ink);box-shadow:var(--shadow)}
.srow-opts{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.srow-opts select{width:auto;border:0;background:none;font-weight:700;padding:6px 4px;cursor:pointer}
.sgrid{display:grid;grid-template-columns:1fr auto 1fr .7fr .7fr auto;gap:8px;align-items:end}
.sgrid.hotels{grid-template-columns:1.6fr .7fr .7fr .45fr auto}
.sgrid.cars{grid-template-columns:1.5fr .7fr .45fr .7fr .45fr .5fr auto}
.sfield{position:relative;display:flex;flex-direction:column;gap:3px;min-width:0}
.sfield label{font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding-left:4px}
.sfield input,.sfield select{padding:12px;border-radius:12px;font-size:1rem;background:var(--paper)}
.swap{align-self:end;width:40px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--card);cursor:pointer;font-size:1.1rem;color:var(--accent)}
.sgo{height:46px;padding-inline:22px;border-radius:12px;font-size:1rem}
@media (max-width:820px){
  .sgrid,.sgrid.hotels,.sgrid.cars{grid-template-columns:1fr 1fr}
  .sgrid .ac,.sgrid .sgo{grid-column:1/-1}
  .swap{position:absolute;right:26px;margin-top:-6px;z-index:2;display:none}
}
.suggest{position:absolute;left:0;right:0;top:100%;margin:4px 0 0;padding:4px;list-style:none;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px rgba(15,42,68,.18);z-index:30;max-height:340px;overflow:auto;min-width:260px}
.suggest li{display:grid;grid-template-columns:24px 1fr auto;gap:8px;align-items:center;padding:8px 10px;border-radius:8px;cursor:pointer}
.suggest li.on,.suggest li:hover{background:var(--accent-soft)}
.suggest b{display:block;font-weight:700}
.suggest small{display:block;color:var(--muted);font-size:.78rem}
.suggest .codes{font-family:var(--mono);font-size:.72rem;color:var(--muted)}
#sr{display:flex;flex-direction:column;gap:14px}
#sr:empty{display:none}
.loading-card{display:flex;gap:10px;align-items:center;font-weight:700;color:var(--muted)}
.insight{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 12px;border-radius:10px;background:var(--paper);border:1px solid var(--line);margin:10px 0;font-size:.9rem}
.ftools{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:10px 0}
.chips{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.chip{border:1px solid var(--line);background:var(--card);padding:6px 12px;border-radius:99px;font-weight:700;font-size:.84rem;cursor:pointer}
.chip[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.chips select{width:auto;padding:6px 10px;border-radius:99px;font-size:.84rem;font-weight:600;background:var(--card)}
.airl{position:relative}
.airl summary{list-style:none;border:1px solid var(--line);padding:6px 12px;border-radius:99px;font-size:.84rem;font-weight:600;cursor:pointer;background:var(--card)}
.airl summary::-webkit-details-marker{display:none}
.airl>div{position:absolute;right:0;top:110%;z-index:20;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:8px 12px;box-shadow:0 12px 30px rgba(15,42,68,.18);display:flex;flex-direction:column;gap:6px;min-width:200px;max-height:280px;overflow:auto}
.airl label{display:flex;gap:8px;align-items:center;font-size:.88rem;white-space:nowrap}
.flist{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.frow{display:grid;grid-template-columns:40px 1.5fr 1fr 1fr 1fr auto;gap:12px;align-items:center;padding:12px 14px;background:var(--card)}
.frow+.frow{border-top:1px solid var(--line)}
.frow:hover{background:var(--paper)}
.frow.best{box-shadow:inset 3px 0 0 var(--good)}
.frow b{display:block;font-weight:700}
.frow small{display:block;color:var(--muted);font-size:.78rem;overflow-wrap:anywhere}
.flogo img{width:32px;height:32px;object-fit:contain;border-radius:6px;background:#fff}
.ftimes b{font-family:var(--mono);font-size:1rem}
.ftimes sup{color:var(--bad);font-size:.7rem}
.fstops b.direct{color:var(--good)}
.fprice{text-align:right}
.fprice b{font-family:var(--mono);font-size:1.15rem}
@media (max-width:720px){
  .frow{grid-template-columns:34px 1fr auto;grid-template-areas:"logo times price" "logo meta btn";row-gap:4px}
  .flogo{grid-area:logo;align-self:start}.ftimes{grid-area:times}.fprice{grid-area:price}
  .fdur,.fstops{grid-area:meta;display:inline}.fdur small,.fstops small{display:none}
  .fdur{justify-self:start}.fstops{justify-self:end;margin-right:4px}
  .frow>button{grid-area:btn}
  .frow .fdur b,.frow .fstops b{font-size:.82rem;font-weight:600}
}
.steps{display:flex;gap:6px;list-style:none;padding:0;margin:0 0 10px;counter-reset:s;font-size:.8rem;font-weight:700;color:var(--muted);flex-wrap:wrap}
.steps li{counter-increment:s;display:flex;gap:6px;align-items:center}
.steps li::before{content:counter(s);width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--line);color:var(--ink);font-size:.72rem}
.steps li+li::after{content:""}
.steps li.on{color:var(--ink)}.steps li.on::before{background:var(--accent);color:var(--accent-ink)}
.steps li.ok::before{content:"✓";background:var(--good);color:#fff}
.picked{font-size:.88rem;background:var(--accent-soft);border-radius:10px;padding:8px 12px;margin-bottom:10px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.summary .sum-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:18px;align-items:start}
@media (max-width:720px){.summary .sum-grid{grid-template-columns:1fr}}
.sleg{padding:12px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:4px}
.sleg img{border-radius:6px;background:#fff}
.sum-price{display:flex;flex-direction:column;gap:8px;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:16px}
.sum-price>b{font-family:var(--mono);font-size:2rem;line-height:1}
.btn.big{justify-content:center;padding:13px 16px;font-size:1rem}
.sum-price .btn{justify-content:center}
.aff{margin:12px 0 0;font-size:.76rem}
.xsell{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.xs{display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;column-gap:10px;text-align:left;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--card);cursor:pointer;text-decoration:none;color:var(--ink);box-shadow:var(--shadow)}
.xs:hover{border-color:var(--accent)}
.xs span{grid-row:1/3;font-size:1.5rem;align-self:center}
.xs small{color:var(--muted);font-size:.8rem}
.hgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.hcard{border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;background:var(--card)}
.himg{aspect-ratio:16/10;background:linear-gradient(135deg,var(--accent-soft),var(--brand));display:grid;place-items:center;max-width:100%}
.himg img{width:100%;height:100%;object-fit:cover;display:block}
.himg span{font-family:var(--display);font-weight:900;font-size:2.4rem;color:var(--accent-ink);opacity:.7}
.hbody{padding:12px;display:flex;flex-direction:column;gap:6px;flex:1}
.hbody h3{font-size:1rem}
.rate{background:var(--accent);color:var(--accent-ink);font-weight:800;border-radius:6px;padding:1px 6px;font-size:.78rem}
.amen{display:flex;flex-wrap:wrap;gap:4px}
.amen span{font-size:.72rem;background:var(--paper);border:1px solid var(--line);border-radius:99px;padding:1px 8px;color:var(--muted)}
.hfoot{margin-top:auto;display:flex;justify-content:space-between;align-items:end;gap:8px;flex-wrap:wrap;padding-top:6px}
.hfoot b{font-family:var(--mono);font-size:1.15rem}
.car-cta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.tips{margin:0 0 10px;padding-left:18px;display:flex;flex-direction:column;gap:4px;font-size:.92rem}
body[data-tab="cerca"] .pass,body[data-tab="cerca"] .picker{display:none}
.s-title{font-size:clamp(1.5rem,4vw,2.1rem);font-weight:900;margin:2px 0 12px;color:var(--ink)}

/* ---------- Testata e homepage (fascia blu con ricerca) ---------- */
:root{--head:#0B2239;--head-ink:#FFFFFF;--head-soft:rgba(255,255,255,.12);--head-line:rgba(255,255,255,.28)}
.site-head{background:var(--head);color:var(--head-ink);padding-top:env(safe-area-inset-top,0px)}
.head-in{max-width:1100px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;gap:18px}
.site-head .logo{width:118px;max-width:32vw;flex:none}
.head-actions{margin-left:auto;display:flex;gap:8px;align-items:center}
.hbtn{background:none;border:1px solid transparent;color:var(--head-ink);font-weight:700;padding:8px 14px;border-radius:10px;cursor:pointer;font-size:.92rem}
.hbtn:hover{background:var(--head-soft)}
.hbtn.solid{background:#fff;color:var(--head)}
.hbtn.solid:hover{background:#E6EEF5}
.site-head .avatar{background:var(--brand);color:var(--head)}
/* sezioni nella testata (desktop) */
.site-head .tabs{position:static;background:transparent;border:0;box-shadow:none;margin:0;padding:0;gap:2px}
.site-head .tab{color:rgba(255,255,255,.72);flex:none;padding:8px 12px;font-size:.9rem}
.site-head .tab:hover{color:#fff;background:var(--head-soft)}
.site-head .tab[aria-selected="true"]{background:#fff;color:var(--head)}
.site-head .tab svg{width:16px;height:16px}
@media (max-width:900px){.site-head .tab{padding:8px}.site-head .tab svg{display:none}}
@media (max-width:720px){
  .site-head .tabs{position:fixed;left:0;right:0;bottom:0;z-index:40;background:var(--card);border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 16px rgba(0,0,0,.08)}
  .site-head .tab{flex:1;color:var(--muted);flex-direction:column;gap:2px;font-size:.68rem;padding:6px 2px}
  .site-head .tab svg{display:block;width:18px;height:18px}
  .site-head .tab[aria-selected="true"]{background:var(--accent);color:var(--accent-ink)}
  .site-head .tab:hover{background:none;color:var(--ink)}
  .hbtn{padding:7px 10px;font-size:.85rem}
}
/* hero */
.hero{display:none}
body[data-tab="cerca"] .hero{display:block}
.hero-in{max-width:1100px;margin:0 auto;padding:18px 16px 34px}
.hero .s-title{color:#fff;font-size:clamp(1.7rem,4.6vw,2.9rem);line-height:1.1;font-weight:900;margin:18px 0 20px;letter-spacing:-.01em}
.hero .seg{background:none;border:0;padding:0;gap:8px;margin:0;display:flex;flex-wrap:wrap}
.hero .seg button{border:1px solid var(--head-line);color:#fff;background:none;padding:9px 18px;border-radius:99px;font-weight:800}
.hero .seg button:hover{background:var(--head-soft)}
.hero .seg button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:none}
.hero .srow-opts{margin-bottom:12px}
.hero .srow-opts select{color:#fff;background:var(--head-soft);border:1px solid var(--head-line);border-radius:10px;padding:9px 12px;font-weight:700}
.hero .srow-opts select option{color:#0F2A44}
.hero .sgrid{background:#fff;border-radius:14px;padding:4px;gap:4px;align-items:stretch;position:relative}
.hero .sfield{background:#fff;border-radius:10px;padding:10px 14px 8px;justify-content:center}
.hero .sfield + .sfield,.hero .swap + .sfield{border-left:1px solid #D9E3EA}
.hero .sfield label{color:#0F2A44;font-size:.78rem;letter-spacing:0;text-transform:none;padding:0}
.hero .sfield input,.hero .sfield select{border:0;background:transparent;padding:4px 0;font-size:1.02rem;color:#0F2A44;border-radius:0;color-scheme:light}
.hero .sfield input::placeholder{color:#7A8C9C}
.hero .sfield:focus-within{outline:2px solid var(--accent);outline-offset:-2px}
.hero .swap{align-self:center;width:38px;height:38px;margin:0 -22px;z-index:3;background:#fff;border:2px solid #0B2239;color:#0B2239;font-weight:900}
.hero .sgo{height:auto;min-height:64px;padding-inline:28px;font-size:1.1rem;border-radius:10px;background:#1F7FC0;border-color:#1F7FC0;color:#fff}
.hero .suggest{color:#0F2A44;background:#fff}
.hero .suggest small,.hero .suggest .codes{color:#587086}
.hero .suggest li.on,.hero .suggest li:hover{background:#E0EFF9}
.hchk{display:inline-flex;gap:8px;align-items:center;margin-top:12px;font-weight:600;color:#fff;cursor:pointer}
.hchk input{width:18px;height:18px;accent-color:var(--accent)}
@media (max-width:820px){
  .hero .sgrid{grid-template-columns:1fr 1fr;background:transparent;padding:0;gap:8px}
  .hero .sfield{border:0!important}
  .hero .swap{display:none}
  .hero .sgo{min-height:52px}
}
/* sotto la fascia */
body[data-tab="cerca"] .wrap{padding-top:22px}
body[data-tab="cerca"] #guestBanner{display:none!important}
.picker select{max-width:240px}
.pass{margin-bottom:16px}
.hero .seg{margin-bottom:12px}
.hero .sgo{justify-content:center}

/* ---------- Piè di pagina: newsletter e contatti ---------- */
.site-foot{background:var(--head);color:#fff;margin-top:40px;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
.foot-in{max-width:1100px;margin:0 auto;padding:36px 16px 20px;display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:28px}
@media (max-width:820px){.foot-in{grid-template-columns:1fr}.site-foot{padding-bottom:90px}}
.fcol h3{font-size:1.1rem;margin-bottom:6px}
.fcol p{margin:0 0 10px;color:rgba(255,255,255,.78);font-size:.92rem}
.site-foot .logo{width:130px;margin-bottom:8px}
.site-foot a{color:#9fd3f5}
.nl-row{flex-wrap:nowrap}
.nl-row input{background:#fff;color:#0F2A44;border:0;flex:1;color-scheme:light}
.site-foot .chk{color:rgba(255,255,255,.85)}
.fmsg{min-height:1.2em;font-size:.88rem;color:#bfe3fb;margin-top:6px}
.mail{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mail a{font-weight:700;font-size:1.02rem}
.copy{background:var(--head-soft);border:1px solid var(--head-line);color:#fff;border-radius:8px;padding:3px 10px;cursor:pointer;font-size:.8rem}
.site-foot .btn{background:transparent;color:#fff;border-color:var(--head-line)}
.site-foot .btn.primary{background:var(--accent);border-color:var(--accent)}
.foot-bottom{max-width:1100px;margin:0 auto;padding:14px 16px 0;border-top:1px solid var(--head-line);display:flex;gap:14px;flex-wrap:wrap;font-size:.8rem;color:rgba(255,255,255,.65)}
.chk{display:flex;gap:8px;align-items:flex-start;font-size:.86rem;line-height:1.35;cursor:pointer}
.chk input{width:16px;height:16px;margin-top:2px;flex:none;accent-color:var(--accent)}
.hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0}
/* ---------- Finestre accesso / account ---------- */
.auth-tabs{display:flex;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:3px}
.auth-tabs button{flex:1;border:0;background:none;padding:9px;border-radius:9px;font-weight:800;cursor:pointer;color:var(--muted)}
.auth-tabs button[aria-selected="true"]{background:var(--card);color:var(--ink);box-shadow:var(--shadow)}
.aform{display:flex;flex-direction:column;gap:10px}
.linkbtn{background:none;border:0;color:var(--accent);font-weight:700;cursor:pointer;padding:4px 0;text-decoration:underline;text-underline-offset:2px}
.danger-zone{border:1px solid var(--line);border-radius:10px;padding:8px 12px}
.danger-zone summary{cursor:pointer;color:var(--bad);font-weight:700}
.danger-zone[open]{display:flex;flex-direction:column;gap:8px}
.toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--paper);padding:10px 16px;border-radius:12px;font-weight:700;z-index:100;box-shadow:0 10px 30px rgba(0,0,0,.25);max-width:calc(100vw - 32px)}
dialog{max-height:calc(100vh - 32px);overflow:auto}
.dlg .btn{justify-content:center}

/* =====================================================================
   Tema azzurro chiaro (2026-09): niente blu navy, icone lineari, carrello
   ===================================================================== */
:root{
  --paper:#F4F9FC; --ink:#10324D; --muted:#5B7389; --line:#D6E6F0;
  --brand:#5CC0F2; --accent:#1284CB; --accent-soft:#E2F3FC;
  --pass:#1D97DC; --pass-ink:#FFFFFF; --tag:#FFFFFF; --tag-ink:#1284CB;
  --head:#D8F0FC; --head-ink:#10324D; --head-soft:rgba(255,255,255,.55); --head-line:rgba(16,50,77,.14);
  --sky:linear-gradient(170deg,#EAF7FE 0%,#CDEBFB 55%,#A9DDF8 100%);
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#0B1824; --ink:#E4EEF5; --muted:#93A8B9; --line:#22384B;
  --accent:#5CC0F2; --accent-ink:#06223A; --accent-soft:#16344C; --pass:#145E8C; --tag:#5CC0F2; --tag-ink:#06223A;
  --head:#10324D; --head-ink:#E4F3FC; --head-soft:rgba(255,255,255,.08); --head-line:rgba(255,255,255,.16);
  --sky:linear-gradient(170deg,#0F2E47 0%,#123D5E 60%,#17507A 100%);
}}
:root[data-theme="dark"]{
  --paper:#0B1824; --ink:#E4EEF5; --muted:#93A8B9; --line:#22384B;
  --accent:#5CC0F2; --accent-ink:#06223A; --accent-soft:#16344C; --pass:#145E8C; --tag:#5CC0F2; --tag-ink:#06223A;
  --head:#10324D; --head-ink:#E4F3FC; --head-soft:rgba(255,255,255,.08); --head-line:rgba(255,255,255,.16);
  --sky:linear-gradient(170deg,#0F2E47 0%,#123D5E 60%,#17507A 100%);
}
.ic{width:18px;height:18px;flex:none;vertical-align:-3px}
.btn .ic{width:16px;height:16px}
.btn.sm .ic{width:14px;height:14px}

/* testata e fascia di ricerca */
.site-head{background:var(--sky);color:var(--head-ink)}
.site-head .logo{background:var(--accent)}
.hbtn{color:var(--head-ink)}
.hbtn.solid{background:var(--accent);color:var(--accent-ink)}
.site-head .avatar{background:var(--accent);color:var(--accent-ink)}
.site-head .tab{color:var(--muted);position:relative}
.site-head .tab:hover{color:var(--ink);background:var(--head-soft)}
.site-head .tab[aria-selected="true"]{background:var(--card);color:var(--accent);box-shadow:0 2px 10px rgba(18,132,203,.14)}
.site-head .tab .ic{width:18px;height:18px}
@media (max-width:900px) and (min-width:721px){.site-head .tab .ic{display:none}}
.badge{min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:#FF6B4A;color:#fff;font:800 .68rem/18px var(--body);text-align:center}
.hero .s-title{color:var(--ink);margin:14px 0 6px}
.s-sub{margin:0 0 18px;color:var(--muted);font-size:1.02rem;max-width:560px}
.hero .seg button{border:1px solid var(--head-line);color:var(--ink);background:var(--head-soft);display:inline-flex;align-items:center;gap:7px;padding:9px 16px}
.hero .seg button .ic{width:17px;height:17px}
.hero .seg button:hover{background:var(--card)}
.hero .seg button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);box-shadow:0 6px 16px rgba(18,132,203,.28)}
.hero .srow-opts select{color:var(--ink);background:var(--head-soft);border:1px solid var(--head-line)}
.hero .sgrid{box-shadow:0 14px 34px rgba(18,90,140,.14)}
.hero .swap{border:1px solid #D6E6F0;color:#1284CB;display:grid;place-items:center;padding:0;border-radius:50%;cursor:pointer}
.hero .sgo{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.hchk{color:var(--ink)}
.sgrid.cruises{grid-template-columns:1fr 1fr .8fr .8fr .5fr auto}
@media (max-width:820px){.hero .sgrid{box-shadow:none}.hero .sfield{box-shadow:0 2px 8px rgba(18,90,140,.08)}.sgrid.cruises{grid-template-columns:1fr 1fr}.hero .seg{gap:6px}.hero .seg button{padding:8px 12px}}
.suggest li{grid-template-columns:28px 1fr auto}
.suggest .sic{width:28px;height:28px;border-radius:8px;background:#E2F3FC;color:#1284CB;display:grid;place-items:center}
.suggest .sic .ic{width:15px;height:15px}

/* carta d'imbarco */
.pass{background:linear-gradient(135deg,#43B7F0 0%,#1D97DC 55%,#1284CB 100%);box-shadow:0 10px 28px rgba(18,132,203,.25)}
.route .arrow{border-top-color:rgba(255,255,255,.5)}
.route .arrow svg{fill:#fff}
.stub{border-left-color:rgba(255,255,255,.35)}
.stub .big{color:#fff}
@media (max-width:560px){.stub{border-top-color:rgba(255,255,255,.35)}}

/* barra delle sezioni su telefono: pillola sospesa */
@media (max-width:720px){
  .site-head .tabs{left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));padding:6px;border:1px solid var(--line);border-radius:22px;
    background:color-mix(in srgb,var(--card) 88%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 10px 30px rgba(16,50,77,.18)}
  .site-head .tab{font-size:.7rem;font-weight:700;padding:4px 2px;gap:3px;border-radius:16px}
  .site-head .tab .ic{display:block;width:22px;height:22px;padding:3px 14px;box-sizing:content-box;border-radius:99px;transition:background .2s}
  .site-head .tab[aria-selected="true"]{background:none;box-shadow:none;color:var(--accent)}
  .site-head .tab[aria-selected="true"] .ic{background:var(--accent-soft)}
  .site-head .tab .badge{position:absolute;top:0;left:calc(50% + 8px)}
  .wrap{padding-bottom:120px}
  .toast{bottom:calc(96px + env(safe-area-inset-bottom,0px))}
}
@media (min-width:721px){.site-head .tab .badge{margin-left:2px}}

/* sotto-sezioni di "Organizza" */
.subnav{display:none;gap:6px;margin:0 0 14px;overflow-x:auto;scrollbar-width:none}
body[data-tab="valigia"] .subnav,body[data-tab="itinerario"] .subnav,body[data-tab="volo"] .subnav{display:flex}
.subnav button{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--card);color:var(--muted);padding:8px 14px;border-radius:99px;font-weight:700;cursor:pointer;white-space:nowrap}
.subnav button[aria-current="page"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}

/* come funziona + strumenti */
.how-steps{display:grid;grid-template-columns:repeat(3,1fr);background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden;counter-reset:step}
.how-steps>div{padding:18px 20px;display:grid;grid-template-columns:40px 1fr;column-gap:12px;align-items:center;counter-increment:step}
.how-steps>div+div{border-left:1px solid var(--line)}
.how-steps .ic{grid-row:1/3;width:40px;height:40px;padding:9px;box-sizing:border-box;border-radius:12px;background:var(--accent-soft);color:var(--accent)}
.how-steps b{font-family:var(--display);font-size:1.02rem}
.how-steps b::before{content:counter(step) ". ";color:var(--accent)}
.how-steps small{color:var(--muted);font-size:.84rem}
@media (max-width:720px){.how-steps{grid-template-columns:1fr}.how-steps>div+div{border-left:0;border-top:1px solid var(--line)}}
.sec-title{font-size:1.15rem;margin:26px 0 12px}
.tools{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (max-width:640px){.tools{grid-template-columns:1fr}}
.tool{display:flex;align-items:center;gap:14px;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px 16px;cursor:pointer;color:var(--ink);transition:border-color .15s,transform .15s}
.tool:hover{border-color:var(--accent);transform:translateY(-1px)}
.tool>.ic:first-child{width:44px;height:44px;padding:10px;box-sizing:border-box;border-radius:14px;background:var(--accent-soft);color:var(--accent)}
.tool span{flex:1;min-width:0}
.tool b{display:block;font-family:var(--display);font-size:1rem}
.tool small{color:var(--muted);font-size:.84rem}
.tool .go{color:var(--muted)}
#sr:not(:empty) ~ .how,#sr:not(:empty) ~ .sec-title,#sr:not(:empty) ~ .tools{display:none}

/* risultati */
.btn.add{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.btn.add:hover:not(:disabled){background:var(--accent);color:var(--accent-ink)}
.btn.add:disabled{opacity:1;border-color:var(--good);color:var(--good);background:var(--good-soft);cursor:default}
.flogo .ic{width:26px;height:26px;color:var(--accent)}
.xs .xi{grid-row:1/3;align-self:center;width:36px;height:36px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}
.himg>span{color:var(--accent)}
.himg>span .ic{width:34px;height:34px}
.compare{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;background:var(--accent-soft);border-radius:12px;padding:10px 14px;margin-bottom:14px}
.cgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px;margin-bottom:12px}
.ccard{display:grid;grid-template-columns:44px 1fr;gap:4px 12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:var(--card)}
.ccard .cbody{display:flex;flex-direction:column;min-width:0}
.ccard .cbody small{font-size:.8rem}
.ccard>.row{grid-column:1/-1;justify-content:flex-end;margin-top:6px}
.manual{display:flex;flex-direction:column;gap:8px;border:1px dashed var(--accent);border-radius:14px;padding:14px;margin-bottom:12px;background:var(--accent-soft)}
.manual .row input,.manual .row select{flex:1;min-width:120px}

/* Il mio viaggio (carrello) */
.cic{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}
.cic .ic{width:22px;height:22px}
.cic.k-train{background:#E6F6EE;color:#1E8A4C}
.cic.k-hotel{background:#FFF1E6;color:#C0620B}
.cic.k-car{background:#EEF0FF;color:#4A55C9}
.cic.k-cruise{background:#E3F7F8;color:#0F8A93}
.cart-empty{text-align:center;padding:18px 8px 8px;display:flex;flex-direction:column;align-items:center;gap:8px}
.cart-empty .ce-art{width:64px;height:64px;border-radius:20px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}
.cart-empty .ce-art .ic{width:30px;height:30px}
.cart-empty p{max-width:460px;margin:0 0 6px}
.cart-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;padding:14px 16px;border-radius:14px;background:var(--accent-soft);margin-bottom:12px}
.cart-head>div:first-child{display:flex;flex-direction:column}
.cart-total{font-family:var(--display);font-size:2.1rem;font-weight:900;line-height:1.1;color:var(--ink)}
.cart-prog{min-width:170px;display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:.85rem}
.cart-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.citem{display:grid;grid-template-columns:44px 1fr auto;gap:4px 12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.citem .cbody{display:flex;flex-direction:column;min-width:0}
.citem .cbody b{overflow-wrap:anywhere}
.ckind{font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.cprice{text-align:right;display:flex;flex-direction:column}
.cprice b{font-family:var(--display);font-size:1.15rem}
.cact{grid-column:2/-1;display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-top:4px}
.booked-chk{display:inline-flex;gap:6px;align-items:center;font-weight:700;font-size:.85rem;cursor:pointer}
.booked-chk input{width:16px;height:16px;accent-color:var(--good)}
.citem.booked{background:var(--good-soft);border-color:transparent}
.citem.booked .btn.primary{background:var(--card);color:var(--ink);border-color:var(--line)}
@media (max-width:560px){.citem{grid-template-columns:44px 1fr}.cprice{grid-column:2;text-align:left}.cact{grid-column:1/-1;justify-content:flex-start}}
.trip-details>summary{list-style:none;cursor:pointer;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.trip-details>summary::-webkit-details-marker{display:none}
.trip-details>summary::after{content:"";margin-left:auto;width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);align-self:center}
.trip-details[open]>summary{margin-bottom:14px}
.trip-details[open]>summary::after{transform:rotate(-135deg)}
.toast{display:flex;gap:8px;align-items:center}
.toast.ok .ic{color:#6FE0A3}

/* piè di pagina chiaro */
.site-foot{background:var(--sky);color:var(--ink)}
.fcol p,.site-foot .chk{color:var(--muted)}
.site-foot a{color:var(--accent)}
.site-foot .logo{background:var(--accent)}
.nl-row input{border:1px solid #D6E6F0}
.fmsg{color:var(--accent)}
.copy{background:var(--card);border-color:var(--line);color:var(--ink)}
.site-foot .btn{background:var(--card);color:var(--ink);border-color:var(--line)}
.site-foot .btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.foot-bottom{border-top-color:var(--head-line);color:var(--muted)}
.tab .sh{display:none}
@media (max-width:720px){.tab .lg{display:none}.tab .sh{display:inline}}
@media (max-width:820px){.hero .swap{display:none}}

/* ---------- Preferiti e attrazioni ---------- */
body[data-tab="preferiti"] .pass{display:none}
.favbtn{display:inline-flex;align-items:center;gap:6px;position:relative}
.favbtn .ic{width:18px;height:18px}
body[data-tab="preferiti"] .favbtn{background:var(--card);color:#E0435A}
@media (max-width:720px){.favbtn .lg{display:none}.favbtn .badge{position:absolute;top:-2px;right:-4px}}
.fav{width:34px;height:34px;flex:none;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--muted);display:inline-grid;place-items:center;cursor:pointer;padding:0;transition:transform .15s,color .15s}
.fav .ic{width:17px;height:17px}
.fav:hover{color:#E0435A;transform:scale(1.06)}
.fav.on{color:#E0435A;border-color:#F6C3CB;background:#FFF0F2}
.fav.on .ic{fill:currentColor}
.fav.over{position:absolute;top:8px;right:8px;border:0;background:rgba(255,255,255,.92);box-shadow:0 2px 8px rgba(0,0,0,.15)}
.fav.over.on{background:#fff}
.himg{position:relative}
.atag{position:absolute;left:8px;top:8px;background:var(--accent);color:var(--accent-ink);font-size:.7rem;font-weight:800;padding:3px 8px;border-radius:99px;letter-spacing:.03em}
.adesc{margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sgrid.attractions{grid-template-columns:1.8fr .8fr .5fr auto}
@media (max-width:820px){.sgrid.attractions{grid-template-columns:1fr 1fr}}
.ccard.top{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.frow .row .fav{width:30px;height:30px}
.fgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.fcard{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--card);display:flex;flex-direction:column}
.fimg{position:relative;height:130px;background:var(--accent-soft);display:grid;place-items:center}
.fimg img{width:100%;height:100%;object-fit:cover}
.fimg .cic{width:56px;height:56px}
.fbody{padding:12px 14px;display:flex;flex-direction:column;gap:2px;flex:1}
.ffoot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:10px;flex-wrap:wrap}

/* ---------- Globo realistico ---------- */
.globe-card{background:#02060D url(/vendor/night-sky.png) center/cover}
#globe{background:transparent}
#globe .maplibregl-canvas{outline:none}
.globe-card .maplibregl-ctrl-group{background:rgba(255,255,255,.92);border-radius:12px;overflow:hidden}
.globe-card .maplibregl-ctrl-attrib{font-size:10px}
.gpop .maplibregl-popup-content{background:rgba(8,22,38,.92);color:#EAF4FB;border-radius:10px;padding:7px 11px;font:600 13px var(--body);box-shadow:0 8px 24px rgba(0,0,0,.35)}
.gpop .maplibregl-popup-tip{border-top-color:rgba(8,22,38,.92)!important;border-bottom-color:rgba(8,22,38,.92)!important}
.globe-hint{position:absolute;left:12px;bottom:12px;background:rgba(8,22,38,.7);color:#EAF4FB;font-size:.78rem;font-weight:600;padding:6px 10px;border-radius:99px;pointer-events:none}
