/* Catalogo viaggi (/tours): testata, filtri (barra laterale da 1080 px, finestra flottante sotto), barra dei risultati, chip, griglia, risultato vuoto, dock dei filtri */
.page-head__n { display: inline-block; margin-left: 10px; padding: 6px 14px; border-radius: 999px; background: var(--sea-100); color: var(--navy-800); font: 700 .9rem/1 var(--font-body); letter-spacing: 0; vertical-align: .55em; white-space: nowrap; }
.tcatalog { display: grid; gap: 24px; align-items: start; padding-bottom: clamp(16px, 3vw, 32px); }
@media (min-width: 1080px) { .tcatalog { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; } }
.tresults { min-width: 0; scroll-margin-top: 8px; }
.tresults.is-loading #results-wrap { opacity: .45; pointer-events: none; transition: opacity .2s; }
.js .no-js-only { display: none !important; }

/* filtri: scheda a sinistra da 1080 px; sotto, con JavaScript, il modulo passa dentro una finestra (.modal); senza JavaScript resta in pagina */
.tfilters { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.js .tfilters { display: none; }
.tfilters__form { display: flex; flex-direction: column; min-height: 0; max-height: inherit; flex: 1 1 auto; }
.tfilters__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 6px; }
.tfilters__head h2 { font-size: 1.35rem; }
.tfilters__reset { padding: 10px 0; font-weight: 700; font-size: .9rem; color: var(--aegean-600); text-decoration: underline; text-underline-offset: 3px; }
.tfilters__body { display: grid; gap: 20px; padding: 10px 22px 20px; overflow: auto; overscroll-behavior: contain; min-height: 0; }
.tfilters__act { padding: 14px 22px 18px; border-top: 1px solid var(--line-2); background: var(--white); border-radius: 0 0 var(--r-lg) var(--r-lg); }
@media (min-width: 1080px) {
  .js .tfilters { display: flex; flex-direction: column; position: sticky; top: calc(var(--header-space) + 8px); max-height: calc(100svh - var(--header-space) - 24px); overflow: hidden; transition: top .3s var(--ease); }
  .js.header-hidden .tfilters { top: calc(24px + env(safe-area-inset-top)); }
  .js .tfilters .tfilters__act { display: none; }  /* con JavaScript i filtri si applicano da soli */
  .tfilters__body { padding-top: 6px; }
}
.fset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 4px; }
.fset legend { padding: 0 0 8px; font: 700 .875rem/1.2 var(--font-body); color: var(--ink-2); }
.fset .check { align-items: center; min-height: 44px; font-size: .94rem; }
.field .tsearch { position: relative; }
.tsearch .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.tsearch .input { padding-left: 46px; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { position: relative; display: inline-flex; }
.fchip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fchip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font: 650 .88rem/1.1 var(--font-body); color: var(--ink-2); transition: background-color .2s, border-color .2s, color .2s; }
.fchip em { font-style: normal; font-weight: 600; font-size: .78rem; color: var(--muted); }
.fchip input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.fchip input:checked + span em { color: rgba(255, 255, 255, .7); }
.fchip input:focus-visible + span { outline: 3px solid var(--aegean-500); outline-offset: 2px; }
@media (hover: hover) { .fchip input:not(:checked):hover + span { border-color: var(--navy-800); color: var(--navy-900); } }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; color: var(--muted); }
.frow--eur { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
.frow .input { padding-inline: 12px; text-align: center; -moz-appearance: textfield; }
.frow .input::-webkit-outer-spin-button, .frow .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.frow__cur { font-weight: 700; color: var(--ink-2); }

/* finestra dei filtri su telefono e tablet */
.modal--filters .modal__body { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 0; gap: 0; }
.modal--filters .tfilters__form { max-height: none; min-height: 0; flex: 1 1 auto; }
.modal--filters .tfilters__head { padding: 0 26px 4px; }
.modal--filters .tfilters__head h2 { display: none; }
.modal--filters .tfilters__body { padding: 8px 26px 20px; }
.modal--filters .tfilters__act { padding: 14px 26px 22px; border-radius: 0 0 26px 26px; }

/* barra dei risultati: conteggio, filtri (telefono/tablet), ordinamento */
.tbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.tbar__count { color: var(--ink-2); font-size: 1rem; }
.tbar__count strong { font: 500 1.5rem/1 var(--font-display); color: var(--ink); letter-spacing: -.015em; }
.tbar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tbar__filters { display: none; }
@media (max-width: 1079px) { .js .tbar__filters { display: inline-flex; } }
.tsort .select { width: auto; min-height: 46px; padding: 0 44px 0 18px; border-radius: 999px; font-weight: 650; font-size: 16px; }
.dot { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--sun); color: var(--navy-950); font: 800 .74rem/1 var(--font-body); }
.tchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.tchips .chip { min-height: 40px; padding: 0 12px 0 16px; font-size: .86rem; }
.tchips .chip .i { width: 1em; height: 1em; }
.tchips__clear { padding: 10px 8px; font-weight: 700; font-size: .88rem; color: var(--aegean-600); text-decoration: underline; text-underline-offset: 3px; }

/* griglia di schede: 1 colonna sul telefono, 2 su tablet (e con la barra laterale fino a 1279 px), 3 da 1280 px */
.tgrid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tpages { margin-top: clamp(28px, 4vw, 44px); }
.tpages ul { list-style: none; }
.tpages li > span:not(.is-off) { border: 0; background: none; min-width: 20px; padding: 0; color: var(--muted); }

/* risultato vuoto */
.tempty__in { display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(32px, 6vw, 64px) 20px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.tempty__in .i-xl { color: var(--aegean-300); }
.tempty__in h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.tempty__in > p { max-width: 520px; color: var(--muted); }
.tempty__relax { display: grid; gap: 8px; width: min(100%, 460px); margin-block: 4px; }
.tempty__relax a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); text-align: left; font-weight: 650; font-size: .94rem; line-height: 1.3; }
.tempty__relax a span { flex: 1; min-width: 0; } .tempty__relax b { color: var(--aegean-600); font-weight: 800; white-space: nowrap; font-size: .86rem; } .tempty__relax .i { color: var(--aegean-500); }
@media (hover: hover) { .tempty__relax a:hover { border-color: var(--navy-800); background: var(--white); } }
.tempty__pop { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 18px; }
.tempty__pop h3 { font-size: 1.5rem; }

/* barra in basso con il pulsante dei filtri (telefono): pillola staccata dai bordi (regole iPhone) */
.dock--tools { justify-content: space-between; padding-left: 8px; }
.dock--tools .btn { margin-left: 0; padding-inline: 20px; }
.dock__count { padding-right: 16px; font-weight: 700; color: var(--ink-2); font-size: .95rem; white-space: nowrap; }

/* contrasto AA: testi piccoli su fondo tinto (le tinte del design system sono pensate per fondi pieni) */
.badge--red { color: #9a3a22; } .badge--green { color: #1d5a3b; } .seats--few, .tcard__next .few { color: #a8412a; }
