.unitcontent-wrapper {
	width: calc(50% - 19px);
	/* TODO */
	border-radius: var(--beon-listing-border-radius);
	border: var(--beon-listing-border);
	color: var(--beon-listing-text-color);
	background-color: var(--beon-listing-bg-color);
	padding: 16px 14px;
	display: flex;
	flex-direction: column;
}

/* Image Part (based on Flexslider) */
.image-wrapper .highlight-marker-wrapper {
	display: flex;
	flex-direction: row;
	gap: 5px;
	position: absolute;
	z-index: 1;
	flex-wrap: wrap;
	left: 17px;
	top: 16px;
}

.image-wrapper .offer-highlight-wrapper,
.image-wrapper .alternative-highlight-wrapper,
.image-wrapper .group-highlight-wrapper {
	display: flex;
	border-radius: var(--beon-listing-img-marker-border-radius);
	box-shadow: var(--beon-listing-img-marker-shadow);
	padding: 6px 10px;
	font: var(--beon-listing-img-marker-font);
	cursor: default;
}

.image-wrapper .offer-highlight-wrapper,
.image-wrapper a:hover .offer-highlight-wrapper {
	background-color: var(--beon-listing-img-marker-offer-bg-color);
	color: var(--beon-listing-img-marker-offer-text-color);
}

.image-wrapper .group-highlight-wrapper,
.image-wrapper a:hover .group-highlight-wrapper {
	background-color: var(--beon-listing-img-marker-group-bg-color);
	color: var(--beon-listing-img-marker-group-text-color);
}

.image-wrapper .alternative-highlight-wrapper,
.image-wrapper a:hover .alternative-highlight-wrapper {
	background-color: var(--beon-listing-img-marker-alt-bg-color);
	color: var(--beon-listing-img-marker-alt-text-color);
	font-size: 12px;
	font-weight: 400;
}

.image-wrapper .flex-viewport {
	border-radius: var(--beon-listing-gallery-border-radius);
}

.unitcontent-wrapper #slider.flexslider img {
	height: 240px;
	/* Careful on frontpage its less, TODO: check back with tim*/
	width: 100%;
	object-fit: cover;
	object-position: center;
}

/* Flexlider specifics */

.image-wrapper #slider {
	border: none;
	margin: 0;
}

.image-wrapper .flex-prev::before {
	content: url(/wp-content/themes/hochimnorden/assets/images/arrow_left.svg) !important;
	font-size: 0 !important;
	height: 10px;
	width: 10px;
	filter: var(--beon-listing-gallery-icon-filter);
	left: 11px;
	top: 4px;
	position: relative;
}

.image-wrapper .flex-direction-nav .flex-prev {
	background-color: var(--beon-listing-gallery-icon-bg-color);
	border: var(--beon-listing-gallery-icon-border);
	border-radius: var(--beon-listing-gallery-icon-border-radius);
	left: 20px !important;
}

.image-wrapper .flexslider:hover .flex-direction-nav .flex-prev {
	opacity: 1;
}

.image-wrapper .flexslider:hover .flex-direction-nav .flex-prev:hover {
	left: 15px !important;
}

.image-wrapper .flex-next::before {
	content: url(/wp-content/themes/hochimnorden/assets/images/arrow_right.svg) !important;
	font-size: 0 !important;
	height: 10px;
	width: 10px;
	filter: var(--beon-listing-gallery-icon-filter);
	right: 11px;
	top: 4px;
	position: relative;
}

.image-wrapper .flex-direction-nav .flex-next {
	background-color: var(--beon-listing-gallery-icon-bg-color);
	border: var(--beon-listing-gallery-icon-border);
	border-radius: var(--beon-listing-gallery-icon-border-radius);
	right: 20px !important;
}

.image-wrapper .flexslider:hover .flex-direction-nav .flex-next {
	opacity: 1;
}

.image-wrapper .flexslider:hover .flex-direction-nav .flex-next:hover {
	right: 15px !important;
}

.image-wrapper .flexslider .flex-direction-nav a {
	margin-top: -15px !important;
	height: 36px !important;
	width: 36px !important;
	color: transparent;
	/* visually erases the "Next"/"Previous" */
	z-index: 1;
}

.image-wrapper .flexslider .flex-control-nav {
	bottom: 0px;
	opacity: 1;
}

