/* ============================================================
   /viaggi/<slug> — scheda pacchetto in layout hotel detail
   (spec 2026-08-01-viaggi-detail-stile-hotel-design.md).
   Palette hotel detail: fondo chiaro, card bianche arrotondate,
   blu --primary per i totali, CTA verde, accento --accent sulle
   selezioni. Standalone: NON richiede viaggi-landing.css.
   Prefisso: .vd-.
   ============================================================ */

.vd-page { background: var(--light-bg, #f8f9fa); padding: 1.25rem 0 4rem; }
/* Parita' con la scheda hotel: su HoEscape --light-bg e' il verdino brand
   #f6faef e la skin forza il body hotel a bianco (hoescape.css:497) —
   stessa cosa qui. */
[data-skin="hoe"] .vd-page { background: #fff; }
.vd-container { max-width: 1400px; }
.vd-page .vd-text { color: #444; line-height: 1.65; margin: 0; }

/* Testo lungo scritto da noi: markdown reso (grassetti, elenchi, titoletti).
   Il primo e l'ultimo blocco non staccano dai bordi della card, e i
   titoletti restano sotto l'h2 della sezione — non ne diventano gemelli. */
.vd-page .vd-rich > :first-child { margin-top: 0; }
.vd-page .vd-rich > :last-child { margin-bottom: 0; }
.vd-page .vd-rich p { margin: 0 0 .75rem; }
.vd-page .vd-rich ul,
.vd-page .vd-rich ol { margin: 0 0 .75rem; padding-left: 1.35rem; }
.vd-page .vd-rich li { margin-bottom: .25rem; }
.vd-page .vd-rich h1,
.vd-page .vd-rich h2,
.vd-page .vd-rich h3,
.vd-page .vd-rich h4 { font-size: 1.05rem; font-weight: 700; color: #1a1a1a;
    margin: 1.1rem 0 .45rem; }
.vd-page .vd-rich strong { color: #1a1a1a; }
.vd-page .vd-rich a { color: var(--primary, #1e3c72); }
.vd-page .vd-rich table { width: 100%; margin: 0 0 .75rem; font-size: .92rem; }
.vd-page .vd-rich th,
.vd-page .vd-rich td { border: 1px solid #e6e6e6; padding: .35rem .5rem; text-align: left; }

/* ---------- header ---------- */
.vd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.vd-stars { color: var(--accent, #f5a623); font-size: .9rem; display: inline-flex; gap: 2px; margin-right: .15rem; }
.vd-name { font-size: 1.9rem; font-weight: 800; color: #1a1a1a; margin: 0 0 .25rem; }
.vd-place { color: #555; font-size: .95rem; display: flex; align-items: center; gap: .4rem; }
.vd-place .bi { color: var(--primary, #1e3c72); }
.vd-ptype { flex: 0 0 auto; background: var(--primary, #1e3c72); color: #fff; font-size: .75rem;
    font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .45rem .8rem;
    border-radius: 999px; white-space: nowrap; }
@media (max-width: 575px) { .vd-name { font-size: 1.4rem; } .vd-ptype { font-size: .65rem; } }

/* «Partendo il … spendi X in meno»: confronto tra due partenze vere di
   questa struttura. Tono informativo, non promozionale — non è un'offerta
   e non deve sembrarlo. */
.vd-bestdate { margin: .6rem 0 0; padding: .55rem .8rem; border-radius: 10px;
    background: #f4f7fb; color: #33465e; font-size: .92rem; line-height: 1.45;
    display: flex; align-items: flex-start; gap: .5rem; }
.vd-bestdate .bi { color: var(--primary, #1e3c72); margin-top: .1rem; }
.vd-bestdate strong { color: #1e3c72; }

/* ---------- mosaico foto ----------
   Parità con la scheda hotel nativa (.hd-hero-mosaic__grid): su desktop il
   mosaico vive DENTRO lo stesso .vd-container dell'header (stessi margini
   del titolo, angoli arrotondati, altezza fissa 440px come la nativa),
   invece del full-bleed edge-to-edge di prima. Su mobile resta full-bleed
   (comportamento invariato, ora ottenuto con un breakout dal container
   invece che con un modifier applicato anche al desktop). */
.vd-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 218px 218px;
    gap: 4px; border-radius: 14px; overflow: hidden; margin-bottom: 1.25rem; position: relative; }
.vd-mosaic-cell { position: relative; border: 0; padding: 0; cursor: pointer; background: #e9ecef; overflow: hidden; }
.vd-mosaic-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.vd-mosaic-cell:hover img { transform: scale(1.04); }
.vd-mosaic-cell--1 { grid-row: span 2; }
.vd-mosaic--count-1 { grid-template-columns: 1fr; grid-template-rows: 440px; }
.vd-mosaic--count-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 440px; }
.vd-mosaic--count-3 { grid-template-columns: 2fr 1fr; }
.vd-mosaic--count-4 { grid-template-columns: 2fr 1fr; grid-template-rows: 144px 144px 144px; }
.vd-mosaic--count-4 .vd-mosaic-cell--1 { grid-row: span 3; }
.vd-mosaic-more { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center;
    gap: .4rem; background: rgba(255, 255, 255, .95); color: #1a1a1a; border-radius: 8px;
    padding: .45rem .75rem; font-weight: 600; font-size: .85rem; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
@media (max-width: 767px) {
    /* breakout full-bleed dal .vd-container (indipendente dal gutter del
       container, non serve azzerare il padding del contenitore condiviso
       con l'header). */
    .vd-mosaic { grid-template-columns: 1fr !important; grid-template-rows: 320px !important;
        border-radius: 0 !important; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
    .vd-mosaic-cell:not(.vd-mosaic-cell--1) { display: none; }
}
.vd-mosaic-count { display: none; }
@media (max-width: 767px) {
    .vd-mosaic-count { display: inline-flex; align-items: center; gap: .35rem; position: absolute;
        top: 12px; right: 12px; z-index: 2; border: 0; background: rgba(15, 23, 42, .72); color: #fff;
        border-radius: 999px; padding: .35rem .7rem; font-size: .8rem; font-weight: 700; }
    .vd-mosaic { position: relative; }
    .vd-mosaic-more { display: none; }
}

/* ---------- gallery condivisa ---------- */
/* La gallery condivisa ha «Salva» (wishlist hotel): sui viaggi è inerte
   → nascosto. */
.vd-page .gallery-lb__save, .vd-page .gallery-lb__heart { display: none !important; }

/* Blocco pagamento/info sotto il totale (stile «Alla conferma versi» nativo) */
/* Blocco pagamento = chip «--at-hotel» nativa: separatore sopra, toni ink */
.vd-paybox { display: flex; flex-direction: column; gap: .35rem;
    border-top: 1px solid #ececf2; padding-top: 10px; }
.vd-paybox[hidden] { display: none; }
.vd-paybox-row { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem;
    background: #fbf4e4; border-radius: 8px; padding: .5rem .7rem;
    font-weight: 600; color: var(--ink2, #4a4a4a); font-size: 13px; }
.vd-paybox-row strong { color: var(--price-amber, #e08b1a); font-size: 1rem; font-weight: 700; }
.vd-paybox-pct { color: #8a7a55; font-weight: 600; font-size: 11.5px; }
.vd-paybox-note { color: var(--ink3, #8a8a8a); font-size: 11.5px; line-height: 1.35; }

/* Rate Scalapay (owner 09/08): sotto la riga del versamento, tono
   discorsivo — è una possibilità, non una condizione. L'importo in ambra
   come ogni cifra che si paga; il brand nel suo viola. */
.vd-paybox-rate { display: flex; gap: .45rem; align-items: baseline;
    padding: 0 .7rem; color: var(--ink2, #4a4a4a); font-size: 12px;
    line-height: 1.35; }
.vd-paybox-rate[hidden] { display: none; }
.vd-paybox-rate .bi { color: #5b4bc4; font-size: 12px; }
.vd-paybox-rate strong { color: var(--price-amber, #e08b1a); font-weight: 700; }
.vd-paybox-rate-brand { font-weight: 700; color: #5b4bc4; }

/* «Torna ai risultati» — pill glass sull'hero (= .back-to-results hotel) */
.vd-back-results { position: absolute; left: 14px; bottom: 14px; z-index: 3;
    display: inline-flex; align-items: center; gap: .4rem; color: #fff;
    font-size: .9rem; font-weight: 600; background: rgba(0, 0, 0, .65);
    padding: 8px 16px; border-radius: 20px; text-decoration: none;
    transition: background .2s; }
.vd-back-results:hover { color: #fff; background: rgba(0, 0, 0, .75); }
.vd-back-results[hidden] { display: none; }

/* ---------- popup selezione («Modifica selezione») ---------- */
/* Owner 27/08: su mobile «Conferma selezione» «spesso scompare sotto».
   Bootstrap dà al `.modal` fixed un `height: 100%`, cioè il LAYOUT
   viewport — che su mobile è più alto di ciò che si vede (Chrome Android
   lo tiene alla misura grande, con la barra URL nascosta, e restringe
   solo il viewport visuale). Misurato a 390x844: il footer stava
   754→835, appoggiato al bordo, quindi sotto la barra del browser
   spariva tutto. E non si recuperava scrollando: `.modal-content` è
   `overflow:hidden`, il body è bloccato da `.modal-open` e l'unico
   elemento che scorre è `.modal-body`, che il footer non lo contiene.
   Da qui lo «spesso»: dipendeva solo da se la barra era estesa.

   28/08, iPhone dell'utente finale (Safari recente): col primo fix il
   tasto appariva A INTERMITTENZA, e METTENDO SAFARI IN BACKGROUND E
   RIAPRENDOLO ricompariva. Quella è l'impronta di un layout calcolato
   una volta e rimasto vecchio: il rientro in primo piano forza il
   ricalcolo. `dvh` è un'unità DINAMICA — il suo valore cambia quando la
   barra di Safari si ritrae — e iOS non la rivaluta con continuità: se
   il modale si apre mentre il numero è quello vecchio, resta sbagliato.
   La formula era giusta, il MOMENTO della valutazione no.
   `svh` è la stessa misura ma COSTANTE (schermo con tutte le barre
   mostrate): non dipende da nessun ricalcolo, quindi non può essere
   intermittente. Costa qualche pixel di lista quando la barra è
   ritratta; in cambio il tasto che conclude è raggiungibile SEMPRE —
   scambio ovvio per un «Conferma».
   NIENTE fallback `100vh` davanti: su iOS `100vh` è la misura GRANDE e
   peggiorerebbe rispetto al 100% di Bootstrap; senza fallback un browser
   che non conosce `svh` (pre Safari 15.4 / Chrome 108) resta al
   comportamento di prima.
   Stessa diagnosi già pagata sul foglio ospiti della ricerca
   (static/css/hoescape.css, «pushed below the fold and disappears»).
   Gate: tests/unit/test_viaggi_detail_modal_altezza_visibile.py */
#vdPanelModal { height: 100svh; }
.vd-panel-dialog { max-width: 640px; }
.vd-panel-title { font-size: 1.05rem; font-weight: 800; color: #1a1a1a; }
#vdPanel .vd-panel-card { box-shadow: none; padding: 0; }
.vd-panel-footer { border-top: 1px solid #edf0f5; }
.vd-panel-footer .vd-cta { width: 100%; }
/* Owner 19/08: la riga che spiega perché «Conferma selezione» non ha
   chiuso. `width:100%` la mette SOPRA il tasto (il .modal-footer di
   Bootstrap è flex), e la regola [hidden] è d'obbligo: con un display
   d'autore l'attributo non nasconderebbe niente — gotcha già pagato con
   `.vd-dock-price[hidden]`. */
.vd-panel-miss { display: block; width: 100%; margin: 0 0 .6rem; padding: .55rem .75rem;
    border-radius: 10px; background: #fff5f5; border: 1px solid #f2d5d5;
    color: #a1302f; font-size: .85rem; line-height: 1.35; }
.vd-panel-miss[hidden] { display: none; }

/* ---------- card base ---------- */
.vd-card, .vd-side-card, .vd-bar, .vd-panel-card, .vd-form-card, .vd-flightinfo {
    background: #fff; border-radius: 16px; box-shadow: 0 1px 4px rgba(30, 60, 114, .08); }

/* ---------- barra selezione ---------- */
.vd-bar { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.1rem; margin-bottom: .75rem; }
.vd-bar-icon { color: var(--primary, #1e3c72); font-size: 1.1rem; display: flex; }
.vd-bar-summary { flex: 1; display: flex; flex-wrap: wrap; align-items: center; font-size: .95rem; color: #1a1a1a; }
.vd-bar-seg { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; padding: 0 .9rem; }
.vd-bar-seg:first-child { padding-left: 0; }
.vd-bar-seg + .vd-bar-seg { border-left: 1px solid #e3e8f0; }
.vd-bar-sub { color: #667; font-weight: 600; font-size: .85rem; }
.vd-bar-seg--seats { color: #c62828; font-weight: 700; }
.vd-bar-edit { border: 1.5px solid var(--primary, #1e3c72); color: var(--primary, #1e3c72);
    background: #fff; border-radius: 999px; padding: .45rem 1rem; font-weight: 600; font-size: .85rem;
    white-space: nowrap; transition: background .2s, color .2s; }
.vd-bar-edit:hover { background: var(--primary, #1e3c72); color: #fff; }
@media (max-width: 575px) { .vd-bar { flex-wrap: wrap; } .vd-bar-edit { width: 100%; } }


/* ---------- pannello selezione ---------- */
#vdPanel { margin-bottom: 1rem; }
.vd-panel-card { padding: 1.1rem 1.1rem 1.25rem; }
.vd-step-head { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 .6rem; }
.vd-step-head:first-child { margin-top: 0; }
.vd-step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--primary, #1e3c72);
    color: #fff; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.vd-step-label { font-weight: 700; color: #1a1a1a; }
.vd-step-head .bi { color: var(--primary, #1e3c72); font-size: 1.05rem; }
.vd-rooms-head { justify-content: flex-start; }
.vd-rooms-count { margin-left: auto; color: #667; font-size: .85rem; font-weight: 600; }
.vd-room-pill { display: inline-block; margin-left: .5rem; background: #e6f6e6; color: #2e7d32;
    font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .15rem .5rem; vertical-align: 1px; }
/* Trattamento: stesso pill, tinta ambra per distinguerlo dal volo. */
.vd-room-pill--board { background: #fdf1dc; color: #9a5b00; }
.vd-board-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.vd-board-title { font-weight: 700; color: #1a1a1a; font-size: .95rem; }
.vd-airport { border: 1.5px solid #dbe2ee; border-radius: 10px; padding: .45rem .7rem; font-weight: 600;
    color: #1a1a1a; background: #fff; max-width: 60%; }
.vd-dates[hidden] { display: none; }
.vd-date-row { display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; border: 1.5px solid #e3e8f0;
    border-radius: 12px; margin-bottom: .5rem; cursor: pointer; transition: border-color .15s, background .15s; }
.vd-date-row:hover { border-color: var(--primary, #1e3c72); }
.vd-date-row.is-picked { border-color: var(--price-amber, #e08b1a); background: #fdf8f0; }
.vd-date-radio { position: absolute; opacity: 0; pointer-events: none; }
.vd-date-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c6cfdd; flex: 0 0 auto;
    transition: border-color .15s, box-shadow .15s; }
.vd-date-row.is-picked .vd-date-dot { border-color: var(--price-amber, #e08b1a);
    box-shadow: inset 0 0 0 4px var(--price-amber, #e08b1a); }
.vd-date-main { flex: 1; display: flex; flex-direction: column; }
.vd-date-when { font-weight: 700; color: #1a1a1a; font-size: .92rem; }
.vd-date-sub { color: #667; font-size: .8rem; }
.vd-date-right { display: flex; flex-direction: column; align-items: flex-end; }
.vd-date-price { font-weight: 800; color: var(--price-amber, #e08b1a); }
.vd-date-seats { color: #c62828; font-size: .75rem; font-weight: 700; }
.vd-date-list, .vd-room-list { color: #8a8f98; font-weight: 500; font-size: .85em; margin-right: .3rem; }
.vd-promo-badge { display: inline-block; margin-left: .35rem; padding: .1rem .45rem; border-radius: 999px; background: #fff3e0; color: #b45309; font-size: .68rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; vertical-align: middle; }
.vd-board-note { color: #778; font-size: .8rem; margin-top: .25rem; }

/* pax + età */
.vd-pax { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.vd-pax-col { display: flex; flex-direction: column; gap: .4rem; }
.vd-pax-label { color: #556; font-size: .85rem; font-weight: 600; }
.vd-stepper { display: flex; align-items: center; gap: .6rem; }
.vd-step-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #dbe2ee; background: #fff;
    font-size: 1.15rem; font-weight: 700; color: var(--primary, #1e3c72); line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: border-color .15s, background .15s; }
.vd-step-btn:hover { border-color: var(--primary, #1e3c72); background: #f4f7fc; }
.vd-step-val { min-width: 24px; text-align: center; font-weight: 800; font-size: 1.05rem; }
.vd-ages { margin-top: .8rem; display: flex; flex-direction: column; gap: .4rem; }
.vd-ages-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.vd-ages-grid label { display: flex; flex-direction: column; gap: .2rem; }
.vd-age-caption { font-size: .75rem; color: #667; font-weight: 600; }
.vd-age-select { border: 1.5px solid #dbe2ee; border-radius: 8px; padding: .35rem .5rem; background: #fff; }
/* eta' non ancora dichiarata al momento della conferma (owner 03/09):
   il select resta a « - » e si segna in rosso. La classe la mette e la
   toglie viaggi-detail.js (`markMissingAgeSelects`), niente `style`
   inline. Stesso rosso di `.vl-age-select--error` sulle liste
   (`--vl-alarm`, #e4572e): quel token non arriva fin qui, quindi il valore
   e' scritto — se cambia di la', cambia anche qui. */
.vd-age-select--error { border-color: #e4572e; box-shadow: 0 0 0 3px rgba(228, 87, 46, .16); }
.vd-ages-note { color: #778; font-size: .78rem; }

/* ---------- due colonne ---------- */
/* 400px = larghezza della colonna prenotazione nativa (col-lg-4) */
.vd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.25rem; align-items: start; }
.vd-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.vd-main--solo { max-width: 760px; }
.vd-side { position: sticky; top: 1rem; }
@media (max-width: 991px) {
    .vd-cols { grid-template-columns: 1fr; }
    .vd-side { display: none; }
}

/* ---------- camere ---------- */
.vd-rooms-card { padding: 1.1rem; }
.vd-rooms { display: flex; flex-direction: column; gap: .5rem; }
.vd-room { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.15rem; border: 2px solid #e9ecef;
    border-radius: 12px; cursor: pointer; transition: all .2s; }
.vd-room:hover { border-color: var(--primary, #1e3c72); background: #f8f9fa; }
.vd-room.is-picked { border-color: var(--price-amber, #e08b1a); background: #fdf8f0;
    box-shadow: 0 0 0 1px var(--price-amber, #e08b1a); }
.vd-room--empty { cursor: default; border-style: dashed; color: #556; }
.vd-room-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c6cfdd; flex: 0 0 auto;
    transition: border-color .15s, box-shadow .15s; }
.vd-room.is-picked .vd-room-dot { border-color: var(--price-amber, #e08b1a);
    box-shadow: inset 0 0 0 4px var(--price-amber, #e08b1a); }
.vd-room-main { flex: 1; display: flex; flex-direction: column; }
.vd-room-name { font-weight: 700; color: #1a1a1a; font-size: .95rem; }
.vd-room-sub { color: #667; font-size: .8rem; }
/* Il nome camera del fornitore sta QUI sotto la composizione (owner
   19/08): non è più il titolo, ma resta l'identificativo che il cliente
   ritrova sul voucher e al check-in — quindi più marcato della nota
   grigia che occupava questo posto prima. */
.vd-room-sub--name { color: #333; font-weight: 500; }
/* «SISTEMAZIONE 2 ADULTI E 2 BAMBINI (8 E 10 ANNI)» (owner 19/08): il
   maiuscolo è di PRESENTAZIONE, non del dato — la stessa riga va in
   email, WhatsApp e PDF, dove urlerebbe. Qui allinea il titolo al nome
   camera, che dal fornitore arriva già tutto maiuscolo. */
.vd-room-name--who { text-transform: uppercase; letter-spacing: .01em; }
.vd-room-price { font-weight: 800; font-size: 1.5rem; color: var(--price-amber, #e08b1a); line-height: 1.1; white-space: nowrap; }
/* «a persona» accompagna la cifra, non compete con lei: stesso peso
   visivo dei sottotitoli della scheda (13px / --ink2, come
   .vd-total-sub). Con lo stile del prezzo — 24px arancione grassetto —
   la riga leggeva «DA €1.017 A PERSONA» tutta uguale e l'unità di
   misura rubava l'occhio alla cifra (owner 31/08/2026, schermata
   mobile).
   Va A CAPO e non in linea: su 414px la card è stretta — il nome camera
   si spezza già su tre righe — e «a persona» in linea finiva tagliato
   dal bordo. Due righe è anche il modo del dock (cifra sopra,
   «a persona · volo incluso» sotto). */
.vd-room-price-unit { display: block; text-align: right; font-size: 13px;
  font-weight: 600; color: var(--ink2, #4a4a4a); line-height: 1.3; }

/* ---------- comitiva in più camere (Fase B, 18/08) ----------
   Slot «Camera k — etichetta» con le sue card, e l'editor «Modifica la
   divisione» come COLLAPSE inline nella stessa card: nessun z-index, niente
   modale (gate test_viaggi_detail_modal_stacking_gate.py). */
.vd-pax-note { display: block; margin-top: .6rem; padding: .55rem .75rem; border-radius: 10px;
    background: #f4f7fc; color: #334; font-size: .82rem; line-height: 1.35; }
.vd-split-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    flex-wrap: wrap; padding: .15rem 0 .35rem; }
.vd-split-note { color: #556; font-size: .85rem; }
.vd-split-edit { border: 1.5px solid var(--primary, #1e3c72); color: var(--primary, #1e3c72);
    background: #fff; border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .82rem;
    white-space: nowrap; transition: background .2s, color .2s; }
.vd-split-edit:hover, .vd-split-edit[aria-expanded="true"] { background: var(--primary, #1e3c72); color: #fff; }
.vd-slot { display: flex; flex-direction: column; gap: .5rem; padding-top: .35rem; }
.vd-slot + .vd-slot { margin-top: .5rem; border-top: 1px dashed #e3e8f0; padding-top: .85rem; }
.vd-slot-head { display: flex; align-items: baseline; gap: .25rem; flex-wrap: wrap; }
.vd-slot-title { color: #1a1a1a; font-size: .95rem; }
.vd-split-editor { margin-top: .85rem; padding: 1rem 1.05rem; border: 1.5px solid #dbe2ee; border-radius: 12px;
    background: #fafbfd; display: flex; flex-direction: column; gap: .8rem; }
.vd-split-editor[hidden] { display: none; }
/* Nella modale (owner 18/08 sera): niente cornice doppia, il modal-content
   fa già da card. Nessun z-index qui: al default Bootstrap. */
.vd-split-editor--modal { margin-top: 0; padding: 0; border: 0; border-radius: 0; }
.vd-split-editor-head { display: flex; flex-direction: column; gap: .2rem; }
.vd-split-editor-hint { color: #667; font-size: .8rem; line-height: 1.35; }
.vd-split-room { padding: .75rem .85rem; border: 1.5px solid #e3e8f0; border-radius: 12px; background: #fff;
    display: flex; flex-direction: column; gap: .6rem; }
.vd-split-room-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.vd-split-room-label { color: #556; font-size: .85rem; flex: 1; }
.vd-split-remove { border: 0; background: none; color: #c62828; font-size: .82rem; font-weight: 600;
    padding: .2rem .4rem; border-radius: 6px; }
.vd-split-remove:hover { background: #fdecec; }
.vd-split-ages { margin-top: 0; }
.vd-step-btn:disabled { opacity: .4; cursor: default; }
.vd-step-btn:disabled:hover { border-color: #dbe2ee; background: #fff; }
.vd-split-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.vd-split-btn { border: 1.5px solid #dbe2ee; background: #fff; color: #1a1a1a; border-radius: 999px;
    padding: .45rem .95rem; font-weight: 600; font-size: .85rem; transition: border-color .15s, background .15s; }
.vd-split-btn:hover { border-color: var(--primary, #1e3c72); background: #f4f7fc; }
.vd-split-btn--add { color: var(--primary, #1e3c72); }
.vd-split-btn--auto { color: #556; }
.vd-split-btn--cancel { margin-left: auto; color: #556; }
.vd-split-btn--apply { border: 0; color: #fff; font-weight: 800; padding: .55rem 1.2rem;
    background: linear-gradient(135deg, var(--accent, #f5a623), var(--accent-hover, #e09000));
    box-shadow: 0 4px 14px rgba(245, 166, 35, .45); }
.vd-split-btn.vd-split-btn--apply:hover { background: linear-gradient(135deg, var(--accent, #f5a623), var(--accent-hover, #e09000));
    color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245, 166, 35, .55); }
.vd-split-total { margin: 0; color: #556; font-size: .82rem; }
/* Camera fuori tetto nella bozza: il perche' accanto al tasto spento */
.vd-split-warn { margin: .4rem 0 0; color: #b02a37; font-size: .82rem;
  font-weight: 600; }
.vd-split-btn--apply:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 575px) {
    .vd-split-head { flex-direction: column; align-items: flex-start; }
    .vd-split-btn--cancel { margin-left: 0; }
}

/* ---------- «cosa possiamo fare» (owner 18/08 sera) ----------
   La divisione CHIESTA (due doppie) non c'è su questa partenza: sotto gli
   slot, un blocco unico con l'alternativa che possiamo fare (prezzata) +
   «Usa questa divisione», i chip delle partenze in cui la divisione chiesta
   c'è, e «Chiedi all'ufficio». Mobile-first: bottoni pieni, chip in riga
   scorrevole orizzontale, mai overflow della pagina. Nessun z-index. */
.vd-nofit { display: flex; flex-direction: column; gap: .8rem; margin-top: .6rem; min-width: 0; max-width: 100%;
    padding: .95rem 1rem; border: 1.5px solid #f3dfa6; border-radius: 12px; background: #fffaf0; }
.vd-nofit-title { margin: 0; font-weight: 700; color: #1a1a1a; font-size: .95rem; line-height: 1.35; }
.vd-nofit-alt { display: flex; flex-direction: column; gap: .55rem; min-width: 0;
    padding: .8rem .9rem; border: 1.5px solid #e9dcc0; border-radius: 12px; background: #fff; }
/* Intitola il riquadro, non la card: sta nel giallo, sopra il bianco
   (mockup owner 19/08 — prima era un occhiello grigio maiuscolo). */
.vd-nofit-alt-head { color: #1a1a1a; font-size: .95rem; font-weight: 700; line-height: 1.35; }
.vd-nofit-alt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.vd-nofit-alt-row { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem .75rem;
    flex-wrap: wrap; font-size: .9rem; min-width: 0; }
.vd-nofit-alt-who { color: #334; min-width: 0; }
.vd-nofit-alt-who strong { color: #1a1a1a; }
.vd-nofit-alt-what { display: flex; align-items: baseline; gap: .55rem; margin-left: auto; min-width: 0; flex-wrap: wrap; }
.vd-nofit-alt-name { font-weight: 700; color: #1a1a1a; font-size: .85rem; overflow-wrap: anywhere; }
.vd-nofit-alt-price { font-weight: 800; color: var(--price-amber, #e08b1a); white-space: nowrap; }
/* Piede della proposta: totale a sinistra, «Usa questa divisione» a
   destra sulla stessa riga (owner 19/08). Su mobile si impila. */
.vd-nofit-alt-foot { display: flex; align-items: center; justify-content: space-between;
    gap: .5rem 1rem; flex-wrap: wrap; min-width: 0;
    border-top: 1px dashed #e3e8f0; padding-top: .55rem; }
.vd-nofit-alt-total { font-size: .9rem; color: #334; min-width: 0;
    display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.vd-nofit-alt-total strong { font-size: 1.3rem; font-weight: 800; color: var(--price-amber, #e08b1a); line-height: 1; }
.vd-nofit-alt-total-sub { color: #667; font-size: .8rem; }
.vd-nofit-alt-total-sub::before { content: '· '; }
/* .vd-cta dà il gradiente della CTA nativa: qui compatto, in fondo
   alla riga del totale su desktop, pieno su mobile */
.vd-nofit-use { flex: 0 0 auto; padding: 10px 22px; font-size: .95rem; }
.vd-nofit-dates { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.vd-nofit-dates-label { color: #334; font-size: .85rem; font-weight: 600; }
/* riga scorrevole: niente a capo, scroll orizzontale morbido, scrollbar
   nascosta — il blocco non può mai allargare la pagina */
.vd-nofit-chips { display: flex; gap: .5rem; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; min-width: 0;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
    scrollbar-width: none; -ms-overflow-style: none; padding: 2px 2px 4px; margin: -2px -2px -4px; }
.vd-nofit-chips::-webkit-scrollbar { display: none; }
.vd-nofit-chip { flex: 0 0 auto; scroll-snap-align: start; min-height: 40px; border: 1.5px solid var(--primary, #1e3c72);
    color: var(--primary, #1e3c72); background: #fff; border-radius: 999px; padding: .4rem 1rem; font-weight: 700;
    font-size: .88rem; white-space: nowrap; transition: background .15s, color .15s; }
.vd-nofit-chip:hover { background: var(--primary, #1e3c72); color: #fff; }
/* Vicolo cieco: il blocco è una riga e questo tasto, l'unica strada. */
.vd-nofit-quote { align-self: flex-start; padding: .55rem 1.1rem; font-size: .88rem; }
.vd-nofit-ask-note { color: #556; font-size: .86rem; line-height: 1.4; margin: 0 0 .9rem; }
.vd-form-error { background: #fdecec; color: #8a1c1c; border: 1px solid #f5c2c2; border-radius: 10px;
    padding: .55rem .8rem; font-size: .88rem; margin-bottom: .75rem; }
.vd-form-error[hidden] { display: none; }
@media (max-width: 575px) {
    .vd-nofit { padding: .85rem .8rem; }
    .vd-nofit-alt-row { flex-direction: column; align-items: flex-start; gap: .1rem; }
    .vd-nofit-alt-what { margin-left: 0; width: 100%; justify-content: space-between; }
    .vd-nofit-alt-total-sub { display: block; width: 100%; }
    .vd-nofit-alt-total-sub::before { content: none; }
    .vd-nofit-alt-foot { flex-direction: column; align-items: stretch; gap: .6rem; }
    .vd-nofit-use { width: 100%; }
    .vd-nofit-quote { align-self: stretch; width: 100%; text-align: center; }
}

/* ---------- operativo voli ---------- */
.vd-flight-pill { display: inline-block; font-size: .72rem; font-weight: 700;
    border-radius: 999px; padding: .12rem .55rem; vertical-align: 1px; white-space: nowrap; }
.vd-flight-pill--direct { background: #e6f6e6; color: #2e7d32; }
.vd-flight-pill--stops { background: #fdf3e0; color: #9a6a10; }
.vd-flightinfo { padding: 1rem 1.1rem; }
.vd-flight-legs { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1.25rem; }
@media (max-width: 767px) { .vd-flight-legs { grid-template-columns: 1fr; } }
.vd-flightinfo-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    font-weight: 700; color: #1a1a1a; margin-bottom: .5rem; }
.vd-flightinfo-tag { background: #fff3e0; color: #b26a00; font-size: .72rem; font-weight: 700;
    border-radius: 999px; padding: .25rem .6rem; text-transform: uppercase; letter-spacing: .04em; }
.vd-flightinfo-row { display: flex; gap: .5rem; color: #444; font-size: .9rem; padding: .25rem 0; }
.vd-flight-leg-body { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.vd-flight-leg-head { color: #556; font-size: .84rem; font-weight: 600; }
.vd-flight-leg-head strong { color: #1a1a1a; }
.vd-flight-leg-head .vd-flight-pill { margin-left: .25rem; }
.vd-flight-route { font-size: .98rem; color: #1a1a1a; letter-spacing: .01em; }
.vd-flight-route sup { color: var(--price-amber, #e08b1a); font-weight: 700; margin-left: 1px; }
.vd-flight-carrier { color: #667; font-size: .82rem; }

/* ---------- quota include / non include (due liste affiancate) ---------- */
.vd-quota { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
/* Sotto i 21 giorni il «non include» può restare senza voci e sparire:
   il box superstite prende tutta la riga invece di lasciarne metà vuota. */
.vd-quota--sola { grid-template-columns: 1fr; }
@media (max-width: 767px) { .vd-quota { grid-template-columns: 1fr; } }
.vd-quota-box { background: #fff; border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 1px 4px rgba(30, 60, 114, .08); }
.vd-quota-box--in { border-top: 3px solid #4caf50; }
.vd-quota-box--out { border-top: 3px solid #ef5350; }
.vd-quota-title { font-weight: 700; margin-bottom: .5rem; display: flex; align-items: center; gap: .45rem; }
.vd-quota-box--in .vd-quota-title { color: #2e7d32; }
.vd-quota-box--out .vd-quota-title { color: #c62828; }
.vd-quota-list { margin: 0; padding-left: 1.2rem; color: #555; font-size: .9rem; }
.vd-quota-list li { margin-bottom: .25rem; }

/* ---------- sezioni contenuto ---------- */
.vd-section-card { padding: 1.1rem 1.25rem; }
.vd-h2 { font-size: 1.15rem; font-weight: 800; color: #1a1a1a; margin: 0 0 .75rem;
    display: flex; align-items: center; gap: .5rem; }
.vd-h2 .bi { color: var(--primary, #1e3c72); }
.vd-clamp[data-clamp].is-clamped { max-height: 7.5em; overflow: hidden; position: relative; }
.vd-clamp[data-clamp].is-clamped::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2.4em; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); }
.vd-clamp-btn { border: 0; background: none; color: var(--primary, #1e3c72); font-weight: 700;
    padding: .4rem 0 0; cursor: pointer; }

/* ---------- sidebar (clone 1:1 della hd-price-summary-card nativa) ---------- */
.vd-side-card { padding: 18px; display: flex; flex-direction: column; gap: 12px;
    border: 1px solid var(--hair, #e5e1d8); box-shadow: 0 8px 30px rgba(30, 60, 114, .10); }
/* Testata = .hd-bestprice-box dell'hotel: full-bleed, icona in cerchio,
   navy di default, verde brand lime→scuro sulla skin HoEscape. */
.vd-side-head { display: flex; align-items: center; gap: 11px; color: #fff;
    background: linear-gradient(135deg, var(--primary, #1e3c72), var(--secondary, #2a5298));
    margin: -18px -18px 2px; padding: 13px 16px; border-radius: 16px 16px 0 0; }
[data-skin="hoe"] .vd-side-head { background: linear-gradient(135deg, #8cb93a 0%, #557d1c 100%); }
.vd-side-head-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255, 255, 255, .18); display: inline-flex; align-items: center;
    justify-content: center; font-size: 1.05rem; }
.vd-side-head-title { font-size: .9rem; font-weight: 800; letter-spacing: .3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .22); }
/* Righe = __chips native: riquadro grigio caldo, chip a griglia icona+testo */
.vd-side-rows { background: #f8f6f1; border-radius: 10px; padding: 12px;
    display: flex; flex-direction: column; gap: 10px; }
.vd-side-row { display: grid; grid-template-columns: 16px 1fr; column-gap: 8px;
    align-items: center; color: var(--ink, #1a1a1a); font-size: 13px; font-weight: 700;
    line-height: 1.25; }
.vd-side-row .bi { grid-column: 1; color: var(--secondary, #2a5298); font-size: 14px;
    line-height: 1.2; }
/* gerarchia nativa: solo data e camera in grassetto, il resto normale */
.vd-side-row--soft { font-weight: 500; color: var(--ink2, #4a4a4a); }
/* Riga camera del riquadro: gemella della card (owner 19/08) — chi ci
   dorme sopra in maiuscolo, il nome del fornitore sotto a peso normale.
   `align-items: start` perché su due righe l'icona deve restare in alto,
   non centrarsi fra le due. */
.vd-side-row:has(#vdSideRoom) { align-items: start; }
/* Riga che il JS spegne (niente partenza, o divisione che il fornitore non
   copre tutta — owner 19/08): il `display:grid` qui sopra è una regola
   d'AUTORE e batte lo `[hidden]{display:none}` dello user-agent. Senza
   questa riga l'attributo hidden lasciava a video l'icona con la scritta
   vuota accanto. Stessa ragione di `.vd-dock-rie[hidden]` più sotto. */
.vd-side-row[hidden] { display: none; }
#vdSideRoom { display: flex; flex-direction: column; gap: 1px; }
.vd-side-room-who { text-transform: uppercase; letter-spacing: .01em; }
.vd-side-room-name { font-weight: 500; color: var(--ink2, #4a4a4a); }
.vd-side-duo { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.vd-side-duo-btn { display: flex; align-items: center; justify-content: center; gap: .45rem;
    border-radius: 12px; padding: .6rem .5rem; font-weight: 700; font-size: .9rem;
    text-decoration: none; color: #fff; transition: filter .2s; }
.vd-side-duo-btn:hover { color: #fff; filter: brightness(.92); }
.vd-side-duo-btn--call { background: var(--primary, #1e3c72); }
.vd-side-duo-btn--wa { background: #25d366; }
/* Totale = __price-row nativa: caption 13px a sinistra, prezzo ambra 36px a destra */
.vd-side-total { display: flex; flex-direction: column; }
/* Senza prezzo la sidebar non fa da box prenotazione (owner 19/08):
   totale e CTA escono di scena e restano Chiama/WhatsApp. Il
   `display` d'autore batte l'`[hidden]` dello user-agent — stessa
   ragione di `.vd-dock-price[hidden]` più sotto. */
.vd-side-total[hidden], .vd-cta[hidden] { display: none; }
.vd-total-row { display: flex; align-items: center; justify-content: flex-end;
    column-gap: 10px; }
.vd-total-val { font-size: 36px; font-weight: 800; color: var(--price-amber, #e08b1a); line-height: 1; letter-spacing: -1px; }
.vd-total-sub { font-size: 13px; color: var(--ink2, #4a4a4a); margin-top: 4px; text-align: right; }
/* CTA = .btn-book-now nativo: ombra ambra + lift all'hover */
.vd-cta { display: block; text-align: center; background: linear-gradient(135deg, var(--accent, #f5a623), var(--accent-hover, #e09000));
    color: #fff; font-weight: 800; border: 0; border-radius: 12px; padding: 12px 24px;
    text-decoration: none; font-size: 1rem; box-shadow: 0 4px 14px rgba(245, 166, 35, .45);
    transition: all .2s ease; }
.vd-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245, 166, 35, .55); }
.vd-cta--inline { display: inline-block; }
.vd-cta--submit { width: 100%; max-width: 420px; }
.vd-side-btn { display: flex; align-items: center; justify-content: center; gap: .5rem;
    border: 1.5px solid var(--primary, #1e3c72); color: var(--primary, #1e3c72); background: #fff;
    border-radius: 12px; padding: .6rem 1rem; font-weight: 700; font-size: .9rem; text-decoration: none;
    transition: background .2s, color .2s; }
.vd-side-btn:hover { background: var(--primary, #1e3c72); color: #fff; }
.vd-side-btn--wa { border-color: #25d366; color: #128c7e; }
.vd-side-btn--wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.vd-side-note { text-align: center; color: #778; font-size: .8rem; display: flex; align-items: center;
    justify-content: center; gap: .35rem; }

/* ---------- banda «Ti interessa?» ---------- */
.vd-interest { background: #eef1f6; border-radius: 16px; text-align: center;
    padding: 2rem 1.25rem; margin: 1.5rem 0; }
.vd-interest-title { font-size: 1.35rem; font-weight: 800; margin: 0 0 .3rem; color: var(--primary, #1e3c72); }
.vd-interest-sub { color: #556; margin: 0 0 1rem; }
.vd-interest-ctas { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.vd-interest .vd-side-btn { background: #fff; }
.vd-interest .vd-side-btn--tel { border-color: var(--cta-orange, #f5a623); color: var(--price-amber, #e08b1a); }
.vd-interest .vd-side-btn--tel:hover { background: var(--cta-orange, #f5a623); border-color: var(--cta-orange, #f5a623); color: #fff; }
.vd-interest .vd-side-btn--wa { border-color: #25d366; background: #25d366; color: #fff; }
.vd-interest .vd-side-btn--wa:hover { filter: brightness(.92); }

/* ---------- correlati ---------- */
.vd-relwrap { margin-bottom: 1.5rem; }
.vd-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 767px) { .vd-rel-grid { grid-template-columns: 1fr; } }
.vd-rel-card { background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none;
    box-shadow: 0 1px 4px rgba(30, 60, 114, .08); transition: transform .2s, box-shadow .2s;
    display: flex; flex-direction: column; }
.vd-rel-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(30, 60, 114, .16); }
.vd-rel-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.vd-rel-body { padding: .8rem .95rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.vd-rel-name { font-weight: 700; color: #1a1a1a; font-size: .95rem; }
.vd-rel-meta { color: #667; font-size: .82rem; }
.vd-rel-price { color: var(--price-amber, #e08b1a); font-weight: 800; font-size: .92rem; margin-top: .25rem; }

/* ---------- form richiesta ---------- */
.vd-form-card { padding: 1.1rem; box-shadow: none; border: 1px solid #e3e8f0; }
.vd-form-summary { background: #f2f7ff; border: 1px solid #d6e4ff; color: #234; border-radius: 10px;
    padding: .6rem .8rem; font-size: .88rem; font-weight: 600; margin-bottom: .9rem; }
.vd-alt-link { color: #667; font-size: .88rem; margin: .9rem 0 0; }
.vd-cta-footer { text-align: center; }

/* ---------- esito inline «salva preventivo» (parità #quoteModal hotel) ---------- */
.vd-quote-success { text-align: center; padding: 1.5rem .5rem; }
.vd-quote-success[hidden] { display: none; }
.vd-quote-success .bi-check-circle-fill { font-size: 3.5rem; color: #1e8a4c; }
.vd-quote-success h3 { font-size: 1.3rem; font-weight: 800; color: #1a1a1a; margin: .75rem 0 1rem; }
.vd-quote-success-code { background: #f2f7ff; border-radius: 10px; padding: .75rem 1rem; margin: 0 0 .75rem;
    font-size: .95rem; color: #234; }
.vd-quote-success-code strong { color: var(--primary, #1e3c72); letter-spacing: .5px; }
.vd-quote-success-note { color: #667; font-size: .88rem; margin: 0; }


/* ---------- dock prenotazione mobile NAVY ----------
   Stessi colori/comportamento del dock della scheda nativa
   (hotel-detail.css "MOBILE booking dock NAVY", owner 2026-06-05):
   pannello navy gradient col prezzo bianco, Riepilogo ghost, Prenota
   lime, sheet bianco animato (max-height), notch che sparisce da
   aperto. Su mobile il box riepilogo inline e' nascosto: il dock e'
   l'unica UI prenota. */
/* Il dock vive SOTTO il layer modale di Bootstrap (backdrop 1050, modale
   1055), non sopra. Così quando un modale è aperto il velo lo copre e lo
   rende non cliccabile: è il modo corretto di risolvere il bug del 03/08
   sera (il bottone "Conferma selezione" di #vdPanelModal c'era ma era
   irraggiungibile su mobile, i tap arrivavano al "Riepilogo" del dock
   sotto).
   NON alzare .modal-backdrop per farlo: è un selettore GLOBALE e il
   backdrop è appeso a <body>, quindi sale sopra TUTTI i modali della
   pagina lasciati al default 1055 — e questa scheda ne ha altri tre
   (#galleryLightbox, #vdQuoteModal, #leadFormModal). Alzandolo a 1075
   restavano visibili ma inerti: nessun click, nemmeno sulla X, e con
   body.modal-open la pagina non scrollava — «clicco la gallery e si
   blocca tutto» (regressione 03/08 → 04/08).
   Gate: tests/unit/test_viaggi_detail_modal_stacking_gate.py */
.vd-dock { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1045;
    background: linear-gradient(135deg, #1e3c72 0%, #2a66c2 100%);
    border-radius: 18px 18px 0 0; overflow: hidden; max-height: 92vh;
    box-shadow: 0 -8px 32px rgba(26, 58, 92, .20);
    /* iOS Safari: compositor layer forzato, fixed stabile durante lo scroll */
    transform: translateZ(0); will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
@media (min-width: 992px) { .vd-dock, .vd-dock-backdrop { display: none !important; } }
@media (max-width: 991.98px) { body.vd-has-dock { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
.vd-dock-notch { display: block; width: 44px; height: 5px; border-radius: 3px;
    background: rgba(255, 255, 255, .45); margin: 9px auto 0; cursor: grab; }
.vd-dock.is-open .vd-dock-notch { display: none; }
.vd-dock-header { display: flex; align-items: center; gap: 10px;
    padding: 8px 20px calc(10px + env(safe-area-inset-bottom, 0px)) 14px; }
.vd-dock.is-open .vd-dock-header { display: none; }
.vd-dock-price { border: 0; background: none; text-align: left; padding: 0 0 0 6px; display: flex;
    flex-direction: column; line-height: 1.02; min-width: 0; margin-right: auto; cursor: pointer; }
.vd-dock-label { font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, .60);
    text-transform: uppercase; letter-spacing: .6px; }
.vd-dock-total { font-size: 25px; font-weight: 800; color: #fff; letter-spacing: -.5px; white-space: nowrap; }
.vd-dock-rie { display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    min-height: 41px; background: rgba(255, 255, 255, .12); color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 11px;
    padding: 0 12px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
/* Senza partenza scelta il riepilogo non si offre (owner 18/08): il
   `display` di classe qui sopra è una regola d'AUTORE e batte lo
   `[hidden]{display:none}` dello user-agent — senza questa riga
   l'attributo hidden messo dal JS non nasconderebbe un bel niente. */
.vd-dock-rie[hidden] { display: none; }
/* Barra senza prezzo (owner 19/08): niente totale, niente riepilogo,
   resta il solo «Richiedi preventivo». Il display:none esplicito serve
   per la stessa ragione della riga qui sopra — `.vd-dock-price` ha un
   `display:flex` d'autore, che batterebbe l'[hidden] dello user-agent.
   Il notch sparisce con loro: senza foglio da aprire sarebbe un appiglio
   che non fa niente. Gate: tests/unit/test_viaggi_dock_senza_prezzo.py */
.vd-dock-price[hidden] { display: none; }
.vd-dock--bare .vd-dock-notch { display: none; }
.vd-dock--bare .vd-dock-header { padding-top: 14px; }
.vd-dock--bare .vd-dock-cta { flex: 1; }
.vd-dock-cta { display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    min-height: 41px; background: linear-gradient(135deg, #a4c639 0%, #8fb02e 100%);
    color: #fff; border-radius: 11px; padding: 0 14px; font-size: 13px; font-weight: 800;
    text-decoration: none; white-space: nowrap;
    box-shadow: 0 6px 16px rgba(164, 198, 57, .45); }
.vd-dock-cta:hover { color: #fff; filter: brightness(1.04); }
.vd-dock-body { max-height: 0; overflow: hidden; background: #fff;
    transition: max-height .28s cubic-bezier(.4, 0, .2, 1); }
.vd-dock.is-open .vd-dock-body { max-height: 72vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding: 0 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
.vd-dock-body .vd-side-card { box-shadow: none; padding: 0; }
/* Banda del foglio = testata NAVY col «Chiudi» (mockup nativo, Image #2):
   vince anche sull'override lime [data-skin=hoe] della sidebar. */
.vd-dock-body .vd-side-head,
[data-skin="hoe"] .vd-dock-body .vd-side-head {
    background: linear-gradient(135deg, #1e3c72 0%, #2a66c2 100%);
    margin: 0 -14px .35rem; border-radius: 0; padding: .85rem 1rem;
    justify-content: flex-start; }
.vd-ms-close { margin-left: auto; border: 1.5px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .12); color: #fff; border-radius: 999px;
    padding: .25rem .7rem; font-size: .78rem; font-weight: 700;
    display: inline-flex; align-items: center; gap: .3rem; }
.vd-ms-name { color: var(--primary, #1e3c72); font-weight: 800; font-size: 1.15rem;
    margin: .5rem 0 .1rem; }
/* nel foglio: righe piane senza riquadro grigio (il JS toglie le icone,
   quindi via anche la colonna della griglia) */
.vd-dock-body .vd-side-rows { background: transparent; padding: 0; gap: .3rem; }
.vd-dock-body .vd-side-row { display: block; color: #1a1a1a; font-weight: 400; font-size: .95rem; }
.vd-dock-body .vd-side-total { border-top: 1px solid #ececf1;
    padding-top: .7rem; margin-top: .35rem; }
.vd-dock-body .vd-total-row { align-items: baseline; }
.vd-dock-body .vd-total-val { font-size: 1.7rem; }
.vd-ms-actions { display: flex; gap: .6rem; align-items: stretch; }
.vd-ms-actions .vd-side-btn { flex: 1; margin: 0; }
.vd-ms-iconbtn { flex: 0 0 48px; width: 48px; min-height: 44px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 12px; font-size: 1.15rem;
    padding: 0; }
.vd-ms-iconbtn.vd-side-duo-btn--call { background: var(--primary, #1e3c72); color: #fff; }
.vd-ms-iconbtn.vd-side-duo-btn--wa { background: #25d366; color: #fff; }
.vd-dock-backdrop { position: fixed; inset: 0; background: rgba(15, 38, 64, .45); z-index: 1040;
    opacity: 0; pointer-events: none; transition: opacity .28s; }
.vd-dock-backdrop.is-open { opacity: 1; pointer-events: auto; }
body.vd-dock-open { overflow: hidden; }

/* Partenza non ancora confermata dal fornitore (owner 06/08): visibile ma
   non selezionabile. Lo stato lo applica il JS — senza JavaScript le righe
   restano normali e cliccabili, e il server continua a renderle tutte
   (SEO/no-JS). */
.vd-date-row.is-unverified {
    opacity: .45;
    pointer-events: none;
    cursor: default;
}
.vd-date-row.is-unverified .vd-date-price { visibility: hidden; }

/* Suggerimento «conviene partire il…» nel box prezzo (owner 18/08 sera):
   discreto, sotto il totale; il link apre il popup della partenza. */

/* ---------- stato «senza partenza» (owner 04/09/2026) ----------
   Come la scheda hotel senza date: finche' il cliente non sceglie la
   partenza la pagina non parla di quota. Via le card camera, i box «La
   quota include / non include», il riepilogo («Il tuo viaggio», i passi,
   «Cosa comprende la quota»), «Salva preventivo» e la barra mobile; nella
   card laterale resta il box .vd-side-nodate, copia del box nativo
   (.hd-cerca-prezzo-sidebar): testata con le promesse, campi, CTA,
   fiducia, contatto. Su mobile la card esce dal nascondiglio e sale
   sopra il contenuto, come la card nativa. La classe la scrive il server
   al primo render e la v1 la tiene aggiornata (`!entry`).
   Gate: tests/unit/test_viaggi_apertura_senza_quota_static.py */
.vd-side-nodate { display: none; }
.vd-page.vd-senza-partenza .vd-side-nodate { display: block; }
.vd-page.vd-senza-partenza .vd-rooms-card,
.vd-page.vd-senza-partenza .vd-quota,
.vd-page.vd-senza-partenza .v2-riep-head,
.vd-page.vd-senza-partenza .v2-passi,
.vd-page.vd-senza-partenza .v2-incl-wrap,
.vd-page.vd-senza-partenza .vd-side-btn[data-bs-target="#vdQuoteModal"],
.vd-page.vd-senza-partenza .v2-salva,
.vd-page.vd-senza-partenza .vd-dock,
.vd-page.vd-senza-partenza .vd-dock-backdrop { display: none; }
/* nella gemella v2 resta SOLO il box: il resto della card e' il riepilogo */
.vd-page.vd-senza-partenza #vdSide .v2-side > :not(.vd-side-nodate) { display: none; }
@media (max-width: 991px) {
    .vd-page.vd-senza-partenza .vd-side { display: block; position: static; order: -1; }
}
/* valori del box nativo (static/css/hotel-detail.css, .hd-cerca-prezzo-sidebar
   con i rialzi del 2026-05-31: label 12, valori 15.5, CTA 17) */
.vd-nd-head { background: linear-gradient(135deg, var(--primary, #1e3c72) 0%, var(--secondary, #2a5298) 100%);
    color: #fff; padding: 18px 18px 16px; }
.vd-nd-compact { display: none; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.vd-nd-compact .bi { font-size: 18px; line-height: 1; flex-shrink: 0; }
.vd-nd-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.vd-nd-title .bi { font-size: 16px; line-height: 1; }
.vd-nd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vd-nd-item { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.vd-nd-check { width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .18);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; line-height: 1; }
.vd-nd-body { padding: 18px; }
.vd-nd-headline { font-size: 15px; color: var(--ink, #1a1a1a); font-weight: 700; margin-bottom: 12px; }
.vd-nd-form { border: 1px solid var(--hair, #e5e1d8); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.vd-nd-dates { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--hair, #e5e1d8); }
.vd-nd-field { appearance: none; -webkit-appearance: none; background: #fff; border: none; padding: 12px 14px;
    text-align: left; cursor: pointer; display: flex; flex-direction: column; width: 100%; line-height: 1.2;
    font-family: inherit; transition: background .12s ease; }
.vd-nd-field:hover, .vd-nd-field:focus { background: #f6f9ff; outline: none; }
.vd-nd-dates .vd-nd-field:first-child { border-right: 1px solid var(--hair, #e5e1d8); }
.vd-nd-field--guests { flex-direction: row; align-items: center; justify-content: space-between; }
.vd-nd-field-block { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.vd-nd-label { font-size: 12px; font-weight: 800; color: var(--ink3, #8a8a8a); letter-spacing: .6px; text-transform: uppercase; }
.vd-nd-value { font-size: 15.5px; color: var(--ink3, #8a8a8a); margin-top: 4px; font-style: italic; }
.vd-nd-value--solid { color: var(--ink, #1a1a1a); font-weight: 700; font-style: normal; margin-top: 2px; }
.vd-nd-chev { color: var(--ink3, #8a8a8a); font-size: 14px; line-height: 1; }
.vd-nd-cta { width: 100%; background: var(--accent, #f5a623); color: #fff; border: none; padding: 14px 16px;
    border-radius: 12px; font-size: 17px; font-weight: 800; cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 14px rgba(30, 60, 114, .18); margin: 4px 0 10px; display: inline-flex; align-items: center;
    justify-content: center; gap: 8px; transition: filter .15s ease, transform .05s ease; }
.vd-nd-cta:hover, .vd-nd-cta:focus { filter: brightness(.94); outline: none; }
.vd-nd-cta:active { transform: translateY(1px); }
.vd-nd-cta .bi { font-size: 14px; line-height: 1; }
.vd-nd-trust { font-size: 11.5px; color: var(--ink3, #8a8a8a); text-align: center; margin-bottom: 14px; }
.vd-nd-contacts { border-top: 1px solid var(--hair, #e5e1d8); padding-top: 12px; }
.vd-nd-contacts-label { font-size: 11.5px; color: var(--ink2, #4a4a4a); margin-bottom: 8px; }
.vd-nd-contact { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 10px; border-radius: 10px;
    font-size: 12.5px; font-weight: 700; text-decoration: none; line-height: 1.2; background: #fff;
    color: var(--primary, #1e3c72); border: 1.5px solid var(--primary, #1e3c72); }
.vd-nd-contact:hover { background: #f6f9ff; color: var(--primary, #1e3c72); text-decoration: none; }
@media (max-width: 767.98px) {
    /* come il nativo: una riga sola in testata, via il titolo del corpo e la fiducia */
    .vd-nd-compact { display: flex; }
    .vd-nd-title, .vd-nd-list, .vd-nd-headline, .vd-nd-trust { display: none; }
}
/* pannello: senza aeroporto scelto il tabellone tace, resta la nota */
.vd-board-pick { padding: .9rem 1rem; border: 1px dashed #c5c9d3; border-radius: 10px; color: #556;
    font-size: .9rem; text-align: center; margin: .5rem 0; }
.vd-board-pick[hidden] { display: none; }
/* Titolo della sezione descrittiva: «Info struttura» finche' non c'e' la
   partenza (il cliente non ha ancora un viaggio), «Informazioni sul viaggio»
   dopo. Owner 04/09/2026. */
.vd-h2-struttura { display: none; }
.vd-page.vd-senza-partenza .vd-h2-viaggio { display: none; }
.vd-page.vd-senza-partenza .vd-h2-struttura { display: inline; }
