/* Landesverband – Karten: Frontend (Honig-Design) */
.lvk {
	--lvk-gold:   #E39A08;
	--lvk-amber:  #A8630A;
	--lvk-ink:    #3A2A17;
	--lvk-muted:  #7a6a54;
	--lvk-line:   #EAD9B4;
	--lvk-cream:  #FBF4E6;
	--lvk-card:   #FFFDF8;
	--lvk-accent: #7A8B5A;
	--lvk-danger: #b32d2e;
	--lvk-blue:   #1f6feb;

	font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--lvk-ink);
	max-width: 1160px;
	margin: 0 auto;
}
.lvk *, .lvk *::before, .lvk *::after { box-sizing: border-box; }
.lvk .lvk-data { display: none; }

.lvk-head { margin: 0 0 16px; }
.lvk-title {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
	margin: 0;
	color: var(--lvk-amber);
}

.lvk-layout { display: flex !important; flex-wrap: nowrap; gap: 20px; align-items: flex-start; }
.lvk-side { flex: 0 0 360px !important; width: 360px; max-width: 360px; min-width: 0; }
.lvk-side > * { max-width: 100%; }

/* Getrennt platzierte Shortcodes (nur Liste bzw. nur Karte) füllen ihren Container. */
.lvk--list, .lvk--map { max-width: none; }
.lvk--list .lvk-side { flex: none !important; width: 100% !important; max-width: none !important; }
.lvk--map .lvk-mapwrap { width: 100%; }

.lvk-mapwrap {
	position: relative;
	flex: 1 1 auto !important;
	min-width: 0;
	border: 1px solid var(--lvk-line);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 40px -26px rgba(58, 42, 23, 0.55);
	isolation: isolate;
}
.lvk-map { width: 100%; height: 600px; background: var(--lvk-cream); }

/* -------- Formularfelder: robust gegen Theme-Überschreibungen -------- */
.lvk .lvk-search,
.lvk .lvk-radius-adr,
.lvk .lvk-radius-km {
	display: block;
	width: 100%;
	margin: 0;
	padding: 11px 13px;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.3;
	min-height: 46px;
	color: var(--lvk-ink) !important;
	background-color: #fff !important;
	border: 1.5px solid var(--lvk-line) !important;
	border-radius: 10px !important;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	box-shadow: none;
}
.lvk .lvk-search:focus,
.lvk .lvk-radius-adr:focus,
.lvk .lvk-radius-km:focus {
	outline: none;
	border-color: var(--lvk-gold) !important;
	box-shadow: 0 0 0 3px rgba(227, 154, 8, 0.20);
}
.lvk .lvk-search::placeholder,
.lvk .lvk-radius-adr::placeholder { color: #9a8f7d; opacity: 1; }

.lvk-searchwrap { margin-bottom: 12px; }
.lvk .lvk-search {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8630A' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: 12px center !important;
	background-size: 18px !important;
	padding-left: 40px;
}

/* -------- Umkreissuche -------- */
.lvk-radius {
	background: var(--lvk-cream);
	border: 1px solid var(--lvk-line);
	border-radius: 14px;
	padding: 14px 16px 16px;
	margin: 0 0 16px !important;
}
.lvk-radius-title {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--lvk-amber);
	margin: 0 0 10px !important;
}
.lvk-field { display: block; margin: 0 0 10px !important; padding: 0; }
.lvk-field-lbl {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--lvk-muted);
	margin: 0 0 4px !important;
}
.lvk-radius-row {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 10px;
	align-items: flex-end;
	margin: 0 !important;
}
.lvk-field--km { margin: 0 !important; flex: 0 0 108px !important; width: 108px; }
.lvk .lvk-radius-km { width: 100% !important; min-width: 0; }
.lvk-radius-go,
.lvk-radius-reset {
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1;
	padding: 0 16px;
	min-height: 46px;
	border: 0;
	border-radius: 10px;
	background: var(--lvk-gold);
	color: #fff !important;
	cursor: pointer;
	flex: 1 1 auto !important;
	width: auto !important;
	margin: 0;
	white-space: nowrap;
	transition: background 0.15s;
}
.lvk-radius-go:hover { background: var(--lvk-amber); }
.lvk-radius-reset {
	width: 100%;
	margin-top: 10px;
	min-height: 40px;
	background: transparent;
	color: var(--lvk-amber) !important;
	border: 1.5px solid var(--lvk-line);
	font-weight: 700;
}
.lvk-radius-reset:hover { background: #fff; }
.lvk-radius-status { font-size: 0.84rem; color: var(--lvk-muted); margin-top: 10px; min-height: 1em; }

.lvk-count {
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--lvk-amber);
	margin: 4px 2px 10px;
}