.image-wrapper .flexslider .flex-control-nav li a {
	width: 7px;
	height: 7px;
	background: var(--beon-listing-gallery-dots-color-inactive);
	box-shadow: none;
}

.image-wrapper .flexslider .flex-control-nav li a.flex-active {
	background: var(--beon-listing-gallery-dots-color-active);
}

/* Info Part */

.unitcontent-wrapper .info-wrapper {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-top: 20px;
	height: 100%;
}

.info-wrapper .info-header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.info-header .unit-region {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 5px;
}

.info-header .unit-region p {
	font: var(--beon-listing-region-font);
	margin: 0;
}

.info-header .unit-region img {
	filter: var(--beon-listing-region-icon-filter);
	width: 20px;
	height: 20px;

}

.info-header .unit-favorite .simplefavorite-button {
	background-color: transparent;
	height: 34px;
	width: 34px;
	border-radius: var(--beon-listing-favorite-border-radius);
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
}

.info-header .unit-favorite .simplefavorite-button.active {
	/* background-color: var(--beon-listing-favorite-bg-color-hover); */
	opacity: 1;
}

.info-header .unit-favorite .simplefavorite-button:hover {
	background-color: var(--beon-listing-favorite-bg-color-hover);
}

.simplefavorite-button img {
	filter: var(--beon-listing-favorite-icon-filter);
	width: 24px;
	height: 24px;
}

.simplefavorite-button:hover img {
	filter: var(--beon-icon-filter-white);
}

.simplefavorite-text {
	display: none;
}

.info-wrapper .info-body {
	display: flex;
	flex-direction: column;
}

.info-body .unit-title,
.info-body .unit-title a,
.info-body .unit-title a:hover {
	font: var(--beon-listing-title-font);
	color: var(--beon-listing-title-text-color);
	margin: 0px;
}

.info-body .properties-wrapper {
	display: flex;
	flex-direction: row;
	font: var(--beon-listing-keyfacts-font);
	gap: 8px;
}

.info-body .highlights-wrapper {
	display: flex;
	flex-direction: row;
	gap: 8px;
	flex-wrap: wrap;
	padding: 20px 0px
}

.highlights-wrapper .single-highlight {
	font: var(--beon-listing-highlights-font);
	background-color: var(--beon-listing-highlights-bg-color);
	color: var(--beon-listing-highlights-text-color);
	border: var(--beon-listing-highlights-border);
	border-radius: var(--beon-listing-highlights-border-radius);
	padding: 8px 12px;
}

.info-body .alternatives-wrapper {
	min-height: 37px;
	padding-bottom: 17px;
}

.info-body .alternatives-wrapper a,
.info-body .alternatives-wrapper a:hover {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: fit-content;
	border: var(--beon-listing-alt-border);
	border-radius: var(--beon-listing-alt-border-radius);
	background-color: var(--beon-listing-alt-bg-color);
	color: var(--beon-listing-alt-text-color);
	font: var(--beon-listing-alt-font);
	padding: 8px 12px;
	gap: 13px;
}

.alternatives-wrapper img {
	height: 17px;
	width: 15px;
	filter: var(--beon-listing-alt-icon-filter);
}

.info-wrapper .info-footer {
	display: flex;
	flex-direction: column;
}

.info-footer .default-layout-wrapper {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.info-footer .rating-wrapper {
	display: flex;
	flex-direction: row;
	gap: 12px;
}

.rating-wrapper .rating-box {
	height: 37px;
	width: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--beon-listing-rating-box-text-color);
	font: var(--beon-listing-rating-box-font);
	background-color: var(--beon-listing-rating-box-bg-color);
	border-radius: var(--beon-listing-rating-box-border-radius);
}

.rating-wrapper .rating-details {
	display: flex;
	flex-direction: column;
}

.rating-wrapper .rating-details p {
	margin: 0;
}

.rating-details .rating-text {
	font: var(--beon-listing-rating-font-line-1);
}

.rating-details .rating-count {
	font: var(--beon-listing-rating-font-line-2);
}

.info-footer .no-price-button {
	background-color: var(--beon-listing-no-price-button-bg-color);
	border-radius: var(--beon-listing-no-price-button-border-radius);
	height: 36px;
	width: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: left ease-out 0.3s;
	left: 0px;
}

