.pfp-dash-root {
	--pfp-ink: #211d18;
	--pfp-ink-soft: #6d6558;
	--pfp-card: #ffffff;
	--pfp-line: #e7e1d3;
	--pfp-page-bg: #faf8f4;

	/* Primary brand accent — used for tabs, buttons, links (unchanged from
	   the rest of the plugin, so the dashboard still reads as CampFlow). */
	--pfp-accent: #2f5d50;
	--pfp-accent-ink: #1d3d34;
	--pfp-accent-tint: #e7efec;

	/* A distinct color per stat/data type, rather than one monochrome
	   accent for everything — this is what makes the dashboard read as
	   colorful and modern rather than a plain form-heavy admin screen. */
	--pfp-color-properties: #3b6e91;
	--pfp-color-properties-tint: #e5eef4;
	--pfp-color-revenue: #2f5d50;
	--pfp-color-revenue-tint: #e7efec;
	--pfp-color-bookings: #b8842e;
	--pfp-color-bookings-tint: #faf1e2;
	--pfp-color-checkins: #b1503f;
	--pfp-color-checkins-tint: #f8e9e6;

	--pfp-radius: 14px;
	--pfp-radius-sm: 8px;
	--pfp-font-display: 'Fraunces', ui-serif, Georgia, serif;
	--pfp-font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	font-family: var(--pfp-font-body);
	color: var(--pfp-ink);
	background: var(--pfp-page-bg);
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 0 32px;
}

.pfp-dash-root * {
	box-sizing: border-box;
}

.pfp-dash-header {
	background: linear-gradient(135deg, var(--pfp-accent) 0%, var(--pfp-accent-ink) 100%);
	color: #fff;
	border-radius: 0 0 var(--pfp-radius) var(--pfp-radius);
	padding: 28px 24px 20px;
	margin-bottom: 24px;
}

.pfp-dash-header h1 {
	font-family: var(--pfp-font-display);
	font-weight: 500;
	font-size: 26px;
	margin: 0 0 4px;
}

.pfp-dash-header p {
	font-size: 13px;
	opacity: 0.85;
	margin: 0;
}

.pfp-dash-denied,
.pfp-dash-login {
	padding: 32px;
	text-align: center;
	background: var(--pfp-accent-tint);
	border-radius: var(--pfp-radius);
	margin: 24px;
}

/* ---------- Notices ---------- */

.pfp-dash-notice {
	padding: 12px 16px;
	border-radius: var(--pfp-radius-sm);
	margin-bottom: 20px;
	font-size: 14px;
}

.pfp-dash-notice--success {
	background: var(--pfp-accent-tint);
	color: var(--pfp-accent-ink);
}

.pfp-dash-notice--error {
	background: #fbe9e7;
	color: #9c3b2e;
}

/* ---------- Tabs ---------- */

.pfp-dash-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--pfp-line);
	margin-bottom: 24px;
	overflow-x: auto;
	padding: 0 24px;
}

.pfp-dash-tab {
	padding: 10px 18px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	font-family: var(--pfp-font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--pfp-ink-soft);
	cursor: pointer;
	white-space: nowrap;
}

.pfp-dash-tab:hover {
	color: var(--pfp-ink);
}

.pfp-dash-tab.is-active {
	color: var(--pfp-accent);
	border-bottom-color: var(--pfp-accent);
}

.pfp-dash-panel {
	display: none;
	padding: 0 24px;
}

.pfp-dash-panel.is-active {
	display: block;
}

.pfp-dash-panel h2 {
	font-family: var(--pfp-font-display);
	font-weight: 500;
	font-size: 20px;
	margin: 0 0 16px;
}

.pfp-dash-filter-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}

.pfp-dash-filter-row label {
	font-size: 13px;
	font-weight: 600;
	color: var(--pfp-ink-soft);
}

.pfp-dash-filter-row select {
	padding: 8px 12px;
	border: 1px solid var(--pfp-line);
	border-radius: var(--pfp-radius-sm);
	font-family: var(--pfp-font-body);
	font-size: 14px;
	background: var(--pfp-card);
}

.pfp-dash-panel h3 {
	font-family: var(--pfp-font-display);
	font-weight: 500;
	font-size: 16px;
	margin: 24px 0 10px;
}

/* ---------- Overview cards ---------- */

.pfp-dash-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

.pfp-dash-card {
	background: var(--pfp-card);
	border: 1px solid var(--pfp-line);
	border-radius: var(--pfp-radius);
	padding: 18px;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.pfp-dash-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--pfp-card-color, var(--pfp-accent));
}

.pfp-dash-card--properties { --pfp-card-color: var(--pfp-color-properties); }
.pfp-dash-card--revenue { --pfp-card-color: var(--pfp-color-revenue); }
.pfp-dash-card--bookings { --pfp-card-color: var(--pfp-color-bookings); }
.pfp-dash-card--checkins { --pfp-card-color: var(--pfp-color-checkins); }

