/* Blocchi ItaloSvizzero, impostati come le app di viaggio: foto arrotondate, testo quasi nero, grigio per i dettagli,
   ombre solo su ciò che "galleggia" (ricerca, riquadro di prenotazione). L'arancione solo su Cerca e Verifica disponibilità.
   Usano i colori e le misure del tema (variabili --isv-*), con valori di riserva. */

.isv-block-notice { padding: .8em 1em; border: 1px dashed rgba(207, 74, 10, .45); border-radius: 10px; background: #EEF6FD; color: var(--isv-ink, #222); font-size: .9rem; }

:where(.isv-rooms, .isv-room, .isv-search, .isv-contacts, .isv-filters) {
	--isv-r-card: 18px; --isv-soft: var(--isv-ink-soft, #6a6a6a); --isv-hair: rgba(41, 36, 30, .1); --isv-border: rgba(41, 36, 30, .16);
	--isv-float: 0 6px 20px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .06);
}

/* ==========================================================================
   Modulo di prenotazione: uguale in home (barra) e nella scheda alloggio (riquadro).
   Arrivo, partenza, ospiti; calendario a due mesi; bottone arancione profondo con testo bianco.
   ========================================================================== */
.isv-book, .isv-book__pop {
	--isv-b-accent: var(--isv-accent, #cf4a0a); --isv-b-on: var(--isv-on-accent, #fff); --isv-b-ink: var(--isv-ink, #29241e);
	--isv-b-soft: var(--isv-ink-soft, #665e55); --isv-b-line: rgba(41, 36, 30, .14); --isv-b-tint: var(--isv-band-light, #EEF6FD);
	color: var(--isv-b-ink); font-family: var(--isv-font, inherit);
}
.isv-book { position: relative; }
.isv-book__title { margin: 0 0 .8rem; font-weight: 700; font-size: 1.05rem; }
.isv-book__fields { display: grid; background: #fff; }
.isv-book__field {
	display: flex; align-items: center; gap: .8rem; min-width: 0; width: 100%; margin: 0;
	padding: .75rem 1rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
	border-radius: 10px; transition: background-color .15s;
}
.isv-book__field:hover, .isv-book__field[aria-expanded="true"] { background: var(--isv-b-tint); }
.isv-book__field:focus-visible { outline: 2px solid var(--isv-b-ink); outline-offset: -2px; }
.isv-book__field > .isv-ico { width: 22px; height: 22px; color: var(--isv-b-soft); }
.isv-book__field > span { display: flex; flex-direction: column; min-width: 0; }
.isv-book__label { font-size: .8rem; font-weight: 700; color: var(--isv-b-ink); }
.isv-book__value { font-size: .98rem; color: var(--isv-b-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.has-dates .isv-book__value, .isv-book__field--guests .isv-book__value { color: var(--isv-b-ink); font-weight: 600; }
.isv-book__go {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	border: 0; border-radius: var(--isv-btn-radius, 10px); background: var(--isv-b-accent); color: var(--isv-b-on);
	font: inherit; font-weight: 700; font-size: 1.02rem; padding: 0 1.7rem; min-height: 56px; cursor: pointer;
	box-shadow: 0 6px 16px rgba(207, 74, 10, .24); transition: background-color .15s;
}
.isv-book__go:hover { background: color-mix(in srgb, var(--isv-b-accent) 86%, #000); }
.isv-book__go:focus-visible { outline: 3px solid var(--isv-b-ink); outline-offset: 2px; }
.isv-book__go .isv-ico { width: 1.15em; height: 1.15em; stroke-width: 2.4; }

/* Barra (home): una riga, separatori sottili. */
.isv-book--bar .isv-book__fields {
	grid-template-columns: 1fr 1fr 1.15fr auto; align-items: center; gap: 4px;
	padding: 8px; border-radius: 16px; box-shadow: 0 18px 50px rgba(15, 19, 21, .22), 0 2px 6px rgba(15, 19, 21, .08);
}
.isv-book--bar .isv-book__field + .isv-book__field { position: relative; }
.isv-book--bar .isv-book__field + .isv-book__field::before { content: ''; position: absolute; left: -2px; top: 22%; bottom: 22%; width: 1px; background: var(--isv-b-line); }
.isv-book--bar .isv-book__go { min-height: 60px; }

/* Riquadro (scheda): campi in una cornice, bottone sotto. */
.isv-book--box .isv-book__fields { grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid rgba(41, 36, 30, .24); border-radius: 12px; }
.isv-book--box .isv-book__field { border-radius: 0; padding: .7rem .85rem; }
.isv-book--box .isv-book__field > .isv-ico { display: none; }
.isv-book--box .isv-book__field--in { border-radius: 11px 0 0 0; }
.isv-book--box .isv-book__field--out { border-left: 1px solid rgba(41, 36, 30, .24); border-radius: 0 11px 0 0; }
.isv-book--box .isv-book__field--guests { grid-column: span 2; border-top: 1px solid rgba(41, 36, 30, .24); border-radius: 0 0 11px 11px; }
.isv-book--box .isv-book__go { grid-column: span 2; margin: 14px -1px -1px; min-height: 54px; border-radius: 10px; }
.isv-book--box .isv-book__fields { overflow: visible; }

/* Finestre: date e ospiti. */
.isv-book__pop {
	position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
	padding: 20px 22px; background: #fff; border-radius: 18px;
	box-shadow: 0 24px 60px rgba(15, 19, 21, .24), 0 2px 8px rgba(15, 19, 21, .08);
}
.isv-book__pop[hidden] { display: none; }
/* Finestra uscita da un blocco che taglia (fascia con foto): appoggiata alla pagina, sotto i campi. */
.isv-book__pop.is-float { position: absolute; right: auto; z-index: 60; text-align: left; line-height: 1.5; }
.isv-book__pop--dates { width: min(720px, calc(100vw - 32px)); }
.isv-book__pop--guests { left: auto; right: 0; width: min(360px, calc(100vw - 32px)); }
.isv-book--box .isv-book__pop--dates { left: auto; right: 0; }
.isv-book__pophead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.isv-book__hint { margin: 0; font-weight: 700; font-size: 1rem; }
.isv-book__nav { display: flex; gap: 6px; }
.isv-book__arrow { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--isv-b-line); border-radius: 50%; background: #fff; color: var(--isv-b-ink); cursor: pointer; }
.isv-book__arrow:hover:not(:disabled) { border-color: var(--isv-b-ink); }
.isv-book__arrow:disabled { opacity: .35; cursor: default; }
.isv-book__arrow .isv-ico { width: 18px; height: 18px; stroke-width: 2.2; }
.isv-book__arrow--next .isv-ico { transform: scaleX(-1); }
.isv-book__months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.isv-cal__title { margin: 0 0 8px; text-align: center; font-weight: 700; text-transform: capitalize; }
.isv-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.isv-cal__wd { padding: 6px 0; text-align: center; font-size: .75rem; font-weight: 700; color: var(--isv-b-soft); text-transform: uppercase; }
.isv-cal__day {
	position: relative; height: 42px; border: 0; background: none; color: var(--isv-b-ink);
	font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; border-radius: 0; font-variant-numeric: tabular-nums;
}
.isv-cal__day::after { content: ''; position: absolute; inset: 1px 3px; border-radius: 50%; border: 1.5px solid transparent; z-index: -1; }
.isv-cal__day { z-index: 0; }
.isv-cal__day:hover:not(:disabled)::after { border-color: var(--isv-b-ink); }
.isv-cal__day:disabled { color: rgba(41, 36, 30, .28); cursor: default; }
.isv-cal__day.in-range { background: color-mix(in srgb, var(--isv-b-accent) 11%, #fff); }
.isv-cal__day.is-start, .isv-cal__day.is-end { color: #fff; }
.isv-cal__day.is-start::after, .isv-cal__day.is-end::after { background: var(--isv-b-accent); border-color: var(--isv-b-accent); }
.isv-cal__day.is-start { background: linear-gradient(90deg, transparent 50%, color-mix(in srgb, var(--isv-b-accent) 11%, #fff) 50%); }
.isv-cal__day.is-end { background: linear-gradient(90deg, color-mix(in srgb, var(--isv-b-accent) 11%, #fff) 50%, transparent 50%); }
.isv-cal__day.is-start:not(:has(~ .in-range, ~ .is-end)) { background: none; }
.isv-book__months.is-preview .in-range { background: color-mix(in srgb, var(--isv-b-accent) 6%, #fff); }
.isv-cal__day:focus-visible { outline: 2px solid var(--isv-b-ink); outline-offset: -2px; border-radius: 50%; }
.isv-book__popfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--isv-b-line); }
.isv-book__link { border: 0; background: none; padding: .4rem 0; font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; color: var(--isv-b-ink); cursor: pointer; }
.isv-book__done { border: 0; border-radius: 10px; padding: .7rem 1.4rem; background: var(--isv-b-ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.isv-book__guest { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--isv-b-line); }
.isv-book__guest > span:first-child { display: flex; flex-direction: column; }
.isv-book__glabel { font-weight: 700; }
.isv-book__gnote { font-size: .88rem; color: var(--isv-b-soft); }
.isv-book__stepper { display: flex; align-items: center; gap: 14px; }
.isv-book__stepper button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(41, 36, 30, .24); border-radius: 50%; background: #fff; color: var(--isv-b-ink); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.isv-book__stepper button:hover:not(:disabled) { border-color: var(--isv-b-ink); }
.isv-book__stepper button:disabled { opacity: .3; cursor: default; }
.isv-book__stepper output { min-width: 1.5em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.isv-book__gcap { margin: 12px 0 0; font-weight: 650; font-size: .92rem; }
.isv-book__gfoot { margin: 12px 0 0; font-size: .86rem; color: var(--isv-b-soft); line-height: 1.45; }

/* Telefono: la barra va su più righe, le finestre salgono dal basso. */
@media (max-width: 760px) {
	.isv-book--bar .isv-book__fields { grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; }
	.isv-book--bar .isv-book__field--guests { grid-column: span 2; }
	.isv-book--bar .isv-book__field--guests::before, .isv-book--bar .isv-book__field--in + .isv-book__field::before { display: none; }
	.isv-book--bar .isv-book__go { grid-column: span 2; min-height: 54px; margin-top: 4px; }
	.isv-book--bar .isv-book__field > .isv-ico { display: none; }
	.isv-book--bar .isv-book__field { padding: .7rem .8rem; }
	/* La finestra sale dal basso e sta tutta nello spazio visibile: dvh è l'altezza con le barre del browser (vh no:
	   su iPhone è l'altezza senza barre, e la parte alta della finestra finiva sotto la barra degli indirizzi). */
	.isv-book__pop, .isv-book--box .isv-book__pop--dates, .isv-book__pop--guests {
		position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 80vh; max-height: calc(100dvh - 72px);
		overflow-y: auto; overscroll-behavior: contain; z-index: 400;
		border-radius: 20px 20px 0 0; padding: 0 18px calc(18px + env(safe-area-inset-bottom));
	}
	/* Titolo e frecce fermi in alto mentre la finestra scorre: sempre a portata di dito. */
	.isv-book__pophead { position: sticky; top: 0; z-index: 2; margin: 0 -18px 6px; padding: 16px 18px 10px; background: #fff; border-radius: 20px 20px 0 0; }
	.isv-book__pop--guests { padding-top: 12px; }
	.isv-book__arrow { width: 44px; height: 44px; }
	.isv-book.is-open::before { content: ''; position: fixed; inset: 0; z-index: 399; background: rgba(15, 19, 21, .5); }
	.isv-book__months { grid-template-columns: 1fr; gap: 18px; }
	.isv-cal__day { height: 46px; }
	.isv-book__popfoot { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); margin: 14px -18px calc(-18px - env(safe-area-inset-bottom)); padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: #fff; }
}
html.isv-book-sheet { overflow: hidden; }
/* Su telefono la finestra aperta deve stare sopra header e barra in basso. */
@media (max-width: 760px) {
	.e-con:has(.isv-book.is-open), .isv-room__box:has(.isv-book.is-open) { z-index: 500 !important; }
	html.isv-book-sheet .isv-tabbar { display: none !important; }
}
@media (min-width: 761px) { html.isv-book-sheet { overflow: visible; } }

/* ---------- Prezzo ---------- */
.isv-price { margin: 0; color: var(--isv-soft, #6a6a6a); font-size: .95rem; line-height: 1.2; }
.isv-price strong { color: var(--isv-ink, #222); font-size: 1.25em; font-weight: 700; font-variant-numeric: tabular-nums; }
.isv-price--big strong { font-size: 1.6em; }

/* ---------- Filtri sopra l'elenco: pillole con icona ---------- */
.isv-filters { display: flex; gap: 10px; margin: 0 0 28px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.isv-filters::-webkit-scrollbar { display: none; }
.isv-filters__item {
	display: inline-flex; align-items: center; gap: .5rem; flex: none;
	padding: .6rem 1.05rem; border: 1px solid var(--isv-border); border-radius: 999px; background: #fff;
	color: var(--isv-ink, #222); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.isv-filters__item[hidden] { display: none; }
.isv-filters__item:hover { border-color: var(--isv-ink, #222); }
.isv-filters__item[aria-pressed="true"] { background: var(--isv-accent, #CF4A0A); border-color: var(--isv-accent, #CF4A0A); color: #fff; }
.isv-filters__item:focus-visible { outline: 2px solid var(--isv-ink, #222); outline-offset: 2px; }
.isv-filters__item .isv-ico { width: 1.2em; height: 1.2em; }
@media (max-width: 640px) { .isv-filters { margin-inline: -18px; padding: 2px 18px; margin-bottom: 22px; } }

/* ---------- Elenco alloggi: schede come in un'app di viaggio ---------- */
.isv-rooms { display: grid; gap: 40px 24px; grid-template-columns: repeat(var(--isv-cols, 3), minmax(0, 1fr)); }
/* "hidden" vince sempre: filtri e pagina dei salvati nascondono le schede con l'attributo, e le regole che
   danno alle schede display: flex (per esempio .isv-rooms--cards .isv-room-card) non devono riaccenderle. */
.isv-room-card[hidden], .isv-rooms[hidden], .isv-saved-empty[hidden], .isv-filters__item[hidden] { display: none !important; }
@media (max-width: 1280px) { .isv-rooms { grid-template-columns: repeat(min(var(--isv-cols, 3), 4), minmax(0, 1fr)); } }
@media (max-width: 1024px) { .isv-rooms { grid-template-columns: repeat(min(var(--isv-cols, 3), 3), minmax(0, 1fr)); } }
@media (max-width: 760px) { .isv-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }
@media (max-width: 560px) {
	.isv-rooms { grid-template-columns: 1fr; gap: 32px; }
	/* Su telefono, se chiesto: le schede scorrono in orizzontale con il dito. */
	.isv-rooms--scroll {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
		margin-inline: -18px; padding: 2px 18px 8px; scroll-padding-inline: 18px; scrollbar-width: none;
	}
	.isv-rooms--scroll::-webkit-scrollbar { display: none; }
	.isv-rooms--scroll .isv-room-card { flex: 0 0 80%; scroll-snap-align: start; }
}

.isv-room-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.isv-room-card__media { position: relative; aspect-ratio: 20 / 19; overflow: hidden; border-radius: var(--isv-r-card); background: var(--isv-b-tint); }
.isv-room-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
@media (hover: hover) { .isv-room-card:hover .isv-room-card__media img { transform: scale(1.03); } }
.isv-room-card__noimg { display: grid; place-items: center; height: 100%; color: var(--isv-soft); }
.isv-room-card__noimg .isv-ico { width: 48px; height: 48px; }
.isv-room-card__badge {
	position: absolute; top: 14px; left: 14px; padding: .35rem .75rem; border-radius: 999px;
	background: #fff; color: var(--isv-ink, #222); font-size: .8rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.isv-room-card__body { display: flex; flex-direction: column; gap: .15rem; padding-top: .75rem; }
.isv-room-card__title { margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.3; letter-spacing: 0; color: var(--isv-heading, #222); }
.isv-room-card__link { color: inherit; text-decoration: none; }
.isv-room-card__link:hover { color: inherit; text-decoration: none; }
.isv-room-card__link::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: var(--isv-r-card); }
.isv-room-card__link:focus-visible { outline: none; }
.isv-room-card__link:focus-visible::after { outline: 3px solid var(--isv-ink, #222); outline-offset: 4px; }
.isv-room-card__meta { margin: 0; font-size: .95rem; color: var(--isv-soft); }
.isv-room-card__summary { margin: .2rem 0 0; font-size: .92rem; line-height: 1.5; color: var(--isv-soft); }
.isv-room-card__price { margin: .3rem 0 0; font-size: .95rem; color: var(--isv-ink, #222); }
.isv-room-card__price strong { font-weight: 700; }
.isv-room-card__price span:first-child { color: var(--isv-soft); }
.isv-room-card__cta { margin-top: .5rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }

/* Cuore "Salva" sulla foto: bianco con l'interno velato; salvato = pieno, nell'arancione del sito. */
.isv-fav {
	position: absolute; top: 10px; right: 10px; z-index: 3; display: grid; place-items: center;
	width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; color: #fff;
}
/* "Salva" con il cuore del logo: spento è una sagoma bianca, acceso prende i colori (verde Italia, rosso Svizzera). */
.isv-cuore { display: block; overflow: visible; }
.isv-cuore__it { fill: #008b57; } .isv-cuore__ch { fill: #ca4645; } .isv-cuore__x { fill: #fff; }
.isv-room__direct { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: .9rem; color: var(--isv-ink-soft, #6a6a6a); }
.isv-room__direct .isv-cuore { width: 20px; height: 18px; }
.isv-cuore path { transition: fill .18s, stroke .18s; }
.isv-fav .isv-cuore { width: 28px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); transition: transform .15s; }
.isv-fav .isv-cuore :is(.isv-cuore__it, .isv-cuore__ch) { fill: rgba(0, 0, 0, .38); stroke: #fff; stroke-width: 7; stroke-linejoin: round; paint-order: stroke; }
.isv-fav .isv-cuore .isv-cuore__x { fill: transparent; }
.isv-fav:hover .isv-cuore { transform: scale(1.08); }
:is(.isv-room__save, .isv-room__fab--save) .isv-cuore { width: 1.35em; height: 1.25em; }
:is(.isv-room__save, .isv-room__fab--save) .isv-cuore :is(.isv-cuore__it, .isv-cuore__ch) { fill: none; stroke: currentColor; stroke-width: 7; stroke-linejoin: round; }
:is(.isv-room__save, .isv-room__fab--save) .isv-cuore .isv-cuore__x { fill: transparent; }
:is(.isv-fav, .isv-room__save, .isv-room__fab--save)[aria-pressed="true"] .isv-cuore .isv-cuore__it { fill: #008b57; }
:is(.isv-fav, .isv-room__save, .isv-room__fab--save)[aria-pressed="true"] .isv-cuore .isv-cuore__ch { fill: #ca4645; }
:is(.isv-fav, .isv-room__save, .isv-room__fab--save)[aria-pressed="true"] .isv-cuore .isv-cuore__x { fill: #fff; }
:is(.isv-room__save, .isv-room__fab--save)[aria-pressed="true"] .isv-cuore :is(.isv-cuore__it, .isv-cuore__ch) { stroke: transparent; }
.isv-fav[aria-pressed="true"] .isv-cuore { animation: isv-batte .35s ease-out; }
@keyframes isv-batte { 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.isv-fav:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .isv-fav .isv-cuore, .isv-cuore path { transition: none; animation: none !important; } }


/* ---------- Icone ---------- */
.isv-ico { width: 1.25em; height: 1.25em; flex: none; }

/* ==========================================================================
   Scheda alloggio, impostata come un annuncio
   ========================================================================== */
.isv-room { color: var(--isv-ink, #222); }
.isv-room__head { margin-bottom: 24px; }
.isv-room__back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 14px; font-size: .95rem; font-weight: 600; color: var(--isv-ink, #222); text-decoration: none; }
.isv-room__back:hover { color: var(--isv-ink, #222); text-decoration: underline; text-underline-offset: .2em; }
.isv-room__back .isv-ico { width: 1.05em; height: 1.05em; stroke-width: 2.2; }
.isv-room__titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.isv-room__title { margin: 0; font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--isv-heading, #222); }
.isv-room__share {
	display: inline-flex; align-items: center; gap: .45rem; flex: none; padding: .45rem .65rem; margin-right: -.65rem;
	border: 0; border-radius: 8px; background: none; color: var(--isv-ink, #222); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
}
.isv-room__share span { text-decoration: underline; text-underline-offset: .2em; }
.isv-room__share:hover { background: var(--isv-b-tint); }
.isv-room__share .isv-ico { width: 1.1em; height: 1.1em; }
.isv-room__actions { display: flex; gap: 4px; flex: none; }
.isv-room__actions .isv-room__share { margin-right: 0; }
.isv-room__actions .isv-room__share:last-child { margin-right: -.65rem; }

/* Foto: una grande e quattro piccole. */
.isv-room__gallery-wrap { position: relative; margin-bottom: clamp(32px, 4vw, 48px); }
.isv-room__fab, .isv-room__count { display: none; }
.isv-room__gallery {
	display: grid; gap: 8px; border-radius: var(--isv-r-card); overflow: hidden;
	grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(140px, 15vw, 230px);
}
.isv-room__photo { display: block; overflow: hidden; background: var(--isv-b-tint); position: relative; }
.isv-room__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
@media (hover: hover) { .isv-room__photo:hover img { filter: brightness(.9); } }
.isv-room__photo.is-main { grid-row: span 2; }
.isv-room__photo:nth-child(n+6) { display: none; }
.isv-room__gallery[data-count="1"] { grid-template-columns: 1fr; grid-auto-rows: clamp(240px, 40vw, 520px); }
.isv-room__gallery[data-count="1"] .is-main { grid-row: auto; }
.isv-room__gallery[data-count="2"], .isv-room__gallery[data-count="3"], .isv-room__gallery[data-count="4"] { grid-template-columns: 2fr 1fr; }
.isv-room__gallery[data-count="3"] .isv-room__photo:nth-child(n+4),
.isv-room__gallery[data-count="4"] .isv-room__photo:nth-child(n+4) { display: none; }
/* "Mostra tutte le foto": la quinta foto apre la presentazione a schermo intero. */
.isv-room__photo[data-more]::after {
	content: attr(data-more); position: absolute; right: 14px; bottom: 14px;
	padding: .45rem .85rem; border-radius: 8px; background: #fff; color: var(--isv-ink, #222); border: 1px solid var(--isv-ink, #222);
	font-size: .85rem; font-weight: 600;
}

.isv-room__layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.isv-room__main > * + * { border-top: 1px solid var(--isv-hair); }
.isv-room__intro { padding-bottom: 24px; }
.isv-room__kind { margin: 0; font-size: 1.35rem; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; color: var(--isv-heading, #222); }
.isv-room__facts { margin: .3rem 0 0; font-size: 1rem; color: var(--isv-ink, #222); }
.isv-room__host { display: flex; align-items: center; gap: 16px; padding: 24px 0; }
.isv-room__avatar {
	display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
	background: var(--isv-accent, #CF4A0A); color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: .02em;
}
.isv-room__avatar.has-cuore { background: #fff; border: 1px solid var(--isv-hair, #ebebeb); }
.isv-room__avatar.has-cuore .isv-cuore { width: 30px; height: 27px; }
.isv-room__avatar.has-img { background: #fff; border: 1px solid var(--isv-hair); }
.isv-room__avatar img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.isv-room__host-name { margin: 0; font-weight: 650; }
.isv-room__host-info { margin: 0; font-size: .92rem; color: var(--isv-soft); }
.isv-room__points { list-style: none; margin: 0; padding: 32px 0; display: grid; gap: 24px; }
.isv-room__points li { display: flex; align-items: flex-start; gap: 22px; }
.isv-room__points .isv-ico { width: 26px; height: 26px; margin-top: 2px; }
.isv-room__point-title { margin: 0; font-weight: 650; }
.isv-room__point-text { margin: .1rem 0 0; font-size: .92rem; color: var(--isv-soft); }
.isv-room__text { padding: 32px 0; max-width: 66ch; }
.isv-room__text p { margin: 0 0 1em; line-height: 1.6; }
.isv-room__more summary { display: inline-flex; align-items: center; gap: .3rem; margin: .1rem 0 0; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; list-style: none; }
.isv-room__more summary::-webkit-details-marker { display: none; }
.isv-room__more summary::after { content: ''; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-left: .15rem; }
.isv-room__more[open] summary { margin-bottom: 1rem; }
.isv-room__more .isv-more-close, .isv-room__more[open] .isv-more-open { display: none; }
.isv-room__more[open] .isv-more-close { display: inline; }
.isv-room__more[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.isv-room__amenities { padding: 40px 0; }
.isv-room__subtitle { margin: 0 0 1.4rem; font-size: 1.35rem; font-weight: 650; letter-spacing: -.01em; color: var(--isv-heading, #222); }
.isv-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2rem; max-width: 640px; }
.isv-features li { display: flex; align-items: center; gap: 1rem; color: var(--isv-ink, #222); }
.isv-features .isv-ico { width: 1.5em; height: 1.5em; color: var(--isv-ink, #222); }
.isv-room__allfeat summary { margin-top: 2rem; list-style: none; cursor: pointer; }
.isv-room__allfeat summary::-webkit-details-marker { display: none; }
.isv-room__allfeat[open] summary { display: none; }
.isv-room__allfeat .isv-features { margin-top: 1.1rem; }
.isv-btn-outline { display: inline-block; padding: .8rem 1.4rem; border: 1px solid var(--isv-ink, #222); border-radius: 10px; font-weight: 650; color: var(--isv-ink, #222); background: #fff; }
.isv-btn-outline:hover { background: var(--isv-b-tint); }

/* Riquadro di prenotazione, fermo a lato mentre si scorre. */
.isv-room__aside { position: sticky; top: calc(var(--isv-header-h, 76px) + 28px); }
.isv-room__box { padding: 24px; border-radius: 14px; border: 1px solid var(--isv-border); background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.isv-room__box .isv-price { margin-bottom: 1.2rem; }
.isv-room__cta { width: 100%; justify-content: center; margin-top: 14px; padding-block: 1rem !important; border-radius: 10px !important; font-size: 1rem !important; font-weight: 700; }
.isv-room__mobilecta { display: none !important; }
.isv-room__hint { margin: .8rem 0 0; font-size: .85rem; color: var(--isv-soft); line-height: 1.45; text-align: center; }
/* Codici ripetuti nella colonna del testo: servono solo su telefono, dove il riquadro diventa una barra. */
.isv-room__codes.isv-room__codes--inline { display: none; }
.isv-room__codes { margin: 1.1rem 0 0; display: flex; flex-direction: column; gap: .15rem; font-size: .78rem; color: var(--isv-soft); font-variant-numeric: tabular-nums; text-align: center; }

/* "Richiedi informazioni": nel riquadro su computer, sotto "Vi ospita" su telefono e tablet. */
.isv-room__ask {
	display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; margin: 14px 0 0; padding: .8rem 1rem;
	border: 1px solid var(--isv-ink, #29241e); border-radius: 10px; background: #fff; color: var(--isv-ink, #29241e);
	font-weight: 650; text-decoration: none; cursor: pointer; transition: background-color .15s;
}
.isv-room__ask .isv-ico { width: 18px; height: 18px; flex: none; }
.isv-room__ask:hover { background: var(--isv-band-light, #EEF6FD); color: var(--isv-ink, #29241e); }
.isv-room__ask:focus-visible { outline: 2px solid var(--isv-ink, #29241e); outline-offset: 2px; }
.isv-room__ask--main { display: none; }

/* Finestra con il modulo di Vik. Su telefono sale dal basso e resta tutta nello spazio visibile (dvh: senza le barre del browser). */
.isv-ask {
	--isv-b-accent: var(--isv-accent, #cf4a0a); --isv-b-ink: var(--isv-ink, #29241e);
	width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
	margin: auto; padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--isv-b-ink);
	font-family: var(--isv-font, inherit); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); overflow: auto; overscroll-behavior: contain;
}
.isv-ask::backdrop { background: rgba(15, 19, 21, .5); }
.isv-ask__in { padding: 24px; }
.isv-ask__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.isv-ask__title { margin: 0; font-family: var(--isv-font-heading, var(--isv-font, inherit)); font-size: 1.35rem; font-weight: 650; line-height: 1.2; color: var(--isv-heading, var(--isv-b-ink)); }
.isv-ask__room { margin: .25rem 0 0; color: var(--isv-ink-soft, #665e55); }
.isv-ask__close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(41, 36, 30, .2); border-radius: 50%; background: #fff; color: var(--isv-b-ink); cursor: pointer; }
.isv-ask__close:hover { border-color: var(--isv-b-ink); }
.isv-ask__close:focus-visible { outline: 2px solid var(--isv-b-ink); outline-offset: 2px; }
.isv-ask__wait { margin: 0 0 8px; color: var(--isv-ink-soft, #665e55); }
.isv-ask form { margin: 0; }
.isv-ask .vbdialog-reqinfo-formentry { margin: 0 0 14px; }
/* Vik aggiunge 20 px sotto il contenitore dei campi: la finestra resta con lo stesso spazio sopra e sotto. */
.isv-ask .vbdialog-reqinfo-formcont, .isv-ask .vbdialog-reqinfo-formentry.vbdialog-reqinfo-formsubmit, .isv-ask .vbdialog-reqinfo-formentry:last-child { margin-bottom: 0 !important; }
.isv-ask .vbdialog-reqinfo-formentry > label { display: block; margin: 0 0 5px; font-size: .9rem; font-weight: 700; }
.isv-ask :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
	display: block; width: 100%; box-sizing: border-box; margin: 0; padding: .75rem .9rem; border: 1px solid rgba(41, 36, 30, .24);
	border-radius: 10px; background: #fff; color: inherit; font: inherit; font-size: 1rem;
}
.isv-ask textarea { min-height: 120px; resize: vertical; }
.isv-ask :is(input, textarea):focus-visible { outline: 2px solid var(--isv-b-ink); outline-offset: 1px; border-color: var(--isv-b-ink); }
.isv-ask .vbdialog-reqinfo-formentry-ckbox { display: flex; align-items: flex-start; gap: 10px; }
.isv-ask .vbdialog-reqinfo-formentry-ckbox input { order: -1; flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--isv-b-accent); }
.isv-ask .vbdialog-reqinfo-formentry-ckbox label { margin: 0; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.isv-ask .vbdialog-reqinfo-formentry-ckbox a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
/* Il bottone di Vik porta la classe vbo-pref-color-btn: lo snippet CSS del sito (WPCode) lo colora di blu con !important.
   Qui è il bottone principale della finestra, col colore del sito. */
dialog.isv-ask button[type="submit"], dialog.isv-ask input[type="submit"] {
	display: block; width: 100% !important; margin: 4px 0 0; padding: .95rem 1.2rem; border: 0 !important; border-radius: 10px !important;
	background: var(--isv-b-accent) !important; color: var(--isv-on-accent, #fff) !important; font: inherit; font-weight: 700; cursor: pointer; box-shadow: none !important;
}
dialog.isv-ask button[type="submit"]:hover { filter: brightness(.94); }
dialog.isv-ask button[type="submit"]:focus-visible { outline: 2px solid var(--isv-b-ink); outline-offset: 2px; }
dialog.isv-ask button[type="submit"]:disabled { opacity: .7; cursor: default; }
@media (max-width: 760px) {
	.isv-ask { width: 100%; max-width: none; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
	.isv-ask__in { padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
}

@media (max-width: 900px) {
	.isv-room__layout { grid-template-columns: 1fr; }
	/* Il riquadro del prezzo diventa la barra in basso (al posto della barra di navigazione). */
	.isv-room__aside { position: static; }
	.isv-room__box {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; border: 0;
		border-top: 1px solid rgba(0, 0, 0, .08); box-shadow: none; background: rgba(255, 255, 255, .97);
	}
	/* Il prezzo può andare su due righe ("ab 120 €" / "pro Nacht" nelle pagine tradotte): la barra non sborda mai. */
	.isv-room__box .isv-price { margin: 0; min-width: 0; line-height: 1.25; }
	.isv-room__box .isv-price strong { white-space: nowrap; }
	.isv-room__box .isv-price--big strong { font-size: 1.3em; }
	/* Il modulo resta nella pagina (le sue finestre salgono dal basso), si nascondono solo i campi. */
	.isv-room__box > .isv-book { position: static; }
	.isv-room__box > .isv-book .isv-book__fields, .isv-room__hint, .isv-room__box .isv-room__codes, .isv-room__box .isv-room__direct, .isv-room__ask--box { display: none; }
	/* Sotto "Vi ospita", con lo stesso spazio sotto prima della riga che separa i punti forti. */
	.isv-room__ask--main { display: inline-flex; width: auto; margin: 0 0 24px; }
	.isv-room__mobilecta { display: inline-flex !important; flex: none; padding: .85rem 1.15rem; font-size: .95rem; }
	.isv-room__cta { width: auto; flex: none; margin: 0; padding: .85rem 1.15rem !important; font-size: .95rem !important; }
	.isv-room__codes.isv-room__codes--inline { display: block; margin: 0; padding: 20px 0; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
	body:has(.isv-room__box) .isv-tabbar, body:has(.isv-room__box) .isv-bookbar { display: none !important; }
	body:has(.isv-room__box) .isv-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
	body:has(.isv-room__box) .isv-wa { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* Telefono: prima le foto a tutta larghezza (si sfogliano con il dito), poi la scheda che sale sopra le foto. */
@media (max-width: 760px) {
	.isv-room { display: flex; flex-direction: column; }
	.isv-room__gallery-wrap { order: -1; margin: 0 -18px; }
	.isv-room__gallery {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		gap: 0; border-radius: 0; grid-auto-rows: auto;
	}
	.isv-room__gallery::-webkit-scrollbar { display: none; }
	.isv-room__photo, .isv-room__photo:nth-child(n), .isv-room__photo.is-main { display: block; flex: 0 0 100%; height: 75vw; scroll-snap-align: start; }
	.isv-room__photo[data-more]::after { display: none; }
	.isv-room__fab {
		position: absolute; top: 14px; z-index: 3; display: grid; place-items: center;
		width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; background: #fff; color: var(--isv-ink, #222);
		box-shadow: 0 2px 8px rgba(0, 0, 0, .18); cursor: pointer;
	}
	.isv-room__fab .isv-ico { width: 18px; height: 18px; stroke-width: 2.2; }
	.isv-room__fab--back { left: 16px; }
	.isv-room__fab--share { right: 62px; }
	.isv-room__fab--save { right: 16px; }
	.isv-room__count { display: block; position: absolute; right: 16px; bottom: 38px; z-index: 3; padding: .25rem .7rem; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
	.isv-room__head { position: relative; z-index: 4; margin: -24px -18px 0; padding: 26px 18px 0; background: #fff; border-radius: 24px 24px 0 0; }
	.isv-room__back, .isv-room__titlebar .isv-room__share { display: none; }
	.isv-room__title { font-size: 1.65rem; }
	.isv-room__gallery-wrap { margin-bottom: 0; }
	.isv-room__layout { margin-top: 16px; }
	.isv-features { grid-template-columns: 1fr; }
}

/* ---------- Contatti: righe come nelle impostazioni di un'app ---------- */
.isv-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.isv-contacts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .isv-contacts--grid { grid-template-columns: 1fr; } }
.isv-contacts__item > a, .isv-contacts__item > div {
	position: relative; display: flex; align-items: center; gap: .9rem; height: 100%;
	padding: 1rem 2.4rem 1rem 1rem; border-radius: 16px; background: #fff; border: 1px solid rgba(41, 36, 30, .1); box-shadow: 0 1px 2px rgba(41, 36, 30, .04), 0 10px 26px -14px rgba(207, 74, 10, .3);
	color: var(--isv-ink, #222); text-decoration: none; transition: background-color .15s;
}
.isv-contacts__item > a::after { content: ''; position: absolute; right: 1.1rem; top: 50%; width: .5rem; height: .5rem; border-top: 2px solid var(--isv-accent, #CF4A0A); border-right: 2px solid var(--isv-accent, #CF4A0A); transform: translateY(-50%) rotate(45deg); }
.isv-contacts__item > a:hover { background: var(--isv-b-tint); text-decoration: none; color: var(--isv-ink, #222); }
.isv-contacts__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--isv-ink, #222); }
.isv-contacts__text { display: flex; flex-direction: column; min-width: 0; }
.isv-contacts__label { font-size: .8rem; color: var(--isv-soft); }
.isv-contacts__value { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Codici ---------- */
.isv-codes { font-size: .88rem; color: var(--isv-ink-soft, #6a6a6a); }
.isv-codes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.isv-codes strong { color: var(--isv-ink, #222); font-weight: 600; margin-right: .3em; }
.isv-codes span { margin-right: .8em; font-variant-numeric: tabular-nums; }
.isv-codes__title { margin: 0 0 .4rem; font-weight: 600; color: var(--isv-ink, #222); }

@media (prefers-reduced-motion: reduce) {
	.isv-room-card__media img, .isv-room__photo img { transition: none; }
}
.isv-filters__item .isv-cuore { width: 18px; height: 16px; }

/* Schede come nell'elenco di Vik: riassunto su due righe, servizi in icone, prezzo e "Dettagli" in fondo alla pari. */
.isv-rooms--cards .isv-room-card__media { aspect-ratio: 4 / 3; }
.isv-rooms--cards .isv-room-card__body { flex: 1; gap: .3rem; padding-top: .9rem; }
.isv-rooms--cards .isv-room-card__title { font-size: 1.08rem; font-weight: 700; }
.isv-rooms--cards .isv-room-card__summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .35rem; }
.isv-room-card__feats { display: flex; flex-wrap: wrap; gap: 14px; margin: .7rem 0 0; padding: 0; list-style: none; color: var(--isv-ink, #222); }
.isv-room-card__feats li { display: grid; place-items: center; }
.isv-room-card__feats .isv-ico, .isv-room-card__feats svg { width: 20px; height: 20px; }
.isv-room-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--isv-hair); }
.isv-rooms--cards .isv-room-card__feats { margin-bottom: 16px; }
.isv-rooms--cards .isv-room-card__summary:last-of-type { margin-bottom: 16px; }
.isv-rooms--cards .isv-room-card__price { margin: 0; }
.isv-rooms--cards .isv-room-card__price strong { font-size: 1.15rem; }
.isv-room-card__btn { flex: none; padding: .55rem 1.1rem; border: 1.5px solid var(--isv-ink, #222); border-radius: 12px; font-weight: 700; font-size: .95rem; color: var(--isv-ink, #222); transition: background-color .15s, color .15s, border-color .15s; }
.isv-room-card:hover .isv-room-card__btn { background: var(--isv-accent, #CF4A0A); border-color: var(--isv-accent, #CF4A0A); color: #fff; }
.isv-rooms--cards .isv-room-card { height: 100%; }

/* "I tuoi salvati": messaggio quando non c'è ancora niente. */
.isv-saved-empty { max-width: 560px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 24px; text-align: center; }
.isv-saved-empty[hidden], .isv-rooms[hidden] { display: none; }
.isv-saved-empty__ico { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px -12px rgba(41, 36, 30, .3); }
.isv-saved-empty__ico .isv-cuore { width: 36px; }
.isv-saved-empty__title { margin: 0 0 .4rem; font-size: 1.3rem; font-weight: 700; color: var(--isv-heading, var(--isv-ink, #222)); }
.isv-saved-empty p { color: var(--isv-soft); }

/* Schede su fondo bianco, come nell'elenco di Vik: bordo sottile, ombra morbida, foto con margine. */
.isv-rooms--cards .isv-room-card { background: #fff; border: 1px solid var(--isv-hair); border-radius: 20px; padding: 10px 10px 16px; box-shadow: 0 1px 2px rgba(41, 36, 30, .04), 0 18px 40px -22px rgba(41, 36, 30, .28); transition: box-shadow .3s, transform .3s; }
.isv-rooms--cards .isv-room-card:hover { box-shadow: 0 1px 2px rgba(41, 36, 30, .05), 0 26px 50px -22px rgba(41, 36, 30, .36); }
.isv-rooms--cards .isv-room-card__media { border-radius: 14px; }
.isv-rooms--cards .isv-room-card__body { padding: .9rem 8px 0; }

/* Binario: le schede scorrono in orizzontale ed escono dal bordo destro dello schermo (si trascinano col mouse). */
.isv-rooms--rail {
	display: flex !important; gap: 22px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
	margin-right: min(0px, calc((var(--isv-max, 1320px) - 100vw) / 2 - 24px)); padding: 6px max(0px, calc((100vw - var(--isv-max, 1320px)) / 2 + 24px)) 26px 4px;
	cursor: grab; -webkit-user-select: none; user-select: none;
}
.isv-rooms--rail::-webkit-scrollbar { display: none; }
.isv-rooms--rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.isv-rooms--rail.is-dragging a { pointer-events: none; }
.isv-rooms--rail { align-items: stretch !important; }
.isv-rooms--rail .isv-room-card { flex: 0 0 clamp(270px, 24vw, 340px); scroll-snap-align: start; display: flex; flex-direction: column; height: auto; }
.isv-rooms--cards .isv-room-card { display: flex; flex-direction: column; }
.isv-rooms--cards .isv-room-card__body { display: flex; flex-direction: column; flex: 1; }
/* Servizi: una riga di altezza fissa anche quando mancano, così prezzo e "Dettagli" stanno alla stessa altezza in tutte le schede. */
.isv-rooms--cards .isv-room-card__feats { min-height: 20px; }
.isv-rooms--rail .isv-room-card[hidden] { display: none !important; }
@media (max-width: 767px) {
	.isv-rooms--rail { margin-right: -18px; padding-right: 18px; gap: 14px; }
	.isv-rooms--rail .isv-room-card { flex-basis: 80%; }
}
