/* THF main directory archive */
body.post-type-archive-listing {
	background: #050a0e;
}

.thf-directory-page {
	--thf-bg: #050a0e;
	--thf-panel: #0b1419;
	--thf-panel-2: #0f1a20;
	--thf-line: rgba(255,255,255,.09);
	--thf-line-strong: rgba(255,255,255,.16);
	--thf-text: #f5faf7;
	--thf-muted: #8fa099;
	--thf-green: #28da8b;
	--thf-green-soft: rgba(40,218,139,.11);
	--thf-gold: #f3be00;
	min-height: 100vh;
	padding: 34px 0 64px;
	color: var(--thf-text);
	background:
		radial-gradient(circle at 12% 0%, rgba(31,112,81,.14), transparent 28%),
		radial-gradient(circle at 88% 8%, rgba(19,74,91,.13), transparent 28%),
		linear-gradient(180deg, #050a0e 0%, #071016 45%, #050a0e 100%);
}

.thf-directory-page *,
.thf-directory-page *::before,
.thf-directory-page *::after {
	box-sizing: border-box;
}

.thf-directory-page a {
	color: inherit;
	text-decoration: none;
}

.thf-directory-shell {
	width: min(94%, 1580px);
	margin: 0 auto;
}

.thf-directory-hero {
	display: grid;
	grid-template-columns: minmax(0,1fr) auto;
	gap: 30px;
	align-items: end;
	padding: 8px 4px 24px;
	border-bottom: 1px solid var(--thf-line);
	margin-bottom: 18px;
}

.thf-directory-eyebrow {
	display: inline-block;
	color: var(--thf-green);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .075em;
	text-transform: uppercase;
}

.thf-directory-hero h1 {
	color: #fff;
	font-size: clamp(34px, 4vw, 58px);
	line-height: 1;
	letter-spacing: -.04em;
	font-weight: 800;
	padding: 0;
	margin: 9px 0 10px;
}

.thf-directory-hero p {
	max-width: 850px;
	color: #a5b4ae;
	font-size: 15px;
	line-height: 1.65;
	padding: 0;
	margin: 0;
}

.thf-directory-hero__stat {
	min-width: 150px;
	padding: 16px 18px;
	border: 1px solid rgba(40,218,139,.25);
	border-radius: 14px;
	background: linear-gradient(145deg, rgba(40,218,139,.11), rgba(9,20,17,.66));
	text-align: right;
}

.thf-directory-hero__stat strong,
.thf-directory-hero__stat span {
	display: block;
}

.thf-directory-hero__stat strong {
	color: #fff;
	font-size: 31px;
	line-height: 1;
	font-weight: 800;
}

.thf-directory-hero__stat span {
	color: #88a097;
	font-size: 11px;
	margin-top: 5px;
}

.thf-directory-layout {
	display: grid;
	grid-template-columns: 285px minmax(0,1fr);
	gap: 18px;
	align-items: start;
}

.thf-directory-filter-panel {
	position: sticky;
	top: 16px;
	padding: 18px;
	border: 1px solid var(--thf-line);
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(15,26,32,.97), rgba(7,15,20,.97));
	box-shadow: 0 20px 60px rgba(0,0,0,.16);
}

.thf-directory-filter-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--thf-line);
}

.thf-directory-filter-heading h2,
.thf-directory-toolbar h2 {
	color: #fff;
	font-size: 19px;
	line-height: 1.2;
	font-weight: 800;
	padding: 0;
	margin: 4px 0 0;
}

.thf-directory-filter-heading > a {
	color: var(--thf-green);
	font-size: 11px;
	font-weight: 800;
	margin-top: 4px;
}

.thf-directory-filter-form {
	display: grid;
	gap: 8px;
}

.thf-directory-filter-form > label:not(.thf-directory-check) {
	color: #d4ded9;
	font-size: 11px;
	font-weight: 750;
	margin-top: 6px;
}