.pfp-dash-card strong {
	font-family: var(--pfp-font-display);
	font-size: 28px;
	font-weight: 500;
	color: var(--pfp-card-color, var(--pfp-ink));
}

.pfp-dash-card span {
	font-size: 13px;
	color: var(--pfp-ink-soft);
	margin-top: 4px;
}

/* ---------- Forms ---------- */

.pfp-dash-form {
	background: var(--pfp-card);
	border: 1px solid var(--pfp-line);
	border-radius: var(--pfp-radius);
	padding: 20px;
	margin-bottom: 28px;
}

.pfp-dash-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.pfp-dash-field label,
.pfp-dash-checkbox,
.pfp-dash-inline-number {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	color: var(--pfp-ink-soft);
}

.pfp-dash-checkbox,
.pfp-dash-inline-number {
	margin: 10px 0;
	font-weight: 500;
	color: var(--pfp-ink);
}

.pfp-dash-inline-number input {
	width: 70px;
	margin-left: 6px;
	padding: 4px 8px;
	border: 1px solid var(--pfp-line);
	border-radius: 6px;
}

.pfp-dash-field input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--pfp-line);
	border-radius: 6px;
	font-family: var(--pfp-font-body);
	font-size: 14px;
}

.pfp-dash-radio-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 8px 0 16px;
}

.pfp-dash-color-fields {
	display: flex;
	gap: 20px;
	margin: 10px 0 16px;
	flex-wrap: wrap;
}

.pfp-dash-color-field {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pfp-ink);
}

.pfp-dash-color-field input[type="color"] {
	width: 44px;
	height: 32px;
	padding: 2px;
	border: 1px solid var(--pfp-line);
	border-radius: 6px;
	cursor: pointer;
}

.pfp-dash-inline-form {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	align-items: center;
}

.pfp-dash-inline-form input[type="text"] {
	padding: 8px 10px;
	border: 1px solid var(--pfp-line);
	border-radius: 6px;
	font-family: var(--pfp-font-body);
	font-size: 13px;
}

.pfp-dash-term-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.pfp-dash-term-list li {
	padding: 8px 12px;
	border-bottom: 1px solid var(--pfp-line);
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.pfp-dash-term-list a {
	margin-left: auto;
	color: #9c3b2e;
	font-size: 12px;
	text-decoration: none;
}

.pfp-dash-term-count {
	color: var(--pfp-ink-soft);
	font-size: 12px;
}

.pfp-dash-review-card {
	border: 1px solid var(--pfp-line);
	border-radius: var(--pfp-radius);
	padding: 16px;
	margin-bottom: 12px;
}

.pfp-dash-review-card p {
	margin: 0 0 8px;
	font-size: 14px;
}

.pfp-dash-insight-card {
	background: var(--pfp-accent-tint);
	border-radius: var(--pfp-radius);
	padding: 14px 18px;
	margin-bottom: 10px;
}

.pfp-dash-chart-wrap {
	background: var(--pfp-card);
	border: 1px solid var(--pfp-line);
	border-radius: var(--pfp-radius);
	padding: 16px;
	margin: 12px 0 24px;
	max-width: 720px;
}

.pfp-dash-insight-card p {
	margin: 0 0 6px;
	font-size: 14px;
}

/* ---------- Buttons ---------- */

.pfp-dash-button {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	border-radius: var(--pfp-radius-sm);
	font-family: var(--pfp-font-body);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	border: 1px solid var(--pfp-line);
	background: #fff;
	color: var(--pfp-ink);
	cursor: pointer;
}

.pfp-dash-button--primary {
	background: var(--pfp-accent);
	border-color: var(--pfp-accent);
	color: #fff;
}

.pfp-dash-button--primary:hover {
	background: var(--pfp-accent-ink);
}

.pfp-dash-button--danger {
	color: #9c3b2e;
	border-color: #f0d4cf;
}

.pfp-dash-button--danger:hover {
	background: #fbe9e7;
}

.pfp-dash-button--small {
	padding: 6px 12px;
	font-size: 12px;
}

/* ---------- Tables ---------- */

.pfp-dash-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.pfp-dash-table th {
	text-align: left;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--pfp-ink-soft);
	padding: 10px 12px;
	border-bottom: 1px solid var(--pfp-line);
}

.pfp-dash-table td {
	padding: 12px;
	border-bottom: 1px solid var(--pfp-line);
	vertical-align: middle;
}

.pfp-dash-table__actions {
	white-space: nowrap;
}

.pfp-dash-empty {
	color: var(--pfp-ink-soft);
	font-size: 14px;
	padding: 24px 0;
	text-align: center;
}

