/* ========== 1) Lokale Schrift (Bold) einbinden ========== */
@font-face {
	font-family: "Kamerik105Cyrillic";
	src: url("../fonts/Kamerik105Cyrillic-Bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
}

/* ========== Schrift nur für Plugin-Elemente ========== */
.iip-property-title,
.iip-property-price,
.iip-property-detail,
#iip-modal-title,
.iip-modal-price,
.iip-modal-details,
.iip-contact-button {
	/* 	font-family: "Kamerik105Cyrillic", sans-serif; */
	font-family: "Afacad Flux", sans-serif;
}
.page-id-2 .iip-filter-form {
	display :none;
}
.form-block {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	padding-bottom: 32px;
	margin-bottom: 32px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	;
}

.iip-active-filters-container {
	display: flex;
	align-items: center;
	gap: 10px;
}

.iip-active-filters-container span:not(.remove-filter) {
	display: flex;
	padding: 4px 10px;
	justify-content: center;
	align-items: center;
	gap: 6px;
	border-radius: 100px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: #FFF;
	color: #8E8E8E;
	text-align: center;
	font-family: "Afacad Flux";
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: 20px;
	/* 142.857% */
}

.form-block__sort {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 42px;
}

.remove-filter {
	width: 16px;
	height: 16px;
}

.form-sort {
	display: flex;
	align-items: center;
	position: relative;
	gap: 8px;
}

.form-sort label {
	color: #000;
	font-family: "Afacad Flux";
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 160%;
	white-space: nowrap;
}

.form-sort select {
	border-radius: 100px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: transparent;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	display: flex;
	color: #000;
	font-family: "Afacad Flux";
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;
	/* 150% */
	height: 48px;
	padding: 8px 16px;
	align-items: center;
	width: 260px;
}

.form-sort::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 10px;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	transform-origin: center;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.23017 7.20938C5.52875 6.92228 6.00353 6.93159 6.29063 7.23017L10 11.1679L13.7094 7.23017C13.9965 6.93159 14.4713 6.92228 14.7698 7.20938C15.0684 7.49647 15.0777 7.97125 14.7906 8.26983L10.5406 12.7698C10.3992 12.9169 10.204 13 10 13C9.79599 13 9.60078 12.9169 9.45938 12.7698L5.20938 8.26983C4.92228 7.97125 4.93159 7.49647 5.23017 7.20938Z" fill="black"/></svg>');
	background-size: contain;
	background-repeat: no-repeat;
	pointer-events: none;
	transition: transform 0.3s ease;
}


.form-block__input {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-block__input .form-block__items {
	display: flex;
	gap: 8px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

input[type=number] {
	-moz-appearance: textfield;
}

.price-input {
	display: flex;
	align-items: center;
	gap: 5px;
	width: 100%;
	position: relative;
}

.form-block button {
	display: flex;
	padding: 12px 30px;
	min-width: 150px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	border-radius: 100px;
	border: 1px solid #B8A757;
	overflow: hidden;
	color: #B8A757;
	margin-top: auto;
	background: transparent;
	height: 48px;
	text-overflow: ellipsis;
	font-family: "Afacad Flux";
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	text-transform: uppercase;
}

.price-input .currency {
	position: absolute;
	right: 16px;
}

.form-block__input label {
	color: #000;
	font-family: "Afacad Flux";
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 20px;
	/* 142.857% */
	display: block;
	margin-right: 4px;
}

.form-block__input label span {
	color: #8E8E8E;
	font-family: "Afacad Flux";
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 20px;
	/* 142.857% */
}

.form-block__input input {
	display: flex;
	padding: 8px 16px;
	align-items: center;
	gap: 8px;
	width: 100%;
	height: 48px;
	flex: 1 0 0;
	align-self: stretch;
	border-radius: 100px 6px 6px 100px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: #FFF;
	color: #000;
	font-family: "Afacad Flux";
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;
	/* 150% */
}

.form-block__input .price-input:nth-child(2) input, .form-block__input.second input:nth-child(2) {
	border-radius: 6px 100px 100px 6px;
}

.price_m2 {
	font-family: "Afacad Flux", sans-serif;
	font-weight: 400;
	font-style: Regular;
	font-size: 16px;
	leading-trim: NONE;
	line-height: 100%;
	letter-spacing: 0%;
	color: #8E8E8E;
}

.iip-property-card {
	border-radius: 8px;
	background-color: #ffffff00 !important;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.0) !important;
	padding: 0 !important;
	cursor: pointer;
}

/* --- GrÃ¶ÃŸeres Bild (feste HÃ¶he, 250px Desktop / 180px Mobil) --- */
.iip-property-image {
	width: 100%;
	height: 250px;
	border-radius: 8px;
	object-fit: cover;
	margin-bottom: 12px;
}

@media (max-width: 768px) {
	img.iip-property-image {
		height: 229px !important;
	}

}

/* Titel + Preis in einer Zeile => links Titel, rechts Preis */
.iip-property-title-price {
	display: flex;
	justify-content: flex-start;
	align-items: baseline;
	margin-bottom: 8px;
	width: 100%;
	flex-wrap: wrap;
}



/* Preis: fett, 1rem */
.iip-property-price {
	color: #B8A757;
	font-family: "Afacad Flux";
	font-size: 32px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
}

.iip-property-price {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* footer text underline color */
li.elementor-icon-list-item.elementor-inline-item a {
	text-decoration-color: black !important;
}

li.elementor-icon-list-item a {
	text-decoration-color: black !important;
}

/* popup button color */
.iip-modal-images button {
	background: #ffffffb0;
	padding: 0px 0px 0px 0px;
	color: black;
}

.iip-property-detail {
	color: #222;
	font-family: "Afacad Flux";
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	display: flex;
	gap: 10px;
	align-items: center;
}

.iip-property-detail img {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

/* ========== Modal-Overlay (Blur) ========== */
#iip-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: none;
	z-index: 9998;
}

/* ========== Modal (900x450) ========== */
#iip-modal {
	font-family: "Afacad Flux", sans-serif !important;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 95%;
	max-width: 900px;
	/* 	max-height: 450px; */
	max-height: auto;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
	display: none;
	z-index: 9999;
	overflow: hidden;
}

#iip-modal .iip-property-title,
#iip-modal .iip-property-price,
#iip-modal .iip-property-detail,
#iip-modal #iip-modal-title,
#iip-modal .iip-modal-price,
#iip-modal .iip-modal-details,
#iip-modal .iip-contact-button {
	font-family: "Afacad Flux", sans-serif !important;
}

/* Close-Button (X) */
#iip-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	color: #000;
	font-size: 20px;
	line-height: 20px;
	font-weight: 400;
	cursor: pointer;
	background: none;
	border: none;
	z-index: 10000;
}

