/* Booking flow pubblico – integra Tabler con il tema dell'hotel (variabili impostate nel layout). */
.be-body { background: var(--be-page, #f6f8fb); color: var(--be-text, #1d273b); font-family: var(--be-font, inherit); }
.be-header { background: var(--be-surface, #fff); border-bottom: 1px solid var(--be-border, #e6e7e9); }
.be-hotel-name { font-size: 1.25rem; font-weight: 700; }
.be-stars { color: #f59f00; font-size: .9rem; letter-spacing: 1px; }
.be-footer { border-top: 1px solid var(--be-border, #e6e7e9); background: var(--be-surface, #fff); }
.card, .btn, .form-control, .form-select, .alert { border-radius: var(--be-radius, 6px); }

.be-steps ol { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; list-style: none; padding: 1rem 0; margin: 0; }
.be-steps li { display: flex; align-items: center; gap: .5rem; color: var(--tblr-secondary-color, #8a8f98); font-weight: 500; }
.be-steps .num { display: inline-flex; width: 1.75rem; height: 1.75rem; border-radius: 50%; align-items: center; justify-content: center; border: 2px solid currentColor; font-size: .85rem; }
.be-steps li.current { color: var(--tblr-primary); }
.be-steps li.current .num { background: var(--tblr-primary); border-color: var(--tblr-primary); color: var(--tblr-primary-fg); }
.be-steps li.done { color: #2fb344; }

.be-room-row { border: 0; padding: .5rem 0; margin: 0; border-top: 1px dashed var(--be-border, #e6e7e9); }
.be-room-row:first-child { border-top: 0; }
.be-room-title { float: none; width: auto; font-size: .8rem; font-weight: 600; text-transform: uppercase; color: var(--tblr-secondary-color, #626976); margin-bottom: .25rem; }

.be-room-card.be-unavailable { opacity: .75; }
.be-offer { cursor: pointer; }
.be-offer:has(input:checked) { background: var(--tblr-primary-lt); box-shadow: inset 3px 0 0 var(--tblr-primary); }
.be-features { list-style: none; padding: 0; margin: .25rem 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .85rem; }
.be-features li { display: inline-flex; align-items: center; gap: .3rem; }
.be-features li:not([class]) { color: var(--tblr-secondary-color, #626976); }
.be-description { font-size: .9rem; }

.be-summary { position: sticky; top: 1rem; }
.be-summary-rooms { padding-left: 1.1rem; margin: 0; }
.be-summary-rooms li { margin-bottom: .4rem; }
.be-summary-room { padding: .75rem 0; border-top: 1px solid var(--be-border, #e6e7e9); }
.be-summary-room:first-of-type { border-top: 0; padding-top: 0; }
.be-policy summary { cursor: pointer; font-weight: 500; }

.be-empty-icon, .be-ok-icon { font-size: 3rem; color: var(--tblr-primary); }
.be-ok-icon { color: #2fb344; }
.be-code { font-size: 1.75rem; font-weight: 700; letter-spacing: .1em; font-family: var(--tblr-font-monospace); }
.be-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 991.98px) {
    .be-summary { position: static; }
}
.be-offer-restricted { color: var(--tblr-secondary-color, #8a8f98); background: var(--tblr-bg-surface-secondary, #fafbfc); }

/* Contenuti delle camere: copertina, servizi, finestra dettagli/galleria (roadmap §4.4) */
.be-room-head.has-photo { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
.be-room-cover { position: relative; display: block; padding: 0; border: 0; background: #e9ecef; cursor: zoom-in; overflow: hidden;
    border-radius: var(--be-radius, 6px) 0 0 0; min-height: 11rem; }
.be-room-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.be-room-cover:hover img, .be-room-cover:focus-visible img { transform: scale(1.04); }
.be-room-cover:focus-visible { outline: 3px solid var(--tblr-primary); outline-offset: -3px; }
.be-photo-count { position: absolute; right: .5rem; bottom: .5rem; background: rgba(0, 0, 0, .6); color: #fff; border-radius: 1rem; padding: .1rem .55rem; font-size: .8rem; display: inline-flex; align-items: center; }
@media (max-width: 575.98px) {
    .be-room-head.has-photo { grid-template-columns: 1fr; }
    .be-room-cover { aspect-ratio: 16 / 9; min-height: 0; border-radius: var(--be-radius, 6px) var(--be-radius, 6px) 0 0; }
}

.be-amenities { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .85rem; color: var(--tblr-secondary-color, #49505a); }
.be-amenities li { display: inline-flex; align-items: center; gap: .3rem; }
.be-amenities .ti { color: var(--tblr-primary); font-size: 1.05rem; }
.be-amenities-more { color: var(--tblr-secondary-color, #8a8f98); }
.be-amenities-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .5rem 1rem; }

.be-dialog { width: min(56rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; background: var(--be-surface, #fff); color: var(--be-text, inherit); border-radius: var(--be-radius, 6px); box-shadow: 0 1rem 3rem rgba(0, 0, 0, .3); }
.be-dialog::backdrop { background: rgba(15, 23, 42, .65); }
.be-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--be-border, #e6e7e9); position: sticky; top: 0; background: var(--be-surface, #fff); z-index: 2; }
.be-dialog-body { padding: 1rem; }
.be-gallery-stage { position: relative; background: #111; }
.be-gallery-slide { margin: 0; }
.be-gallery-slide img { display: block; width: 100%; height: auto; max-height: 65vh; object-fit: contain; background: #111; }
.be-gallery-slide figcaption { color: #e6e7e9; font-size: .85rem; padding: .4rem 1rem; background: #111; }
.be-gallery-pos { color: #adb5bd; }
.be-gallery-nav { position: absolute; top: 45%; transform: translateY(-50%); border: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(255, 255, 255, .85); color: #111; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }
.be-gallery-nav.prev { left: .75rem; }
.be-gallery-nav.next { right: .75rem; }
.be-gallery-nav:hover, .be-gallery-nav:focus-visible { background: #fff; }
.be-gallery-thumbs { display: flex; gap: .4rem; overflow-x: auto; padding: .5rem 1rem; background: var(--be-page, #f6f8fb); }
.be-gallery-thumbs button { flex: 0 0 auto; width: 4.5rem; height: 3.25rem; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: #e9ecef; opacity: .7; }
.be-gallery-thumbs button[aria-current="true"] { border-color: var(--tblr-primary); opacity: 1; }
.be-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Presentazione della struttura sopra i risultati: mosaico foto, testi, informazioni */
.be-hotel { overflow: hidden; }
.be-hotel-mosaic { display: grid; gap: 4px; height: clamp(12rem, 28vw, 19rem); grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.be-hotel-mosaic.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.be-hotel-mosaic.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.be-hotel-mosaic.n3 { grid-template-columns: 2fr 1fr; }
.be-hotel-mosaic.n4 { grid-template-columns: 2fr 1fr 1fr; }
.be-hotel-mosaic > :first-child { grid-row: 1 / -1; }
.be-hotel-mosaic.n4 > :nth-child(2) { grid-column: 2 / -1; }
.be-hotel-tile { position: relative; display: block; padding: 0; border: 0; background: #e9ecef; cursor: zoom-in; overflow: hidden; min-height: 0; }
.be-hotel-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.be-hotel-tile:hover img, .be-hotel-tile:focus-visible img { transform: scale(1.04); }
.be-hotel-tile:focus-visible { outline: 3px solid var(--tblr-primary); outline-offset: -3px; z-index: 1; }
.be-hotel-lead { font-size: 1.05rem; color: var(--tblr-secondary-color, #49505a); }
.be-hotel-text { white-space: normal; }
.be-hotel-text.be-collapsible.is-collapsed { max-height: 8.5rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.be-hotel-facts { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.be-hotel-facts li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; }
.be-hotel-facts .ti { color: var(--tblr-primary); font-size: 1.15rem; margin-top: .05rem; flex-shrink: 0; }
.be-hotel-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .75rem; align-items: start; }
.be-hotel-details { border: 1px solid var(--be-border, #e6e7e9); border-radius: var(--be-radius, 6px); padding: .6rem .9rem; background: var(--tblr-bg-surface-secondary, #fafbfc); }
.be-hotel-details summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; list-style: none; }
.be-hotel-details summary::-webkit-details-marker { display: none; }
.be-hotel-details summary::after { content: "\203A"; margin-left: auto; font-size: 1.3rem; line-height: 1; transition: transform .2s; color: var(--tblr-secondary-color, #8a8f98); }
.be-hotel-details[open] summary::after { transform: rotate(90deg); }
.be-hotel-details[open] summary { margin-bottom: .5rem; }
.be-hotel-details summary .ti { color: var(--tblr-primary); }
.be-hotel-mosaic .be-count-mobile { display: none; }
@media (max-width: 575.98px) {
    .be-hotel-mosaic, .be-hotel-mosaic.n2, .be-hotel-mosaic.n3, .be-hotel-mosaic.n4 { grid-template-columns: 1fr; grid-template-rows: 1fr; height: auto; aspect-ratio: 16 / 9; }
    .be-hotel-mosaic > :not(:first-child) { display: none; }
    .be-hotel-mosaic .be-count-mobile { display: inline-flex; }
}

/* Pagamenti online: scelta del metodo e pulsanti PayPal */
.be-methods { display: grid; gap: .5rem; }
.be-method { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem .9rem; border: 1px solid var(--tblr-border-color); border-radius: var(--be-radius, 6px); cursor: pointer; background: var(--tblr-bg-surface, #fff); }
.be-method:has(input:checked) { border-color: var(--tblr-primary); box-shadow: 0 0 0 1px var(--tblr-primary); }
.be-method .form-check-input { margin-top: .2rem; flex-shrink: 0; }
.be-paypal { max-width: 28rem; min-height: 3rem; }

/* Stile della struttura (04/11/2026, vedi App\Domain\Widget\WidgetTheme): font, titoli, campi, pulsanti, ombre */
.be-body h1, .be-body h2, .be-body h3, .be-body h4, .be-body .card-title, .be-hotel-name { font-family: var(--be-heading-font, var(--be-font, inherit)); color: var(--be-text, inherit); }
.be-body .card { background: var(--be-surface, #fff); border-color: var(--be-border, #e6e7e9); }
.be-shadow .card { box-shadow: var(--be-shadow); }
.be-body .form-control, .be-body .form-select { color: var(--be-text, inherit); border-color: var(--be-border, #dadfe5); background-color: var(--be-surface, #fff); }
.be-fields-filled .form-control, .be-fields-filled .form-select { background-color: color-mix(in srgb, var(--be-text) 6%, var(--be-surface)); border-color: transparent; }
.be-fields-underline .form-control, .be-fields-underline .form-select { border-width: 0 0 1px; border-radius: 0; background-color: transparent; padding-left: .15rem; }
.be-fields-underline .input-group .form-control { border-radius: 0; }
.be-btn-upper .btn { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.be-body .btn-primary { --tblr-btn-bg: var(--tblr-primary); --tblr-btn-border-color: var(--tblr-primary); --tblr-btn-color: var(--tblr-primary-fg); --tblr-btn-hover-bg: var(--tblr-primary-darken); --tblr-btn-hover-border-color: var(--tblr-primary-darken); --tblr-btn-hover-color: var(--tblr-primary-fg); --tblr-btn-active-bg: var(--tblr-primary-darken); --tblr-btn-active-color: var(--tblr-primary-fg); }
.be-body .btn-link { color: var(--tblr-primary); --tblr-btn-color: var(--tblr-primary); --tblr-btn-hover-color: var(--tblr-primary-darken); --tblr-btn-active-color: var(--tblr-primary-darken); }
.be-body a:not(.btn):not(.dropdown-item) { color: var(--tblr-primary); }

/* Passo "Aggiungi servizi" (fase R60) */
.be-extra { overflow: hidden; }
.be-extra-photo { display: block; width: 100%; height: 100%; min-height: 10rem; max-height: 14rem; object-fit: cover; }
.be-extra-placeholder { display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--tblr-primary); background: var(--tblr-primary-lt); }
.be-extra-qty { width: 5.5rem; }
.be-extra.be-extra-selected { box-shadow: inset 3px 0 0 var(--tblr-primary); }
.be-summary-extra { margin-top: .25rem; }
@media (max-width: 575.98px) {
    .be-extra-photo { max-height: 11rem; }
    .be-extra-placeholder { min-height: 5rem; height: 5rem; font-size: 2rem; }
}

/* Date alternative e "Richiedi informazioni" (fasi R61–R62) */
.be-alt { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.be-alt:hover, .be-alt:focus { border-color: var(--tblr-primary); box-shadow: 0 0 0 1px var(--tblr-primary); }
.be-help a { white-space: nowrap; }
.be-empty-icon.text-success { color: var(--tblr-success); }

/* Orario di arrivo e late check-in (fase R64) */
[data-be-late-alert][hidden], [data-be-late-line][hidden], [data-be-late-variant][hidden] { display: none !important; }

/* Caratteristiche della tipologia (fase R66) */
.be-room-features { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.be-room-features li { display: flex; align-items: center; gap: .4rem; }
.be-room-features .ti { color: var(--tblr-primary); font-size: 1.1rem; }

/* Ricerca multi-struttura con mappa (fase R68) */
.be-group-map { height: 360px; overflow: hidden; z-index: 0; }
.be-group-photo { width: 100%; height: 100%; min-height: 180px; max-height: 240px; object-fit: cover; display: flex; align-items: center; justify-content: center; border-radius: var(--be-radius, 4px) 0 0 var(--be-radius, 4px); }
.be-group-hotel.is-active { box-shadow: 0 0 0 2px var(--tblr-primary); }
.be-map-pin-wrap { background: none; border: 0; }
.be-map-pin { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; background: var(--tblr-primary); color: var(--tblr-primary-fg, #fff); font-weight: 600; font-size: .8rem; padding: .2rem .5rem; border-radius: 1rem; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.be-map-pin.no-price { padding: .25rem .4rem; }
.be-map-popup .btn { color: var(--tblr-primary-fg, #fff); }
@media (max-width: 575.98px) { .be-group-photo { border-radius: var(--be-radius, 4px) var(--be-radius, 4px) 0 0; max-height: 200px; } .be-group-map { height: 280px; } }

/* Telefono con prefisso (fase R69) */
.be-phone .be-phone-prefix { flex: 0 0 8.5rem; max-width: 8.5rem; text-overflow: ellipsis; }

/* Punti di interesse (fase R81) */
.be-poi-map { height: 380px; overflow: hidden; z-index: 0; border-radius: var(--be-radius, 4px); }
.be-poi-list { list-style: none; padding: 0; margin: 0; max-height: 380px; overflow-y: auto; }
.be-poi-list li { display: flex; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--tblr-border-color); }
.be-poi-list li:last-child { border-bottom: 0; }
.be-poi-icon { flex: 0 0 2.25rem; height: 2.25rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(var(--tblr-primary-rgb), .1); color: var(--tblr-primary); font-size: 1.15rem; }
.be-poi-desc { white-space: pre-line; }
.be-poi-actions { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.geo-pin-wrap { background: none; border: 0; }
.geo-pin { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; transform: translate(-50%, calc(-100% - 7px)); border-radius: 50%; background: var(--tblr-primary); color: var(--tblr-primary-fg, #fff); box-shadow: 0 2px 6px rgba(0,0,0,.3); border: 2px solid #fff; }
.geo-pin::after { content: ''; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); border: 6px solid transparent; border-top: 7px solid #fff; }
.geo-pin i { font-size: 16px; }
.geo-pin.is-hotel { background: #1d273b; color: #fff; }
@media (max-width: 991.98px) { .be-poi-list { max-height: none; } .be-poi-map { height: 300px; } }

/* Dove siamo (fase R82) */
.be-poi-map.is-hotel-only { height: 320px; }
.be-location-address { display: flex; gap: .75rem; }
.be-poi-icon.is-hotel { background: #1d273b; color: #fff; }
.be-map-link { white-space: nowrap; }

/* Dettaglio camera: foto e testi in un'unica vista (fase R83) */
.be-dialog-room.has-photos .be-gallery-slide img { max-height: 46vh; }
@media (min-width: 992px) {
    .be-dialog-room.has-photos { width: min(76rem, calc(100vw - 3rem)); height: min(46rem, calc(100vh - 3rem)); max-height: none; overflow: hidden; }
    .be-dialog-room.has-photos[open] { display: flex; flex-direction: column; }
    .be-dialog-room.has-photos .be-dialog-head { position: static; flex: 0 0 auto; }
    .be-dialog-room.has-photos .be-dialog-main { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(19rem, 2fr); }
    .be-dialog-room.has-photos .be-gallery { display: flex; flex-direction: column; min-height: 0; background: #111; }
    .be-dialog-room.has-photos .be-gallery-stage { flex: 1 1 auto; min-height: 0; display: flex; }
    .be-dialog-room.has-photos .be-gallery-slide:not([hidden]) { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
    .be-dialog-room.has-photos .be-gallery-slide img { flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
    .be-dialog-room.has-photos .be-gallery-slide figcaption { flex: 0 0 auto; }
    .be-dialog-room.has-photos .be-gallery-thumbs { flex: 0 0 auto; }
    .be-dialog-room.has-photos .be-dialog-body { overflow-y: auto; min-height: 0; padding: 1.25rem; border-left: 1px solid var(--be-border, #e6e7e9); }
    .be-dialog-room.has-photos .be-room-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; }
}
@media (max-width: 991.98px) {
    .be-dialog-room.has-photos { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); }
    .be-dialog-room.has-photos .be-gallery-slide img { max-height: 38vh; }
    .be-dialog-room .be-gallery-thumbs button { width: 3.5rem; height: 2.6rem; }
}

/* Camere nel preventivo: foto, caratteristiche e descrizione (fase R84) */
.be-showcase { display: flex; gap: 1rem; align-items: flex-start; }
.be-showcase + .be-showcase { margin-top: 1rem; }
.be-showcase-cover { position: relative; flex: 0 0 38%; max-width: 38%; padding: 0; border: 0; border-radius: var(--be-radius, 6px); overflow: hidden; background: #e9ecef; aspect-ratio: 4 / 3; cursor: zoom-in; }
.be-showcase-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.be-showcase-cover:hover img { transform: scale(1.04); }
.be-showcase-cover .be-photo-count { position: absolute; right: .5rem; bottom: .5rem; }
.be-showcase-body { flex: 1 1 auto; min-width: 0; }
.be-showcase.is-compact { display: block; margin: .5rem 0 .25rem; }
.be-showcase.is-compact .be-showcase-cover { display: block; width: 100%; max-width: none; aspect-ratio: 16 / 9; margin-bottom: .5rem; }
.be-showcase.is-compact .be-amenities { margin-top: .4rem; }
@media (max-width: 575.98px) { .be-showcase { display: block; } .be-showcase-cover { display: block; max-width: none; width: 100%; aspect-ratio: 16 / 9; margin-bottom: .75rem; } }

/* Logo del portale nell'intestazione, accanto al nome della struttura (fase R85) */
.be-portal-logo { max-height: 36px; max-width: 160px; width: auto; vertical-align: middle; margin-right: .6rem; }
@media (max-width: 575.98px) { .be-portal-logo { max-height: 28px; max-width: 110px; } }