/* ---------- Status badges ---------- */

.pfp-dash-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #eee;
	color: #555;
}

.pfp-dash-badge--pfp-confirmed {
	background: var(--pfp-accent-tint);
	color: var(--pfp-accent-ink);
}

.pfp-dash-badge--pfp-pending {
	background: #fdf0da;
	color: #8a5a1e;
}

.pfp-dash-badge--pfp-cancelled,
.pfp-dash-badge--pfp-refunded {
	background: #fbe9e7;
	color: #9c3b2e;
}

.pfp-dash-badge--pfp-completed {
	background: #e6eef5;
	color: #2c5a82;
}

@media (max-width: 700px) {
	.pfp-dash-table,
	.pfp-dash-table thead,
	.pfp-dash-table tbody,
	.pfp-dash-table tr,
	.pfp-dash-table td {
		display: block;
	}

	.pfp-dash-table thead {
		display: none;
	}

	.pfp-dash-table tr {
		border: 1px solid var(--pfp-line);
		border-radius: var(--pfp-radius-sm);
		margin-bottom: 10px;
		padding: 8px 0;
	}

	.pfp-dash-table td {
		border-bottom: none;
		padding: 4px 12px;
	}
}

/* ---------- Edit form ---------- */

.pfp-dash-back-link {
	color: var(--pfp-accent);
	font-size: 13px;
	text-decoration: none;
	font-weight: 600;
}

.pfp-dash-edit-form {
	padding: 24px;
}

.pfp-dash-field--full {
	grid-column: 1 / -1;
}

.pfp-dash-field textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--pfp-line);
	border-radius: 6px;
	font-family: var(--pfp-font-body);
	font-size: 14px;
}

.pfp-dash-help {
	font-size: 13px;
	color: var(--pfp-ink-soft);
	margin-bottom: 10px;
}

.pfp-dash-amenity-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 6px;
	margin-bottom: 12px;
}

.pfp-dash-media-preview {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 8px;
	min-height: 4px;
}

.pfp-dash-media-preview img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--pfp-line);
}

.pfp-dash-repeater-row {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
	align-items: flex-start;
}

.pfp-dash-repeater-row input[type="text"],
.pfp-dash-repeater-row input[type="url"],
.pfp-dash-repeater-row select {
	padding: 8px 10px;
	border: 1px solid var(--pfp-line);
	border-radius: 6px;
	font-family: var(--pfp-font-body);
	font-size: 13px;
}

.pfp-dash-repeater-row--stacked {
	flex-direction: column;
	border: 1px solid var(--pfp-line);
	border-radius: var(--pfp-radius-sm);
	padding: 10px;
}

.pfp-dash-repeater-row--stacked input,
.pfp-dash-repeater-row--stacked select,
.pfp-dash-repeater-row--stacked textarea {
	width: 100%;
	margin-bottom: 6px;
	padding: 8px 10px;
	border: 1px solid var(--pfp-line);
	border-radius: 6px;
	font-family: var(--pfp-font-body);
	font-size: 13px;
}

#pfp-dash-videos .pfp-dash-repeater-row input[type="text"],
#pfp-dash-tours .pfp-dash-repeater-row input[type="text"] {
	width: 140px;
	flex: none;
}

#pfp-dash-videos .pfp-dash-repeater-row input[type="url"],
#pfp-dash-tours .pfp-dash-repeater-row input[type="url"] {
	flex: 1;
}

#pfp-dash-sections-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.pfp-dash-section-row {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--pfp-accent-tint);
	border-radius: 8px;
	padding: 8px 12px;
	margin-bottom: 6px;
	cursor: default;
}

.pfp-dash-drag-handle {
	cursor: move;
	opacity: 0.5;
}

.pfp-dash-form__actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.pfp-dash-root--admin {
	max-width: none;
	margin: 0;
	padding: 0 0 24px;
	background: transparent;
}

.pfp-dash-root--admin .pfp-dash-header {
	border-radius: var(--pfp-radius);
	margin: 0 0 20px;
}

.pfp-dash-root--admin .pfp-dash-tabs,
.pfp-dash-root--admin .pfp-dash-panel {
	padding: 0;
}

/* ---------- Standalone template top bar ---------- */

body.campflow-pro-standalone {
	margin: 0;
	background: #faf8f4;
	font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pfp-standalone-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 24px;
	background: #1d3d34;
	color: #fff;
}

.pfp-standalone-topbar__brand {
	font-family: 'Fraunces', ui-serif, Georgia, serif;
	font-weight: 500;
	font-size: 16px;
}

.pfp-standalone-topbar__link {
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.12);
	padding: 8px 14px;
	border-radius: 999px;
	transition: background-color 0.15s ease;
}

.pfp-standalone-topbar__link:hover {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}
