/*
 * Villa-Proffs live hotfix.
 *
 * Scoped to the legacy vp-* catalogue so the production photograph and
 * established forest-green language remain intact.
 */
.vp-catalog {
	color: #14201a;
	background: #fbfaf6;
}

.vp-catalog .vp-container {
	width: min(1120px, calc(100% - 40px));
	margin-right: auto;
	margin-left: auto;
}

.vp-catalog .vp-hero {
	position: relative;
	display: grid;
	align-items: center;
	min-height: clamp(560px, 68vh, 680px);
	padding: clamp(56px, 7vw, 88px) 0;
	overflow: visible;
	background-color: #1a4837;
	background-image: linear-gradient(rgba(9, 35, 26, .18), rgba(9, 35, 26, .24)), var(--vp-hero-bg, none);
	background-position: center;
	background-size: cover;
}

.vp-catalog .vp-hero__layout {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
}

.vp-catalog .vp-hero__content {
	box-sizing: border-box;
	width: min(100%, 960px);
	padding: clamp(32px, 4vw, 48px);
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: var(--radius-lg, 18px);
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 24px 60px -20px rgba(20, 32, 26, .38);
	text-align: center;
}

.vp-catalog .vp-hero__title,
.vp-catalog .vp-section-title {
	margin: 0;
	color: #11352a;
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 500;
	line-height: 1.08;
}

.vp-catalog .vp-hero__title {
	max-width: 20ch;
	margin-inline: auto;
	font-size: clamp(42px, 4.6vw, 60px);
	text-wrap: balance;
}

.vp-catalog .vp-hero__subtitle,
.vp-catalog .vp-section-copy {
	max-width: 52ch;
	margin: 14px auto 0;
	color: #496257;
	font-size: 18px;
	line-height: 1.55;
}

.vp-catalog .vp-section {
	padding: 68px 0;
}

.vp-catalog .vp-section--light {
	background: #f3f6f3;
}

.vp-catalog .vp-section-title {
	font-size: clamp(30px, 3vw, 42px);
	text-wrap: balance;
}

.vp-catalog .vp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 11px 20px;
	border: 1px solid #1a4837;
	border-radius: 8px;
	background: #1a4837;
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.vp-catalog .vp-btn:hover {
	background: #11352a;
}

.vp-catalog .vp-page-content > .vp-container > :first-child {
	margin-top: 0;
}

.vp-catalog .vp-company-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 30px;
}

.vp-catalog .vp-company-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #d5ded8;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 30px -28px rgba(17, 53, 42, .55);
}

.vp-catalog .vp-company-card:hover {
	border-color: #9cb0a5;
	box-shadow: 0 18px 38px -28px rgba(17, 53, 42, .45);
}

.vp-catalog .vp-company-card__media {
	position: relative;
	display: grid;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #dfe9e2;
}

.vp-catalog .vp-company-card__image,
.vp-catalog .vp-company-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
}

.vp-catalog .vp-company-card__image {
	object-fit: cover;
}

.vp-catalog .vp-company-card__placeholder {
	background: #1a4837;
	color: #fff;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 52px;
	font-weight: 600;
}

.vp-catalog .vp-company-card__verified {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 9px;
	border-radius: 5px;
	background: rgba(255, 255, 255, .94);
	color: #1f5a44;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.vp-catalog .vp-company-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
}

.vp-catalog .vp-company-card__head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	justify-content: space-between;
}

.vp-catalog .vp-company-card h3 {
	margin: 0;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 22px;
	line-height: 1.15;
}

.vp-catalog .vp-company-card h3 a {
	color: #11352a;
	text-decoration: none;
}

.vp-catalog .vp-company-card h3 a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vp-catalog .vp-company-card__location {
	display: block;
	margin-top: 5px;
	color: #61746a;
	font-size: 13px;
}

.vp-catalog .vp-company-card__rating {
	display: grid;
	grid-template-columns: auto auto;
	gap: 2px 5px;
	flex: 0 0 auto;
	color: #b07527;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.vp-catalog .vp-company-card__rating strong {
	color: #14201a;
}

.vp-catalog .vp-company-card__rating small {
	grid-column: 1 / -1;
	color: #61746a;
	font-size: 11px;
}

.vp-catalog .vp-company-card__description {
	margin: 0;
	color: #496257;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 15px;
	line-height: 1.55;
}

