/* Catalogo [hasset_book_alloggi] e scheda [hasset_book_alloggio]: stesso aspetto della barra e delle
   card del widget di prenotazione (widget/widget.js di HAsset-Book, classi .hassetbk-*). Font e colori
   da hasset-book.css (:root, Manrope). Caricato solo sulle pagine Alloggi e scheda. */

.hba {
    font-family: var(--hb-font);
    font-size: 15px;
    line-height: 1.55;
    /* spessore e spaziatura propri: certi temi (es. demo) mettono il testo a 300 e stringono le lettere */
    font-weight: 400;
    letter-spacing: normal;
    color: var(--hb-text);
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}
.hba *, .hba *::before, .hba *::after { box-sizing: border-box; }
.hba a { text-decoration: none; }
.hba [hidden] { display: none !important; }

/* Focus: i temi a blocchi di WordPress mettono un riquadro di 2px del colore del testo su ogni
   elemento cliccato (:focus). Col mouse niente riquadro; con la tastiera il bordino blu. */
.hba :focus:not(:focus-visible),
.hba-lb :focus:not(:focus-visible) { outline: none; }
.hba :focus-visible,
.hba-lb :focus-visible { outline: 2px solid var(--hb-acc); outline-offset: 2px; }

/* ── Pulsanti ── */
.hba-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .6rem 1.1rem;
    border-radius: var(--hb-radius-sm);
    border: 1px solid transparent;
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s, transform .08s;
}
.hba-btn-primary { background: var(--hb-acc); color: var(--hb-acc-tx); }
.hba-btn-primary:hover, .hba-btn-primary:focus { background: var(--hb-acc-d); color: var(--hb-acc-tx); }
.hba-btn-primary:active { transform: scale(.98); }
.hba-btn-outline { background: transparent; color: var(--hb-acc-d); border-color: var(--hb-acc); font-size: .88rem; font-weight: 600; padding: .6rem .9rem; }
.hba-btn-outline:hover, .hba-btn-outline:focus { background: var(--hb-acc-l); color: var(--hb-acc-d); }

