.vhh-directory {
	--vhh-green: #b2e518;
	--vhh-purple: #8657d8;
	--vhh-pink: #f26a8d;
	--vhh-black: #000000;
	--vhh-gray: #e9e9e9;
	--vhh-border: #e3e3e3;
	--vhh-row-height: 8px;
	--vhh-row-gap: clamp(24px, 3vw, 38px);
	color: var(--vhh-black);
	font-family: "Varela Round", Helvetica, Arial, sans-serif;
	width: 100%;
}

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

.vhh-directory [hidden] {
	display: none !important;
}

.vhh-directory h1,
.vhh-directory h2,
.vhh-directory h3 {
	color: var(--vhh-black);
	font-family: Roboto, Helvetica, Arial, sans-serif;
}

.vhh-filters {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 3%;
	margin: 0 0 18px;
	position: relative;
	z-index: 20;
}

.vhh-filter-group {
	min-width: 0;
	position: relative;
}

.vhh-filter-trigger {
	align-items: center;
	background: var(--vhh-gray);
	border: 1px solid var(--vhh-border);
	border-radius: 50px;
	color: #0c1531;
	cursor: pointer;
	display: grid;
	font-family: "Varela Round", Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) auto 14px;
	min-height: 56px;
	padding: 13px 20px;
	text-align: left;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
	width: 100%;
}

.vhh-filter-trigger:hover {
	border-color: var(--vhh-purple);
	transform: translateY(-1px);
}

.vhh-filter-trigger:focus-visible,
.vhh-load-more:focus-visible,
.vhh-clear-filters:focus-visible,
.vhh-filter-chip:focus-visible,
.vhh-no-results__clear:focus-visible,
.vhh-card a:focus-visible {
	outline: 3px solid var(--vhh-green);
	outline-offset: 3px;
}

.vhh-filter-trigger.is-active,
.vhh-filter-trigger[aria-expanded="true"] {
	background: var(--vhh-purple);
	border-color: var(--vhh-purple);
	color: #ffffff;
}

.vhh-filter-trigger__label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vhh-filter-trigger__summary {
	font-size: 13px;
	font-weight: 400;
	opacity: 0.78;
	white-space: nowrap;
}

.vhh-filter-trigger__icon {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	display: block;
	height: 9px;
	margin-top: -4px;
	transform: rotate(45deg);
	transition: transform 180ms ease;
	width: 9px;
}

.vhh-filter-trigger[aria-expanded="true"] .vhh-filter-trigger__icon {
	margin-top: 4px;
	transform: rotate(225deg);
}

.vhh-filter-panel {
	background: #ffffff;
	border: 1px solid var(--vhh-border);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(12, 21, 49, 0.14);
	left: 0;
	margin-top: 10px;
	max-height: 360px;
	overflow: auto;
	padding: 10px;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 30;
}

.vhh-filter-panel fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.vhh-filter-option {
	align-items: center;
	border-radius: 8px;
	color: var(--vhh-black);
	cursor: pointer;
	display: grid;
	font-family: "Varela Round", Helvetica, Arial, sans-serif;
	font-size: 15px;
	gap: 10px;
	grid-template-columns: 24px minmax(0, 1fr) auto;
	line-height: 1.35;
	min-height: 44px;
	padding: 8px 10px;
	transition: background-color 150ms ease;
}

.vhh-filter-option:hover {
	background: #f4f4f4;
}

.vhh-filter-option input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.vhh-filter-option__check {
	align-items: center;
	border: 2px solid #777777;
	border-radius: 5px;
	display: flex;
	height: 22px;
	justify-content: center;
	width: 22px;
}

.vhh-filter-option input:checked + .vhh-filter-option__check {
	background: var(--vhh-purple);
	border-color: var(--vhh-purple);
}

.vhh-filter-option input:checked + .vhh-filter-option__check::after {
	border-bottom: 2px solid #ffffff;
	border-right: 2px solid #ffffff;
	content: "";
	height: 10px;
	margin-top: -3px;
	transform: rotate(45deg);
	width: 6px;
}

.vhh-filter-option input:focus-visible + .vhh-filter-option__check {
	outline: 3px solid var(--vhh-green);
	outline-offset: 2px;
}

.vhh-filter-option__count {
	color: #666666;
	font-size: 13px;
}

.vhh-selected-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}

.vhh-filter-chip {
	align-items: center;
	background: #f2f2f2;
	border: 0;
	border-radius: 50px;
	color: var(--vhh-black);
	cursor: pointer;
	display: inline-flex;
	font-family: "Varela Round", Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	gap: 7px;
	min-height: 36px;
	padding: 8px 13px;
}

.vhh-filter-chip[data-taxonomy="kategooria"] {
	background: var(--vhh-pink);
}