/* -------- Karten (Listeneinträge) -------- */
.lvk-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 600px;
	overflow-y: auto;
	scrollbar-width: thin;
}
.lvk-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--lvk-card);
	border: 1px solid var(--lvk-line);
	border-radius: 16px;
	padding: 14px 16px;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.lvk-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -14px rgba(58, 42, 23, 0.5);
	border-color: var(--lvk-gold);
}
.lvk-card-media { flex: 0 0 54px; }
.lvk-card-logo {
	width: 54px; height: 54px;
	object-fit: contain;
	border-radius: 12px;
	border: 1px solid var(--lvk-line);
	background: #fff;
	display: block;
}
.lvk-card-badge {
	width: 54px; height: 54px;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.6rem;
	border-radius: 12px;
	background: linear-gradient(180deg, #F6D98B, #E39A08);
	box-shadow: 0 4px 10px -4px rgba(163, 99, 10, 0.6);
}
.lvk-card-body { flex: 1 1 auto; min-width: 0; }
.lvk-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lvk-card-name {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	font-size: 1.14rem;
	line-height: 1.2;
	color: var(--lvk-ink);
	word-break: break-word;
}
.lvk-card-adr { font-size: 0.86rem; color: var(--lvk-muted); margin-top: 3px; }
.lvk-card-line { font-size: 0.83rem; color: #5c4a33; margin-top: 4px; }
.lvk-card-line b { color: var(--lvk-amber); font-weight: 700; }
.lvk-dist {
	font-size: 0.72rem; font-weight: 800;
	color: #fff; background: var(--lvk-accent);
	padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.lvk-nocoord {
	display: inline-block;
	font-size: 0.72rem; font-weight: 700;
	color: var(--lvk-danger);
	margin-top: 5px;
}
.lvk-empty {
	text-align: center;
	background: var(--lvk-card);
	border: 1px dashed var(--lvk-line);
	border-radius: 16px;
	padding: 26px;
	color: var(--lvk-muted);
}

/* -------- Klick-to-load Einwilligung -------- */
.lvk-consent {
	position: absolute;
	inset: 0;
	background: var(--lvk-cream);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	z-index: 500;
}
.lvk-consent p { max-width: 420px; color: var(--lvk-muted); font-size: 0.9rem; line-height: 1.5; }
.lvk-consent-btn {
	margin-top: 6px;
	padding: 12px 24px;
	border: 0;
	border-radius: 10px;
	background: var(--lvk-gold);
	color: #fff !important;
	font-weight: 800;
	font-size: 1rem;
	cursor: pointer;
}
.lvk-consent-btn:hover { background: var(--lvk-amber); }

/* -------- Marker-Pins -------- */
.lvk-pin {
	width: 30px; height: 30px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: #E39A08;
	border: 2px solid #fff;
	box-shadow: 0 4px 10px -3px rgba(58, 42, 23, 0.7);
}
.lvk-pin--circle {
	width: 22px; height: 22px;
	border-radius: 50% !important;
	transform: none !important;
	border: 3px solid #fff;
}

/* -------- Popups / Info-Box -------- */
.lvk .leaflet-popup-content-wrapper { border-radius: 14px; }
.lvk-pop { font-family: "Nunito Sans", sans-serif; font-size: 0.9rem; line-height: 1.45; max-width: 260px; }
.lvk-pop-img { max-width: 100%; max-height: 120px; width: auto; border-radius: 8px; margin-bottom: 8px; display: block; }
.lvk-pop-name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.08rem; color: var(--lvk-amber); }
.lvk-pop-adr { color: var(--lvk-muted); margin-bottom: 6px; }
.lvk-pop-row { margin-top: 3px; }
.lvk-pop-box { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--lvk-line); }
.lvk-pop a { color: var(--lvk-amber); font-weight: 700; }

/* -------- Responsive -------- */
@media (max-width: 820px) {
	.lvk-layout { flex-direction: column !important; }
	.lvk-side { flex: 1 1 auto !important; max-width: none !important; width: 100% !important; }
	.lvk-list { max-height: 340px; }
	.lvk-map { height: 420px; }
}
