/* ==========================================================================
   Veiel Mallorca – ergänzende Styles
   Gestaltung der Seiten erfolgt in Elementor. Hier liegen nur Zustände,
   die per Skript gesetzt werden.
   ========================================================================== */

/* Einblenden beim Scrollen
   -------------------------------------------------------------------------- */
html.has-js .reveal {
	opacity: 0;
	translate: 0 34px;
	transition: opacity .9s cubic-bezier(.2, .7, .2, 1), translate 1.1s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--reveal-delay, 0s);
	will-change: opacity, translate;
}

html.has-js .reveal.is-visible {
	opacity: 1;
	translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
	html.has-js .reveal {
		opacity: 1;
		translate: none;
		transition: none;
	}
}

/* Kennzeichnung KI-generierter Bilder
   -------------------------------------------------------------------------- */
.ai-badge {
	position: absolute;
	left: 16px;
	bottom: 14px;
	top: auto;
	right: auto;
	z-index: 5;
	pointer-events: none;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(41, 29, 21, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	font-family: inherit;
	font-size: 10px;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: .9;
}

.ai-badge.pos-tl { top: 14px; bottom: auto; }
.ai-badge.pos-br { left: auto; right: 16px; }
.ai-badge.pos-tr { top: 14px; bottom: auto; left: auto; right: 16px; }

@media (max-width: 767px) {
	.ai-badge { left: 12px; bottom: 10px; font-size: 9px; padding: 3px 8px; }
}

/* Suchprofil-Dialog (Immobilien)
   -------------------------------------------------------------------------- */
#suchprofil-dialog { display: none !important; }
#suchprofil-dialog.is-open { display: flex !important; animation: dialogFadeIn .35s ease; }
#suchprofil-dialog.is-open > div { animation: dialogSlideUp .5s cubic-bezier(.2, .7, .2, 1); }

@keyframes dialogFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialogSlideUp { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

#sp-s2, #sp-s3, #sp-s4 { display: none; }
#suchprofil-dialog form > div[id^=sp-s] { width: 100%; }

#suchprofil-dialog .sp-tile.is-on {
	border-color: #F15B22 !important;
	background-color: #FFF8F0 !important;
	box-shadow: 0 14px 30px -18px rgba(241, 91, 34, .55);
}

#suchprofil-dialog .sp-tile input {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	min-width: 20px;
	margin: 0;
	border: 1.5px solid rgba(41, 29, 21, .25);
	border-radius: 50%;
	background: #fff;
	transition: all .2s;
	pointer-events: none;
}

#suchprofil-dialog .sp-tile input[type=checkbox] { border-radius: 6px; }
#suchprofil-dialog .sp-tile input::before { display: none; }

#suchprofil-dialog .sp-tile input:checked {
	background: #F15B22;
	border-color: #F15B22;
	box-shadow: inset 0 0 0 4px #fff;
}

#suchprofil-dialog .sp-tile input[type=checkbox]:checked { box-shadow: none; }

#suchprofil-dialog .sp-tile input[type=checkbox]:checked::after {
	content: "";
	display: block;
	width: 6px;
	height: 10px;
	margin: 2px auto 0;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

#suchprofil-dialog *::-webkit-scrollbar { width: 6px; }
#suchprofil-dialog *::-webkit-scrollbar-thumb { background: rgba(41, 29, 21, .15); border-radius: 6px; }
