/* Levana Properties – Vastgoed aanmelden (wizard)
   Pas de kleuren hieronder aan als ze niet exact overeenkomen met je theme. */

.lvw {
	--lv-green: #102422;
	--lv-cream: #F8FBEF;
	--lv-orange: #F0592A;
	--lv-orange-soft: rgba(240, 89, 42, 0.07);
	--lv-line: rgba(16, 36, 34, 0.14);
	--lv-muted: rgba(16, 36, 34, 0.64);
	--lv-error: #C8321B;
	--lv-radius: 14px;

	background: var(--lv-cream);
	color: var(--lv-green);
	padding: 56px 16px 96px;
	font-size: 16px;
	position: relative;
	z-index: 0;
	isolation: isolate; /* kaart en zoeklijst blijven onder de sticky header */
	line-height: 1.5;
}

.lvw [hidden] { display: none !important; }
.lvw *, .lvw *::before, .lvw *::after { box-sizing: border-box; }

.lvw__inner { max-width: 760px; margin: 0 auto; }

/* Intro */
.lvw__intro { margin-bottom: 28px; }
.lvw__title {
	font-size: clamp(30px, 5.4vw, 48px);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}
.lvw__subtitle { color: var(--lv-muted); font-size: 17px; max-width: 56ch; margin: 0; }

/* Kaart */
.lvw__card {
	background: #fff;
	border: 1px solid var(--lv-line);
	border-radius: 20px;
	padding: 28px;
}
@media (max-width: 600px) {
	.lvw { padding: 36px 12px 72px; }
	.lvw__card { padding: 20px 16px; border-radius: 16px; }
}

/* Voortgang */
.lvw__progress { height: 4px; background: var(--lv-line); border-radius: 4px; overflow: hidden; }
.lvw__progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--lv-orange);
	border-radius: 4px;
	transition: width 0.35s ease;
}
.lvw__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	margin: 12px 0 28px;
	font-size: 14px;
	color: var(--lv-muted);
}
.lvw__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 6px 12px;
	border: 1px solid var(--lv-line);
	border-radius: 999px;
	background: var(--lv-cream);
	color: var(--lv-green);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}
.lvw__chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvw__chip u { color: var(--lv-muted); text-underline-offset: 2px; }

/* Stappen */
.lvw__step { animation: lvwIn 0.28s ease both; }
@keyframes lvwIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.lvw__step { animation: none; }
	.lvw__progress span { transition: none; }
}

.lvw__q {
	font-size: clamp(22px, 3.6vw, 28px);
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 20px;
	outline: none;
}
.lvw__hint { color: var(--lv-muted); margin: -8px 0 20px; max-width: 60ch; }
.lvw__notice {
	background: var(--lv-cream);
	border: 1px solid var(--lv-line);
	border-radius: 10px;
	padding: 12px 14px;
	margin: 0 0 20px;
}

/* Keuzes */
.lvw__choices {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 10px;
}
.lvw__choices--big { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.lvw__choices--stack { grid-template-columns: 1fr; }
.lvw__choices--pills { display: flex; flex-wrap: wrap; gap: 8px; }

.lvw__opt {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 60px;
	padding: 16px 18px;
	border: 1.5px solid var(--lv-line);
	border-radius: var(--lv-radius);
	background: #fff;
	color: var(--lv-green);
	font: inherit;
	text-align: start;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.lvw__opt:hover { border-color: var(--lv-green); }
.lvw__opt:focus-visible { outline: 3px solid rgba(240, 89, 42, 0.45); outline-offset: 2px; }
.lvw__opt[aria-pressed="true"] {
	border-color: var(--lv-orange);
	background: var(--lv-orange-soft);
	box-shadow: inset 0 0 0 1px var(--lv-orange);
}
.lvw__opt-text strong { display: block; font-size: 16px; font-weight: 600; }
.lvw__opt-text small { display: block; margin-top: 2px; font-size: 14px; color: var(--lv-muted); line-height: 1.35; }

.lvw__choices--big .lvw__opt { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; min-height: 150px; }
.lvw__opt-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--lv-cream);
	color: var(--lv-green);
	flex-shrink: 0;
}
.lvw__opt-icon svg { width: 24px; height: 24px; }
.lvw__opt[aria-pressed="true"] .lvw__opt-icon { background: var(--lv-orange); color: #fff; }

.lvw__choices--pills .lvw__opt { width: auto; min-height: 0; padding: 10px 18px; border-radius: 999px; }
.lvw__choices--pills .lvw__opt-text strong { font-size: 15px; }

@media (max-width: 480px) {
	.lvw__choices--big .lvw__opt { flex-direction: row; align-items: center; min-height: 0; padding: 16px; }
	.lvw__choices { grid-template-columns: 1fr 1fr; }
	.lvw__choices--big, .lvw__choices--stack { grid-template-columns: 1fr; }
}

/* Velden */
.lvw__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 20px;
}
.lvw__step > .lvw__grid:first-of-type { margin-top: 0; }
.lvw__field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .lvw__grid { grid-template-columns: 1fr; } }