/* 2 Spalten (links Slideshow, rechts Infos) */
.iip-modal-content {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 54px 0 0;
}

@media (max-width: 768px) {
	.iip-modal-content {
		flex-direction: column;
	}
}

/* ========== Linke Spalte (Slideshow) ========== */
.iip-modal-left {
	position: relative;
	flex: 1 1 55%;
	background: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border-top-left-radius: 20px;
	border-bottom-left-radius: 20px;
}

/* Pfeile */
.iip-arrow-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	font-size: 16px;
	line-height: 30px;
	text-align: center;
	color: #333;
	transition: background 0.2s ease;
	z-index: 2;
}

.iip-arrow-btn:hover {
	background: rgba(255, 255, 255, 0.9);
}

.iip-arrow-left {
	left: 10px;
}

.iip-arrow-right {
	right: 10px;
}

/* Dots */
#iip-modal-dots {
	position: absolute;
	bottom: 10%;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
	z-index: 2;
}

.iip-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
}

.iip-dot-active {
	background: #555;
}

/* ========== Rechte Spalte (Infos) ========== */
.iip-modal-right {
	flex: 1 1 45%;
	background: #fff;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 15px;
	border-top-right-radius: 20px;
	border-bottom-right-radius: 20px;
}

.iip-modal-price {
	font-size: 30px;
	color: #B8A757;
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 6px;
}

.iip-modal-details {
	display: flex;
	flex-direction: row;
	gap: 16px;
}

.iip-modal-details .iip-property-detail {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	color: #444;
	font-weight: 400;
	white-space: nowrap;
}

/* Kontakt-Button */
.iip-contact-button {
	background: transparent;
	color: #B8A757;
	border: 1px solid #B8A757;
	padding: 10px;
	text-transform: uppercase;
	border-radius: 100px;
	cursor: pointer;
	font-size: 18px;
	margin: 0;
	width: 130px;
	box-sizing: border-box;
}

.iip-modal-block {
	display: flex;
	justify-content: space-between;
}

.iip-social-buttons a {
	text-decoration: none;
	color: #333;
	font-size: 0.9rem;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	display: flex;
	width: 34px;
	height: 34px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	aspect-ratio: 1/1;
}

.iip-social-buttons a svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	aspect-ratio: 1/1;
}

