/* ─── View controls ─── */
.pbfv2-view-controls {
	display: flex; flex-direction: column; gap: 10px;
	margin: 16px 0 20px;
}
.pbfv2-view-tabs {
	display: inline-flex; gap: 2px; padding: 4px;
	background: #fff; border-radius: 10px;
	border: 1px solid #e5e7eb;
	align-self: flex-start;
}
.pbfv2-view-tab {
	border: 0; background: transparent;
	padding: 8px 14px; border-radius: 6px;
	font-size: 14px; cursor: pointer;
	font-family: inherit; color: #6b7280;
	min-height: 40px;
}
.pbfv2-view-tab.is-active {
	background: #14b8a6; color: #fff;
}

.pbfv2-view-filters {
	display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.pbfv2-province-filter {
	padding: 8px 14px; border-radius: 8px;
	border: 1px solid #e5e7eb; background: #fff;
	font-family: inherit; font-size: 14px;
	min-height: 42px; cursor: pointer;
}
.pbfv2-nearme-btn {
	min-height: 42px; padding: 8px 14px;
}
.pbfv2-postcode-form {
	display: inline-flex; gap: 6px; align-items: center;
	padding: 4px; background: #fff;
	border: 2px solid #14b8a6; border-radius: 8px;
}
.pbfv2-postcode-form input {
	width: 100px; padding: 8px;
	border: 1px solid #e5e7eb; border-radius: 4px;
	font-family: inherit; font-size: 14px;
}
.pbfv2-linkbtn {
	background: transparent; color: #6b7280;
	border: 0; text-decoration: underline; cursor: pointer;
	font-family: inherit; font-size: 12px;
	padding: 4px 8px;
}

.pbfv2-active-chips {
	display: flex; gap: 8px; flex-wrap: wrap; min-height: 22px;
}
.pbfv2-chip {
	display: inline-flex; align-items: center; gap: 6px;
	background: #14b8a6; color: #fff;
	padding: 6px 12px; border-radius: 999px;
	font-size: 13px; font-weight: 500;
}
.pbfv2-chip button {
	background: rgba(255,255,255,.25); border: 0; color: #fff;
	width: 20px; height: 20px; border-radius: 50%;
	cursor: pointer; padding: 0; line-height: 1;
	font-size: 12px;
}
.pbfv2-chip button:hover { background: rgba(255,255,255,.4); }

/* ─── Views ─── */
.pbfv2-view {
	background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
	padding: 16px; margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.pbfv2-view[hidden] { display: none; }
.pbfv2-view-list { padding: 0; border: 0; background: transparent; box-shadow: none; }

/* Kalender */
.pbfv2-cal-event { cursor: pointer; border: none; padding: 2px 4px; font-weight: 500; }
.pbfv2-cal-event.type-toernooi { background: #ef4444; }
.pbfv2-cal-event.type-evenement { background: #3b82f6; }
.fc-daygrid-day:hover { background: rgba(20,184,166,.06); cursor: pointer; }
.fc .fc-button-primary {
	background: #14b8a6; border-color: #14b8a6;
}
.fc .fc-button-primary:hover,
.fc .fc-button-primary:not(:disabled):active {
	background: #0d9488; border-color: #0d9488;
}
.fc .fc-daygrid-day.fc-day-today { background: rgba(20,184,166,.08); }

/* Kaart */
.pbfv2-map { height: 520px; border-radius: 8px; }
.pbfv2-mapmarker {
	border: 2px solid #fff; border-radius: 50%;
	width: 22px; height: 22px;
	box-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.pbfv2-mapmarker-toernooi { background: #ef4444; }
.pbfv2-mapmarker-evenement { background: #3b82f6; }
.pbfv2-mappopup-meta { color: #6b7280; font-size: 12px; margin: 2px 0; }
.pbfv2-mappopup-cta { margin-top: 6px; }
.pbfv2-mappopup-cta a { color: #0d9488; }

/* Distance badge op cards */
.pbfv2-card-badges .pbfv2-badge-distance {
	background: rgba(20,184,166,.12); color: #0d9488;
}

/* ─── Modal ─── */
body.pbfv2-modal-open { overflow: hidden; }
.pbfv2-modal-backdrop {
	position: fixed; inset: 0; background: rgba(0,0,0,.5);
	opacity: 0; pointer-events: none;
	transition: opacity .2s ease;
	z-index: 10000;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
}
.pbfv2-modal-backdrop.open { opacity: 1; pointer-events: auto; }
.pbfv2-modal {
	background: #fff; border-radius: 16px;
	max-width: 560px; width: 100%;
	max-height: 85vh;
	display: flex; flex-direction: column;
	transform: translateY(20px);
	transition: transform .25s ease;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.pbfv2-modal-backdrop.open .pbfv2-modal { transform: translateY(0); }
.pbfv2-modal-header {
	padding: 16px 20px; border-bottom: 1px solid #e5e7eb;
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; flex-shrink: 0;
}
.pbfv2-modal-title { font-size: 17px; font-weight: 600; color: #1f2937; }
.pbfv2-modal-subtitle { font-size: 13px; color: #6b7280; margin-top: 2px; }
.pbfv2-modal-close {
	background: transparent; border: 0;
	width: 40px; height: 40px; border-radius: 50%;
	font-size: 22px; cursor: pointer; color: #6b7280;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.pbfv2-modal-close:hover { background: #f3f4f6; color: #1f2937; }
.pbfv2-modal-body { padding: 16px 20px; overflow-y: auto; flex-grow: 1; }
.pbfv2-modal-empty {
	text-align: center; padding: 30px 10px; color: #6b7280;
	font-style: italic;
}
.pbfv2-modal-card {
	border: 1px solid #e5e7eb; border-radius: 10px;
	padding: 14px; margin-bottom: 10px;
	transition: border-color .15s, transform .15s;
}
.pbfv2-modal-card:hover { border-color: #14b8a6; transform: translateY(-1px); }
.pbfv2-modal-card h4 { margin: 0 0 6px; font-size: 15px; line-height: 1.3; }
.pbfv2-modal-card h4 a { color: #1f2937; text-decoration: none; }
.pbfv2-modal-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.pbfv2-modal-badge {
	font-size: 11px; padding: 3px 8px; border-radius: 999px;
	background: #f3f4f6; color: #374151; font-weight: 500;
}
.pbfv2-modal-badge.type-toernooi { background: #fee2e2; color: #991b1b; }
.pbfv2-modal-badge.type-evenement { background: #dbeafe; color: #1e40af; }
.pbfv2-modal-badge.status-open { background: #d1fae5; color: #065f46; }
.pbfv2-modal-badge.distance { background: rgba(20,184,166,.12); color: #0d9488; }
.pbfv2-modal-meta { color: #6b7280; font-size: 12px; margin: 2px 0; }
.pbfv2-modal-excerpt { font-size: 13px; margin: 8px 0; color: #374151; }
.pbfv2-modal-btn {
	display: inline-block; margin-top: 8px;
	background: #14b8a6; color: #fff; text-decoration: none;
	padding: 8px 14px; border-radius: 6px;
	font-size: 13px; font-weight: 500;
}

/* Mobiel */
@media (max-width: 640px) {
	.pbfv2-view { padding: 8px; }
	.fc .fc-toolbar { flex-direction: column; gap: 8px; }
	.fc .fc-toolbar-title { font-size: 16px; }
	.pbfv2-map { height: 400px; }

	.pbfv2-modal-backdrop { padding: 0; align-items: flex-end; }
	.pbfv2-modal {
		max-width: 100%; width: 100%;
		max-height: 90vh;
		border-radius: 20px 20px 0 0;
		transform: translateY(100%);
	}
	.pbfv2-modal-backdrop.open .pbfv2-modal { transform: translateY(0); }
	.pbfv2-modal-header { position: relative; padding-top: 22px; }
	.pbfv2-modal-header::before {
		content: ''; position: absolute; top: 8px; left: 50%;
		transform: translateX(-50%);
		width: 40px; height: 4px; background: #d1d5db; border-radius: 2px;
	}
}