.vp-catalog .vp-company-card__services {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.vp-catalog .vp-company-card__services span {
	padding: 5px 8px;
	border-radius: 5px;
	background: #eaf1ec;
	color: #1f5a44;
	font-size: 11px;
	font-weight: 700;
}

.vp-catalog .vp-company-card__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
}

.vp-catalog .vp-company-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid #1a4837;
	border-radius: 7px;
	background: #1a4837;
	color: #fff;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.vp-catalog .vp-company-card__button:hover {
	background: #11352a;
}

.vp-catalog .vp-company-card__button--secondary {
	background: transparent;
	color: #1a4837;
}

.vp-catalog .vp-company-card__button--secondary:hover {
	background: #edf3ef;
}

.vp-catalog .vp-company-card h3 a:focus-visible,
.vp-catalog .vp-company-card__button:focus-visible {
	outline: 3px solid #c8632b;
	outline-offset: 3px;
}

.vp-catalog .vp-empty {
	display: grid;
	gap: 6px;
	padding: 22px;
	border: 1px solid #dce4df;
	border-radius: 12px;
	background: #fff;
	color: #11352a;
	text-decoration: none;
}

.vp-catalog .vp-search-form {
	display: grid;
	box-sizing: border-box;
	grid-template-columns: minmax(0, 1.45fr) minmax(240px, .8fr) auto;
	gap: 12px;
	align-items: start;
	max-width: 100%;
	margin-top: 28px;
	padding: 0;
	background: transparent;
	box-shadow: none;
	text-align: left;
}

.vp-catalog .vp-search-form__field {
	display: grid;
	gap: 7px;
	min-width: 0;
}

.vp-catalog .vp-search-form__field--need,
.vp-catalog .vp-search-form__field--location {
	grid-column: auto;
}

.vp-catalog .vp-search-form label {
	color: #11352a;
	font-size: 14px;
	font-weight: 700;
}

.vp-catalog .vp-search-form label span {
	margin-left: 4px;
	color: #61746a;
	font-weight: 500;
}

.vp-catalog .vp-search-form input,
.vp-catalog .vp-search-form select {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	border: 1px solid #aebfb6;
	border-radius: 8px;
	background: #fff;
	color: #14201a;
	font: inherit;
	padding: 10px 13px;
}

.vp-catalog .vp-search-form input::placeholder {
	color: #718078;
}

.vp-catalog .vp-search-form .vp-btn {
	align-self: start;
	margin-top: 25px;
	white-space: nowrap;
}

.vp-catalog .vp-search-form__meta {
	display: flex;
	grid-column: 1 / -1;
	gap: 7px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0;
	color: #496257;
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
}

.vp-catalog .vp-search-form__fallback {
	display: grid;
	gap: 7px;
	margin-top: 5px;
}

.vp-catalog .vp-search-form__fallback[hidden] {
	display: none;
}

.vp-catalog .vp-combobox {
	position: relative;
	min-width: 0;
}

.vp-catalog .vp-combobox__control {
	position: relative;
	display: flex;
	border-radius: 8px;
}

.vp-catalog .vp-combobox__control input {
	padding-right: 48px;
}

.vp-catalog .vp-combobox__toggle {
	position: absolute;
	top: 1px;
	right: 1px;
	bottom: 1px;
	width: 46px;
	border: 0;
	border-left: 1px solid #d5ded9;
	border-radius: 0 7px 7px 0;
	background: #fff;
	color: #11352a;
	cursor: pointer;
}

.vp-catalog .vp-combobox__toggle span {
	display: block;
	width: 9px;
	height: 9px;
	margin: -4px auto 0;
	border-right: 2px solid currentcolor;
	border-bottom: 2px solid currentcolor;
	transform: rotate(45deg);
}

.vp-catalog .vp-combobox__control:focus-within {
	outline: 3px solid #c8632b;
	outline-offset: 3px;
}

.vp-catalog .vp-combobox__control:focus-within input,
.vp-catalog .vp-combobox__control:focus-within button {
	outline: 0;
}

.vp-catalog .vp-combobox__menu {
	position: absolute;
	z-index: 20;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	max-height: min(390px, 52vh);
	overflow: auto;
	border: 1px solid #b9c7bf;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(17, 53, 42, .2);
}