.lvw__field { display: block; }
.lvw__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.lvw__opt-label { font-weight: 400; color: var(--lv-muted); }
.lvw__field.is-req .lvw__label::after { content: " *"; color: var(--lv-orange); }

.lvw input[type="text"],
.lvw input[type="email"],
.lvw input[type="tel"],
.lvw input[type="number"],
.lvw select,
.lvw textarea,
.lvw__search-input {
	display: block;
	width: 100%;
	height: 52px;
	padding: 0 14px;
	border: 1.5px solid var(--lv-line);
	border-radius: 10px;
	background: #fff;
	color: var(--lv-green);
	font: inherit;
	font-size: 16px; /* voorkomt inzoomen op iPhone */
	-webkit-appearance: none;
	appearance: none;
}
.lvw select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23102422' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 22px;
	padding-inline-end: 40px;
}
[dir="rtl"] .lvw select, .lvw[dir="rtl"] select { background-position: left 10px center; }
.lvw textarea { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; }
.lvw input:focus,
.lvw select:focus,
.lvw textarea:focus,
.lvw__search-input:focus {
	outline: none;
	border-color: var(--lv-green);
	box-shadow: 0 0 0 3px rgba(16, 36, 34, 0.08);
}
.lvw input::placeholder, .lvw textarea::placeholder { color: rgba(16, 36, 34, 0.4); }

.lvw__unit { position: relative; display: block; }
.lvw__unit input { padding-inline-end: 64px; }
.lvw input[type="number"] { -moz-appearance: textfield; }
.lvw input[type="number"]::-webkit-outer-spin-button,
.lvw input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lvw__unit i {
	position: absolute;
	inset-inline-end: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-style: normal;
	font-size: 14px;
	color: var(--lv-muted);
	pointer-events: none;
}

.lvw__field.is-invalid input,
.lvw__field.is-invalid select,
.lvw__field.is-invalid textarea { border-color: var(--lv-error); }
.lvw__err { display: block; font-style: normal; font-size: 14px; color: var(--lv-error); margin-top: 6px; }
.lvw__err:empty { display: none; }

/* Voorzieningen */
.lvw__fieldset { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.lvw__fieldset legend { padding: 0; margin-bottom: 10px; }
.lvw__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lvw__tag { position: relative; cursor: pointer; }
.lvw__tag input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lvw__tag span {
	display: inline-block;
	padding: 9px 16px;
	border: 1.5px solid var(--lv-line);
	border-radius: 999px;
	font-size: 15px;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.lvw__tag:hover span { border-color: var(--lv-green); }
.lvw__tag input:checked + span { background: var(--lv-green); border-color: var(--lv-green); color: var(--lv-cream); }
.lvw__tag input:focus-visible + span { outline: 3px solid rgba(240, 89, 42, 0.45); outline-offset: 2px; }

/* Kaart & zoeken */
.lvw__search { position: relative; z-index: 20; margin-bottom: 12px; }
.lvw__results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--lv-line);
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(16, 36, 34, 0.14);
	max-height: 320px;
	overflow-y: auto;
}
.lvw__results li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.lvw__results li:hover { background: var(--lv-cream); }
.lvw__results strong { display: block; font-weight: 600; }
.lvw__results small { display: block; font-size: 13px; color: var(--lv-muted); }