.vhh-filter-chip[data-taxonomy="asutus"] {
	background: var(--vhh-purple);
	color: #ffffff;
}

.vhh-filter-chip[data-taxonomy="vanusegrupp"] {
	background: var(--vhh-green);
}

.vhh-filter-chip__remove {
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
}

.vhh-filter-status {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin: 0 0 24px;
	min-height: 32px;
}

.vhh-result-count {
	color: var(--vhh-black);
	font-family: "Varela Round", Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	margin: 0;
}

.vhh-clear-filters {
	background: transparent;
	border: 0;
	color: var(--vhh-purple);
	cursor: pointer;
	font-family: "Varela Round", Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	padding: 7px 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vhh-results {
	align-items: start;
	column-gap: 3%;
	display: grid;
	grid-auto-rows: var(--vhh-row-height);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	row-gap: var(--vhh-row-gap);
	width: 100%;
}

.vhh-card {
	align-self: start;
	background: #ffffff;
	border: 1px solid var(--vhh-border);
	border-radius: 10px;
	box-shadow: 0 0 7px rgba(0, 0, 0, 0.07);
	color: var(--vhh-black);
	overflow: hidden;
	position: relative;
	transition: box-shadow 220ms ease, transform 220ms ease;
}

.vhh-card:hover {
	box-shadow: 0 12px 30px rgba(12, 21, 49, 0.13);
	transform: translateY(-4px);
}

.vhh-card.vhh-card--reveal {
	animation: vhh-card-reveal 300ms ease both;
}

@keyframes vhh-card-reveal {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.vhh-card__image {
	aspect-ratio: 1 / 1;
	display: block;
	overflow: hidden;
	width: 100%;
}

.vhh-card__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
	width: 100%;
}

.vhh-card:hover .vhh-card__image img {
	transform: scale(1.025);
}

.vhh-card__body {
	padding: 24px;
}

.vhh-card__title {
	color: var(--vhh-black);
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-size: clamp(21px, 1.7vw, 27px);
	font-weight: 700;
	line-height: 1.16;
	margin: 0 0 16px;
}

.vhh-card__title a {
	color: var(--vhh-black);
	text-decoration: none;
}

.vhh-card__title a:hover {
	color: var(--vhh-purple);
}

.vhh-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 17px;
}

.vhh-tag {
	border-radius: 50px;
	color: var(--vhh-black);
	display: inline-flex;
	font-family: "Varela Round", Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
	padding: 7px 11px;
}

.vhh-tag--tegevusala {
	background: var(--vhh-pink);
}

.vhh-tag--asutus {
	background: var(--vhh-purple);
	color: #ffffff;
}

.vhh-tag--vanus {
	background: var(--vhh-green);
}

.vhh-card__summary {
	color: var(--vhh-black);
	font-family: "Varela Round", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.62;
	margin: 0 0 21px;
}

.vhh-card__link {
	align-items: center;
	color: var(--vhh-purple);
	display: inline-flex;
	font-family: "Varela Round", Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	text-decoration: none;
}

.vhh-card__link span:last-child {
	font-size: 20px;
	transition: transform 180ms ease;
}

.vhh-card__link:hover span:last-child {
	transform: translateX(4px);
}

.vhh-load-more-wrap {
	display: flex;
	justify-content: center;
	padding: 36px 0 0;
}

.vhh-load-more,
.vhh-no-results__clear {
	background: var(--vhh-green);
	border: 0;
	border-radius: 50px;
	color: var(--vhh-black);
	cursor: pointer;
	font-family: "Varela Round", Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	min-height: 55px;
	padding: 16px 34px;
	transition: filter 180ms ease, transform 180ms ease;
}

.vhh-load-more:hover,
.vhh-no-results__clear:hover {
	filter: brightness(0.94);
	transform: translateY(-2px);
}

.vhh-no-results {
	background: var(--vhh-gray);
	border-radius: 10px;
	padding: 30px;
	text-align: center;
}

.vhh-no-results p {
	color: var(--vhh-black);
	font-family: "Varela Round", Helvetica, Arial, sans-serif;
	font-size: 17px;
	margin: 0 0 18px;
}

.vhh-single-content {
	color: var(--vhh-black);
	font-family: "Varela Round", Helvetica, Arial, sans-serif;
}

@media (max-width: 1024px) {
	.vhh-results {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

	.vhh-filter-panel {
		box-shadow: none;
		margin-top: 8px;
		position: static;
	}

	.vhh-filter-trigger {
		min-height: 54px;
	}

	.vhh-filter-status {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}

	.vhh-results {
		display: block;
	}

	.vhh-card {
		margin: 0 0 24px;
	}

	.vhh-card__body {
		padding: 21px;
	}

	.vhh-card__title {
		font-size: 23px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vhh-directory *,
	.vhh-directory *::before,
	.vhh-directory *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