/* ── Barra date/persone (come .hassetbk-cerca-box) ── */
.hba-cerca {
    container-type: inline-size;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 1.25rem;
    padding: 1rem .9rem .85rem;
    background: var(--hb-w);
    border: 1px solid var(--hb-bdr);
    border-radius: var(--hb-radius);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.hba-cerca-riga { display: flex; flex-direction: column; gap: .7rem; }
.hba-date-col { min-width: 0; }
.hba-date-row { display: flex; gap: 1rem; cursor: pointer; }
.hba-date-row:focus-visible { outline: 2px solid var(--hb-acc); outline-offset: 4px; border-radius: 6px; }
.hba-date-blk { position: relative; flex: 1; min-width: 0; }
.hba-date-k { display: block; font-size: .8rem; font-weight: 500; color: var(--hb-ink); margin-bottom: .2rem; }
.hba-date-main { display: flex; align-items: center; gap: .45rem; white-space: nowrap; min-height: 2.15rem; }
.hba-date-n { font-size: 2.35rem; font-weight: 700; line-height: .9; color: var(--hb-ink); }
.hba-date-s { font-size: .72rem; line-height: 1.25; font-weight: 500; color: var(--hb-ink); }
/* La data in pezzi (hb-alloggi.js scriviData): qui «Sabato» sopra «Lug 2027»; compatta e striscia: «Sab 10 Lug 2027» (più sotto). */
.hba-date-g { display: block; }
.hba-date-gb { display: none; }
.hba-date-notti { text-align: right; font-size: .78rem; font-weight: 500; color: var(--hb-ink); margin: .15rem 0 0; min-height: 1lh; cursor: pointer; } /* 1lh: alta come la riga «7 notti», la barra non cresce quando lo script la scrive (1.5.1) */
.hba-date-semplici { display: none; gap: 1rem; }
.hba-date-semplici label { flex: 1; min-width: 0; }
.hba-date-semplici input { width: 100%; padding: .55rem .6rem; border: 1px solid var(--hb-bdr-strong); border-radius: var(--hb-radius-sm); font: inherit; font-size: .9rem; color: var(--hb-text); background: var(--hb-w); }
.hba-cerca--semplice .hba-date-row,
.hba-cerca--semplice .hba-date-notti { display: none; }
.hba-cerca--semplice .hba-date-semplici { display: flex; }

.hba-ospiti-col { min-width: 0; }
.hba-ospiti-box { display: flex; flex-direction: row; border: 1px solid var(--hb-bdr); border-radius: 10px; overflow: hidden; background: var(--hb-w); }
.hba-box-solo { display: inline-flex; width: auto; }
.hba-ospiti { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: .55rem .65rem; flex: 1; min-width: 0; }
.hba-box-solo .hba-ospiti { flex-direction: row; align-items: center; gap: .75rem; padding: .55rem .75rem; flex: 0 0 auto; }
.hba-ospiti-sep { border-left: 1px solid var(--hb-bdr); }
.hba-ospiti-k { font-size: .92rem; font-weight: 600; color: var(--hb-ink); white-space: nowrap; }
.hba-ospiti-sub { display: block; font-size: .72rem; font-weight: 500; color: var(--hb-ink); line-height: 1.2; }
/* − e +: cerchi da 32 px distanziati dal numero, da toccare per 44 px (::before), così il dito non li prende insieme (1.5.1) */
.hba-step { display: inline-flex; align-items: center; gap: .375rem; border: 1px solid var(--hb-bdr); border-radius: 999px; padding: 2px; background: var(--hb-w); }
.hba-step-btn { position: relative; width: 32px; height: 32px; flex: 0 0 32px; border: 0; border-radius: 50%; background: var(--hb-w2); color: var(--hb-ink); font-size: 1.05rem; line-height: 1; padding: 0; cursor: pointer; }
.hba-step-btn::before { content: ""; position: absolute; inset: -6px; }
.hba-step-btn:hover { background: var(--hb-bdr); }
.hba-step-n { min-width: 1.05rem; padding: 0 .15rem; text-align: center; font-weight: 600; font-size: .9rem; line-height: 1; color: var(--hb-ink); }
/* Gruppi di ricerca: una riga per gruppo con la freccia accanto, come .hassetbk-ospiti-riga del widget. */
.hba-ospiti-riga { display: flex; align-items: center; gap: .4rem; }
.hba-ospiti-riga[hidden] { display: none; }
.hba-ospiti-riga + .hba-ospiti-riga { margin-top: .55rem; }
.hba-doppia-freccia { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px; padding: 0; border: 1px solid var(--hb-bdr); border-radius: 10px; background: var(--hb-w); color: var(--hb-ink); cursor: pointer; }
.hba-doppia-freccia[hidden] { display: none; }
.hba-doppia-freccia svg { display: block; width: 14px; height: 14px; transition: transform .15s; }
.hba-freccia-su svg { transform: rotate(180deg); }
.hba-cerca-go { width: 100%; height: 48px; border-radius: 10px; font-size: .95rem; }
.hba-cerca-err { color: #991b1b; font-size: .85rem; }
.hba-cerca-err:empty { display: none; }

/* Barra fissa="si" attaccata in alto (come .hassetbk-cerca-box in position:fixed): posizione e
   larghezza (quella del blocco che la contiene) le mette lo script; chiusa è la striscia qui sotto; scorrendo in giù sparisce.
   Nessuna ombra aggiunta (1.5.1): quella che resta è dello stile scelto in HAsset-Book, come la barra al suo posto. */
.hba-cerca.is-attaccata {
    position: fixed;
    z-index: 1000;
    margin: 0;
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.hba-cerca.is-chiusa .hba-ospiti-col,
.hba-cerca.is-chiusa .hba-cerca-go,
.hba-cerca.is-chiusa .hba-cerca-err { display: none; }
.hba-cerca.is-via { visibility: hidden; pointer-events: none; }

@container (min-width: 28rem) {
    .hba-ospiti { flex-direction: row; align-items: center; justify-content: space-between; gap: .5rem; }
}
@container (min-width: 46rem) {
    .hba-cerca-riga {
        display: grid;
        grid-template-columns: auto auto max-content;
        justify-content: center;
        align-items: start;
        column-gap: 1.25rem;
        width: max-content;
        max-width: 100%;
        margin: 0 auto;
    }
    .hba-date-blk { flex: 0 0 auto; min-width: 7.5rem; }
    .hba-date-notti { white-space: nowrap; }
    .hba-cerca-go { width: 11.5rem; padding: 0 1.4rem; }
}

/* ── Striscia: la barra attaccata in alto e chiusa (classica e compatta, 1.5.1) ──
   Al massimo --hba-striscia di altezza, su una riga: «Sab 10 Lug → Sab 17 Lug · 7 notti · 2 persone». Toccandola si riapre.
   Solo disposizione e misure: colori, caratteri, bordi e angoli restano dello stile (variabili --hba-*). La stessa altezza
   la lasciano libera le ancore della pagina (.hb-pren-ancora in hasset-book.css). */
:root { --hba-striscia: 50px; }
.hba-ospiti-riassunto { display: none; white-space: nowrap; font-size: .85rem; font-weight: 500; color: var(--hb-ink); }
.hba-cerca.is-attaccata.is-chiusa { display: flex; align-items: center; height: var(--hba-striscia); padding-block: 0; overflow: hidden; }
.hba-cerca.is-chiusa .hba-cerca-riga { display: flex; flex-direction: row; align-items: center; width: 100%; max-width: 100%; margin: 0; }
.hba-cerca.is-chiusa .hba-date-col { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: .5rem; min-width: 0; min-height: 0; padding: 0; border: 0; background: none; }
.hba-cerca.is-chiusa .hba-date-row { flex: 0 0 auto; min-height: 44px; }
.hba-cerca.is-chiusa .hba-date-notti { margin: 0; min-height: 0; font-size: .85rem; white-space: nowrap; }
.hba-cerca.is-chiusa .hba-date-notti:not(:empty)::before,
.hba-cerca.is-chiusa .hba-ospiti-riassunto:not(:empty)::before { content: "· "; }
.hba-cerca.is-chiusa .hba-ospiti-riassunto { display: inline; }

/* ── Date su una riga: barra compatta e striscia ── */
.hba-cerca--compatta .hba-date-row,
.hba-cerca.is-chiusa .hba-date-row { gap: .35rem; align-items: center; min-width: 0; }
.hba-cerca--compatta .hba-date-blk,
.hba-cerca.is-chiusa .hba-date-blk { display: flex; flex: 0 0 auto; align-items: center; gap: .35rem; min-width: 0; }
.hba-cerca--compatta .hba-date-blk + .hba-date-blk::before,
.hba-cerca.is-chiusa .hba-date-blk + .hba-date-blk::before { content: "→"; color: var(--hb-ink); }
.hba-cerca--compatta .hba-date-main,
.hba-cerca.is-chiusa .hba-date-main { gap: .3rem; min-height: 0; font-size: .95rem; }
.hba-cerca--compatta .hba-date-n,
.hba-cerca.is-chiusa .hba-date-n { order: 2; font-size: inherit; line-height: 1.2; }
.hba-cerca--compatta .hba-date-s,
.hba-cerca.is-chiusa .hba-date-s { display: contents; font-size: inherit; }
.hba-cerca--compatta .hba-date-g,
.hba-cerca.is-chiusa .hba-date-g { display: none; }
.hba-cerca--compatta .hba-date-a,
.hba-cerca.is-chiusa .hba-date-a { order: 4; }
.hba-cerca--compatta .hba-date-gb,
.hba-cerca.is-chiusa .hba-date-gb { display: inline; order: 1; font-weight: 600; }
.hba-cerca--compatta .hba-date-m,
.hba-cerca.is-chiusa .hba-date-m { order: 3; font-weight: 600; }
/* Il nome «Arrivo» / «Partenza» si vede solo finché la data non è scelta (sennò lo legge chi usa la sintesi vocale). */
.hba-cerca--compatta .hba-date-k,
.hba-cerca.is-chiusa .hba-date-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; margin: 0; }
.hba-cerca--compatta .hba-date-blk:has(.hba-date-n:empty) .hba-date-k,
.hba-cerca.is-chiusa .hba-date-blk:has(.hba-date-n:empty) .hba-date-k { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: .95rem; }

/* Telefono: la striscia resta su una riga senza il giorno della settimana («10 Lug → 17 Lug · 7 notti · 2 persone»). */
@container (max-width: 30rem) {
    .hba-cerca.is-chiusa .hba-date-blk .hba-date-gb { display: none; }
    .hba-cerca.is-chiusa .hba-date-main { font-size: .875rem; }
}

/* ── Barra compatta aperta (Impostazioni del plugin, «Barra di ricerca degli alloggi», o stile="compatta") ──
   Date complete con l'anno, parole intere, larga quanto il suo contenuto: mai allargata a riempire il blocco. Si mette nel blocco
   come un pulsante (inline-block: segue l'allineamento del blocco), dentro ha il suo allineamento a sinistra. Una riga quando ci
   sta; quando no (telefono) va su due: sopra le date su tutta la barra, sotto persone e pulsante, ognuno della sua misura, ai due lati.
   Il campo delle date ha una larghezza minima: non cambia mentre si scelgono le date. Solo misure e disposizione: colori,
   caratteri e angoli restano dello stile (1.5.1). */
.hba-cerca--compatta { display: inline-block; vertical-align: top; width: auto; max-width: 100%; padding: .5rem; text-align: left; container-type: normal; } /* normal: la sua larghezza viene dal contenuto */
.hba-cerca--compatta .hba-cerca-riga { display: flex; flex-flow: row nowrap; align-items: center; gap: .5rem; width: auto; max-width: 100%; margin: 0; }
.hba-cerca--compatta .hba-date-col { display: flex; flex: 1 1 auto; align-items: center; column-gap: .6rem; min-width: 23rem; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--hb-bdr); border-radius: 10px; background: var(--hb-w); }
.hba-cerca--compatta .hba-date-row { flex: 0 0 auto; min-height: 42px; }
.hba-cerca--compatta .hba-date-notti { margin: 0 0 0 auto; min-height: 0; font-size: .85rem; white-space: nowrap; }
.hba-cerca--compatta .hba-ospiti-col { flex: 0 0 auto; margin-right: auto; }
.hba-cerca--compatta .hba-ospiti-box { align-items: center; min-height: 44px; }
.hba-cerca--compatta .hba-ospiti,
.hba-cerca--compatta .hba-box-solo .hba-ospiti { flex-direction: row; align-items: center; gap: .6rem; padding: 0 .5rem 0 .75rem; }
/* «inclusi bambini» resta per la sintesi vocale: in una riga non c'è posto */
.hba-cerca--compatta .hba-ospiti-sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.hba-cerca--compatta .hba-cerca-go { flex: 0 0 auto; width: auto; height: 44px; padding: 0 1.1rem; }
.hba-cerca--compatta .hba-cerca-err:not(:empty) { margin-top: .25rem; }

/* Con i bambini, quando non c'è posto: «Persone 3 · Bambini 1» al posto dei due contatori, che si aprono sotto toccandolo.
   Riquadro con il bordo e il fondo dello stile, niente ombra. Lo spazio lo misura .hba, che fa da contenitore. */
.hba:has(> .hba-cerca--compatta) { container-type: inline-size; }
/* Telefono: due righe. Sopra le date senza giorno né notti («29 Set 2027 → 13 Ott 2027»: le notti sono nel calendario), sotto
   «Persone − 3 +» e «Cerca» ai due lati, ognuno della sua misura. */
.hba-cerca-go-breve { display: none; }
/* Quando una riga non ci sta (blocco sotto i 44rem): due righe a griglia, larga quanto la riga più lunga e non quanto la pagina.
   Sopra le date, sotto persone e pulsante ai due lati. */
@container (max-width: 44rem) {
    .hba-cerca--compatta .hba-cerca-riga { display: grid; grid-template-columns: auto auto; justify-content: start; }
    .hba-cerca--compatta .hba-date-col { grid-column: 1 / -1; min-width: 15rem; }
    .hba-cerca--compatta .hba-ospiti-col { justify-self: start; margin: 0; }
    .hba-cerca--compatta .hba-cerca-go { justify-self: end; }
}
@container (max-width: 30rem) {
    .hba-cerca--compatta .hba-date-blk .hba-date-gb,
    .hba-cerca--compatta .hba-date-notti,
    .hba-cerca--compatta .hba-cerca-go-lungo { display: none; }
    .hba-cerca--compatta .hba-cerca-go-breve { display: inline; }
    .hba-cerca--compatta .hba-ospiti,
    .hba-cerca--compatta .hba-box-solo .hba-ospiti { gap: .4rem; padding: 0 .4rem 0 .6rem; }
    .hba-cerca--compatta .hba-cerca-go { padding: 0 1rem; }
}
.hba-ospiti-apri { display: none; align-items: center; height: 44px; padding: 0 .75rem; border: 1px solid var(--hb-bdr); border-radius: 10px; background: var(--hb-w); color: var(--hb-ink); font: inherit; font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
@container (max-width: 30rem) {
    .hba-cerca--compatta.hba-cerca--bambini .hba-ospiti-col { position: relative; }
    .hba-cerca--compatta.hba-cerca--bambini .hba-ospiti-apri { display: flex; }
    .hba-cerca--compatta.hba-cerca--bambini .hba-ospiti-box { display: none; position: absolute; top: calc(100% + .375rem); left: 0; z-index: 5; flex-direction: column; height: auto; padding: .25rem 0; }
    .hba-cerca--compatta.hba-cerca--bambini.is-ospiti-aperta .hba-ospiti-box { display: flex; }
    .hba-cerca--compatta.hba-cerca--bambini .hba-ospiti { flex: 0 0 auto; justify-content: space-between; gap: 1rem; min-width: 13rem; height: 52px; padding: 0 .75rem; }
    .hba-cerca--compatta.hba-cerca--bambini .hba-ospiti-sep { border-left: 0; border-top: 1px solid var(--hb-bdr); }
}
/* La compatta chiusa in alto è la stessa striscia della classica: niente riquadro attorno alle date. */
.hba-cerca--compatta.is-chiusa .hba-date-col { min-width: 0; min-height: 0; padding: 0; border: 0; background: none; }


/* ── Griglia e card (come .hassetbk-rooms-grid / .hassetbk-room-card) ── */
.hba-catalogo-link { margin: -.5rem 0 1rem; font-size: .88rem; }
.hba-catalogo-link a { color: var(--hb-acc); font-weight: 600; }
.hba-catalogo-link a:hover { text-decoration: underline; }
.hba-vuoto { margin: 0 0 1rem; color: var(--hb-ink); }

.hba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--hba-col, 16rem)), 1fr));
    gap: 1rem;
    min-width: 0;
}
.hba-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--hb-w);
    border: 1px solid var(--hb-bdr);
    border-radius: var(--hb-radius);
    transition: border-color .15s, box-shadow .15s;
}
.hba-card:not(.is-off):hover { border-color: var(--hb-bdr-strong); box-shadow: 0 6px 18px rgba(16, 24, 40, .08); }
.hba-card.is-off .hba-foto, .hba-card.is-off .hba-img-ph { opacity: .45; }
.hba-foto { position: relative; }
.hba-img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: var(--hb-bg); }
.hba-img-ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--hb-bg); color: #cbd5e1; font-size: 2.5rem; }
.hba-foto-n { position: absolute; right: .55rem; bottom: .55rem; padding: .2rem .55rem; border-radius: 99px; background: rgba(17, 24, 39, .7); color: #fff; font-size: .72rem; font-weight: 600; }
.hba-mappa { position: absolute; left: .55rem; bottom: .55rem; z-index: 1; display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .55rem; border-radius: 99px; background: rgba(17, 24, 39, .7); color: #fff; font-size: .72rem; font-weight: 600; line-height: 1.2; text-decoration: none; }
.hba-mappa::before { content: ""; position: absolute; inset: -.65rem -.4rem; }
.hba-mappa .bi { font-size: .8rem; }
.hba-mappa:hover, .hba-mappa:focus-visible { background: rgba(17, 24, 39, .85); color: #fff; }
/* Testi della card sotto la foto (come il widget): carattere di sistema, nome blu, posizione, dati e descrizione scuri a 14px */
.hba-card-body { flex: 1; display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.1rem; font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; line-height: 1.45; }
.hba-card-title { margin: 0; font-family: inherit; font-size: 1.2rem; font-weight: 700; line-height: 1.3; color: var(--hb-acc); }
.hba-card-pos { margin-top: -.3rem; font-size: .875rem; color: var(--hb-ink); }
.hba-card-pos .bi { font-size: .85rem; margin-right: .3rem; }
.hba-card-desc { margin: 0; font-size: .875rem; color: var(--hb-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; border-top: 1px solid var(--hb-bdr); padding-top: .55rem; }
.hba-card-periodo { margin: 0; font-size: .82rem; font-weight: 600; color: #166534; }
.hba-tag-off { align-self: flex-start; padding: .15rem .5rem; border-radius: var(--hb-radius-sm); background: var(--hb-w2); color: var(--hb-ink); font-size: .72rem; font-weight: 600; }
.hba-card-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
    margin: auto -1.1rem -1rem;
    padding: .9rem 1.1rem;
    border-top: 1px solid var(--hb-bdr);
}
.hba-azioni { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.hba-card .hba-azioni .hba-btn { flex: 1 1 auto; }
.hba-price { display: block; font-size: 1.15rem; font-weight: 700; color: var(--hb-text); line-height: 1.2; }
.hba-price-sub { display: block; font-size: .75rem; color: var(--hb-ink); }
.hba-price-nota { display: block; font-size: .72rem; color: var(--hb-ink); margin-top: .15rem; line-height: 1.3; }
.hba-price-pieno { display: block; font-size: .85rem; font-weight: 500; color: var(--hb-ink); text-decoration: line-through; }
.hba-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Riga caratteristiche (come .hassetbk-scheda) */
.hba-riga { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1rem; row-gap: .35rem; font-size: .875rem; color: var(--hb-ink); }
.hba-riga-gruppo { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem; }
.hba-riga-voce { display: inline-flex; align-items: center; gap: .28rem; }
.hba-riga-voce .bi { font-size: .8rem; line-height: 1; }
/* Caratteristiche come etichette: le prime 5, le altre dietro «+N» (clic in hb-alloggi.js) */
.hba-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.hba-chip { display: inline-flex; align-items: center; padding: .08rem .55rem; border: 1px solid var(--hb-bdr); border-radius: 999px; background: var(--hb-bg); color: var(--hb-ink); font-size: .74rem; line-height: 1.5; }
.hba-chips:not(.is-open) .hba-chip.is-extra { display: none; }
button.hba-chip-piu { cursor: pointer; font-family: inherit; font-weight: 600; color: var(--hb-acc-d); border-color: var(--hb-acc); background: var(--hb-w); }
button.hba-chip-piu:hover { background: var(--hb-acc-l); }

.hba-posizione { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; font-size: .8rem; color: var(--hb-ink); }
.hba-posizione-testo { display: inline-flex; align-items: center; gap: .3rem; }
.hba-posizione-mappa { color: var(--hb-acc); font-weight: 600; }

.hba-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin: 1.25rem 0 0; }
.hba-pager-stato { font-size: .85rem; color: var(--hb-ink); }

.hba-altri { margin: 1.5rem 0 0; }
.hba-altri-titolo { cursor: pointer; font-weight: 700; color: var(--hb-text); }
.hba-altri-nota { margin: .5rem 0 1rem; font-size: .85rem; color: var(--hb-ink); }

/* ── Scheda ── */
.hba-scheda-foto { margin: 0 0 1.25rem; }
.hba-scheda-cover-box { position: relative; }
.hba-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; line-height: 0; cursor: zoom-in; }
.hba-zoom picture { display: block; }
.hba-zoom:focus-visible { outline: 2px solid var(--hb-acc); outline-offset: 2px; border-radius: var(--hb-radius); }
.hba-scheda-cover { aspect-ratio: 16 / 9; border-radius: var(--hb-radius); }
.hba-zoom > .hba-img-ph, .hba-scheda-foto > .hba-img-ph { aspect-ratio: 16 / 9; border-radius: var(--hb-radius); line-height: 1; }
.hba-zoom .hba-foto-n { line-height: 1.2; }
/* Card: la copertina apre la galleria; se la foto non si carica, il segnaposto resta quello della card */
.hba-foto > .hba-zoom > .hba-img-ph { aspect-ratio: 4 / 3; border-radius: 0; }
.hba-scheda-galleria { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .5rem; margin-top: .5rem; }
.hba-scheda-thumb { border-radius: 10px; }

/* Galleria a tutto schermo (come #hassetbk-lb-overlay del widget) */
html.hba-lb-aperta, html.hba-lb-aperta body { overflow: hidden; }
.hba-lb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    background: rgba(29, 35, 39, .92);
    font-family: var(--hb-font);
    font-weight: 400;
    letter-spacing: normal;
    overscroll-behavior: none;
    animation: hba-lb-in .15s ease;
}
@keyframes hba-lb-in { from { opacity: 0; } to { opacity: 1; } }
.hba-lb-foto { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; cursor: zoom-out; touch-action: none; }
.hba-lb-foto img { position: absolute; inset: 0; margin: auto; max-width: 95%; max-height: 95%; width: auto; height: auto; object-fit: contain; cursor: grab; user-select: none; -webkit-user-drag: none; }
.hba-lb-nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.hba-lb-nav:hover { background: rgba(0, 0, 0, .7); }
.hba-lb-prec { left: 1rem; }
.hba-lb-succ { right: 1rem; }
.hba-lb-chiudi { position: absolute; top: 1rem; right: 1.25rem; z-index: 4; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 2.2rem; line-height: 1; opacity: .85; cursor: pointer; }
.hba-lb-chiudi:hover { opacity: 1; }
/* «Dettagli» della galleria aperta da una card: sopra la foto in basso a destra, lontano dalla X */
.hba-lb-dettagli { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; border-radius: var(--hb-radius-sm); background: var(--hb-acc); color: var(--hb-acc-tx); font-size: .95rem; font-weight: 700; text-decoration: none; box-shadow: 0 2px 12px rgba(0, 0, 0, .35); cursor: pointer; }
.hba-lb-dettagli:hover, .hba-lb-dettagli:focus { background: var(--hb-acc-d); color: var(--hb-acc-tx); }
.hba-lb-mappa { position: absolute; left: 1rem; bottom: 1rem; z-index: 3; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .75rem; border-radius: 99px; background: rgba(17, 24, 39, .7); color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.hba-lb-mappa::before { content: ""; position: absolute; inset: -.6rem -.4rem; }
.hba-lb-mappa .bi { font-size: .9rem; }
.hba-lb-mappa:hover, .hba-lb-mappa:focus-visible { background: rgba(17, 24, 39, .85); color: #fff; }
.hba-lb-miniature { flex: 0 0 auto; display: flex; gap: .4rem; overflow-x: auto; padding: .55rem .75rem; background: var(--hb-w); }
.hba-lb-mini { flex: 0 0 auto; padding: 0; border: 1.5px solid transparent; border-radius: 6px; overflow: hidden; background: none; line-height: 0; cursor: pointer; }
.hba-lb-mini img { display: block; width: auto; height: 64px; object-fit: cover; pointer-events: none; }
.hba-lb-mini.is-on { border-color: #6d6f73; }
.hba-scheda-corpo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.hba-scheda-testo { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.hba-scheda-titolo { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.25; color: var(--hb-text); }
.hba-scheda .hba-riga { font-size: .85rem; }
.hba-scheda-lead { margin: 0; font-size: 1rem; font-weight: 500; color: var(--hb-ink); }
.hba-scheda-descrizione { font-size: .92rem; color: var(--hb-ink); }
/* Scheda: sezioni con titolo e righetto (Descrizione, Servizi e dotazioni per gruppo, Posizione) */
.hba-scheda-sezione { display: flex; flex-direction: column; gap: .5rem; border-top: 1px solid var(--hb-bdr); padding-top: .9rem; }
.hba-scheda-sezione-titolo { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--hb-text); }
.hba-dot { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .8rem 1.25rem; }
.hba-dot-titolo { margin-bottom: .25rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--hb-ink); }
.hba-dot-lista { display: flex; flex-direction: column; gap: .2rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; color: var(--hb-ink); }
.hba-dot-lista li { display: flex; align-items: center; gap: .35rem; }
.hba-dot-lista .bi { color: var(--hb-acc); font-size: .9rem; }
.hba-comp-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .2rem 1.25rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; color: var(--hb-ink); }
.hba-comp-n { font-weight: 700; }

.hba-prenota {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.1rem;
    background: var(--hb-w);
    border: 1px solid var(--hb-bdr);
    border-radius: var(--hb-radius);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.hba-prenota-titolo { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--hb-text); }
.hba-prenota .hba-ospiti-box { align-self: stretch; }
.hba-prenota .hba-box-solo { align-self: flex-start; }
.hba-prenota-azioni { justify-content: stretch; }
.hba-prenota-azioni .hba-btn { flex: 1; }
.hba-catalogo { flex-basis: 100%; margin: 0; font-size: .9rem; color: var(--hb-ink); }

@media (min-width: 900px) {
    .hba-scheda-corpo { grid-template-columns: minmax(0, 1fr) 21rem; }
    .hba-prenota { position: sticky; top: 1rem; }
    .admin-bar .hba-prenota { top: calc(32px + 1rem); }
}

/* Calendario della scheda */
.hba-cal-testa { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.hba-cal-titolo { flex: 1; text-align: center; font-size: .95rem; font-weight: 600; color: var(--hb-text); }
.hba-cal-nav { width: 32px; height: 32px; padding: 0; border: 1px solid var(--hb-bdr); border-radius: var(--hb-radius-sm); background: var(--hb-w); color: var(--hb-text); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.hba-cal-nav:hover:not(:disabled) { background: var(--hb-bg); }
.hba-cal-nav:disabled { opacity: .35; cursor: default; }
.hba-cal-griglia { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.hba-cal-sett { padding: 4px 0; text-align: center; font-size: .65rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--hb-ink); }
.hba-day {
    aspect-ratio: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: var(--hb-radius-sm);
    background: var(--hb-w);
    color: var(--hb-text);
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
}
.hba-day:hover:not(:disabled) { background: var(--hb-acc-l); color: var(--hb-acc-d); }
.hba-day:disabled { cursor: default; color: #a7aaad; font-weight: 500; }
.hba-day.is-load { color: #cbd5e1; }
.hba-day.is-occ { background: #e8edf3; color: #7b8794; }
.hba-day.is-occ.is-out { background: var(--hb-w); color: var(--hb-text); }
.hba-day.is-in { background: var(--hb-acc-l); color: var(--hb-acc-d); border-radius: 0; }
.hba-day.is-start, .hba-day.is-end { background: var(--hb-acc); color: var(--hb-acc-tx); text-decoration: none; }
.hba-day.is-start:hover, .hba-day.is-end:hover { background: var(--hb-acc-d); color: var(--hb-acc-tx); }
.hba-cal-nota { margin: 0; min-height: 1.3em; font-size: .85rem; font-weight: 500; color: var(--hb-ink); }

.hba-prezzo { display: flex; flex-direction: column; gap: .1rem; padding: .75rem .85rem; border-radius: 10px; background: var(--hb-bg); }
.hba-prezzo-k { font-size: .75rem; font-weight: 600; color: var(--hb-ink); }
.hba-prezzo.is-load { color: var(--hb-ink); font-size: .88rem; }
.hba-prezzo.is-off { background: #fef2f2; color: #991b1b; font-size: .88rem; font-weight: 500; }

.hba-scheda-cerca { margin: 2rem 0 0; }
.hba-scheda-cerca-titolo { margin: 0 0 .25rem; font-size: 1.1rem; font-weight: 700; color: var(--hb-text); }
.hba-scheda-cerca-nota { margin: 0 0 .75rem; font-size: .88rem; color: var(--hb-ink); }

/* Scelta del piano nella scheda di un gruppo di alloggi simili (HAsset-Book 1.8.139): card e scheda alloggio */
.hba-piano { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; width: 100%; margin: 0; }
.hba-prenota .hba-piano { margin-top: .75rem; }
.hba-piano-k { font-size: .875rem; font-weight: 600; color: var(--hb-ink); white-space: nowrap; }
.hba-piano-sel {
    flex: 1 1 9rem;
    min-width: 0;
    min-height: 44px;
    padding: .55rem 2.2rem .55rem .7rem;
    border: 1px solid var(--hb-bdr-strong);
    border-radius: var(--hb-radius-sm);
    font: inherit;
    font-size: 16px;
    color: var(--hb-text);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: var(--hb-w) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d2327' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .8rem center;
}

/* Mappa accanto ai risultati (1.5.3): il foglio della mappa arriva da HAsset-Book (assets/css/hb-mappa-risultati.css) e usa
   i nomi dei colori di Prenota; qui gli si danno quelli del catalogo (stile scelto o tema del sito). */
.hba .hbm-vista {
    --acc: var(--hb-acc);
    --acc-d: var(--hb-acc-d);
    --acc-tx: var(--hb-acc-tx);
    --w: var(--hb-w);
    --w2: var(--hb-w2);
    --ink: var(--hb-ink);
    --text: var(--hb-text);
    --bdr: var(--hb-bdr);
    --bdr-strong: var(--hb-bdr-strong);
    --radius: var(--hb-radius);
    --radius-sm: var(--hb-radius-sm);
    --font: var(--hb-font);
    --font-tit: var(--hb-font);
}
