/*
|--------------------------------------------------------------------------
| Variables
|--------------------------------------------------------------------------
*/

.pfg-wrapper {
	--pfg-gap: 1.5rem;
	--pfg-radius: 12px;
	--pfg-border: #ddd;
	--pfg-background: #fff;
}

/*
|--------------------------------------------------------------------------
| Layout
|--------------------------------------------------------------------------
*/

.pfg-wrapper {
	display: flex;
	flex-direction: column;
	gap: var(--pfg-gap);
}

/*
|--------------------------------------------------------------------------
| Filters
|--------------------------------------------------------------------------
*/

.pfg-filters {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	background-color: #f9f9f9;
	padding: 20px 30px 30px;
	border-radius: 5px;
	border: 1px solid #ddd;
}

.pfg-filter {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.pfg-filter label {
	font-weight: 600;
	line-height: 1.2;
}

.pfg-filter select {
	width: 100%;
}

/*
|--------------------------------------------------------------------------
| Tom Select Styles
|--------------------------------------------------------------------------
*/

.tom-select {
	width: 100%;
}

.ts-wrapper {
	width: 100%;
}

.ts-control.pfg-has-selection input,
.ts-control.pfg-dropdown-open input {
	height: 0px !important;
}

.ts-control {
	min-height: 36px;
}

.ts-control input,
.ts-dropdown {
	display: block;
	font-size: 16px !important;
	line-height: 1.3;
}

/*
|--------------------------------------------------------------------------
| Result Count
|--------------------------------------------------------------------------
*/

.pfg-result-count {
	font-size: 0.95rem;
	opacity: 0.75;
}

/*
|--------------------------------------------------------------------------
| Grid
|--------------------------------------------------------------------------
*/

.pfg-grid {
	display: grid;
	gap: var(--pfg-gap);

	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/*
|--------------------------------------------------------------------------
| Cards
|--------------------------------------------------------------------------
*/

.pfg-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--pfg-border);
	border-radius: var(--pfg-radius);
	background: var(--pfg-background);
}

.pfg-card:hover {
	border: 1px solid #0c6fd4;
}

.pfg-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.pfg-card__link:active,
.pfg-card__link:focus,
.pfg-card__link:hover,
.pfg-card__link:visited {
	text-decoration: none;
}

.pfg-card__image {
	aspect-ratio: 4 / 3;

	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.pfg-card__content {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem;
}

.pfg-card__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pfg-card__pill {
	padding: 0.25rem 0.75rem;
	background-color: #f3f3f3;
	border-radius: 999px;
	font-size: 0.75rem;
	line-height: 1;
}

.pfg-card__title {
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 8px 0;
}

/*
|--------------------------------------------------------------------------
| No Results
|--------------------------------------------------------------------------
*/

.pfg-no-results {
	text-align: center;

	padding: 3rem 1rem;

	border: 1px solid var(--pfg-border);
	border-radius: var(--pfg-radius);
}

.pfg-no-results h3 {
	margin-top: 0;
}

.pfg-clear-filters {
	margin-top: 1rem;
}

/*
|--------------------------------------------------------------------------
| Sentinel
|--------------------------------------------------------------------------
*/

.pfg-sentinel {
	height: 1px;
}

/*
|--------------------------------------------------------------------------
| Loading State
|--------------------------------------------------------------------------
*/

.pfg-grid.loading {
	opacity: 0.6;
	pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {
	.pfg-filters {
		grid-template-columns: 1fr;
	}
}
