/* Programmi di viaggio dentro «Viaggio dalla tua città» */
.hd-trip-programs { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.hd-trip-programs[data-found="1"] ~ #hdTripCityEmpty,
.hd-trip-programs[data-wait="1"] ~ #hdTripCityEmpty,
.hd-trip-programs[data-none="1"] ~ #hdTripCityEmpty,
.hd-trip-programs[data-only="1"] ~ #hdTripCityEmpty,
.hd-trip-programs[data-only="1"] ~ #hdTripCityLines { display: none !important; }
.hd-trip-program__panel { border: 1.5px solid #e9ecef; border-radius: 12px; padding: 14px 16px; margin: -2px 0 8px; display: flex; flex-direction: column; gap: 12px; }
.hd-trip-program__panel[hidden] { display: none; }
.hd-trip-program__station { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #667085; }
.hd-trip-program__results { display: flex; flex-direction: column; gap: 12px; }
.hd-trip-program__trains { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hd-trip-program__column { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hd-trip-program__title { font-size: 14px; font-weight: 600; }
.hd-trip-program__row { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 8px; border: 1.5px solid #e9ecef; border-radius: 10px; padding: 9px 11px; font-size: 14px; cursor: pointer; margin: 0; }
.hd-trip-program__row--station { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; border-radius: 14px; color: #1a2235; }
.hd-trip-program__station-name strong { display: block; font-size: 16px; font-weight: 700; }
.hd-trip-program__station-name small { display: block; color: #667085; font-size: 13px; }
.hd-trip-program__stations { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.hd-trip-program__price { text-align: right; }
.hd-trip-program__logo-box { display: inline-flex; width: 36px; height: 24px; }
.hd-trip-program__logo { width: 36px; height: 24px; object-fit: contain; border-radius: 4px; background: #fff; }
.hd-trip-program__flight { min-width: 0; font-size: 14px; }
.hd-trip-program__flight strong { font-weight: 600; }
.hd-trip-program__flight small { display: block; color: #667085; font-size: 13px; font-variant-numeric: tabular-nums; }
.hd-trip-program__bags { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid #e9ecef; padding-top: 12px; }
.hd-trip-program__bag { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef0f3; }
.hd-trip-program__bag-text strong { display: block; font-size: 15px; font-weight: 500; color: #1a2235; }
.hd-trip-program__bag-text .hd-trip-program__bag-desc { display: block; font-size: 13px; color: #5d6b85; line-height: 1.35; margin: 1px 0 2px; }
.hd-trip-program__bag-text small { display: block; font-size: 13px; font-weight: 600; color: var(--primary, #1e3c72); }
.hd-trip-program__stepper { display: inline-flex; align-items: center; flex: none; border: 1px solid #ced4da; border-radius: 999px; overflow: hidden; }
.hd-trip-program__stepper button { width: 36px; height: 34px; border: 0; background: #f6f8fb; color: #1e3c72; font-size: 18px; line-height: 1; }
.hd-trip-program__stepper button:disabled { color: #bbc; }
.hd-trip-program__stepper b { min-width: 32px; text-align: center; }
/* Il suggerimento delle città vicine: la frase resta una riga sola. */
.hd-trip-city-results .hd-trip-city-result--header { display: block; }
.hd-trip-program__card { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px; border-radius: 14px; }
.hd-trip-program__card-top { display: flex; align-items: center; gap: 12px; }
.hd-trip-program__card-top strong { font-size: 21px; font-weight: 700; color: #1a2235; font-variant-numeric: tabular-nums; }
.hd-trip-program__card-line { flex: 1; position: relative; height: 18px; display: flex; align-items: center; justify-content: center; }
.hd-trip-program__card-line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid #d5dbe5; }
.hd-trip-program__card-line em { position: relative; font-style: normal; font-size: 12px; font-weight: 600; color: #2f7d4f; background: #fff; padding: 0 6px; }
.hd-trip-program__card.is-selected .hd-trip-program__card-line em { background: #fffbf4; }
.hd-trip-program__card-places { display: flex; justify-content: space-between; gap: 12px; color: #667085; font-size: 13px; }
.hd-trip-program__card-places span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-trip-program__card-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e9ecef; }
.hd-trip-program__card-foot .hd-trip-program__carrier { flex: 1; min-width: 0; color: #1a2235; font-size: 14.5px; font-weight: 600; }
.hd-trip-program__logo--wide { width: 52px; }
.hd-trip-program__card .hd-trip-program__logo-box { width: auto; min-width: 36px; }
.hd-trip-program__title--ways { color: var(--primary, #1e3c72); }
.hd-trip-program__row.is-selected { border-color: var(--accent, #f5a623); background: rgba(245, 166, 35, .06); }
.hd-trip-program__row.is-disabled { opacity: .45; cursor: not-allowed; }
.hd-trip-program__bag.is-disabled { opacity: .5; }
.hd-trip-program__carrier { color: #667085; font-size: 13px; }
.hd-trip-program__time, .hd-trip-program__price { font-variant-numeric: tabular-nums; }
.hd-trip-program__notice { background: #fdf4e3; color: #7a5208; border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.hd-trip-program__error { color: #b42318; font-size: 14px; }
.hd-trip-program__wait { color: #667085; font-size: 14px; }
.hd-trip-program__totals { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.hd-trip-program__line { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.hd-trip-program__line--total { border-top: 1px solid #e9ecef; padding-top: 7px; font-weight: 700; font-size: 16px; }
@media (max-width: 620px) {
    .hd-trip-program__trains { grid-template-columns: 1fr; }
}

/* Voli: sopra quelli da abbinare, sotto il «Pacchetto Volo A/R» (owner 26/11/2026). */
.hd-trip-program__flights, .hd-trip-program__free, .hd-trip-program__pairs { display: flex; flex-direction: column; gap: 10px; }
.hd-trip-program__flights { gap: 14px; }
.hd-trip-program__group-head { display: flex; flex-direction: column; gap: 2px; }
.hd-trip-program__group-title { font-size: 15.5px; font-weight: 700; color: var(--primary, #1e3c72); }
.hd-trip-program__group-sub { font-size: 13px; color: #667085; }
.hd-trip-program__or { display: flex; align-items: center; gap: 10px; color: #667085; font-size: 13px; }
.hd-trip-program__or::before, .hd-trip-program__or::after { content: ''; flex: 1; border-top: 1px solid #e9ecef; }
.hd-trip-program__pair-legs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hd-trip-program__pair-leg { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hd-trip-program__pair-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #667085; }
@media (max-width: 620px) {
    .hd-trip-program__pair-legs { grid-template-columns: 1fr; gap: 10px; }
}

/* Sul telefono andata e ritorno già scelti, «Cambia» apre una lista alla volta (owner 12/11/2026). */
.hd-trip-program__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hd-trip-program__change { display: none; background: none; border: 0; padding: 4px 0; color: #1e3c72; font-size: 14px; font-weight: 600; cursor: pointer; }
.hd-trip-program__change:focus-visible { outline: 2px solid #f5a623; outline-offset: 2px; border-radius: 4px; }
@media (max-width: 767.98px) {
    .hd-trip-program__trains.is-steps { grid-template-columns: 1fr; }
    .hd-trip-program__trains.is-steps .hd-trip-program__change { display: inline-block; }
    .hd-trip-program__trains.is-steps .hd-trip-program__column:not(.is-open) .hd-trip-program__row:not(.is-selected),
    .hd-trip-program__trains.is-steps .hd-trip-program__column.is-open .hd-trip-program__row.is-disabled { display: none; }
}

/* La finestra alta da subito e mai attaccata ai bordi dello schermo. */
@media (min-width: 768px) {
    .modal.hd-trip-modal { --bs-modal-margin: 40px; }
    .hd-trip-modal .modal-content { min-height: min(620px, 100%); }
}

/* «Viaggio aggiunto» su desktop: una riga sola, quando non ci sono tratte da elencare. Grandezze dei testi e
   dei tasti in hotel-trip-modal.css (owner 26/11/2026: titolo, prezzo e «per chi» non più rimpiccioliti). */
@media (min-width: 768px) {
    .hd-trip-added:has(> .hd-trip-added__rows:empty) { flex-direction: row; align-items: center; }
    .hd-trip-added:has(> .hd-trip-added__rows:empty) .hd-trip-added__head { flex: 1 1 auto; min-width: 0; padding: 9px 14px; border-bottom: 0; background: transparent; }
    .hd-trip-added:has(> .hd-trip-added__rows:empty) .hd-trip-added__check { width: 28px; height: 28px; flex-basis: 28px; font-size: 15px; }
    .hd-trip-added:has(> .hd-trip-added__rows:empty) .hd-trip-added__actions { flex: none; gap: 12px; padding: 0 14px 0 0; }
    .hd-trip-added:has(> .hd-trip-added__rows:empty) .hd-trip-added__edit { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; }
    .hd-trip-added:has(> .hd-trip-added__rows:empty) .hd-trip-added__remove { min-height: 34px; padding: 0; font-size: 13.5px; }
}

/* Le schede dei viaggi: icona del mezzo, prezzo in evidenza, pallino a destra (owner 10/11/2026). */
.hd-trip-option.hd-trip-option--program { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; }
.hd-trip-option__mode-icon { width: 48px; height: 48px; border-radius: 12px; background: #eef3fc; display: inline-flex; align-items: center; justify-content: center; }
.hd-trip-option__mode-icon svg, .hd-trip-added__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary, #1e3c72); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hd-trip-option--program .hd-trip-option__title { font-size: 15.5px; }
.hd-trip-option--program .hd-trip-option__price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; text-align: right; white-space: nowrap; }
.hd-trip-option__from, .hd-trip-option__unit { font-size: 12.5px; color: #667085; }
.hd-trip-option__amount { font-size: 20px; font-weight: 700; color: var(--primary, #1e3c72); }
.hd-trip-option--program .hd-trip-option__radio-visual { margin: 0; }
.hd-trip-program__line--total { align-items: center; }
.hd-trip-program__total-label { display: flex; flex-direction: column; }
.hd-trip-program__total-label small { font-weight: 400; color: #667085; font-size: 13px; }
.hd-trip-program__total-amount { font-size: 22px; color: var(--primary, #1e3c72); white-space: nowrap; }
.hd-trip-added__icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: #eef3fc; display: inline-flex; align-items: center; justify-content: center; }
.hd-trip-added__rows--summary .hd-trip-added__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #eef0f3; font-size: 14px; }
.hd-trip-added__rows--summary .hd-trip-added__row:last-child { border-bottom: 0; }
.hd-trip-added__rows--summary .hd-trip-added__row span { color: #667085; }
@media (min-width: 768px) {
    .hd-trip-added__rows--summary { display: none !important; }
    .hd-trip-added:has(> .hd-trip-added__rows--summary) { flex-direction: row; align-items: center; }
    .hd-trip-added:has(> .hd-trip-added__rows--summary) .hd-trip-added__head { flex: 1 1 auto; min-width: 0; padding: 9px 14px; border-bottom: 0; background: transparent; }
    .hd-trip-added:has(> .hd-trip-added__rows--summary) .hd-trip-added__total small { display: none; }
    .hd-trip-added:has(> .hd-trip-added__rows--summary) .hd-trip-added__actions { flex: none; gap: 12px; padding: 0 14px 0 0; }
    .hd-trip-added:has(> .hd-trip-added__rows--summary) .hd-trip-added__edit { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; }
    .hd-trip-added:has(> .hd-trip-added__rows--summary) .hd-trip-added__remove { min-height: 34px; padding: 0; font-size: 13.5px; }
    .hd-trip-added__head--program .hd-trip-added__icon { width: 34px; height: 34px; flex-basis: 34px; }
}
@media (max-width: 767.98px) {
    .hd-trip-option.hd-trip-option--program { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "icon body radio" "icon price radio"; row-gap: 4px; }
    .hd-trip-option--program .hd-trip-option__mode-icon { grid-area: icon; width: 44px; height: 44px; align-self: start; }
    .hd-trip-option--program .hd-trip-option__body { grid-area: body; }
    .hd-trip-option--program .hd-trip-option__price { grid-area: price; grid-column: auto; flex-direction: row; align-items: baseline; gap: 4px; justify-content: flex-start; justify-self: start; text-align: left; padding-left: 0; }
    .hd-trip-option--program .hd-trip-option__amount { font-size: 18px; }
    .hd-trip-option--program .hd-trip-option__radio-visual { grid-area: radio; }
    .hd-trip-program__card-top strong { font-size: 19px; }
    .hd-trip-program__card-places { font-size: 12.5px; }
    .hd-trip-added__head--program { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
    .hd-trip-added__rows--summary { padding: 4px 16px; }
    .hd-trip-added:has(> .hd-trip-added__rows--summary) .hd-trip-added__actions { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 14px; }
    .hd-trip-added:has(> .hd-trip-added__rows--summary) .hd-trip-added__edit { flex: 0 0 auto; min-height: 40px; padding: 0 20px; }
}

/* «Viaggio aggiunto» di un Programma: i colori della scheda, non il verde della conferma. */
.hd-trip-added__head--program { background: #f4f7fc; border-bottom-color: #e6ecf5; }
.hd-trip-added:has(> .hd-trip-added__head--program) { border-color: #dfe5ed; }
.hd-trip-added__head--program .hd-trip-added__title strong { color: var(--primary, #1e3c72); }
.hd-trip-added__head--program .hd-trip-added__title span { color: #667085; }

/* Bagaglio incluso nella tariffa del volo (owner 11/11/2026) */
.hd-trip-program__fare-bags { display: grid; gap: 4px; margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: #f5f7fb; border: 1px solid #e3e8f0; }
.hd-trip-program__fare-bags-title { font-size: 14px; color: var(--primary, #1e3c72); }
.hd-trip-program__fare-bag { font-size: 13px; color: #344054; }
.hd-trip-program__fare-bag::before { content: '✓ '; color: #1f7a4d; font-weight: 700; }
.hd-trip-program__fare-bag--no { color: #667085; }
.hd-trip-program__fare-bag--no::before { content: '✕ '; color: #98a2b3; }

/* Logo della compagnia del pacchetto, o il mezzo in un piccolo riquadro (owner 11/11/2026) */
.hd-trip-program__logo-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 24px;
  border-radius: 6px; background: var(--primary, #1e3c72); color: #fff; }
.hd-trip-program__logo-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Date vicine del volo (owner 28/11/2026): un aeroporto che vola solo in un soggiorno vicino, come il charter. */
.hd-trip-program__nearby { display: grid; gap: 10px; margin-top: 14px; }
.hd-trip-program__nearby-msg { display: grid; gap: 4px; background: #eef2f9; border-radius: 10px; padding: 12px 14px; }
.hd-trip-program__nearby-msg b { color: #1d3a6e; font-size: 15px; }
.hd-trip-program__nearby-msg span { font-size: 14px; }
.hd-trip-program__nearby-title { font-weight: 700; font-size: 14px; }
/* Piece «volo_consiglia»: the link to the ferry under the advice. */
.htp-advice__link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--primary, #1e3c72); text-decoration: underline; cursor: pointer; }
.hd-trip-program__nearby-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hd-trip-program__day { display: grid; gap: 2px; border: 1px solid #e3e7ee; border-radius: 10px; padding: 12px 14px;
  color: inherit; text-decoration: none; background: #fff; }
.hd-trip-program__day:hover, .hd-trip-program__day:focus-visible { border-color: #1d3a6e; }
.hd-trip-program__day-when { font-weight: 800; color: #1d3a6e; }
.hd-trip-program__day-from { font-size: 14px; color: #5d6779; }
.hd-trip-program__day-go { font-size: 14px; font-weight: 700; color: #1d3a6e; }

/* Parte «volo_veste_nave» dei moduli del sito (owner 28/11/2026, MODULO-SITO-OTA-SICILIA): la finestra del volo con
   la veste di «Nave con auto». Stessi valori di static/css/grimaldi-scheda.css (.nu): passi numerati, card col
   pallino, bordo blu su bianco per la scelta, elenchi a righe, riepilogo senza riquadro. */
.hd-trip-modal--volo[data-hd-trip-section="city"] .hd-trip-modal__intro { display: none !important; }
.htp-direct > .hd-trip-program > .hd-trip-option { display: none; }
.htp-direct > .hd-trip-program > .hd-trip-program__panel { border: 0; padding: 0; margin: 0; background: transparent; }
.htp-nave { --htp-navy: var(--primary, #1e3c72); --htp-navy2: var(--secondary, #2a5298); --htp-line: #e8ecf1;
  --htp-muted: #6b727c; --htp-text: #374151; display: grid; gap: 6px; }
.htp-step { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 16px 0 8px; }
.htp-step__title { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase; color: var(--htp-navy); }
.htp-step__n { width: 24px; height: 24px; border-radius: 50%; background: var(--htp-navy); color: #fff;
  display: inline-grid; place-items: center; font-size: 14px; letter-spacing: 0; }
.htp-step__side { font-size: 15px; font-weight: 600; color: var(--htp-text); }
.htp-ports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.htp-nave .htp-card { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 2px 14px; align-items: center;
  padding: 12px 14px; margin: 0 0 8px; border: 2px solid var(--htp-line); border-radius: 12px; background: #fff; cursor: pointer;
  transition: border-color .15s; }
.htp-nave .htp-card:hover { border-color: var(--htp-navy2); }
.htp-nave .htp-card.is-selected { border-color: var(--htp-navy); background: #fff; }
.htp-nave .htp-card.is-disabled { opacity: .5; cursor: not-allowed; }
/* L'anello solo per chi usa la tastiera: al clic faceva un secondo bordo intorno alla card scelta (owner 29/11/2026:
   «quando clicco un volo guarda il bordo»). */
.htp-nave .htp-card:has(:focus-visible) { outline: 3px solid var(--htp-navy2); outline-offset: 2px; }
.htp-card__radio { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 50%;
  border: 2px solid #b7bfca; background: #fff; }
.htp-card__radio:checked { border-color: var(--htp-navy); background: radial-gradient(var(--htp-navy) 0 45%, #fff 50%); }
.htp-card__body { display: grid; gap: 2px; min-width: 0; }
.htp-card__title { font-size: 17px; font-weight: 800; color: var(--htp-navy); font-variant-numeric: tabular-nums; }
.htp-card__detail { font-size: 15px; color: var(--htp-text); overflow-wrap: anywhere; }
.htp-nave .htp-card__price { font-size: 18px; font-weight: 800; color: var(--htp-navy); white-space: nowrap; text-align: right; }
.htp-ports .htp-card { margin: 0; }
.htp-ports .htp-card.is-selected { grid-column: 1 / -1; }
.htp-ports .htp-card:not(.is-selected) { padding: 8px 12px; border-width: 1px; border-radius: 10px; }
.htp-ports .htp-card:not(.is-selected) .htp-card__title { font-size: 15px; font-weight: 700; color: var(--htp-text); }
.htp-ports .htp-card:not(.is-selected) .htp-card__detail { font-size: 14px; color: var(--htp-muted); }
.htp-ports .htp-card:not(.is-selected) .htp-card__radio { width: 16px; height: 16px; }
.htp-nave .htp-stack { display: grid; grid-template-columns: 1fr; gap: 0; }
.htp-nave .hd-trip-program__fare-bags { margin-top: 10px; }
/* Owner 28/11/2026 17:57 «il carattere questa parte» (passo 4, i bagagli): nomi, misure e prezzo grandi come i voli
   qui sopra; − 0 + comodo da toccare. Lo stesso per il riquadro «Bagaglio incluso nella tariffa». */
.htp-nave .hd-trip-program__fare-bags { padding: 14px 16px; gap: 6px; }
.htp-nave .hd-trip-program__fare-bags-title { font-size: 16px; }
.htp-nave .hd-trip-program__fare-bag { font-size: 15px; color: #374151; }
.htp-nave .hd-trip-program__bags { gap: 0; border-top: 0; padding-top: 0; }
.htp-nave .hd-trip-program__bags .hd-trip-program__wait { font-size: 16px; line-height: 1.45; color: #374151; margin-bottom: 6px; }
.htp-nave .hd-trip-program__bag { padding: 14px 0; gap: 16px; border-bottom: 1px solid var(--htp-line); }
.htp-nave .hd-trip-program__bag-text strong { font-size: 18px; font-weight: 700; color: var(--htp-navy); }
.htp-nave .hd-trip-program__bag-text .hd-trip-program__bag-desc { font-size: 15px; color: #374151; margin: 3px 0 4px; }
.htp-nave .hd-trip-program__bag-text small { font-size: 15px; font-weight: 600; color: var(--htp-navy); }
.htp-nave .hd-trip-program__stepper { border-color: #cfd6e0; }
.htp-nave .hd-trip-program__stepper button { width: 46px; height: 44px; font-size: 22px; }
.htp-nave .hd-trip-program__stepper b { min-width: 40px; font-size: 18px; color: var(--htp-navy); }
.htp-included__row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px;
  border-top: 1px solid var(--htp-line); border-bottom: 1px solid var(--htp-line); font-size: 15px; color: var(--htp-text); }
.htp-included__tag { color: var(--htp-muted); white-space: nowrap; }
.htp-nave .hd-trip-program__totals { margin-top: 18px; padding-top: 4px; border-top: 2px solid var(--htp-line); }
.htp-nave .hd-trip-program__line--total { border: 0; background: transparent; padding: 11px 0 0; }
.htp-nave .hd-trip-program__total-label { font-size: 18px; font-weight: 800; color: var(--htp-navy); }
.htp-nave .hd-trip-program__total-label small { display: block; font-size: 14px; font-weight: 500; color: var(--htp-muted); }
.htp-nave .hd-trip-program__total-amount { font-size: 20px; color: var(--htp-navy); }
@media (max-width: 640px) {
  .htp-ports { grid-template-columns: 1fr; }
  .htp-nave .hd-trip-program__bags .hd-trip-program__wait { font-size: 15px; }
  .htp-nave .hd-trip-program__bag-text strong { font-size: 17px; }
  .htp-nave .hd-trip-program__bag-text .hd-trip-program__bag-desc,
  .htp-nave .hd-trip-program__bag-text small { font-size: 14px; }
  .htp-nave .hd-trip-program__fare-bags-title { font-size: 15px; }
  .htp-nave .hd-trip-program__fare-bag { font-size: 14px; }
  .htp-nave .hd-trip-program__stepper button { width: 42px; height: 40px; }
  .htp-nave .hd-trip-program__stepper b { min-width: 34px; }
  .htp-nave .htp-card { grid-template-columns: 18px minmax(0, 1fr); }
  .htp-nave .htp-card__price { grid-column: 2; text-align: left; font-size: 16px; }
  .htp-step__side { font-size: 13px; font-weight: 500; }   /* come il giorno accanto al passo nella nave */
}

/* Owner 28/11/2026 «voglio il carattere più leggibile»: la prima schermata della finestra «Volo + transfer» (la
   domanda e la casella della città) con i caratteri della nave. La classe la mette il template solo dove c'è la
   riga «Volo + transfer» del modulo. Gli !important battono quelli di scheda-v2.css sulla stessa riga. */
.hd-trip-panel--volo .hd-trip-panel__included,
html.scheda-v2 .hd-trip-panel--volo .hd-trip-panel__included { font-size: 17px !important; font-weight: 600 !important;
  color: #374151 !important; line-height: 1.4; white-space: normal; margin-bottom: 20px; }
.hd-trip-panel--volo .hd-trip-panel__included i { font-size: 19px; }
/* Owner 28/11/2026 16:38 «ingrandire anche i caratteri dove si mette la città, la grafica più grande»: la domanda è
   un titolo, la casella è alta e col segnaposto della mappa, i suggerimenti sono righe grandi. */
.hd-trip-panel--volo > .hd-trip-panel__intro { font-size: 22px; font-weight: 800; color: var(--primary, #1e3c72);
  line-height: 1.25; margin-bottom: 12px; }
.hd-trip-panel--volo .hd-trip-city-search input { height: 66px; font-size: 22px; font-weight: 700; color: var(--primary, #1e3c72);
  padding: 0 20px 0 58px; border: 2px solid #cfd6e0; border-radius: 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e3c72'%3E%3Cpath d='M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10m0-7a3 3 0 1 1 0-6 3 3 0 0 1 0 6'/%3E%3C/svg%3E") no-repeat 20px center / 24px 24px; }
.hd-trip-panel--volo .hd-trip-city-search input::placeholder { color: #6b727c; font-weight: 500; opacity: 1; }
.hd-trip-panel--volo .hd-trip-city-search input:focus { border-color: var(--primary, #1e3c72); box-shadow: 0 0 0 4px rgba(30, 60, 114, .12); }
.hd-trip-panel--volo .hd-trip-city-results { border-radius: 14px; margin-top: 6px; }
.hd-trip-panel--volo .hd-trip-city-result { font-size: 18px; font-weight: 600; color: var(--primary, #1e3c72); padding: 14px 18px; }
.hd-trip-panel--volo .hd-trip-city-result i { font-size: 18px; margin-right: 6px; }
/* Owner 28/11/2026 17:58 (cercando «bari»: «correggiamo anche quando c'è… sempre stili… ridurre un po' i caratteri»):
   la tendina delle città vicine con i colori della finestra, senza arancione, e una misura in meno. */
.hd-trip-panel--volo .hd-trip-city-result--header { font-size: 16px; font-weight: 600; color: #374151; background: #f4f6fa;
  padding: 13px 18px; border-bottom: 1px solid #e8ecf1; }
.hd-trip-panel--volo .hd-trip-city-result--header strong { color: var(--primary, #1e3c72); }
.hd-trip-panel--volo .hd-trip-city-result--header i { font-size: 16px; }
.hd-trip-panel--volo .hd-trip-city-result--nearby { border-left: 0; }
.hd-trip-panel--volo .hd-trip-city-result__dist { font-size: 14px; font-weight: 500; color: #6b727c; margin-left: 8px; }
.hd-trip-panel--volo .hd-trip-city-result--empty { font-size: 16px; font-weight: 500; color: #374151; text-align: left; }
.hd-trip-panel--volo .hd-trip-panel__intro--note { font-size: 17px; color: #1f2937; }
@media (max-width: 640px) {
  /* Owner 28/11/2026 16:46 «da mobile è troppo grande»: al telefono una misura più contenuta. Il testo della casella
     al telefono è a 16 px per regola di tutto il sito (hotel-detail.css: sotto i 16 l'iPhone ingrandisce la pagina). */
  .hd-trip-panel--volo .hd-trip-panel__included,
  html.scheda-v2 .hd-trip-panel--volo .hd-trip-panel__included { font-size: 15px !important; margin-bottom: 14px; }
  .hd-trip-panel--volo .hd-trip-panel__included i { font-size: 17px; }
  .hd-trip-panel--volo > .hd-trip-panel__intro { font-size: 18px; margin-bottom: 8px; }
  .hd-trip-panel--volo .hd-trip-city-search input { height: 52px; font-size: 16px; font-weight: 600; padding: 0 14px 0 44px;
    border-radius: 12px; background-position: 14px center; background-size: 20px 20px; }
  .hd-trip-panel--volo .hd-trip-city-result { font-size: 16px; font-weight: 600; padding: 12px 14px; }
  .hd-trip-panel--volo .hd-trip-city-result i { font-size: 16px; }
  .hd-trip-panel--volo .hd-trip-city-result--header { font-size: 15px; padding: 12px 14px; }
  .hd-trip-panel--volo .hd-trip-city-result__dist { font-size: 13px; }
}

/* Owner 28/11/2026 17:00: mentre si cercano i voli il riquadro è già aperto sotto la città (parte «volo_veste_nave»). */
.htp-wait { display: flex; align-items: center; gap: 12px; padding: 18px 2px; font-size: 18px; font-weight: 700; color: var(--primary, #1e3c72); }
.htp-wait::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #dfe4ea;
  border-top-color: var(--primary, #1e3c72); animation: htp-spin .8s linear infinite; }
@keyframes htp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .htp-wait::before { animation: none; } }
@media (max-width: 640px) { .htp-wait { font-size: 16px; padding: 14px 2px; } }

/* Giro al telefono del 29/11/2026 sulla finestra del volo (owner): loghi delle compagnie, tratta coi codici, andata e
   ritorno su un unico biglietto in una card compatta, solo i due più economici e gli altri dietro «Altri orari»,
   il totale sempre in vista sopra «Conferma trasporto», niente frase «Volo andata e ritorno e transfer privato…». */
.hd-trip-panel--volo .hd-trip-panel__included,
html.scheda-v2 .hd-trip-panel--volo .hd-trip-panel__included { display: none !important; }
/* Volo da solo (owner 01/12/2026: «l'aggiungi volo, dicendolo senza transfer»): qui la frase resta, è il punto in
   cui la prima schermata dice che il transfer non è compreso. */
.hd-trip-panel--volo.hd-trip-panel--solo .hd-trip-panel__included,
html.scheda-v2 .hd-trip-panel--volo.hd-trip-panel--solo .hd-trip-panel__included { display: flex !important;
  align-items: flex-start; }
.hd-trip-panel--volo.hd-trip-panel--solo .hd-trip-panel__included i { margin-top: 2px; }
/* Owner 01/12/2026 12:42: «non include il trasferimento, puoi prenotarlo dopo… mettiamolo un po' più piccolo». La frase
   del volo da solo è una riga piccola e grigia, sulla scheda OTA e su quelle degli altri fornitori. */
.hd-trip-panel--solo .hd-trip-panel__included,
html.scheda-v2 .hd-trip-panel--solo .hd-trip-panel__included,
html.scheda-v2 .hd-trip-panel--volo.hd-trip-panel--solo .hd-trip-panel__included { font-size: 14px !important;
  font-weight: 500 !important; color: #6b727c !important; line-height: 1.4; white-space: normal; max-width: 100%;
  margin-bottom: 14px; }
.hd-trip-panel--solo .hd-trip-panel__included i,
.hd-trip-panel--volo.hd-trip-panel--solo .hd-trip-panel__included i { font-size: 14px; margin-top: 3px; }
@media (max-width: 640px) {
  .hd-trip-panel--solo .hd-trip-panel__included,
  html.scheda-v2 .hd-trip-panel--solo .hd-trip-panel__included,
  html.scheda-v2 .hd-trip-panel--volo.hd-trip-panel--solo .hd-trip-panel__included { font-size: 13px !important;
    margin-bottom: 12px; }
  .hd-trip-panel--solo .hd-trip-panel__included i,
  .hd-trip-panel--volo.hd-trip-panel--solo .hd-trip-panel__included i { font-size: 13px; }
}
.htp-card__side { display: grid; justify-items: center; align-content: center; gap: 8px; width: 34px; }
.htp-card__logo { width: 32px; height: 22px; object-fit: contain; }
.htp-nave .htp-card:has(.htp-card__side) { grid-template-columns: 34px minmax(0, 1fr) auto; }
/* Andata e ritorno venduti insieme, come una carta d'imbarco (owner 29/11/2026 09:15): prezzo in alto a destra accanto
   alla compagnia, poi per ogni tratta il giorno, gli orari grandi ai due capi con l'aeroporto sotto e la linea in mezzo. */
.htp-nave .htp-card--pair { align-items: start; }
.htp-nave .htp-card--pair .htp-card__side { align-self: center; }
.htp-nave .htp-card--pair .htp-card__body { grid-column: 2 / 4; grid-row: 1; gap: 0; }
.htp-nave .htp-card--pair .htp-card__title { padding-right: 84px; font-size: 17px; }
.htp-nave .htp-card--pair .htp-card__price { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; font-size: 18px; text-align: right; }
.htp-pass { display: grid; gap: 3px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed #d5dbe6; }
.htp-pass__tag { font-size: 12.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--htp-muted); }
.htp-pass__line { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto; align-items: center; gap: 10px; }
.htp-pass__end { display: grid; line-height: 1.15; }
.htp-pass__end b { font-size: 20px; font-weight: 800; color: var(--htp-navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.htp-pass__end b sup { margin-left: 2px; font-size: 11px; font-weight: 700; color: #c2410c; }
.htp-pass__end i { font-style: normal; font-size: 13px; color: var(--htp-muted); }
.htp-pass__end--r { text-align: right; }
.htp-pass__track { position: relative; display: grid; justify-items: center; min-height: 18px; }
.htp-pass__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid #cfd6e4; }
.htp-pass__track em { position: relative; padding: 0 7px; background: #fff; font-style: normal; font-size: 12px; color: var(--htp-muted); }
.htp-sub { display: grid; gap: 2px; margin: 4px 0 10px; }
.htp-sub strong { font-size: 16px; font-weight: 800; color: var(--htp-navy); }
.htp-more { display: grid; gap: 0; }
.htp-more__toggle { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 8px; padding: 6px 0; border: 0;
  background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--htp-navy2); cursor: pointer; }
.htp-more__toggle::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); }
.htp-more__toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.htp-more__list[hidden] { display: none; }
/* Il totale sempre in vista: una riga sopra i due tasti, che restano in fondo alla finestra. Solo nella finestra del volo. */
.hd-trip-modal .hd-trip-actions:has(.htp-running) { flex-wrap: wrap; }
.htp-running { flex: 0 0 100%; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px 10px; }
/* La riga parla per una sola finestra (`data-for`): si vede lì e non nelle altre né nel riepilogo. Vale anche per la
   «Nave con auto» dello stesso modulo (owner 29/11/2026: «il riepilogo totale nel popup mettiamolo anche sulla nave»). */
.hd-trip-modal[data-hd-trip-section="city"] .htp-running[data-for="city"],
.hd-trip-modal[data-hd-trip-section="grimaldi"] .htp-running[data-for="grimaldi"] { display: flex; }
.htp-running__label { display: grid; font-size: 15px; font-weight: 800; color: var(--primary, #1e3c72); line-height: 1.25; }
.htp-running__label small { font-size: 13px; font-weight: 500; color: #6b727c; }
.htp-running__amount { font-size: 22px; font-weight: 800; color: var(--primary, #1e3c72); white-space: nowrap; }
/* …e la riga «Per 2 persone × A/R: +€… al totale soggiorno» sotto il totale non serve più: lo diceva due volte. */
.hd-trip-modal[data-hd-trip-section="city"]:has(.htp-running[data-for="city"]) #hdTripFooter,
.hd-trip-modal[data-hd-trip-section="grimaldi"]:has(.htp-running[data-for="grimaldi"]) #hdTripFooter { display: none !important; }
@media (max-width: 640px) {
  .htp-running__amount { font-size: 20px; }
}

/* La finestra del volo sulla scheda, correzioni dell'owner del 29/11/2026 14:37.
   «Il box qui è ancora troppo grande»: domanda e casella della città hanno una misura in meno (casella 52 px e testo
   a 18 al posto di 66 e 22). La finestra resta alta come sempre anche vuota (owner 14:44, vista bassa quanto il
   contenuto: «alziamola all'altezza del popup normale, così è brutta»).
   «Milano Malpensa e Linate devono essere entrambi su tutta la riga e stessa importanza»: con la parte
   `aeroporti_alla_pari` gli aeroporti sono card uguali, una sotto l'altra; scelto uno, gli altri vanno sotto
   «Altri aeroporti». Solo sotto #hdTripModal: il popup del preventivo ha le sue misure (quote-trip-programs.css). */
#hdTripModal .hd-trip-panel--volo > .hd-trip-panel__intro { font-size: 20px; margin-bottom: 10px; }
#hdTripModal .hd-trip-panel--volo .hd-trip-city-search input { height: 52px; font-size: 18px; font-weight: 600; padding: 0 16px 0 48px;
  border-radius: 12px; background-position: 16px center; background-size: 20px 20px; }
#hdTripModal .hd-trip-panel--volo .hd-trip-city-result { font-size: 17px; padding: 12px 16px; }
#hdTripModal .htp-ports--pari { grid-template-columns: minmax(0, 1fr); }
#hdTripModal .htp-ports--pari .htp-card,
#hdTripModal .htp-ports--pari .htp-card:not(.is-selected) { grid-column: 1 / -1; padding: 12px 14px; border-width: 2px; border-radius: 12px; }
#hdTripModal .htp-ports--pari .htp-card:not(.is-selected) .htp-card__title { font-size: 17px; font-weight: 800; color: var(--htp-navy); }
#hdTripModal .htp-ports--pari .htp-card:not(.is-selected) .htp-card__detail { font-size: 15px; color: var(--htp-text); }
#hdTripModal .htp-ports--pari .htp-card:not(.is-selected) .htp-card__radio { width: 18px; height: 18px; }
#hdTripModal .htp-more--ports { margin-top: 2px; }
#hdTripModal .htp-more--ports .htp-more__list { margin-bottom: 4px; }
@media (max-width: 640px) {
  #hdTripModal .hd-trip-panel--volo > .hd-trip-panel__intro { font-size: 18px; margin-bottom: 8px; }
  #hdTripModal .hd-trip-panel--volo .hd-trip-city-search input { height: 48px; font-size: 16px; padding: 0 14px 0 44px; background-position: 14px center; }
  #hdTripModal .hd-trip-panel--volo .hd-trip-city-result { font-size: 16px; padding: 12px 14px; }
}

/* Dopo una scelta dentro «Altri orari» la finestra torna sulla lista di quel volo (hotel-trip-program.js): un po' d'aria
   sopra il titolo della lista. */
.htp-nave .hd-trip-program__column, .htp-nave .hd-trip-program__pairs { scroll-margin-top: 14px; }
.hd-trip-program__totals[hidden] { display: none !important; }

/* I nomi degli aeroporti al posto delle sigle, dove c'è spazio: la scheda al computer (owner 29/11/2026 16:03: «versione
   desktop scriviamo il nome dell'aeroporto completo, togliamo le sigle»). Al telefono e nel popup del preventivo
   restano le sigle. */
.htp-place__long { display: none; }
@media (min-width: 768px) {
  #hdTripModal .htp-place__long { display: inline; }
  #hdTripModal .htp-place__short { display: none; }
}
/* Le andate e ritorni venduti insieme dietro una riga, come «Altri orari» (owner 29/11/2026 16:03): dice di chi sono e
   da quanto; si apre al clic, ed è già aperta solo se il volo più economico è uno di loro. */
.htp-others { margin-top: 14px; }
.htp-others__toggle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border: 2px dashed var(--htp-line); border-radius: 12px; background: #f8fafc; color: inherit; text-align: left; cursor: pointer; }
.htp-others__toggle:hover { border-color: var(--htp-navy2); }
.htp-others__logos { display: inline-flex; align-items: center; gap: 6px; }
.htp-others__words { display: grid; gap: 1px; min-width: 0; }
.htp-others__words strong { font-size: 16px; font-weight: 800; color: var(--htp-navy); }
.htp-others__words small { font-size: 14px; color: var(--htp-muted); }
.htp-others__price { font-size: 16px; font-weight: 800; color: var(--htp-navy); white-space: nowrap; }
.htp-others__arrow { width: 9px; height: 9px; margin: 0 4px 4px; border-right: 2px solid var(--htp-navy2); border-bottom: 2px solid var(--htp-navy2); transform: rotate(45deg); transition: transform .15s; }
.htp-others__toggle[aria-expanded="true"] { border-style: solid; background: #fff; }
.htp-others__toggle[aria-expanded="true"] .htp-others__arrow { transform: rotate(-135deg); margin: 4px 4px 0; }
.htp-others > .hd-trip-program__pairs { margin-top: 10px; }
.htp-others > .hd-trip-program__pairs[hidden] { display: none; }
@media (max-width: 640px) {
  .htp-others__toggle { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; }
  .htp-others__price { grid-column: 2; grid-row: 2; font-size: 15px; }
  .htp-others__arrow { grid-column: 3; grid-row: 1 / span 2; }
  .htp-others__words strong { font-size: 15px; }
}