.info-footer .no-price-button:hover {
	left: 5px;
}

.info-footer .no-price-button img {
	filter: var(--beon-listing-no-price-button-icon-filter);
}

.info-footer .price-container {
	padding-top: 17px;
}

.info-footer .price-container a {
	height: 50px;
	background-color: var(--beon-listing-price-button-bg-color);
	color: var(--beon-listing-price-button-text-color);
	font: var(--beon-listing-price-button-font);
	border-radius: var(--beon-listing-price-button-border-radius);
	display: flex;
	justify-content: center;
	align-items: center;
}

.info-footer .offer-container {
	padding-top: 17px;
}

.info-footer .offer-container a {
	height: 50px;
	background-color: var(--beon-listing-offer-button-old-price-bg-color);
	color: var(--beon-listing-offer-button-old-price-text-color);
	font: var(--beon-listing-offer-button-font);
	border-radius: var(--beon-listing-alt-border-radius);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.info-footer .offer-container a .showprice {
	height: 50px;
	background-color: var(--beon-listing-offer-button-new-price-bg-color);
	color: var(--beon-listing-offer-button-new-price-text-color);
	font: var(--beon-listing-offer-button-font);
	border-radius: var(--beon-listing-offer-button-border-radius) 0 0 var(--beon-listing-alt-border-radius);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	padding: 0 15px;
	min-width: 70%;
}

.info-footer .offer-container a .oprice {
	text-decoration: line-through;
	margin: 0 15px 0 10px;
	color: var(--beon-white);
}
.custom-tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.offer-wrapper.custom-tooltip {
    visibility: hidden;
    opacity: 0;
    pointer-events: auto; /* allow interaction */
    width: 200px;
    height: 200px;
    overflow-y: scroll;
    position: absolute;
    background-color: rgba(51, 51, 51, 0.9);
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    border-radius: 4px;
    z-index: 10;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    transition: opacity 0.3s;
    font-size: 12px;
    margin-top: 6px;
}

.offer-highlight-wrapper:hover .offer-wrapper.custom-tooltip,
.offer-wrapper.custom-tooltip:hover {
    visibility: visible;
    opacity: 1;
}

/* Scrollbar styling */
.offer-wrapper.custom-tooltip::-webkit-scrollbar {
    width: 4px;
}

.offer-wrapper.custom-tooltip::-webkit-scrollbar-thumb {
    background-color: grey;
    border-radius: 2px;
}

.offer-wrapper.custom-tooltip {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: grey rgba(51, 51, 51, 0.9); /* Firefox */
}

/* work further */

@media only screen and (max-width: 1400px) and (min-width: 1025px) {

	.main-search .right-col {
		padding-left: 0%;
	}

	#slider .slides img {
		min-height: 250px;
	}

	.unitcontent-wrapper .info-body ul {
		margin: 0;
	}

	.unitcontent-wrapper .info-wrapper {
		justify-content: space-between;
	}

	.classification img {
		width: 18px;
		padding-right: 5px;
	}

	#slider .slides img {
		max-height: -webkit-fill-available;
	}

	.unitcontent-wrapper .info-body ul li {
		font-size: 12px;
	}

	.details-wrapper li img {
		width: 15px;
	}
}

@media only screen and (max-width: 1250px) {
	.unitcontent-wrapper {
		height: auto;
		flex-direction: column;
		width: calc(50% - 19px);
	}

}


@media only screen and (max-width: 1024px) {
	.unitcontent-wrapper .info-body ul {
		flex-wrap: wrap;
	}

	.unitcontent-wrapper .info-body ul li+li {
		border: none;
	}

	#slider .slides img {
		min-height: 0;
	}

	.details-wrapper ul {
		padding: 0;
		padding-bottom: 20px;
	}

	.unitcontent-wrapper .info-body ul li {
		font-size: 14px;
	}

	.property-wrapper h4,
	.search-count,
	.activeoptions-wrapper,
	.main-search .left-col h2 {
		border-bottom: 0;
	}

	.unitcontent-wrapper .info-wrapper h3 {
		padding-left: 0px;
		padding-right: 0px;
	}
}

@media only screen and (max-width: 767px) {

	#slider .slides img {
		min-height: 0;
	}

	.unitcontent-wrapper {
		min-height: 450px;
		width: 100%;
		overflow: hidden;
	}
}