/* Hartveilig Kaart, frontend styles */
.hvk-wrap {
	font-size: clamp(0.875rem, 0.7rem + 0.5vw, 1rem);
	overflow-wrap: break-word;
}

.hvk-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	padding: 0.75rem 1rem;
	background: #f6f7f7;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	margin-bottom: 0.75rem;
	font-size: 0.95em;
}
.hvk-stat { display: inline-flex; align-items: center; gap: 0.3rem; }
.hvk-dot {
	display: inline-block;
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	margin-right: 0.25rem;
	border: 1px solid rgba(0,0,0,0.25);
}

.hvk-notice {
	background: #fff8dc;
	border-left: 4px solid #e7c000;
	padding: 0.5rem 0.75rem;
	margin-bottom: 0.75rem;
	border-radius: 2px;
}
.hvk-notice p { margin: 0; }

.hvk-form {
	background: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 1rem;
	margin-bottom: 0.75rem;
}
.hvk-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 0.75rem 1rem;
	align-items: end;
}
.hvk-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
	font-size: 0.9em;
	hyphens: auto;
	overflow-wrap: break-word;
}
.hvk-field input[type=text],
.hvk-field select {
	width: 100%;
	padding: 0.4rem 0.5rem;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	font: inherit;
	box-sizing: border-box;
}
.hvk-coords-row {
	display: flex;
	gap: 0.25rem;
}
.hvk-coords-row input { flex: 1; min-width: 0; }
.hvk-coords-row .hvk-geocode {
	padding: 0.4rem 0.6rem;
	cursor: pointer;
	border: 1px solid #c3c4c7;
	background: #fff;
	border-radius: 3px;
}

.hvk-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.hvk-submit, .hvk-cancel {
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
}
.hvk-submit {
	background: #0073aa;
	color: #fff;
}
.hvk-submit:hover { background: #005a87; }
.hvk-cancel {
	background: #e0e0e0;
	color: #333;
}

.hvk-status {
	margin: 0.5rem 0 0;
	min-height: 1.4em;
	font-size: 0.9em;
	color: #555;
}
.hvk-status.is-error { color: #b32d2e; }
.hvk-status.is-success { color: #00a32a; }

.hvk-map {
	width: 100%;
	min-height: 300px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f0f0f0;
}

.hvk-popup-content strong { display: block; margin-bottom: 0.25rem; }
.hvk-popup-content { font-size: 0.95em; line-height: 1.4; }
.hvk-popup-actions { margin-top: 0.5rem; display: flex; gap: 0.5rem; }
.hvk-popup-actions button {
	font: inherit;
	font-size: 0.85em;
	padding: 0.25rem 0.5rem;
	border: 1px solid #c3c4c7;
	background: #fff;
	border-radius: 3px;
	cursor: pointer;
}
.hvk-popup-actions .hvk-popup-delete { color: #b32d2e; }
