/* 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: 10px 15px;
	margin: 0 0 15px 0;
}

.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;
}

/* Energy bar — barra A->G colorata, segmento corrente evidenziato */
.omh-energy {
	padding-top: 15px;
	padding-bottom: 15px;
	border-bottom: 2px solid #efefef;
}

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

.omh-energy-bar {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 480px;
}

.omh-energy-segment {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 14px;
	color: #ffffff;
	font-weight: 700;
	border-radius: 3px;
	position: relative;
	transition: transform 0.15s;
}

.omh-energy-letter {
	font-size: 16px;
}

.omh-energy-current-label {
	font-size: 14px;
	font-weight: 600;
	background: rgba(0, 0, 0, 0.18);
	padding: 2px 8px;
	border-radius: 3px;
}

.omh-energy-segment--current {
	transform: scale(1.04);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	z-index: 1;
}

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

.omh-energy-segment--d .omh-energy-current-label {
	background: rgba(0, 0, 0, 0.12);
	color: #333;
}

/* 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: #3d7bb1;
	color: #ffffff;
	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: #174770;
}

.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-status-ribbon--card {
	top: 12px;
	left: 12px;
	padding: 6px 12px;
	font-size: 11px;
}

.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: #3d7bb1;
	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;
}

/* 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;
}

/* 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;
}

.omh-price {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 8px 0;
}

.omh-price--ondemand {
	font-size: 18px;
	font-weight: 600;
	color: #555;
}

.omh-price-costs {
	font-size: 13px;
	color: #555;
	margin: 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;
	}
}