.thf-directory-filter-form input[type="search"],
.thf-directory-filter-form select {
	width: 100%;
	min-width: 0;
	height: 43px;
	padding: 0 12px;
	border: 1px solid var(--thf-line-strong);
	border-radius: 9px;
	background: #091218;
	color: #f3f7f5;
	font-size: 12px;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.thf-directory-filter-form input[type="search"]:focus,
.thf-directory-filter-form select:focus {
	border-color: rgba(40,218,139,.58);
	box-shadow: 0 0 0 3px rgba(40,218,139,.08);
	background: #0c171d;
}

.thf-directory-filter-form input::placeholder {
	color: #61716b;
}

.thf-directory-check {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #d1dcd7;
	font-size: 12px;
	font-weight: 650;
	margin: 7px 0 3px;
	cursor: pointer;
}

.thf-directory-check input {
	width: 17px;
	height: 17px;
	accent-color: var(--thf-green);
}

.thf-directory-filter-form button {
	width: 100%;
	border: 0;
	border-radius: 9px;
	background: var(--thf-green);
	color: #04110b;
	font-size: 12px;
	font-weight: 850;
	padding: 12px 14px;
	margin-top: 5px;
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.thf-directory-filter-form button:hover {
	transform: translateY(-1px);
	background: #46e8a0;
	box-shadow: 0 12px 25px rgba(40,218,139,.14);
}

.thf-directory-results {
	min-width: 0;
}

.thf-directory-toolbar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	min-height: 62px;
	padding: 6px 2px 14px;
}

.thf-directory-active-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}

.thf-directory-active-filters span {
	max-width: 220px;
	padding: 6px 9px;
	border: 1px solid rgba(40,218,139,.23);
	border-radius: 999px;
	background: var(--thf-green-soft);
	color: #c9fbe6;
	font-size: 10px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.thf-directory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
	gap: 14px;
}

.thf-directory-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--thf-line);
	border-radius: 15px;
	background: linear-gradient(180deg, #0e191f 0%, #091117 100%);
	box-shadow: 0 16px 38px rgba(0,0,0,.14);
	transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.thf-directory-card:hover {
	transform: translateY(-3px);
	border-color: rgba(40,218,139,.32);
	box-shadow: 0 20px 45px rgba(0,0,0,.24);
}

.thf-directory-card.is-verified {
	border-color: rgba(40,218,139,.2);
}

.thf-directory-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #101b21;
}

.thf-directory-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
}

.thf-directory-card:hover .thf-directory-card__media > img {
	transform: scale(1.035);
}

.thf-directory-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 25% 25%, rgba(40,218,139,.15), transparent 26%),
		linear-gradient(135deg, #112229, #071016);
}

.thf-directory-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(3,8,10,.02), rgba(3,8,10,.42));
	pointer-events: none;
}

.thf-directory-verified,
.thf-directory-rating {
	position: absolute;
	top: 10px;
	z-index: 2;
	padding: 6px 8px;
	border-radius: 7px;
	font-size: 9px;
	font-weight: 850;
	backdrop-filter: blur(8px);
}

.thf-directory-verified {
	left: 10px;
	color: #d9ffef;
	border: 1px solid rgba(40,218,139,.34);
	background: rgba(7,52,34,.82);
}

.thf-directory-rating {
	right: 10px;
	color: #fff2b7;
	border: 1px solid rgba(243,190,0,.28);
	background: rgba(33,27,5,.8);
}

.thf-directory-card__body {
	padding: 14px;
}

.thf-directory-card__title-row {
	display: grid;
	grid-template-columns: auto minmax(0,1fr);
	gap: 10px;
	align-items: center;
}

.thf-directory-card__title-row > div:only-child {
	grid-column: 1 / -1;
}

.thf-directory-card__avatar {
	display: block;
	width: 46px;
	height: 46px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.12);
	background: #fff;
	padding: 2px;
}

.thf-directory-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 7px;
}

.thf-directory-card h3 {
	font-size: 16px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -.02em;
	padding: 0;
	margin: 0;
}

