/* Catalogue, reviews and profile controls. */
.vm-site-head {
	background: #faf9f2;
	border-bottom: 1px solid #dfe4d8;
	color: #172c29;
	font-family: system-ui, sans-serif;
}
.vm-site-head-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: clamp(18px, 3vw, 48px);
	min-height: 74px;
}
.vm-site-head .vm-logo { gap: 10px; white-space: nowrap; text-decoration: none; }
.vm-site-head .vm-logo i { width: 34px; height: 34px; }
.vm-site-nav { display: flex; justify-content: center; gap: clamp(12px, 2vw, 28px); }
.vm-site-nav a, .vm-site-partners { color: inherit; font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.vm-site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.vm-site-nav a:hover, .vm-site-nav a[aria-current="page"] { color: #215e4c; text-decoration: underline; text-underline-offset: 6px; }
.vm-site-partners { background: #f7d75d; border-radius: 999px; padding: 11px 16px; }
.vm-site-partners:hover { background: #fbe58a; }

.vm-directory-title, .vm-directory-toolbar {
	display: flex;
	gap: 16px 28px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}
.vm-directory-title { margin-bottom: 24px; }
.vm-directory-title h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); text-wrap: balance; }
.vm-switch {
	display: flex;
	gap: 3px;
	padding: 4px;
	border-radius: 999px;
	background: #e6ede3;
}
.vm-switch a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding: 0 16px;
	border-radius: 999px;
	color: #215e4c;
	font-weight: 750;
	text-decoration: none;
}
.vm-switch a[aria-current="page"] { background: #215e4c; color: #fff; }

.vm-filters {
	display: grid;
	grid-template-columns: minmax(180px, 1.65fr) repeat(4, minmax(105px, 1fr)) auto;
	gap: 12px;
	align-items: end;
	padding: 18px;
	border: 1px solid #d8e4cb;
	border-radius: 18px;
	background: #eaf0e4;
}
.vm-review-filters { grid-template-columns: minmax(180px, 1.6fr) repeat(3, minmax(110px, 1fr)) auto; }
.vm-filters label, .vm-review-form label { min-width: 0; }
.vm-filters label > span, .vm-review-form label { font-size: 14px; font-weight: 750; color: #264d40; }
.vm-filters label > span, .vm-review-form label:not([for^="vm-rating-"]) { display: block; margin-bottom: 5px; }
.vm-filters :is(input, select), .vm-review-form :is(input[type="text"], input:not([type]), input[type="email"], textarea) {
	width: 100%;
	min-width: 0;
	min-height: 46px;
	border-radius: 10px;
	border: 1px solid #becdc2;
	background: #fffef9;
	padding: 9px 12px;
	color: #172c29;
	font: inherit;
}
.vm-filters :is(input, select):focus-visible, .vm-review-form :is(input, textarea):focus-visible { outline: 2px solid #215e4c; outline-offset: 2px; }
.vm-filter-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vm-filter-actions .vm-action, .vm-review-form .vm-action { min-height: 46px; border: 0; cursor: pointer; font: inherit; font-weight: 750; }
.vm-filter-actions > a { font-weight: 700; color: #215e4c; }

.vm-directory-toolbar { margin: 20px 0; }
.vm-directory-toolbar > p { margin: 0; color: #456056; }
.vm-pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vm-directory > .vm-wrap > .vm-pages { justify-content: center; margin-top: 30px; }
.vm-pages :is(a, span).page-numbers {
	min-height: 44px;
	min-width: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 6px 9px;
	border: 1px solid #c8d7ca;
	border-radius: 10px;
	background: #fffef9;
	color: #215e4c;
	font-weight: 750;
	text-decoration: none;
}
.vm-pages a:hover { background: #e1ede4; }
.vm-pages .page-numbers.current { background: #215e4c; color: white; border-color: #215e4c; }
.vm-pages .page-numbers.dots { min-width: 26px; border-color: transparent; background: transparent; }

.vm-directory-grid { align-items: stretch; }
.vm-directory-grid .vm-directory-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(16px, 2vw, 23px); }
.vm-card-identity { display: flex; align-items: flex-start; gap: 13px; }
.vm-card-identity > div { min-width: 0; }
.vm-card-identity h2 { margin: 1px 0 5px; overflow-wrap: anywhere; font-size: clamp(18px, 1.7vw, 22px); }
.vm-card-identity h2 a, .vm-review-row h2 a { color: inherit; text-decoration: none; }
.vm-card-identity h2 a:hover, .vm-review-row h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vm-card-identity .vm-card-address { margin: 0; line-height: 1.4; color: #52635c; font-size: 14px; }
.vm-card-photo {
	flex: 0 0 clamp(48px, 5.5vw, 70px);
	aspect-ratio: 1;
	border: 1px solid #dce4d9;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}
.vm-card-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vm-card-photo-person img { object-fit: cover; }
.vm-card-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 9px 0; border-top: 1px solid #e2e9dd; border-bottom: 1px solid #e2e9dd; }
.vm-card-rating a { font-size: 13px; color: #215e4c; text-underline-offset: 3px; }
.vm-stars { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 14px; color: #4a3d1a; }
.vm-star-track { position: relative; color: #b8b1a1; letter-spacing: 1px; }
.vm-star-track > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #a36900; }
.vm-unrated { font-size: 13px; color: #53645d; }
.vm-directory-card .vm-card-summary { margin: 0; line-height: 1.5; }
.vm-directory-card .vm-card-cta { margin-top: auto; align-self: flex-start; }

.vm-review-list {
	border: 1px solid #dbe4d8;
	border-radius: 16px;
	background: #fffef9;
	overflow: hidden;
}
.vm-review-row {
	display: grid;
	grid-template-columns: minmax(155px, 1fr) minmax(0, 2.4fr) auto;
	align-items: start;
	gap: 16px 26px;
	padding: 20px 22px;
}
.vm-review-row + .vm-review-row { border-top: 1px solid #dbe4d8; }
.vm-review-row h2 { margin: 0 0 6px; font-size: 18px; overflow-wrap: anywhere; }
.vm-review-row-profile > .vm-meta { display: block; margin-top: 4px; }
.vm-review-byline { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 14px; }
.vm-review-byline time { color: #54655a; }
.vm-review-row-text p { margin: 6px 0 0; line-height: 1.65; overflow-wrap: anywhere; }
.vm-review-row > .vm-link { align-self: start; margin: 0; }

.vm-school-page .vm-content { max-width: 72ch; font-size: 16px; line-height: 1.75; }
.vm-school-page .vm-content :is(h2, h3, h4) { font-size: clamp(18px, 2.3vw, 23px); margin: 1.4em 0 .55em; }
.vm-school-page .vm-content p { margin: 0 0 1.05em; }
.vm-school-page .vm-content :is(ul, ol) { padding-inline-start: 24px; }
.vm-school-page .vm-content li + li { margin-top: .3em; }
.vm-school-page .vm-content li::marker { color: #215e4c; }
.vm-school-page .vm-content .vm-course-price {
	display: inline-block;
	padding: 3px 11px;
	border-radius: 8px;
	background: #fff0bd;
	color: #594312;
	font-weight: 750;
}
.vm-school-facts .vm-write-review {
	background: #215e4c;
	color: #fff;
	text-decoration: none;
}
.vm-school-reviews { scroll-margin-top: 20px; }
.vm-review-form {
	margin: 24px 0 0;
	border: 1px solid #d8e4cb;
	border-radius: 16px;
	background: #ebf1e7;
	padding: clamp(15px, 3vw, 25px);
	scroll-margin-top: 16px;
}
.vm-review-form h3 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 29px); }
.vm-review-form .vm-form-note { margin: 0 0 18px; color: #415f52; }
.vm-review-form form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vm-review-form form > :not(.comment-form-author, .comment-form-email) { grid-column: 1 / -1; }
.vm-review-form form p { margin: 0; }
.vm-review-form textarea { display: block; resize: vertical; min-height: 130px; }
.vm-review-form .comment-form-cookies-consent { display: flex; align-items: baseline; gap: 7px; }
.vm-review-form .comment-form-cookies-consent label { font-weight: 400; color: #415f52; }
.vm-rating-input { min-width: 0; border: 0; margin: 0; padding: 0; }
.vm-rating-input legend { font-size: 14px; font-weight: 750; color: #264d40; }
.vm-rating-options { display: inline-flex; flex-direction: row-reverse; gap: 5px; margin-top: 6px; }
.vm-rating-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vm-rating-options label {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid #c8d7ca;
	border-radius: 9px;
	background: #fffef9;
	color: #766749;
	font-size: 25px;
	cursor: pointer;
}
.vm-rating-options :is(input:checked + label, input:checked ~ label, label:hover, label:hover ~ label) { background: #f7d75d; color: #4d3609; border-color: #c2932a; }
.vm-rating-options input:focus-visible + label { outline: 2px solid #215e4c; outline-offset: 2px; }

@media (max-width: 1000px) {
	.vm-site-head-inner { gap: 12px; }
	.vm-site-nav { gap: 12px; }
	.vm-site-partners { font-size: 12px; padding-inline: 10px; }
	.vm-filters, .vm-review-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vm-review-row { grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr); }
	.vm-review-row > .vm-link { grid-column: 2; justify-self: start; }
}
@media (max-width: 820px) {
	.vm-site-head-inner { grid-template-columns: auto minmax(0, 1fr); }
	.vm-site-partners { display: none; }
}
@media (max-width: 680px) {
	.vm-site-head-inner { grid-template-columns: 1fr; gap: 1px; padding-top: 8px; }
	.vm-site-head .vm-logo { justify-self: start; }
	.vm-site-nav {
		justify-content: flex-start;
		gap: 6px 14px;
		flex-wrap: wrap;
	}
	.vm-site-nav a { font-size: 13px; }
	.vm-site-partners { display: none; }
	.vm-directory-title { margin-bottom: 14px; }
	.vm-filters, .vm-review-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 10px; }
	.vm-filter-query, .vm-filter-actions { grid-column: 1 / -1; }
	.vm-review-row { grid-template-columns: 1fr; padding: 16px; gap: 10px; }
	.vm-review-row > .vm-link { grid-column: auto; }
	.vm-pages :is(.prev, .next) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.vm-review-form form { grid-template-columns: 1fr; }
	.vm-rating-options label { width: clamp(33px, 10vw, 44px); }
}
