.pfg-wrapper {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

/* Sidebar */
.pfg-sidebar {
	width: 275px;
	min-width: 275px;
	flex-shrink: 0;
	background: #fff;
	padding: 20px;
	border-radius: 8px;
}

.pfg-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.pfg-sidebar-header h4 { margin: 0; }

.pfg-clear-all {
	background: none;
	border: none;
	color: #6b7280;
	font-size: 13px;
	cursor: pointer;
}

.pfg-filter-group { margin-bottom: 22px; }

.pfg-filter-group h5 {
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.05em;
	color: #6b7280;
	margin-bottom: 10px;
}

.pfg-search-label {
	display: block;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.05em;
	color: #6b7280;
	margin-bottom: 8px;
}

.pfg-search-input {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 12px!important;
	border: 1px solid #e5e7eb!important;
	border-radius: 6px;
	font-size: 14px;
}

.pfg-search-input:focus {
	outline: none;
	border-color: #1f6f4a;
}

.pfg-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	font-size: 13px;
	margin-bottom: 10px;
	cursor: pointer;
}

.pfg-checkbox input {
	accent-color: #1f8a4c;
	width: 16px;
	height: 16px;
}

.pfg-category-checkbox {
	width: 13px!important;
	height: 16px!important;
}

/* Results grid */
.pfg-results { flex: 1; }

.pfg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	transition: opacity 0.2s ease;
}

.pfg-grid.pfg-loading { opacity: 0.4; }

/* Card — styled to match the reference screenshot */
.pfg-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
	display: flex;
	flex-direction: column;
	height: 100%; /* fills the grid row so all cards in a row match height */
}

.pfg-card-image {
	position: relative;
	margin: 10px;
	border-radius: 12px;
	overflow: hidden;
}

.pfg-card-image img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
	border-radius: 12px;
}

.pfg-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #c9a227;
	color: #16351f;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
}

.pfg-card-body {
	padding: 4px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1; /* takes up remaining card height so footer can be pinned below */
}

.pfg-card-meta {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: #1f6f4a;
	margin: 6px 0 10px;
}

.pfg-card-title {
	font-family: 'Playfair Display';
	font-size: 20px;
	line-height: 1.3;
	margin: 0 0 10px;
	color: #16351f;
}

.pfg-card-title a { color: #16351f; text-decoration: none; }
.pfg-card-title a:hover { text-decoration: underline; }

.pfg-card-excerpt {
	font-size: 14px;
	line-height: 1.5;
	color: #4b5563;
	margin: 0 0 16px;
	flex: 1; /* pushes footer to the bottom regardless of excerpt length */
}

.pfg-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #e8dfc0;
	padding-top: 14px;
	margin-top: auto; /* pins footer to the bottom of the card */
}

.pfg-price { color: #111827; font-weight: 700; font-size: 16px; }
.pfg-apply {
	color: #1f6f4a;
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
}
.pfg-apply:hover { text-decoration: underline; }

.pfg-no-results { grid-column: 1 / -1; color: #6b7280; }

/* Pagination */
.pfg-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 32px;
	flex-wrap: wrap;
}

.pfg-page-btn {
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #374151;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
}

.pfg-page-btn:hover:not(:disabled) { border-color: #1f6f4a; color: #1f6f4a; }
.pfg-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pfg-page-btn.is-active { background: #1f6f4a; border-color: #1f6f4a; color: #fff; }

@media (max-width: 900px) {
	.pfg-wrapper { flex-direction: column; }
	.pfg-sidebar { width: 100%; }
	.pfg-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