.thf-directory-card h3 a {
	color: #fff;
}

.thf-directory-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 9px;
	margin-top: 5px;
}

.thf-directory-card__meta a {
	color: #7f928b;
	font-size: 9px;
	font-weight: 650;
}

.thf-directory-card__meta a:hover {
	color: var(--thf-green);
}

.thf-directory-card__body > p {
	min-height: 40px;
	color: #98a7a1;
	font-size: 11px;
	line-height: 1.5;
	padding: 0;
	margin: 12px 0 13px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.thf-directory-card__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--thf-green) !important;
	font-size: 10px;
	font-weight: 850;
}

.thf-directory-card__link span {
	transition: transform .2s ease;
}

.thf-directory-card__link:hover span {
	transform: translateX(3px);
}

.thf-directory-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 26px;
}

.thf-directory-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 11px;
	border: 1px solid var(--thf-line);
	border-radius: 8px;
	background: #0a141a;
	color: #bdc9c4;
	font-size: 11px;
	font-weight: 750;
}

.thf-directory-pagination .page-numbers.current,
.thf-directory-pagination .page-numbers:hover {
	border-color: rgba(40,218,139,.42);
	background: var(--thf-green-soft);
	color: var(--thf-green);
}

.thf-directory-empty {
	padding: 70px 24px;
	border: 1px dashed rgba(255,255,255,.14);
	border-radius: 16px;
	background: rgba(10,20,25,.64);
	text-align: center;
}

.thf-directory-empty h2 {
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	padding: 0;
	margin: 0 0 8px;
}

.thf-directory-empty p {
	color: var(--thf-muted);
	font-size: 13px;
	padding: 0;
	margin: 0 0 18px;
}

.thf-directory-empty a {
	display: inline-flex;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--thf-green);
	color: #06120c;
	font-size: 11px;
	font-weight: 850;
}

@media (max-width: 1180px) {
	.thf-directory-layout {
		grid-template-columns: 245px minmax(0,1fr);
	}

	.thf-directory-grid {
		grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	}
}

@media (max-width: 900px) {
	.thf-directory-page {
		padding-top: 22px;
	}

	.thf-directory-shell {
		width: calc(100% - 28px);
	}

	.thf-directory-hero {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.thf-directory-hero__stat {
		width: fit-content;
		text-align: left;
	}

	.thf-directory-layout {
		grid-template-columns: 1fr;
	}

	.thf-directory-filter-panel {
		position: static;
	}

	.thf-directory-filter-form {
		grid-template-columns: repeat(2, minmax(0,1fr));
		column-gap: 12px;
	}

	.thf-directory-filter-form > label:not(.thf-directory-check),
	.thf-directory-filter-form > input,
	.thf-directory-filter-form > select {
		min-width: 0;
	}

	.thf-directory-check,
	.thf-directory-filter-form button {
		grid-column: 1 / -1;
	}
}

@media (max-width: 620px) {
	.thf-directory-page {
		padding: 14px 0 42px;
	}

	.thf-directory-shell {
		width: calc(100% - 18px);
	}

	.thf-directory-hero {
		padding-bottom: 16px;
	}

	.thf-directory-hero h1 {
		font-size: 34px;
	}

	.thf-directory-hero p {
		font-size: 13px;
	}

	.thf-directory-filter-panel {
		padding: 14px;
		border-radius: 12px;
	}

	.thf-directory-filter-form {
		grid-template-columns: 1fr;
	}

	.thf-directory-check,
	.thf-directory-filter-form button {
		grid-column: auto;
	}

	.thf-directory-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.thf-directory-active-filters {
		justify-content: flex-start;
	}

	.thf-directory-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.thf-directory-card__media {
		aspect-ratio: 16 / 8.4;
	}

	.thf-directory-card__body > p {
		min-height: 0;
	}

	.thf-directory-pagination {
		flex-wrap: wrap;
	}
}