.lvw__map-wrap { position: relative; isolation: isolate; }
.lvw__map {
	position: relative;
	z-index: 0;
	height: 360px;
	border-radius: var(--lv-radius);
	border: 1px solid var(--lv-line);
	overflow: hidden;
	background: var(--lv-cream);
}
@media (max-width: 600px) { .lvw__map { height: 300px; } }
.lvw .leaflet-container { font: inherit; font-size: 13px; }
.lvw .leaflet-container img { max-width: none !important; max-height: none !important; }
.lvw__pin { background: none; border: 0; }
.lvw__pin svg { display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }
.lvw__locate {
	position: absolute;
	z-index: 500;
	bottom: 14px;
	inset-inline-start: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--lv-green);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 2px 10px rgba(16, 36, 34, 0.18);
	cursor: pointer;
}
.lvw__locate:disabled { opacity: 0.6; cursor: wait; }
.lvw__coords { font-size: 14px; color: var(--lv-muted); margin: 8px 0 0; min-height: 1.5em; }

/* Foto's */
.lvw__drop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 28px 16px;
	border: 2px dashed var(--lv-line);
	border-radius: var(--lv-radius);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.lvw__drop:hover { border-color: var(--lv-green); background: var(--lv-cream); }
.lvw__drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lvw__drop:focus-within { border-color: var(--lv-orange); }
.lvw__drop svg { color: var(--lv-orange); }
.lvw__drop small { color: var(--lv-muted); font-size: 14px; }
.lvw__count { font-size: 14px; color: var(--lv-muted); margin: 12px 0 8px; }
.lvw__count:empty { display: none; }
.lvw__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.lvw__thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--lv-cream); }
.lvw__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lvw__thumb button {
	position: absolute;
	top: 6px;
	inset-inline-end: 6px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: rgba(16, 36, 34, 0.75);
	color: #fff;
	font-size: 18px;
	line-height: 28px;
	cursor: pointer;
}

/* Contact */
.lvw__role { margin-bottom: 4px; }
.lvw__check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.lvw__check-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--lv-orange); flex-shrink: 0; }

/* Navigatie */
.lvw__formerror { color: var(--lv-error); margin: 20px 0 0; }
.lvw__formerror:empty { display: none; }
.lvw__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--lv-line);
}
.lvw__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 4px;
	border: 0;
	background: none;
	color: var(--lv-green);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
[dir="rtl"] .lvw__back svg, .lvw[dir="rtl"] .lvw__back svg { transform: scaleX(-1); }
.lvw__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-inline-start: auto;
	min-height: 56px;
	padding: 0 28px;
	border: 0;
	border-radius: 10px;
	background: var(--lv-orange);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.lvw__btn:hover { background: var(--lv-green); color: var(--lv-cream); }
.lvw__btn:disabled { opacity: 0.65; cursor: wait; }
.lvw__btn:focus-visible, .lvw__back:focus-visible, .lvw__chip:focus-visible, .lvw__locate:focus-visible {
	outline: 3px solid rgba(240, 89, 42, 0.45);
	outline-offset: 2px;
}
@media (max-width: 480px) { .lvw__btn { flex: 1; } }

/* Bevestiging */
.lvw__success { text-align: center; padding: 24px 0 8px; }
.lvw__success .lvw__hint { margin: 0 auto 28px; }
.lvw__success .lvw__btn { margin: 0 auto; flex: none; }
.lvw__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--lv-orange);
	color: #fff;
}

/* Honeypot */
.lvw__hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.lvw__card { position: relative; }

/* Zoekopdracht-wizard: extra onderdelen */
.lvw__block { margin-top: 24px; }
.lvw__step > .lvw__block:first-of-type { margin-top: 0; }
.lvw__step > .lvw__q + .lvw__block { margin-top: 0; }
.lvw__file-doc {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 100%;
	padding: 8px;
	font-size: 11px;
	line-height: 1.3;
	text-align: center;
	color: var(--lv-muted);
	word-break: break-all;
}
.lvw__file-doc svg { color: var(--lv-orange); flex-shrink: 0; }
.lvw__file-doc span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