/* ========== Fade-Out / Fade-In ========== */
.fade-out {
	animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

.fade-in {
	animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

/* ========== 1) Lokale Schrift (Bold) einbinden ========== */
@font-face {
	font-family: "Kamerik105Cyrillic";
	src: url("../fonts/Kamerik105Cyrillic-Bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
}

/* ========== Grid-Container (80% Breite, zentriert) ========== */
.iip-property-grid {
	width: 100%;
	/* Nutze 80% Seitenbreite */
	margin: 0 auto;
	/* Zentrieren */
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 42px 20px;
}

@media (max-width: 1024px) {
	.iip-property-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.iip-property-card {
	border-radius: 8px;
	background-color: #fff;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
	padding: 16px;
	cursor: pointer;
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* --- GrÃ¶ÃŸeres Bild (feste HÃ¶he, 250px Desktop / 180px Mobil) --- */
.iip-property-image {
	width: 100%;
	height: 260px;
	object-fit: cover;
	border-radius: 8px;
}

@media (max-width: 768px) {
	.iip-property-image {
		height: 180px;
	}

	.iip-property-grid {
		grid-template-columns: 1fr;
	}

	.iip-property-price {
		font-size: 24px;
	}
}

/* Titel + Preis in einer Zeile => links Titel, rechts Preis */
.iip-property-title-price {
	display: flex;
	justify-content: flex-start;
	align-items: baseline;
	margin-bottom: 8px;
}

/* Titel: kleiner, fett */
.iip-property-title {
	overflow: hidden;
	color: #222;
	text-overflow: ellipsis;
	font-family: "Afacad Flux";
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
}

/* Preis: fett, 1rem */


/* ========== Details (Location/Zimmer/Balkon) ========== */
.iip-property-details {
	display: flex;
	gap: 5px;
	align-items: center;
	font-size: 0.8rem;
	color: #333;
	font-weight: 400;
	margin-top: auto;
}

.iip-property-detail img {
	width: 25px;
	height: 25px;
	object-fit: contain;
}

/* ========== Modal-Overlay (Blur) ========== */
#iip-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: none;
	z-index: 9998;
}

/* Close-Button (X) */
#iip-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	color: #000;
	font-size: 20px;
	line-height: 20px;
	font-weight: 400;
	cursor: pointer;
	background: none;
	border: none;
	z-index: 10000;
}


@media (max-width: 768px) {

	.iip-modal-content {
		overflow-y: auto;
		flex-direction: column;
		max-height: 95vh;
	}

	.iip-property-title {
		font-size: 0.7rem;
	}

	span.elementor-button-text {
		font-size: 13px;
	}

}

/* 3:2-Bild-Format (Slideshow) */
.iip-modal-images {
	position: relative;
	width: 100%;
	height: 360px;
	padding-bottom: 0;
	overflow: hidden;
}

.iip-modal-images img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
}

/* Pfeile */
.iip-arrow-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	font-size: 16px;
	line-height: 30px;
	text-align: center;
	color: #333;
	transition: background 0.2s ease;
	z-index: 2;
}

.iip-arrow-btn:hover {
	background: rgba(255, 255, 255, 0.9);
}

.iip-arrow-left {
	left: 10px;
}

.iip-arrow-right {
	right: 10px;
}

/* Dots */
#iip-modal-dots {
	position: absolute;
	bottom: -3% !important;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
	z-index: 2;
}

.iip-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
}

.iip-dot-active {
	background: #555;
}

/* ========== Rechte Spalte (Infos) ========== */
.iip-modal-right {
	flex: 1 1 45%;
	background: #fff;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 15px;
	border-top-right-radius: 20px;
	border-bottom-right-radius: 20px;
}

#iip-modal-title {
	font-size: 24px;
	color: #222222;
	margin: 0;
	font-weight: 400;
}


.iip-social-buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
}


.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after {
	content: "";
	background: url('https://dev11brumm.de/wp-content/plugins/wp-ImmoDisplay_v1.1/assets/next.png') no-repeat;
	width: 24px;
	height: 24px;
	background-size: contain;
}

.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {
	content: "";
	background: url('https://dev11brumm.de/wp-content/plugins/wp-ImmoDisplay_v1.1/assets/prev.png') no-repeat;
	width: 24px;
	height: 24px;
	background-size: contain;
}

.filter-mobile {
	display: none;
}

.form-block .close-filter {
	display: none;
}

@media (max-width: 991px) {
	.form-block {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: max-content;
		background: #fff;
		z-index: 9999;
		overflow-y: auto;
		padding: 20px;
		box-sizing: border-box;
		flex-direction: column;

	}

	.form-block.active {
		display: flex;
	}

	.filter-mobile {
		display: block;
		cursor: pointer;
		z-index: 10000;
		height: 24px;
		margin-right: 24px;
	}

	.form-block .close-filter {
		position: absolute;
		display: block;
		top: 15px;
		right: 15px;
		cursor: pointer;
		width: 24px;
		height: 24px;
		z-index: 10001;
	}

	.iip-active-filters-container {
		grid-column: span 3;
		padding-bottom: 24px;
		margin-bottom: 24px;
		border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	}

	.form-block__sort {
		display: grid;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 42px;
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.iip-property-grid {
		grid-template-columns: 1fr;
		width: 100%;
	}

	.iip-modal-images {
		height: 210px;
	}

	.iip-property-detail {
		font-size: 12px;
	}

	.iip-property-detail img {
		width: 18px;
		height: 18px;
	}

	.iip-modal-images img {
		border-radius: 0;
	}

	.iip-property-title {
		font-size: 20px;
	}

	#iip-modal {
		max-width: 100%;
		max-height: max-content;
	}

	#iip-modal-title {
		font-size: 20px;
	}

	.iip-modal-block {
		flex-direction: column;
		align-items: flex-start;
	}

	.iip-modal-details {
		display: flex;
		flex-direction: column;
		gap: 19px;
	}

	.iip-contact-button {
		width: 100%;
		margin-bottom: 24px;
	}
}

@media (max-width: 568px) {
	.form-sort select {
		width: 100%;
	}

	.form-sort {
		grid-column: span 2;
	}
}


/* ========== Fade-Out / Fade-In ========== */
.fade-out {
	animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

.fade-in {
	animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}