/* OMH-Jaires single listing — adattato dal CSS originale onOffice. */

.omh-detailview {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 0;
}

.omh-detailsheadline {
	width: 100%;
	padding: 12px 18px;
	margin: 0 0 18px 0;
	background: #c2f970; /* banner verde lime brand (mockup SCHEDA) */
	color: #a900e0; /* testo viola brand */
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 4px;
}

.omh-details-main {
	width: 75%;
	padding: 0 15px;
	box-sizing: border-box;
}

.omh-details-sidebar {
	width: 25%;
	padding: 0 15px;
	box-sizing: border-box;
}

/* Gallery — Swiper se ci sono più foto, immagine singola altrimenti */
.omh-detailsgallery {
	margin-bottom: 25px;
	position: relative;
	overflow: hidden;
}

/* Status badge sovrapposto in alto a sinistra — leggibile a qualunque lunghezza */
.omh-status-ribbon {
	position: absolute;
	top: 16px;
	left: 16px;
	background: #3d7bb1;
	color: #ffffff;
	padding: 8px 16px;
	border-radius: 3px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	z-index: 10;
	max-width: calc(100% - 32px);
}

.omh-status-ribbon span {
	display: block;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.omh-detailsgallery .swiper {
	width: 100%;
	height: 500px;
	background: #f0f0f0;
}

.omh-detailspicture {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.omh-detailsgallery--single .omh-detailspicture--hero {
	height: 500px;
	border-radius: 4px;
}

.omh-detailsgallery .swiper-button-prev,
.omh-detailsgallery .swiper-button-next {
	color: #ffffff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.omh-detailsgallery .swiper-pagination-bullet-active {
	background: #3d7bb1;
}

/* Floor plan & virtual tour */
.omh-floorplan,
.omh-virtualtour {
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 2px solid #efefef;
}

.omh-floorplan h2,
.omh-virtualtour h2 {
	margin: 0 0 12px;
}

.omh-floorplan img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

.omh-virtualtour-embed iframe {
	display: block;
	border: 0;
	border-radius: 4px;
}

/* Section spacing */
.omh-details-facts-wrap {
	padding-top: 15px;
	padding-bottom: 15px;
	border-bottom: 2px solid #efefef;
}

.omh-details-facts-wrap h2 {
	margin: 0 0 12px;
}

/* Carosello caratteristiche: 3 gruppi, un pannello per volta (richiesta cliente).
   Il padding sta sul contenitore esterno (non sul .swiper, che altrimenti fa
   sbordare la slide successiva); le frecce vivono in quello spazio laterale. */
.omh-details-facts-carousel {
	position: relative;
	padding: 0 30px;
}

.omh-details-facts-carousel .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

.omh-details-facts-carousel .swiper-button-prev,
.omh-details-facts-carousel .swiper-button-next {
	color: #a900e0; /* viola brand */
	top: 42%;
	margin-top: 0;
}

/* Frecce ai bordi del contenitore, nello spazio del padding (non sopra il testo) */
.omh-details-facts-carousel .swiper-button-prev {
	left: 0;
}

.omh-details-facts-carousel .swiper-button-next {
	right: 0;
}

.omh-details-facts-carousel .swiper-button-prev::after,
.omh-details-facts-carousel .swiper-button-next::after {
	font-size: 22px;
	font-weight: 700;
}

.omh-details-facts-carousel .swiper-pagination {
	position: static;
	margin-top: 10px;
}

.omh-details-facts-carousel .swiper-pagination-bullet-active {
	background: #a900e0;
}

/* Energy badge — classe energetica sovrapposta alla foto, angolo basso-destra */
.omh-energy-badge {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 4px;
	color: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.omh-energy-badge__cls {
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
}

.omh-energy-badge__lbl {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	max-width: 90px;
	line-height: 1.1;
}

.omh-energy-badge--a { background: #00a651; }
.omh-energy-badge--b { background: #50b848; }
.omh-energy-badge--c { background: #aed136; color: #333; }
.omh-energy-badge--d { background: #fff200; color: #333; }
.omh-energy-badge--e { background: #fdb913; }
.omh-energy-badge--f { background: #f37021; }
.omh-energy-badge--g { background: #ed1c24; }

/* Map */
.omh-detailsmap {
	padding-top: 15px;
	padding-bottom: 15px;
	border-bottom: 2px solid #efefef;
}

.omh-detailsmap h2 {
	margin: 0 0 12px;
}

.omh-detailsmap-canvas {
	width: 100%;
	height: 350px;
	border-radius: 4px;
}

/* Contact form */
.omh-contact-form {
	padding-top: 15px;
	padding-bottom: 15px;
}

.omh-contact-form h2 {
	margin: 0 0 12px;
}

/* Sidebar headings */
.omh-asp-title {
	margin: 0 0 16px;
	font-size: 18px;
}

/* ============================================================
   Listings index — shortcode [omh_jaires_listings]
   ============================================================ */
.omh-listings-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 15px;
	box-sizing: border-box;
}

/* Filter form */
.omh-listings-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: end;
	background: #f6f7f7;
	padding: 16px;
	border-radius: 4px;
	margin-bottom: 24px;
}

.omh-listings-filter__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 180px;
	flex: 1 1 200px;
}

.omh-listings-filter__field label {
	font-size: 13px;
	font-weight: 600;
	color: #4a4a4a;
}

.omh-listings-filter__field select,
.omh-listings-filter__field input[type="text"],
.omh-listings-filter__field input[type="number"] {
	padding: 8px 10px;
	border: 1px solid #cfcfcf;
	border-radius: 3px;
	font-size: 14px;
	background: #ffffff;
}

.omh-listings-filter__field--range {
	min-width: 220px;
}

.omh-listings-filter__range {
	display: flex;
	gap: 6px;
}

.omh-listings-filter__range input[type="number"] {
	width: 50%;
	min-width: 0;
}

.omh-listings-filter__actions {
	display: flex;
	gap: 12px;
	align-items: center;
}

.omh-listings-filter__submit {
	background: #c2f970;
	color: #1e2749;
	border: 0;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 3px;
	cursor: pointer;
	transition: background 0.2s;
}

.omh-listings-filter__submit:hover {
	background: #a9e02f;
}

.omh-listings-filter__reset {
	font-size: 13px;
	color: #555;
	text-decoration: underline;
}

/* Grid */
.omh-listframe {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
}

.omh-listobject {
	width: 33.33%;
	padding: 0 15px;
	margin-bottom: 30px;
	box-sizing: border-box;
}

.omh-listobjectwrap {
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.omh-listobject:hover .omh-listobjectwrap {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
	transform: translateY(-3px);
}

.omh-listimage {
	display: block;
	width: 100%;
	height: 220px;
	background: #f0f0f0 center/cover no-repeat;
	position: relative;
}

.omh-listinfo {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.omh-listtitle {
	font-weight: 700;
	font-size: 17px;
	line-height: 1.3;
	margin: 0 0 12px;
	color: #4a4a4a;
	min-height: 44px;
}

.omh-listtitle a {
	color: inherit;
	text-decoration: none;
}

.omh-listtitle a:hover {
	color: #3d7bb1;
}

.omh-listinfotable {
	font-size: 14px;
	margin-top: auto;
}

.omh-listtd {
	display: inline-block;
	width: 50%;
	border-bottom: 1px solid #efefef;
	padding: 4px 0;
	box-sizing: border-box;
}

.omh-listtd:nth-child(even) {
	text-align: right;
	font-weight: 600;
}

.omh-listtd--highlight {
	color: #1e2749;
	font-size: 15px;
	font-weight: 700;
}

.omh-listings-empty {
	padding: 40px 0;
	text-align: center;
	color: #777;
	font-style: italic;
}

/* Pagination */
.omh-listings-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 25px 0;
	flex-wrap: wrap;
}

.omh-listings-pagination .page-numbers {
	padding: 8px 12px;
	border: 1px solid #cfcfcf;
	border-radius: 3px;
	color: #555;
	text-decoration: none;
	font-size: 14px;
	background: #ffffff;
	transition: all 0.2s;
}

.omh-listings-pagination .page-numbers:hover {
	background: #3d7bb1;
	color: #ffffff;
	border-color: #3d7bb1;
}

.omh-listings-pagination .page-numbers.current {
	background: #3d7bb1;
	color: #ffffff;
	border-color: #3d7bb1;
	font-weight: 700;
}

.omh-listings-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

@media only screen and (max-width: 991px) {
	.omh-listobject {
		width: 50%;
	}
}

@media only screen and (max-width: 575px) {
	.omh-listobject {
		width: 100%;
	}

	.omh-listings-filter {
		flex-direction: column;
		align-items: stretch;
	}

	.omh-listings-filter__actions {
		justify-content: space-between;
	}
}

/* Description */
.omh-detailsfreetext {
	padding-bottom: 15px;
	padding-top: 15px;
	border-bottom: 2px solid #efefef;
	line-height: 1.55;
}

.omh-detailsfreetext h2 {
	margin: 0 0 12px;
}

/* Specs table — due colonne label/value su due coppie per riga */
.omh-detailstable {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 0;
}

.omh-details-fact__label,
.omh-details-fact__value {
	list-style: none;
	width: 25%;
	padding: 8px 5px;
	margin: 0;
	border-bottom: 2px solid #efefef;
	box-sizing: border-box;
}

.omh-details-fact__label {
	font-weight: 700;
	color: #a900e0; /* etichette viola brand (mockup SCHEDA) */
}

/* Sidebar blocks */
.omh-asp {
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 2px solid #efefef;
}

.omh-aspname {
	font-weight: 700;
	margin: 0 0 8px 0;
}

.omh-asplocation {
	margin-bottom: 10px;
}

.omh-aspinfo-wrapper {
	margin-bottom: 15px;
}

.omh-aspinfo-wrapper p {
	margin: 4px 0;
}

/* Action links */
.omh-detailslink {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 25px;
}

.omh-detailslink a {
	display: block;
	text-align: center;
	color: #ffffff !important;
	padding: 5px;
	background-color: #3d7bb1;
	transition: all 0.3s;
	text-decoration: none;
	font-size: 16px;
	line-height: 28px;
}

.omh-detailslink a:hover {
	background: #174770;
	color: #ffffff !important;
	text-decoration: none !important;
}

@media only screen and (max-width: 991px) {
	.omh-details-main {
		width: 100%;
	}

	.omh-details-sidebar {
		width: 100%;
		padding-top: 20px;
	}
}

@media only screen and (max-width: 575px) {
	.omh-details-fact__label,
	.omh-details-fact__value {
		width: 50%;
	}

	.omh-detailsgallery .swiper,
	.omh-detailsgallery--single .omh-detailspicture--hero {
		height: 280px;
	}

	.omh-detailsmap-canvas {
		height: 260px;
	}
}

/* ============================================================
   Richieste cliente 18/06: accento brand card + bottone + dotazioni
   ============================================================ */
.omh-listobjectwrap {
	border-top: 4px solid #a900e0; /* linea fucsia brand in cima alla card */
}

.omh-listbutton {
	display: block;
	margin-top: 14px;
	padding: 10px 16px;
	background: #a900e0;
	color: #ffffff;
	text-align: center;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	border-radius: 3px;
	transition: background 0.2s;
}

.omh-listbutton:hover {
	background: #8c00bd;
	color: #ffffff;
	text-decoration: none;
}

.omh-detailslink a.omh-brochure-btn {
	background-color: #a900e0;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	border-radius: 3px;
}

.omh-detailslink a.omh-brochure-btn:hover {
	background-color: #8c00bd;
}

/* Sidebar sticky + box contatto (richiesta cliente: form sempre fisso) */
.omh-sidebar-sticky {
	position: sticky;
	top: 110px; /* sotto l'header fisso del tema */
}

.admin-bar .omh-sidebar-sticky {
	top: 142px; /* + barra admin WP (32px) */
}

.omh-contact-box {
	border: 2px solid #a900e0;
	border-radius: 6px;
	padding: 18px 16px;
	margin-bottom: 20px;
	background: #ffffff;
}

.omh-contact-box__title {
	color: #a900e0;
	font-size: 18px;
	line-height: 1.25;
	margin: 0 0 4px;
	text-align: center;
}

.omh-contact-box__sub {
	text-align: center;
	font-size: 13px;
	color: #555;
	margin: 0 0 14px;
}

.omh-contact-box__phone {
	text-align: center;
	margin: 6px 0 10px;
	font-size: 20px;
	font-weight: 700;
}

.omh-contact-box__phone-ico {
	vertical-align: -3px;
	margin-right: 6px;
}

.omh-contact-box__phone a {
	color: #a900e0;
	text-decoration: none;
}

/* Form CF7 dentro il box contatto: titolo piu' piccolo + campi puliti (scoped) */
.omh-contact-box__title {
	font-size: 1.1rem !important;
	line-height: 1.2;
}

.omh-contact-box .wpcf7-form-control-wrap {
	display: block;
	margin-top: 4px;
}

.omh-contact-box .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #cfcfcf !important;
	border-radius: 4px !important;
	padding: 9px 10px !important;
	margin: 0 !important;
	font-size: 14px;
	background: #ffffff !important;
}

.omh-contact-box textarea.wpcf7-form-control {
	min-height: 84px;
	resize: vertical;
}

/* Pulsante INVIA verde lime brand con testo navy (mockup SCHEDA) */
.omh-contact-box input.wpcf7-submit {
	width: 100%;
	background: #c2f970 !important;
	color: #1e2749 !important;
	border: 2px solid #c2f970 !important;
	border-radius: 4px !important;
	padding: 11px 16px !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	cursor: pointer;
	box-sizing: border-box;
	transition: background 0.2s, color 0.2s;
	margin-top: 12px;
}

.omh-contact-box input.wpcf7-submit:hover {
	background: #ffffff !important;
	color: #1e2749 !important;
}

.omh-contact-box .wpcf7-form label {
	display: block;
	margin: 8px 0 3px;
	font-size: 13px;
	font-weight: 600;
	color: #1e2749;
}

/* Form a due colonne (mockup SCHEDA: Nome|Cognome, Mail|Telefono).
   CF7 (autop) avvolge i 4 campi in un <p> dentro .omh-cf7-grid: il flex va
   quindi sul <p> contenitore (il div resta un blocco a piena larghezza).
   Fallback: se autop non avvolge, il flex sul div stesso regge la 2-col. */
.omh-contact-box .omh-cf7-grid > p,
.omh-contact-box .omh-cf7-grid:not(:has(> p)) {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin: 0;
}

.omh-contact-box .omh-cf7-field {
	flex: 1 1 calc(50% - 6px);
	min-width: 0; /* il basis 50%-6px garantisce 2 colonne anche in sidebar stretta */
	margin: 0 0 6px !important;
}

.omh-contact-box .omh-cf7-full {
	margin-top: 6px;
}

/* Form reale di prod (modulo CF7 "responsive-form" gia' collegato ad Active
   Campaign): stessa resa a 2 colonne del mockup SENZA modificare il modulo.
   CF7 (autop) avvolge i campi in un <p> dentro .form-row, quindi il grid va su
   quel <p>; i 4 campi corti vanno in 2x2 e "La mia richiesta" a piena larghezza.
   Posizionamento esplicito perche' label e campi sono fratelli "flat". */
.omh-contact-box #responsive-form .form-row > p:first-of-type {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 12px;
	align-items: start;
	margin: 0;
}
.omh-contact-box #responsive-form .form-row > p:first-of-type > label:nth-of-type(1) { grid-area: 1 / 1; }
.omh-contact-box #responsive-form .form-row > p:first-of-type > [data-name="nome"] { grid-area: 2 / 1; }
.omh-contact-box #responsive-form .form-row > p:first-of-type > label:nth-of-type(2) { grid-area: 1 / 2; }
.omh-contact-box #responsive-form .form-row > p:first-of-type > [data-name="cognome"] { grid-area: 2 / 2; }
.omh-contact-box #responsive-form .form-row > p:first-of-type > label:nth-of-type(3) { grid-area: 3 / 1; }
.omh-contact-box #responsive-form .form-row > p:first-of-type > [data-name="email"] { grid-area: 4 / 1; }
.omh-contact-box #responsive-form .form-row > p:first-of-type > label:nth-of-type(4) { grid-area: 3 / 2; }
.omh-contact-box #responsive-form .form-row > p:first-of-type > [data-name="telefono"] { grid-area: 4 / 2; }
.omh-contact-box #responsive-form .form-row > p:first-of-type > label:nth-of-type(5) { grid-area: 5 / 1 / 6 / 3; }
.omh-contact-box #responsive-form .form-row > p:first-of-type > [data-name="lamiarichiesta"] { grid-area: 6 / 1 / 7 / 3; }
.omh-contact-box #responsive-form .form-row > p:first-of-type > [data-name="immobileurl"] { display: none; }

.omh-contact-box .wpcf7-form br { display: none; }

.omh-contact-box .privacy { margin-top: 6px; }

.omh-contact-box .wpcf7-list-item {
	margin: 0;
	font-size: 12px;
}

/* Meno spazio vuoto sotto il pulsante "Contattaci" */
.omh-contact-box { padding-bottom: 12px; }
.omh-contact-box .wpcf7-response-output { margin: 8px 0 0 !important; }
.omh-contact-box .wpcf7-form > p:last-child:empty { display: none; }

/* Pulsanti immobili nello stile del sito: hover bianco con testo/bordo fucsia.
   (Il submit INVIA del form resta verde lime per fedelta' al mockup SCHEDA.) */
.omh-listbutton,
.omh-detailslink a.omh-brochure-btn {
	background: #a900e0 !important;
	color: #ffffff !important;
	border: 2px solid #a900e0 !important;
	box-sizing: border-box;
	transition: background 0.2s, color 0.2s;
}

.omh-listbutton:hover,
.omh-detailslink a.omh-brochure-btn:hover {
	background: #ffffff !important;
	color: #a900e0 !important;
}

/* Titolo card immobile: ripristina il look del brand (interlinea compatta + font
   ClashDisplay), ma SCOPED alla classe del modulo invece che globale sugli h3.
   La dimensione resta quella ridotta richiesta da Alice (default Aspetto). */
.omh-listtitle,
.omh-listtitle a {
	line-height: 0.7 !important;
}

.omh-listtitle a {
	font-family: "ClashDisplay", Sans-serif;
	letter-spacing: 1px;
}

/* Titoli sezione del dettaglio in viola brand, uppercase (mockup SCHEDA:
   CARATTERISTICHE / DESCRIZIONE / VIRTUAL TOUR / PLANIMETRIA / MAPPA).
   !important perche' il tema imposta un colore (navy) sugli h2 che, a parita'
   di selettore, vincerebbe. */
.omh-details-facts-wrap h2,
.omh-detailsfreetext h2,
.omh-virtualtour h2,
.omh-floorplan h2,
.omh-surface h2,
.omh-detailsmap h2 {
	color: #a900e0 !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Condivisione immobile: pulsante "Condividi" (share nativo/copia link) + icone
   WhatsApp / Facebook / Email, sotto il titolo. Colori brand. */
.omh-share {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	width: 100%;
	margin: 0 0 18px;
}

.omh-share__native {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #a900e0;
	color: #ffffff;
	border: 2px solid #a900e0;
	border-radius: 4px;
	padding: 7px 14px;
	font-weight: 700;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.omh-share__native:hover {
	background: #ffffff;
	color: #a900e0;
}

.omh-share__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f2e6fa;
	color: #a900e0;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.omh-share__icon:hover {
	background: #a900e0;
	color: #ffffff;
}

/* ============================================================
   Richieste cliente: conformità, affordance scorrimento, mappa 3D
   ============================================================ */

/* Dicitura fissa "Conformità catastale e urbanistica verificata" — sempre
   presente, sotto al titolo/condivisione. Banner verde tenue con check verde. */
.omh-compliance {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0 0 18px;
	padding: 10px 16px;
	background: #eef8e4;
	border: 1px solid #c2e6a3;
	border-left: 5px solid #3faa3f;
	border-radius: 4px;
	box-sizing: border-box;
}

.omh-compliance__ico {
	flex: 0 0 auto;
	color: #2e9e2e;
}

.omh-compliance__txt {
	font-weight: 700;
	color: #1f5d1f;
	font-size: 15px;
	line-height: 1.3;
}

/* Affordance di scorrimento accanto alle frecce dei caroselli (richiesta
   cliente): dicitura + chevron animati che invitano a scorrere i contenuti. */
.omh-swipe-hint {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 10px 0 0;
	color: #3d7bb1;
	font-size: 13px;
	font-weight: 600;
}

.omh-swipe-hint--facts {
	color: #a900e0;
	margin-top: 6px;
}

.omh-swipe-hint__chev {
	font-size: 20px;
	line-height: 1;
	animation: omh-swipe-bob-right 1.4s ease-in-out infinite;
}

.omh-swipe-hint__chev:first-child {
	animation-name: omh-swipe-bob-left;
}

@keyframes omh-swipe-bob-right {
	0%, 100% { transform: translateX(0); opacity: 0.5; }
	50%      { transform: translateX(3px); opacity: 1; }
}

@keyframes omh-swipe-bob-left {
	0%, 100% { transform: translateX(0); opacity: 0.5; }
	50%      { transform: translateX(-3px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.omh-swipe-hint__chev { animation: none; opacity: 0.85; }
}

/* Frecce della gallery foto rese pulsanti tondi ben visibili: rinforzano
   l'affordance "puoi scorrere". */
.omh-detailsgallery .swiper-button-prev,
.omh-detailsgallery .swiper-button-next {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(30, 39, 73, 0.45);
	transition: background 0.2s;
}

.omh-detailsgallery .swiper-button-prev:hover,
.omh-detailsgallery .swiper-button-next:hover {
	background: rgba(169, 0, 224, 0.85);
}

.omh-detailsgallery .swiper-button-prev::after,
.omh-detailsgallery .swiper-button-next::after {
	font-size: 18px;
	font-weight: 700;
}

/* Mappa 3D MapLibre: il canvas riempie il contenitore; angoli arrotondati come
   il resto del dettaglio. position:relative serve al posizionamento dei controlli. */
.omh-detailsmap-canvas {
	position: relative;
	overflow: hidden;
	background: #e8ecef;
}

.omh-detailsmap-canvas .maplibregl-ctrl-attrib {
	font-size: 10px;
}

/* Reset dei controlli MapLibre: alcuni temi (es. Elementor kit su ohmyhouse.it)
   colorano e ingrandiscono TUTTI i <button> (sfondo verde brand + padding 20px),
   trasformando zoom/bussola/schermo intero in blocchi verdi. Qui li riportiamo
   all'aspetto pulito (bianchi, icone scure). !important per vincere sul tema. */
.omh-detailsmap-canvas .maplibregl-ctrl-group {
	background: #ffffff !important;
	border-radius: 4px !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
	overflow: hidden;
	width: auto !important;
}

.omh-detailsmap-canvas .maplibregl-ctrl button {
	width: 29px !important;
	height: 29px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	background-color: #ffffff !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #333333 !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: normal !important;
	text-transform: none !important;
	line-height: 1 !important;
}

.omh-detailsmap-canvas .maplibregl-ctrl-group button + button {
	border-top: 1px solid #dddddd !important;
}

.omh-detailsmap-canvas .maplibregl-ctrl button:hover {
	background-color: #f2f2f2 !important;
}

/* Le icone dei controlli sono background-image su uno <span> interno: nessuno
   sfondo colorato del tema deve coprirle. */
.omh-detailsmap-canvas .maplibregl-ctrl-icon {
	background-color: transparent !important;
}

/* ============================================================
   Dettaglio superficie commerciale (areas[] JAIRES, con % incidenza)
   Stile tabellare "dettaglio superficie" tipo Immobiliare.it.
   ============================================================ */
.omh-surface {
	margin-bottom: 25px;
	padding-top: 15px;
	padding-bottom: 15px;
	border-bottom: 2px solid #efefef;
}

.omh-surface h2 {
	margin: 0 0 12px;
}

/* La tabella scorre nel suo contenitore su schermi stretti: il body pagina
   non deve mai scrollare in orizzontale. */
.omh-surface-scroll {
	overflow-x: auto;
}

.omh-surface-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.omh-surface-table th,
.omh-surface-table td {
	padding: 9px 10px;
	text-align: left;
	border-bottom: 1px solid #efefef;
	white-space: nowrap;
}

.omh-surface-table thead th {
	color: #a900e0; /* intestazioni viola brand */
	font-weight: 700;
	border-bottom: 2px solid #efefef;
}

.omh-surface-num {
	text-align: right !important;
}

.omh-surface-table tfoot th,
.omh-surface-table tfoot td {
	font-weight: 700;
	color: #1e2749; /* totale in navy brand */
	border-top: 2px solid #a900e0;
	border-bottom: 0;
}

/* Badge "opzionale" per le superfici pertinenziali (flag optional) */
.omh-surface-opt {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	font-size: 11px;
	font-weight: 700;
	color: #a900e0;
	background: #f2e6fa;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* Planimetrie multiple (fino a 4) in griglia responsiva */
.omh-floorplan-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.omh-floorplan-item {
	display: block;
	border: 1px solid #efefef;
	border-radius: 4px;
	overflow: hidden;
	cursor: zoom-in;
}

.omh-floorplan-item img {
	width: 100%;
	height: auto;
	display: block;
}

/* Suggerimento sotto la griglia planimetrie */
.omh-floorplan-hint {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 12px 0 0;
	color: #3d7bb1;
	font-size: 13px;
	font-weight: 600;
}

.omh-floorplan-hint__ico {
	flex: 0 0 auto;
	opacity: 0.9;
}

/* Lightbox planimetrie del plugin (self-contained). z-index altissimo per
   stare sopra header, admin bar ed eventuale lightbox del tema. */
.omh-fp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 15, 20, 0.92);
	box-sizing: border-box;
}

.omh-fp-lightbox.is-open {
	display: flex;
}

.omh-fp-lightbox__img {
	max-width: 92vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	background: #ffffff;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.omh-fp-lightbox__close {
	position: absolute;
	top: 14px;
	right: 18px;
	width: 44px;
	height: 44px;
	padding: 0;
	font-size: 30px;
	line-height: 1;
	color: #ffffff;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.omh-fp-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	padding: 0;
	font-size: 34px;
	line-height: 1;
	color: #ffffff;
	background: rgba(0, 0, 0, 0.35);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.omh-fp-lightbox__prev {
	left: 16px;
}

.omh-fp-lightbox__next {
	right: 16px;
}

.omh-fp-lightbox__close:hover,
.omh-fp-lightbox__nav:hover {
	color: #c2f970;
}