.vp-catalog .vp-combobox__menu-heading {
	position: sticky;
	z-index: 1;
	top: 0;
	padding: 12px 14px 9px;
	border-bottom: 1px solid #e1e7e3;
	background: #f3f6f3;
	color: #496257;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.vp-catalog .vp-combobox__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 6px;
	list-style: none;
}

.vp-catalog .vp-combobox__option {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	min-width: 0;
	padding: 10px 11px;
	border-radius: 6px;
	color: #11352a;
	cursor: pointer;
}

.vp-catalog .vp-combobox__option:hover,
.vp-catalog .vp-combobox__option[aria-selected="true"] {
	background: #e8f0eb;
}

.vp-catalog .vp-combobox__option[aria-selected="true"] {
	box-shadow: inset 3px 0 #c8632b;
}

.vp-catalog .vp-combobox__option-label {
	overflow-wrap: anywhere;
	font-weight: 700;
}

.vp-catalog .vp-combobox__option-count {
	flex: 0 0 auto;
	min-width: 24px;
	color: #61746a;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.vp-catalog .vp-combobox__empty {
	margin: 0;
	padding: 16px;
	color: #496257;
	line-height: 1.45;
}

.vp-catalog .vp-search-form input:not([data-vp-combobox-input]):focus-visible,
.vp-catalog .vp-search-form select:focus-visible,
.vp-catalog .vp-search-form .vp-btn:focus-visible {
	outline: 3px solid #c8632b;
	outline-offset: 3px;
}

.vp-catalog .vp-search-results__summary {
	margin-top: 18px;
	color: #496257;
}

.vp-catalog .vp-search-results {
	padding-top: 44px;
	border-top: 1px solid #dce4df;
}

.vp-catalog #proffs-sokresultat {
	scroll-margin-top: 96px;
}

.vp-catalog .vp-pagination {
	margin-top: 28px;
}

.vp-catalog .vp-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vp-catalog .vp-pagination li {
	margin: 0;
}

.vp-catalog .vp-pagination a,
.vp-catalog .vp-pagination .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid #b9c7bf;
	border-radius: 8px;
	background: #fff;
	color: #11352a;
	font-weight: 700;
	text-decoration: none;
}

.vp-catalog .vp-pagination a:hover,
.vp-catalog .vp-pagination a:focus-visible {
	border-color: #1a4837;
	background: #f3f6f3;
}

.vp-catalog .vp-pagination .current {
	border-color: #1a4837;
	background: #1a4837;
	color: #fff;
}

@media (max-width: 899px) {
	.vp-catalog .vp-search-form {
		grid-template-columns: minmax(0, 1fr) minmax(220px, .75fr);
	}

	.vp-catalog .vp-search-form .vp-btn {
		grid-column: 1 / -1;
		margin-top: 0;
		width: 100%;
	}
}

@media (max-width: 600px) {
	.vp-catalog .vp-container {
		width: min(100% - 24px, 1120px);
	}

	.vp-catalog .vp-hero {
		min-height: 0;
		padding: 24px 0 28px;
		background-position: 62% center;
	}

	.vp-catalog .vp-hero__content {
		padding: 24px 16px 18px;
		border-radius: 12px;
	}

	.vp-catalog .vp-hero__title {
		font-size: clamp(34px, 10vw, 38px);
		line-height: 1.04;
	}

	.vp-catalog .vp-hero__subtitle {
		font-size: 16px;
		line-height: 1.45;
	}

	.vp-catalog .vp-section {
		padding: 44px 0;
	}

	.vp-catalog .vp-search-results {
		padding: 36px 0 44px;
	}

	.vp-catalog .vp-company-list,
	.vp-catalog .vp-search-form,
	.vp-catalog .vp-combobox__list {
		grid-template-columns: 1fr;
	}

	.vp-catalog .vp-search-form {
		gap: 12px;
		margin-top: 20px;
	}

	.vp-catalog .vp-search-form__field,
	.vp-catalog .vp-search-form__meta,
	.vp-catalog .vp-search-form .vp-btn {
		grid-column: auto;
	}

	.vp-catalog .vp-search-form__meta > [aria-hidden="true"] {
		display: none;
	}

	.vp-catalog .vp-combobox__menu {
		position: static;
		max-height: 46vh;
		margin-top: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vp-catalog *,
	.vp-catalog *::before,
	.vp-catalog *::after {
		scroll-behavior: auto !important;
	}
}
