/*
 * Turun Seudun Vuokravälitys – project styles on top of the Louhosteema bundle.
 * Values from Figma v4 (file KKW8FXRY01svCmxW9BhvsT), see docs/toteutussuunnitelma.md.
 *
 * Sections:
 *   1. Tokens
 *   2. Base typography
 *   3. Layout helpers
 *   4. Buttons, icons, diamond
 *   5. Header + mega menu
 *   6. Mobile navigation
 *   7. Footer
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	/* Brand (Figma v4, client-approved) */
	--louhos-primary: #d3174c;
	--louhos-primary-rgb: 211, 23, 76;
	--louhos-primary-dark: #66003a;
	--louhos-accent: #1f9d55;
	--louhos-link-color: #d3174c;

	/* Neutrals */
	--louhos-headings: #000;
	--louhos-body-color: #2e2c29;
	--louhos-grey: #f4eee7;
	--louhos-border: #e8ddcf;
	--louhos-border-rgb: 232, 221, 207;

	/* Dark surfaces */
	--louhos-dark-1: #000;
	--louhos-dark-1-rgb: 0, 0, 0;
	--louhos-dark-2: #000;
	--louhos-dark-2-rgb: 0, 0, 0;

	/* Shape */
	--louhos-header-height: 96px;
	--louhos-radius: 14px;
	--louhos-radius-lg: 24px;

	/* Type */
	--louhos-font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--tsvv-font-heading: "Quicksand", "Noto Sans", system-ui, sans-serif;

	/* Project tokens */
	--tsvv-beige-2: #e8ddcf;
	--tsvv-divider: #cec3b8;
	--tsvv-warning: #e8a317;
	--tsvv-text-muted: rgba(0, 0, 0, 0.72);
	--tsvv-shadow-panel: 0 24px 28px rgba(64, 0, 33, 0.18);
	--tsvv-container: 1440px;
	--tsvv-gutter: clamp(16px, 4vw, 120px);
	--tsvv-ease: cubic-bezier(0.22, 1, 0.36, 1);

	--bs-body-font-size: 1.0625rem; /* 17px */
	--bs-body-line-height: 1.65;
}

/* ==========================================================================
   2. Base typography
   ========================================================================== */

body {
	font-family: var(--louhos-font-family);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--louhos-body-color);
	background: #fff;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--tsvv-font-heading);
	font-weight: 700;
	color: var(--louhos-headings);
}

/* Display / H1: 80px, lh 1.04, -2px */
h1, .h1 {
	font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem);
	line-height: 1.04;
	letter-spacing: -0.025em;
}

/* H2: 46px, lh 1.14, -1px */
h2, .h2 {
	font-size: clamp(2rem, 1.55rem + 1.8vw, 2.875rem);
	line-height: 1.14;
	letter-spacing: -0.022em;
}

/* H3: 30px, lh 1.24, -0.5px */
h3, .h3 {
	font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
	line-height: 1.24;
	letter-spacing: -0.017em;
}

/* H4: 22px, lh 1.3 */
h4, .h4 {
	font-size: 1.375rem;
	line-height: 1.3;
}

/* Lead: 20px, lh 1.6 */
.lead,
.tsvv-lead {
	font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
	font-weight: 400;
	line-height: 1.6;
}

strong, b {
	font-weight: 600;
}

a {
	color: var(--louhos-link-color);
}

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */

.tsvv-container {
	width: min(var(--tsvv-container), 100% - 2 * var(--tsvv-gutter));
	margin-inline: auto;
}

/* ==========================================================================
   4. Buttons, icons, diamond
   ========================================================================== */

.tsvv-icon {
	display: inline-block;
	flex-shrink: 0;
	width: 1em;
	height: 1em;
	vertical-align: middle;
}

/* Button: 56px, radius 14, Quicksand 17 bold. Hover: plum fill slides in from
   the left (Figma "Täyttö"; an inset shadow keeps the background measurable for
   contrast checkers) and the arrow is replaced by a second one ("Nuoli B"). */
.tsvv-btn {
	--tsvv-btn-bg: var(--louhos-primary);
	--tsvv-btn-color: #fff;
	--tsvv-btn-hover-bg: var(--louhos-primary-dark);
	--tsvv-btn-hover-color: #fff;

	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 28px;
	overflow: hidden;
	border: 0;
	border-radius: var(--louhos-radius);
	background: var(--tsvv-btn-bg);
	box-shadow: inset 0 0 0 0 var(--tsvv-btn-hover-bg);
	color: var(--tsvv-btn-color);
	font-family: var(--tsvv-font-heading);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.3s var(--tsvv-ease), box-shadow 0.4s var(--tsvv-ease);
}

.tsvv-btn:hover,
.tsvv-btn:focus-visible {
	box-shadow: inset 30em 0 0 0 var(--tsvv-btn-hover-bg);
	color: var(--tsvv-btn-hover-color);
}

.tsvv-btn__arrow {
	position: relative;
	display: inline-block;
	width: 20px;
	height: 20px;
	overflow: hidden;
}

.tsvv-btn__arrow .tsvv-icon {
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	transition: transform 0.35s var(--tsvv-ease);
}

.tsvv-btn__arrow .tsvv-icon + .tsvv-icon {
	transform: translateX(-24px);
}

.tsvv-btn:hover .tsvv-btn__arrow .tsvv-icon,
.tsvv-btn:focus-visible .tsvv-btn__arrow .tsvv-icon {
	transform: translateX(24px);
}

.tsvv-btn:hover .tsvv-btn__arrow .tsvv-icon + .tsvv-icon,
.tsvv-btn:focus-visible .tsvv-btn__arrow .tsvv-icon + .tsvv-icon {
	transform: translateX(0);
}

.tsvv-btn--white {
	--tsvv-btn-bg: #fff;
	--tsvv-btn-color: var(--louhos-primary);
}

/* Text link with arrow (e.g. hero "Jätä toimeksianto", "Lue välityspalveluista") */
.tsvv-btn--link {
	--tsvv-btn-bg: transparent;
	--tsvv-btn-color: var(--louhos-primary);
	--tsvv-btn-hover-color: var(--louhos-primary-dark);
	padding-inline: 4px;
	font-size: 1rem;
}

.tsvv-btn--link,
.tsvv-btn--link:hover,
.tsvv-btn--link:focus-visible {
	box-shadow: none;
}

.tsvv-btn--link .tsvv-btn__arrow,
.tsvv-btn--link .tsvv-btn__arrow .tsvv-icon {
	width: 18px;
	height: 18px;
}

.tsvv-on-dark .tsvv-btn--link,
.tsvv-on-red .tsvv-btn--link {
	--tsvv-btn-color: #fff;
	--tsvv-btn-hover-color: #fff;
}

.tsvv-on-red :focus-visible,
.tsvv-on-dark :focus-visible {
	outline-color: #fff;
}

.tsvv-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
	.tsvv-btn,
	.tsvv-btn__arrow .tsvv-icon {
		transition: none;
	}
}

/* Numbered diamond (Figma "v4 / Numero-timantti", 64px bounding box, Quicksand 22).
   A rounded square turned 45°: side = box / √2, so the box stays --d wide. */
.tsvv-diamond {
	--d: 64px;

	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: calc(var(--d) * 0.7071);
	height: calc(var(--d) * 0.7071);
	margin: calc(var(--d) * 0.1464);
	border-radius: 28%;
	background: var(--louhos-primary);
	transform: rotate(45deg);
}

.tsvv-diamond__num {
	color: #fff;
	font-family: var(--tsvv-font-heading);
	font-size: calc(var(--d) * 0.344);
	font-weight: 700;
	line-height: 1;
	transform: rotate(-45deg);
}

.tsvv-diamond--56 {
	--d: 56px;
}

.tsvv-diamond--sm {
	--d: 44px;
}

/* Icon tile (beige square with red icon) */
.tsvv-icon-tile {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--tsvv-beige-2);
	color: var(--louhos-primary);
}

.tsvv-icon-tile .tsvv-icon {
	width: 19px;
	height: 19px;
}

/* ==========================================================================
   5. Header + mega menu (desktop ≥ 1280px)
   ========================================================================== */

.tsvv-header {
	position: relative;
	z-index: 1000;
	background: #fff;
	border-bottom: 1px solid var(--louhos-border);
}

.tsvv-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

.tsvv-brand {
	display: inline-flex;
	flex-shrink: 0;
	border-radius: 8px;
}

.tsvv-brand img {
	display: block;
	width: auto;
	height: 44px;
}

.tsvv-brand--square img {
	height: 56px;
}

.tsvv-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2.5vw - 14px, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-nav__item {
	position: relative;
}

/* Top-level link / button: Noto Sans 500 15px + 3px marker below */
.tsvv-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 0 13px;
	border: 0;
	background: none;
	color: #000;
	font-family: var(--louhos-font-family);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.tsvv-nav__link::after {
	content: "";
	position: absolute;
	bottom: 4px;
	left: 50%;
	width: 4px;
	height: 3px;
	border-radius: 2px;
	background: var(--louhos-primary);
	opacity: 0;
	transform: translateX(-50%);
	transition: width 0.25s var(--tsvv-ease), opacity 0.25s var(--tsvv-ease);
}

.tsvv-nav__link .tsvv-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.25s var(--tsvv-ease);
}

.tsvv-nav__link:hover,
.tsvv-nav__link:focus-visible,
.tsvv-nav__item.is-open > .tsvv-nav__link {
	color: var(--louhos-primary);
}

.tsvv-nav__link:hover::after,
.tsvv-nav__link:focus-visible::after,
.tsvv-nav__item.is-open > .tsvv-nav__link::after {
	width: 12px;
	opacity: 1;
}

.tsvv-nav__item.is-open > .tsvv-nav__link .tsvv-icon {
	transform: rotate(180deg);
}

.tsvv-nav__item.is-active > .tsvv-nav__link {
	color: var(--louhos-primary);
	font-weight: 600;
}

.tsvv-nav__item.is-active > .tsvv-nav__link::after {
	width: 22px;
	opacity: 1;
}

.tsvv-header__right {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-shrink: 0;
}

.tsvv-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #000;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}

.tsvv-header__phone .tsvv-icon {
	width: 18px;
	height: 18px;
	color: var(--louhos-primary);
}

.tsvv-header__phone:hover,
.tsvv-header__phone:focus-visible {
	color: var(--louhos-primary);
}

/* Mega panel */
.tsvv-mega {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-radius: var(--louhos-radius-lg);
	background: #fff;
	box-shadow: var(--tsvv-shadow-panel);
}

.tsvv-mega__links {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 380px;
	padding: 14px 6px 6px;
}

.tsvv-mega__title {
	margin: 0;
	padding: 0 10px 10px;
	font-size: 1.125rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-mega__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-mega__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px 12px 12px;
	border-radius: 14px;
	color: #000;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.tsvv-mega__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tsvv-mega__label {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.65;
}

.tsvv-mega__desc {
	color: var(--tsvv-text-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.tsvv-mega__arrow {
	width: 18px;
	height: 18px;
	color: var(--louhos-primary);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.2s ease, transform 0.25s var(--tsvv-ease);
}

.tsvv-mega__link:hover,
.tsvv-mega__link:focus-visible {
	background: var(--louhos-grey);
}

.tsvv-mega__link:hover .tsvv-mega__arrow,
.tsvv-mega__link:focus-visible .tsvv-mega__arrow,
.tsvv-mega__link[aria-current] .tsvv-mega__arrow {
	opacity: 1;
	transform: none;
}

.tsvv-mega__link[aria-current] .tsvv-mega__label {
	color: var(--louhos-primary);
}

.tsvv-mega__phone {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--louhos-grey);
	color: #000;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.tsvv-mega__phone .tsvv-icon {
	width: 17px;
	height: 17px;
	color: var(--louhos-primary);
}

.tsvv-mega__phone:hover,
.tsvv-mega__phone:focus-visible {
	color: var(--louhos-primary);
}

/* Promo card (Figma "Nosto"): red, 276px, image 148px */
.tsvv-mega__promo {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	width: 276px;
	overflow: hidden;
	border-radius: 18px;
	background: var(--louhos-primary);
	color: #fff;
	text-decoration: none;
}

.tsvv-mega__promo-img {
	display: block;
	width: 100%;
	height: 148px;
	object-fit: cover;
}

.tsvv-mega__promo-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
}

.tsvv-mega__promo-title {
	font-family: var(--tsvv-font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.tsvv-mega__promo-text {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.875rem;
	line-height: 1.5;
}

.tsvv-mega__promo-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-top: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
}

.tsvv-mega__promo-cta .tsvv-icon {
	width: 17px;
	height: 17px;
	transition: transform 0.25s var(--tsvv-ease);
}

.tsvv-mega__promo:hover .tsvv-mega__promo-cta .tsvv-icon,
.tsvv-mega__promo:focus-visible .tsvv-mega__promo-cta .tsvv-icon {
	transform: translateX(4px);
}

.tsvv-mega__promo:focus-visible {
	outline: 3px solid var(--louhos-primary-dark);
	outline-offset: 2px;
}

/* Mobile toggle hidden on desktop */
.tsvv-header__toggle {
	display: none;
}

@media (min-width: 1280px) {
	.tsvv-header__inner {
		min-height: var(--louhos-header-height);
	}

	.tsvv-brand--square img {
		height: 72px;
	}

	.tsvv-header__panel {
		display: contents;
	}

	.tsvv-nav__drop {
		position: absolute;
		top: 100%;
		left: -24px;
		padding-top: 24px;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-6px);
		transition: opacity 0.2s ease, transform 0.25s var(--tsvv-ease), visibility 0s linear 0.25s;
	}

	/* Keep the last panels inside the viewport */
	.tsvv-nav__item:nth-last-child(-n + 5) > .tsvv-nav__drop {
		left: auto;
		right: -24px;
	}

	.tsvv-nav__item.is-open > .tsvv-nav__drop {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s ease, transform 0.25s var(--tsvv-ease), visibility 0s;
	}

	.tsvv-header__mobile-extra {
		display: none;
	}
}

/* 1280–1499px: the Figma header is drawn at 1680px, so the phone number
   collapses to an icon (the number stays available to screen readers). */
@media (min-width: 1280px) and (max-width: 1499.98px) {
	.tsvv-header__right {
		gap: 16px;
	}

	.tsvv-header__right .tsvv-header__phone {
		justify-content: center;
		width: 44px;
		height: 44px;
		border-radius: 12px;
		background: var(--louhos-grey);
	}

	.tsvv-header__right .tsvv-header__phone span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* ==========================================================================
   6. Mobile navigation (< 1280px)
   ========================================================================== */

@media (max-width: 1279.98px) {
	.tsvv-header__inner {
		padding-block: 12px;
	}

	.tsvv-header__right {
		display: none;
	}

	.tsvv-header__toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-height: 48px;
		padding: 0 16px;
		border: 0;
		border-radius: var(--louhos-radius);
		background: var(--louhos-grey);
		color: #000;
		font-family: var(--tsvv-font-heading);
		font-size: 1rem;
		font-weight: 700;
	}

	.tsvv-header__burger {
		position: relative;
		display: inline-block;
		width: 20px;
		height: 14px;
	}

	.tsvv-header__burger span {
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform 0.25s var(--tsvv-ease), opacity 0.2s ease;
	}

	.tsvv-header__burger span:nth-child(1) { top: 0; }
	.tsvv-header__burger span:nth-child(2) { top: 6px; }
	.tsvv-header__burger span:nth-child(3) { top: 12px; }

	.tsvv-header.is-menu-open .tsvv-header__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.tsvv-header.is-menu-open .tsvv-header__burger span:nth-child(2) { opacity: 0; }
	.tsvv-header.is-menu-open .tsvv-header__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

	.tsvv-header__panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		max-height: calc(100vh - 100%);
		max-height: calc(100dvh - 100%);
		overflow-y: auto;
		padding: 8px var(--tsvv-gutter) 32px;
		border-bottom: 1px solid var(--louhos-border);
		background: #fff;
		box-shadow: var(--tsvv-shadow-panel);
	}

	.tsvv-header.is-menu-open .tsvv-header__panel {
		display: block;
	}

	.tsvv-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.tsvv-nav__item {
		border-bottom: 1px solid var(--louhos-border);
	}

	.tsvv-nav__link {
		justify-content: space-between;
		width: 100%;
		min-height: 56px;
		padding: 12px 0;
		font-family: var(--tsvv-font-heading);
		font-size: 1.125rem;
		font-weight: 700;
	}

	.tsvv-nav__link::after {
		display: none;
	}

	.tsvv-nav__link .tsvv-icon {
		width: 20px;
		height: 20px;
	}

	.tsvv-nav__drop {
		display: none;
		padding-bottom: 16px;
	}

	.tsvv-nav__item.is-open > .tsvv-nav__drop {
		display: block;
	}

	.tsvv-mega {
		flex-direction: column;
		padding: 0;
		box-shadow: none;
	}

	.tsvv-mega__links {
		width: auto;
		padding: 0;
	}

	.tsvv-mega__title {
		display: none;
	}

	.tsvv-mega__link {
		padding-inline: 0;
	}

	.tsvv-mega__arrow {
		opacity: 1;
		transform: none;
	}

	.tsvv-mega__promo {
		display: none;
	}

	.tsvv-header__mobile-extra {
		display: flex;
		flex-direction: column;
		gap: 16px;
		padding-top: 24px;
	}

	.tsvv-header__mobile-extra .tsvv-btn {
		width: 100%;
	}
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.tsvv-footer {
	padding: clamp(56px, 8vw, 88px) 0 40px;
	background: #000;
	color: rgba(255, 255, 255, 0.85);
}

.tsvv-footer a {
	color: inherit;
	text-decoration: none;
}

.tsvv-footer a:hover,
.tsvv-footer a:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tsvv-footer :focus-visible {
	outline-color: #fff;
}

.tsvv-footer__cols {
	display: grid;
	gap: 48px 32px;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

@media (max-width: 1199.98px) {
	.tsvv-footer__contact {
		grid-column: 1 / -1;
	}
}

.tsvv-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.tsvv-footer__brand img {
	display: block;
	width: auto;
	height: 52px;
}

.tsvv-footer__brand--square img {
	height: 72px;
}

.tsvv-footer__company {
	margin: 0 0 14px;
	color: #fff;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.65;
}

.tsvv-footer__rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-style: normal;
	list-style: none;
}

.tsvv-footer__rows li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tsvv-footer__rows .tsvv-icon {
	width: 18px;
	height: 18px;
	color: var(--louhos-primary);
}

.tsvv-footer__social {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-footer__social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	transition: background-color 0.2s ease;
}

.tsvv-footer__social a:hover,
.tsvv-footer__social a:focus-visible {
	background: var(--louhos-primary);
}

.tsvv-footer__social .tsvv-icon {
	width: 20px;
	height: 20px;
}

.tsvv-footer__group + .tsvv-footer__group {
	margin-top: 36px;
}

/* Column headings: Quicksand 19px bold = large text, 4.0:1 on black passes AA */
.tsvv-footer .tsvv-footer__heading {
	margin: 0 0 14px;
	color: var(--louhos-primary);
	font-size: 1.1875rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-footer__heading a {
	color: inherit;
}

.tsvv-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.78);
	list-style: none;
}

.tsvv-footer__rule {
	height: 1px;
	margin: clamp(48px, 6vw, 64px) 0 40px;
	border: 0;
	background: rgba(255, 255, 255, 0.14);
	opacity: 1;
}

.tsvv-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 28px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.875rem;
	line-height: 1.5;
}

.tsvv-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-footer__bottom p {
	margin: 0;
}

@media (min-width: 1200px) {
	.tsvv-footer__cols {
		grid-template-columns: 340px repeat(4, auto);
		justify-content: space-between;
	}
}

/* ==========================================================================
   8. Shared block helpers
   ========================================================================== */

.tsvv-on-red,
.tsvv-on-dark {
	color: #fff;
}

.tsvv-on-red :is(h1, h2, h3, h4, h5, h6),
.tsvv-on-dark :is(h1, h2, h3, h4, h5, h6) {
	color: #fff;
}

.tsvv-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 40px;
	margin-bottom: clamp(32px, 4vw, 56px);
}

.tsvv-section-head__title {
	max-width: 760px;
	margin: 0;
}

.tsvv-section-head__lead {
	max-width: 520px;
	margin: 0;
	color: rgba(0, 0, 0, 0.8);
}

/* Icon square used in cards and feature lists (52px, radius 16) */
.tsvv-service__icon,
.tsvv-features__icon {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-service__icon .tsvv-icon,
.tsvv-features__icon .tsvv-icon {
	width: 24px;
	height: 24px;
}

/* ==========================================================================
   9. Hero + property search
   ========================================================================== */

.tsvv-hero {
	position: relative;
	background: #fff;
}

.tsvv-hero__stage {
	position: relative;
	display: flex;
	flex-direction: column;
}

.tsvv-hero__inner {
	position: relative;
	overflow: hidden;
	padding: 56px 0 64px;
	border-bottom-right-radius: 40px;
}

.tsvv-hero__panel {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-bottom-right-radius: inherit;
	background: var(--louhos-primary);
}

.tsvv-hero__deco {
	position: absolute;
	display: block;
	color: var(--louhos-primary-dark);
}

.tsvv-hero__deco .tsvv-icon {
	display: block;
	width: 100%;
	height: 100%;
}

/* Figma: 540px diamond at (630, 330) and 110px at (740, 70) of a 900×760 panel */
.tsvv-hero__deco--lg {
	left: 70%;
	top: 43.4%;
	width: 60%;
	aspect-ratio: 1;
}

.tsvv-hero__deco--sm {
	display: none;
	left: 82.2%;
	top: 9.2%;
	width: 12.2%;
	aspect-ratio: 1;
}

.tsvv-hero__content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 700px;
}

.tsvv-hero__title {
	margin: 0;
	letter-spacing: -0.02em;
}

/* Figma uses white at 90 % here; full white keeps the 20px lead at AA (5.3:1). */
.tsvv-hero__text {
	max-width: 600px;
	font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
	line-height: 1.6;
}

.tsvv-hero__text p {
	margin: 0;
}

.tsvv-hero__content .tsvv-buttons {
	margin-top: 8px;
	gap: 14px;
}

.tsvv-hero__media {
	position: relative;
	height: 300px;
}

.tsvv-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tsvv-hero__search {
	position: relative;
	z-index: 3;
	margin-top: -48px;
	padding-bottom: 8px;
}

@media (min-width: 992px) {
	.tsvv-hero__stage {
		display: block;
		min-height: clamp(600px, 45.25vw, 760px);
	}

	/* Panel and photo are positioned against the whole stage on desktop */
	.tsvv-hero__inner {
		position: static;
		overflow: visible;
		padding: clamp(72px, 6.1vw, 103px) 0 clamp(120px, 9vw, 150px);
	}

	.tsvv-hero__deco--sm {
		display: block;
	}

	.tsvv-hero__panel {
		z-index: 1;
		right: auto;
		width: 53.6%;
		border-bottom-right-radius: 56px;
	}

	.tsvv-hero__content {
		z-index: 2;
		gap: 28px;
		max-width: min(700px, 53.6vw - var(--tsvv-gutter) - 48px);
	}

	.tsvv-hero__media {
		position: absolute;
		inset: 0 0 0 50.6%;
		height: auto;
	}

	.tsvv-hero__search {
		margin-top: -110px;
		padding-bottom: 64px;
	}
}

/* Search card (Figma "Kohdehaku") */
.tsvv-search {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 20px clamp(16px, 2vw, 24px) 24px;
	border-radius: var(--louhos-radius-lg);
	background: #fff;
	box-shadow: 0 24px 60px rgba(43, 13, 23, 0.14);
}

.tsvv-search__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tsvv-search__tabs {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	overflow-x: auto;
}

.tsvv-search__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 12px;
	color: rgba(0, 0, 0, 0.72);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tsvv-search__tab .tsvv-icon {
	width: 18px;
	height: 18px;
}

.tsvv-search__tab:hover {
	background: var(--louhos-grey);
	color: #000;
}

/* Active tab: Figma red text on #E8DDCF is 3.9:1, so the label uses the
   palette's plum (11:1) while the icon stays red. */
.tsvv-search__tab:has(input:checked) {
	background: var(--tsvv-beige-2);
	color: var(--louhos-primary-dark);
}

.tsvv-search__tab:has(input:checked) .tsvv-icon {
	color: var(--louhos-primary);
}

.tsvv-search__tab:has(input:focus-visible) {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-search__count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: rgba(0, 0, 0, 0.72);
	font-size: 0.875rem;
}

.tsvv-search__count strong {
	color: #000;
}

.tsvv-search__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--louhos-accent);
}

.tsvv-search__fields {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
	align-items: end;
}

.tsvv-search__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.tsvv-search__field label {
	color: #000;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

.tsvv-search__box {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 58px;
	padding: 0 16px;
	border-radius: var(--louhos-radius);
	background: var(--louhos-grey);
	color: var(--louhos-primary);
}

.tsvv-search__box:focus-within {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-search__box > .tsvv-icon {
	width: 19px;
	height: 19px;
}

.tsvv-search__box input,
.tsvv-search__box select {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0 24px 0 0;
	border: 0;
	background: transparent;
	color: #000;
	font-size: 1.0625rem;
	line-height: 1.65;
	appearance: none;
	outline: 0;
}

.tsvv-search__box input::placeholder {
	color: rgba(0, 0, 0, 0.72);
	opacity: 1;
}

.tsvv-search__box select:invalid,
.tsvv-search__box select:has(option[value=""]:checked) {
	color: rgba(0, 0, 0, 0.72);
}

.tsvv-search__chev {
	position: absolute;
	right: 16px;
	width: 18px;
	height: 18px;
	color: #000;
	pointer-events: none;
}

.tsvv-search__submit {
	min-height: 58px;
	padding-inline: 30px;
}

.tsvv-search__submit .tsvv-icon {
	width: 20px;
	height: 20px;
}

@media (min-width: 640px) {
	.tsvv-search__fields {
		grid-template-columns: repeat(2, 1fr);
	}

	.tsvv-search__field--location {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1200px) {
	.tsvv-search__fields {
		grid-template-columns: minmax(0, 1fr) 190px 190px 170px auto;
	}

	.tsvv-search__field--location {
		grid-column: auto;
	}
}

/* ==========================================================================
   10. Stats
   ========================================================================== */

.tsvv-stats {
	padding: 30px 0 46px;
}

.tsvv-stats__list {
	display: grid;
	gap: 28px 0;
	grid-template-columns: repeat(2, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-stats__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-left: 20px;
	border-left: 1px solid var(--louhos-border);
	color: var(--louhos-primary);
}

.tsvv-stats__item:nth-child(odd) {
	padding-left: 0;
	border-left: 0;
}

.tsvv-stats__value {
	font-family: var(--tsvv-font-heading);
	font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.015em;
	white-space: nowrap;
}

.tsvv-stats__label {
	max-width: 220px;
	font-size: 1.0625rem;
	line-height: 1.65;
}

@media (min-width: 992px) {
	.tsvv-stats__list {
		display: flex;
		justify-content: space-between;
	}

	.tsvv-stats__item,
	.tsvv-stats__item:nth-child(odd) {
		flex: 0 1 248px;
		padding-left: 28px;
		border-left: 1px solid var(--louhos-border);
	}

	.tsvv-stats__item:first-child {
		padding-left: 0;
		border-left: 0;
	}
}

/* ==========================================================================
   11. Service cards
   ========================================================================== */

.tsvv-services {
	padding: 24px 0 clamp(72px, 8vw, 120px);
}

.tsvv-services__grid {
	display: grid;
	gap: clamp(20px, 2.5vw, 36px);
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.tsvv-services__grid--2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.tsvv-services__grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tsvv-service {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 28px;
	background: #fff;
	color: #000;
}

.tsvv-service--white {
	border: 1px solid var(--louhos-border);
}

.tsvv-service--red {
	background: var(--louhos-primary);
}

.tsvv-service--beige {
	background: var(--tsvv-beige-2);
}

.tsvv-service--black {
	background: #000;
}

.tsvv-service__img {
	display: block;
	width: 100%;
	height: clamp(200px, 19vw, 280px);
	object-fit: cover;
}

.tsvv-service__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 18px;
	padding: 32px clamp(20px, 2.2vw, 32px) 36px;
}

.tsvv-service--red .tsvv-service__icon {
	background: #fff;
	color: var(--louhos-primary);
}

.tsvv-service__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
	line-height: 1.24;
	letter-spacing: -0.005em;
}

/* Figma 88 % white on red is 4.4:1; full white keeps body text at AA. */
.tsvv-service__text {
	margin: 0;
	color: rgba(0, 0, 0, 0.88);
}

.tsvv-on-dark .tsvv-service__text {
	color: #fff;
}

.tsvv-service__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-service__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.18);
	color: #000;
	font-weight: 600;
	line-height: 1.65;
	text-decoration: none;
}

.tsvv-on-dark .tsvv-service__links a {
	border-top-color: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.tsvv-service__links .tsvv-icon {
	width: 18px;
	height: 18px;
	color: var(--louhos-primary);
	transition: transform 0.25s var(--tsvv-ease);
}

.tsvv-on-dark .tsvv-service__links .tsvv-icon {
	color: #fff;
}

.tsvv-service__links a:hover,
.tsvv-service__links a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tsvv-service__links a:hover .tsvv-icon,
.tsvv-service__links a:focus-visible .tsvv-icon {
	transform: translateX(4px);
}

.tsvv-service__cta {
	margin-top: auto;
	padding-top: 8px;
}

.tsvv-service__cta .tsvv-buttons {
	margin-top: 0;
}

/* ==========================================================================
   12. Text + image (collage, steps, features)
   ========================================================================== */

.tsvv-ti {
	padding: clamp(72px, 8.3vw, 140px) 0;
}

.tsvv-ti--bg-grey {
	background: var(--louhos-grey);
}

.tsvv-ti--bg-black {
	padding-block: clamp(72px, 7.7vw, 130px);
	background: #000;
}

.tsvv-ti__grid {
	display: grid;
	gap: 48px;
	align-items: center;
}

@media (min-width: 992px) {
	.tsvv-ti__grid {
		grid-template-columns: minmax(0, 620fr) minmax(0, 720fr);
		gap: clamp(48px, 6vw, 100px);
	}

	.tsvv-ti--img-right .tsvv-ti__media {
		order: 2;
	}
}

.tsvv-ti__content {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.tsvv-ti__title,
.tsvv-ti__lead {
	margin: 0;
}

.tsvv-ti__lead {
	color: rgba(0, 0, 0, 0.8);
}

.tsvv-on-dark .tsvv-ti__lead {
	color: rgba(255, 255, 255, 0.75);
}

.tsvv-ti__content .tsvv-buttons {
	margin-top: 0;
	gap: 16px 24px;
}

/* Collage: photo with decorative squares (Figma "Kuvakollaasi") */
.tsvv-collage {
	position: relative;
	max-width: 620px;
}

.tsvv-collage__sq {
	position: absolute;
	display: none;
	aspect-ratio: 1;
}

.tsvv-collage__img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 540 / 620;
	object-fit: cover;
	border-radius: 32px;
}

/* 620×700: beige 420px square bottom-left, red 180px top-right, photo inset 40px */
.tsvv-collage--beige-red {
	padding: 40px;
}

.tsvv-collage--beige-red .tsvv-collage__sq--a {
	display: block;
	left: 0;
	bottom: 0;
	width: 67.7%;
	border-radius: 40px;
	background: var(--tsvv-beige-2);
}

.tsvv-collage--beige-red .tsvv-collage__sq--b {
	display: block;
	top: 0;
	right: 0;
	width: 29%;
	border-radius: 28px;
	background: var(--louhos-primary);
}

/* 560×680: red 300px square top-left, photo offset 60px / 40px */
.tsvv-collage--red-left {
	max-width: 560px;
	padding: 40px 0 0 60px;
}

.tsvv-collage--red-left .tsvv-collage__img {
	aspect-ratio: 500 / 640;
}

.tsvv-collage--red-left .tsvv-collage__sq--a {
	display: block;
	top: 0;
	left: 0;
	width: 53.6%;
	border-radius: 36px;
	background: var(--louhos-primary);
}

.tsvv-collage__badge {
	position: absolute;
	z-index: 2;
	left: 53%;
	bottom: 3.6%;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 16px 22px 16px 16px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 16px 36px rgba(43, 13, 23, 0.16);
	color: #000;
	font-size: 0.875rem;
	line-height: 1.5;
}

.tsvv-collage__badge strong {
	color: var(--louhos-primary);
	font-family: var(--tsvv-font-heading);
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
	font-weight: 700;
	line-height: 1.24;
}

/* Numbered steps */
.tsvv-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-steps__item {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	padding: 22px 0;
	border-bottom: 1px solid var(--louhos-border);
}

.tsvv-steps__item:last-child {
	border-bottom: 0;
}

.tsvv-steps__title {
	margin: 0 0 6px;
	font-size: 1.375rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-steps__text {
	max-width: 520px;
	margin: 0;
	color: rgba(0, 0, 0, 0.8);
}

/* Features with icons (2 × 2) */
.tsvv-features {
	display: grid;
	gap: 36px 40px;
	margin: 0;
	padding: 12px 0 0;
	list-style: none;
}

@media (min-width: 576px) {
	.tsvv-features {
		grid-template-columns: repeat(2, 1fr);
	}
}

.tsvv-features__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.tsvv-features__title {
	margin: 0;
	font-size: 1.375rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-features__text {
	max-width: 320px;
	margin: 0;
	color: rgba(0, 0, 0, 0.7);
}

.tsvv-on-dark .tsvv-features__text {
	color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   13. CTA card (banner)
   ========================================================================== */

.tsvv-cta {
	padding: clamp(64px, 7vw, 120px) 0;
}

.tsvv-cta__card {
	position: relative;
	display: grid;
	overflow: hidden;
	border-radius: 36px;
	background: var(--louhos-primary);
}

.tsvv-cta__deco {
	position: absolute;
	display: block;
	color: var(--louhos-primary-dark);
	pointer-events: none;
}

.tsvv-cta__deco .tsvv-icon {
	display: block;
	width: 100%;
	height: 100%;
}

/* Figma: 600px diamond at (520, -260) and 110px at (-40, 440) of a 1440×520 card */
.tsvv-cta__deco--lg {
	left: 36%;
	top: -50%;
	width: 600px;
	aspect-ratio: 1;
}

.tsvv-cta__deco--sm {
	left: -40px;
	bottom: -30px;
	width: 110px;
	aspect-ratio: 1;
}

.tsvv-cta__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: clamp(40px, 5vw, 94px) clamp(24px, 5vw, 80px);
}

.tsvv-cta__title,
.tsvv-cta__text p {
	margin: 0;
}

.tsvv-cta__title {
	max-width: 620px;
}

.tsvv-cta__text {
	max-width: 600px;
}

.tsvv-cta__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 36px;
	margin: 0;
	padding: 0;
	font-weight: 600;
	line-height: 1.65;
	list-style: none;
}

.tsvv-cta__contact li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.tsvv-cta__contact .tsvv-icon {
	width: 20px;
	height: 20px;
}

.tsvv-cta__contact a {
	color: #fff;
	text-decoration: none;
}

.tsvv-cta__contact a:hover,
.tsvv-cta__contact a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tsvv-cta__content .tsvv-buttons {
	margin-top: 8px;
	gap: 14px;
}

.tsvv-cta__media {
	position: relative;
	z-index: 1;
	padding: 0 24px 24px;
}

.tsvv-cta__img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
	border-radius: 28px;
}

@media (min-width: 992px) {
	.tsvv-cta__card.has-image {
		grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
		align-items: stretch;
		min-height: 520px;
	}

	.tsvv-cta__media {
		padding: 40px 40px 40px 0;
	}

	.tsvv-cta__img {
		height: 100%;
		min-height: 440px;
	}
}

/* ==========================================================================
   14. Page header (sivun otsikko)
   ========================================================================== */

.tsvv-page-head {
	position: relative;
	overflow: hidden;
	padding: clamp(32px, 4vw, 56px) 0 clamp(40px, 4vw, 56px);
	background: var(--louhos-primary);
}

.tsvv-page-head__deco {
	position: absolute;
	display: block;
	color: var(--louhos-primary-dark);
	pointer-events: none;
}

.tsvv-page-head__deco .tsvv-icon {
	display: block;
	width: 100%;
	height: 100%;
}

/* Figma: 520px diamond at (-300, 338), 110px at (830, 50) on a 1680px band.
   Nudged lower so it does not sit under the popular-search row (keeps the
   text background measurable for contrast checks). */
.tsvv-page-head__deco--lg {
	left: -17.9%;
	top: 80%;
	width: min(520px, 40vw);
	aspect-ratio: 1;
}

.tsvv-page-head__deco--sm {
	display: none;
	left: 49.4%;
	top: 50px;
	width: clamp(56px, 6.5vw, 110px);
	aspect-ratio: 1;
}

.tsvv-page-head__grid {
	position: relative;
	display: grid;
	gap: 40px;
	align-items: center;
}

.tsvv-page-head__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

/* Breadcrumbs. Figma uses 70 % white; full white keeps 14px text at AA. */
.tsvv-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	list-style: none;
}

.tsvv-crumbs li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tsvv-crumbs a {
	color: #fff;
	text-decoration: none;
}

.tsvv-crumbs a:hover,
.tsvv-crumbs a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tsvv-crumbs .tsvv-icon {
	width: 14px;
	height: 14px;
}

.tsvv-crumbs [aria-current] {
	font-weight: 600;
}

.tsvv-page-head__title {
	max-width: 720px;
	margin: 0;
	font-size: clamp(2.5rem, 1.8rem + 2.8vw, 3.75rem);
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.tsvv-page-head__lead {
	max-width: 640px;
	margin: 0;
}

/* Guide search */
.tsvv-guide-search {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 640px;
	min-height: 68px;
	padding: 8px 8px 8px 22px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 28px -10px rgba(0, 0, 0, 0.22);
	color: var(--louhos-primary);
}

.tsvv-guide-search:focus-within {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.tsvv-guide-search > .tsvv-icon {
	width: 22px;
	height: 22px;
}

.tsvv-guide-search input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #000;
	font-size: 1.0625rem;
	outline: 0;
}

.tsvv-guide-search input::placeholder {
	color: rgba(0, 0, 0, 0.72);
	opacity: 1;
}

.tsvv-guide-search__submit {
	min-height: 52px;
	padding-inline: 24px;
	border-radius: 13px;
}

.tsvv-guide-search__popular {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
}

.tsvv-guide-search__popular ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-chip {
	padding: 6px 12px;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: #000;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.tsvv-chip:hover,
.tsvv-chip:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tsvv-page-head__benefits {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.tsvv-page-head__benefits li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.16);
	font-size: 0.875rem;
	font-weight: 600;
}

.tsvv-page-head__benefits .tsvv-icon {
	width: 16px;
	height: 16px;
}

/* Photo collage: plum square top-right, photo 520×440 */
.tsvv-page-head__media {
	position: relative;
	max-width: 560px;
	padding: 40px 40px 0 0;
}

.tsvv-page-head__sq {
	position: absolute;
	top: 0;
	right: 0;
	width: 43%;
	aspect-ratio: 1;
	border-radius: 32px;
	background: var(--louhos-primary-dark);
}

.tsvv-page-head__img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 520 / 440;
	object-fit: cover;
	border-radius: 32px;
}

/* "Next steps" card */
.tsvv-page-head__card {
	align-self: center;
	padding: 28px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(43, 13, 23, 0.18);
	color: #000;
}

.tsvv-page-head__card .tsvv-page-head__card-title {
	margin: 0 0 16px;
	color: #000;
	font-size: 1.125rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-page-head__steps {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	font-size: 0.9375rem;
	list-style: none;
}

.tsvv-page-head__steps li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tsvv-diamond--xs {
	--d: 30px;
}

.tsvv-diamond--52 {
	--d: 52px;
}

@media (min-width: 992px) {
	.tsvv-page-head__deco--sm {
		display: block;
	}

	.tsvv-page-head.has-side .tsvv-page-head__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
		gap: clamp(40px, 5vw, 80px);
	}

	.tsvv-page-head__card {
		max-width: 500px;
		justify-self: end;
	}
}

/* ==========================================================================
   15. Guides: stage cards, TOC, accordions
   ========================================================================== */

.tsvv-guides {
	padding: clamp(40px, 5vw, 80px) 0 clamp(72px, 7vw, 120px);
}

.tsvv-stage-cards {
	display: grid;
	gap: 24px;
	margin: 0 0 clamp(40px, 5vw, 56px);
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.tsvv-stage-cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tsvv-stage-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	height: 100%;
	min-height: 260px;
	padding: clamp(24px, 2.2vw, 32px);
	border: 1px solid var(--louhos-border);
	border-radius: 24px;
	background: #fff;
	color: #000;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.25s var(--tsvv-ease), transform 0.25s var(--tsvv-ease);
}

.tsvv-stage-card:hover,
.tsvv-stage-card:focus-visible {
	border-color: var(--louhos-primary);
	box-shadow: 0 18px 36px rgba(43, 13, 23, 0.12);
	transform: translateY(-2px);
}

.tsvv-stage-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tsvv-stage-card__icon {
	width: 30px;
	height: 30px;
	color: var(--louhos-primary);
}

.tsvv-stage-card__title {
	font-family: var(--tsvv-font-heading);
	font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
	font-weight: 700;
	line-height: 1.24;
}

.tsvv-stage-card__text {
	color: rgba(0, 0, 0, 0.8);
}

.tsvv-stage-card__count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--louhos-primary);
	font-weight: 600;
}

.tsvv-stage-card__count .tsvv-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.25s var(--tsvv-ease);
}

.tsvv-stage-card:hover .tsvv-stage-card__count .tsvv-icon {
	transform: translateX(4px);
}

.tsvv-stage-card--red {
	border-color: var(--louhos-primary);
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-stage-card--red:hover,
.tsvv-stage-card--red:focus-visible {
	border-color: var(--louhos-primary-dark);
}

.tsvv-stage-card--red .tsvv-diamond {
	background: #fff;
}

.tsvv-stage-card--red .tsvv-diamond__num,
.tsvv-stage-card--red .tsvv-stage-card__count,
.tsvv-stage-card--red .tsvv-stage-card__icon,
.tsvv-stage-card--red .tsvv-stage-card__text {
	color: inherit;
}

.tsvv-stage-card--red .tsvv-diamond__num {
	color: var(--louhos-primary);
}

.tsvv-guides__layout {
	display: grid;
	gap: 40px;
}

.tsvv-guides__aside {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

@media (min-width: 992px) {
	.tsvv-guides__layout {
		grid-template-columns: 340px minmax(0, 1fr);
		gap: clamp(40px, 5vw, 72px);
		align-items: start;
	}

	.tsvv-guides__aside {
		position: sticky;
		top: 24px;
	}
}

@media (max-width: 991.98px) {
	/* On small screens the stage cards act as navigation; help card after the guides */
	.tsvv-toc {
		display: none;
	}

	.tsvv-guides__aside {
		order: 2;
	}
}

.tsvv-toc {
	padding: 24px 12px;
	border-radius: 20px;
	background: var(--louhos-grey);
}

.tsvv-toc__title {
	margin: 0;
	padding: 0 12px 8px;
	color: rgba(0, 0, 0, 0.72);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tsvv-toc__list,
.tsvv-toc__sub {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-toc__sub {
	margin-top: 4px;
}

.tsvv-toc.is-enhanced .tsvv-toc__group:not(.is-active) .tsvv-toc__sub {
	display: none;
}

.tsvv-toc__link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px 9px 28px;
	border-radius: 10px;
	color: rgba(0, 0, 0, 0.75);
	font-size: 0.9375rem;
	line-height: 1.65;
	text-decoration: none;
}

.tsvv-toc__link--group {
	padding-left: 12px;
	color: #000;
	font-weight: 600;
}

.tsvv-toc__link:hover,
.tsvv-toc__link:focus-visible {
	background: rgba(255, 255, 255, 0.6);
	color: #000;
}

.tsvv-toc__sub .tsvv-toc__link[aria-current] {
	padding-left: 28px;
	background: #fff;
	color: var(--louhos-primary);
}

.tsvv-toc__sub .tsvv-toc__link[aria-current]::before {
	content: "";
	position: absolute;
	left: 12px;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--louhos-primary);
	transform: rotate(45deg);
}

.tsvv-help-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	border-radius: 20px;
	background: var(--louhos-primary);
}

.tsvv-help-card__title,
.tsvv-help-card p {
	margin: 0;
}

.tsvv-help-card__title {
	font-size: 1.375rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-help-card__contact {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	font-weight: 600;
	list-style: none;
}

.tsvv-help-card__contact li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tsvv-help-card__contact .tsvv-icon {
	width: 18px;
	height: 18px;
}

.tsvv-help-card a {
	color: #fff;
	text-decoration: none;
}

.tsvv-help-card a:hover,
.tsvv-help-card a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tsvv-guides__main {
	display: flex;
	flex-direction: column;
	gap: clamp(48px, 5vw, 64px);
}

.tsvv-guides__status {
	margin: 0;
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--louhos-grey);
	font-weight: 600;
}

.tsvv-guide-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
	scroll-margin-top: 24px;
}

.tsvv-guide-group__head {
	display: flex;
	align-items: center;
	gap: 18px;
}

.tsvv-guide-group__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
	line-height: 1.24;
	letter-spacing: -0.005em;
}

.tsvv-guide-group__intro {
	margin: 0 0 8px;
	color: rgba(0, 0, 0, 0.75);
}

/* Accordion (Figma "v4 / Haitari") */
.tsvv-acc {
	border: 1px solid var(--louhos-border);
	border-radius: 18px;
	background: #fff;
	scroll-margin-top: 24px;
	transition: border-color 0.2s ease;
}

.tsvv-acc[open] {
	border-color: var(--louhos-primary);
	box-shadow: inset 0 0 0 0.5px var(--louhos-primary);
}

.tsvv-acc__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px clamp(18px, 2vw, 28px);
	border-radius: 18px;
	cursor: pointer;
	list-style: none;
}

.tsvv-acc__summary::-webkit-details-marker {
	display: none;
}

.tsvv-acc__summary:focus-visible {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-acc__title {
	margin: 0;
	font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-acc__toggle {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--tsvv-beige-2);
	color: var(--louhos-primary);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tsvv-acc__toggle .tsvv-icon {
	width: 20px;
	height: 20px;
	grid-area: 1 / 1;
}

.tsvv-acc__minus,
.tsvv-acc[open] .tsvv-acc__plus {
	display: none;
}

.tsvv-acc[open] .tsvv-acc__minus {
	display: block;
}

.tsvv-acc[open] .tsvv-acc__toggle,
.tsvv-acc__summary:hover .tsvv-acc__toggle {
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-acc__body {
	margin-top: -10px;
	padding: 0 clamp(18px, 2vw, 28px) 24px;
	color: rgba(0, 0, 0, 0.85);
}

.tsvv-acc__body > :last-child {
	margin-bottom: 0;
}

.tsvv-acc__body .tsvv-buttons {
	margin-top: 4px;
}

/* ==========================================================================
   16. Compact cards (forms: "Hoida asiat sähköisesti")
   ========================================================================== */

.tsvv-services--bg-grey {
	background: var(--louhos-grey);
}

.tsvv-services--compact {
	padding: clamp(64px, 6vw, 96px) 0 clamp(72px, 7vw, 120px);
}

.tsvv-services--compact .tsvv-section-head {
	margin-bottom: clamp(24px, 3vw, 40px);
}

@media (min-width: 576px) {
	.tsvv-services__grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1200px) {
	.tsvv-services__grid--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

.tsvv-services--compact .tsvv-services__grid {
	gap: 24px;
}

.tsvv-service--compact {
	gap: 16px;
	padding: 28px;
	border-radius: 22px;
	transition: box-shadow 0.25s var(--tsvv-ease), transform 0.25s var(--tsvv-ease);
}

.tsvv-service--compact:hover,
.tsvv-service--compact:focus-within {
	box-shadow: 0 18px 36px rgba(43, 13, 23, 0.1);
	transform: translateY(-2px);
}

.tsvv-service--compact:focus-within {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-service--compact .tsvv-service__title {
	font-size: 1.375rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-service--compact .tsvv-service__text {
	color: rgba(0, 0, 0, 0.75);
}

.tsvv-icon-tile--lg {
	width: 52px;
	height: 52px;
	border-radius: 16px;
}

.tsvv-icon-tile--lg .tsvv-icon {
	width: 24px;
	height: 24px;
}

.tsvv-service__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--louhos-primary);
	font-weight: 600;
	text-decoration: none;
}

.tsvv-service__more:focus-visible {
	outline: 0;
}

.tsvv-service__more .tsvv-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.25s var(--tsvv-ease);
}

.tsvv-service--compact:hover .tsvv-service__more .tsvv-icon {
	transform: translateX(4px);
}

/* ==========================================================================
   17. Listing card (Figma "v4 / Kohdekortti")
   ========================================================================== */

.tsvv-listing-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--louhos-border);
	border-radius: 20px;
	background: #fff;
	transition: box-shadow 0.25s var(--tsvv-ease), transform 0.25s var(--tsvv-ease);
}

.tsvv-listing-card.has-link:hover,
.tsvv-listing-card.has-link:focus-within {
	box-shadow: 0 20px 44px rgba(0, 0, 0, 0.14);
	transform: translateY(-2px);
}

.tsvv-listing-card.has-link:hover .tsvv-listing-card__title,
.tsvv-listing-card.has-link:focus-within .tsvv-listing-card__title {
	color: var(--louhos-primary);
}

.tsvv-listing-card.has-link:focus-within {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-listing-card .stretched-link {
	color: inherit;
	text-decoration: none;
}

.tsvv-listing-card .stretched-link:focus-visible {
	outline: 0;
}

.tsvv-listing-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 456 / 300;
	background: var(--louhos-grey);
}

.tsvv-listing-card__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tsvv-listing-card__badges {
	position: absolute;
	top: 16px;
	left: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tsvv-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 10px;
	background: #fff;
	color: #000;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

.tsvv-badge__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--louhos-accent);
}

.tsvv-badge--vapautuu .tsvv-badge__dot {
	background: var(--tsvv-warning);
}

.tsvv-badge--uudis,
.tsvv-badge--kampanja {
	background: #000;
	color: #fff;
}

.tsvv-badge--uudis .tsvv-badge__dot,
.tsvv-badge--kampanja .tsvv-badge__dot {
	background: var(--louhos-primary);
}

.tsvv-badge--video {
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-badge--video .tsvv-icon {
	width: 15px;
	height: 15px;
}

.tsvv-listing-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px 24px;
}

.tsvv-listing-card__layout {
	margin: 0;
	color: var(--louhos-primary);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tsvv-listing-card__title {
	margin: 0;
	font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.4375rem);
	line-height: 1.3;
	letter-spacing: 0;
	transition: color 0.2s ease;
}

.tsvv-listing-card__location {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

.tsvv-listing-card__location .tsvv-icon {
	width: 16px;
	height: 16px;
	color: #000;
}

.tsvv-listing-card__specs {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: auto 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--louhos-border);
}

.tsvv-listing-card__specs dd {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: #000;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.tsvv-listing-card__specs .tsvv-icon {
	width: 17px;
	height: 17px;
}

.tsvv-listing-card__price {
	margin-left: auto;
}

.tsvv-listing-card__price dd {
	color: var(--louhos-primary);
	font-family: var(--tsvv-font-heading);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.3;
}

/* ==========================================================================
   18. Latest listings carousel
   ========================================================================== */

.tsvv-latest {
	padding: clamp(72px, 7vw, 120px) 0;
	background: var(--louhos-grey);
}

.tsvv-latest__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(28px, 3vw, 48px);
}

.tsvv-latest__title {
	margin: 0;
}

.tsvv-latest__text {
	margin: 16px 0 0;
	color: var(--tsvv-text-muted);
}

.tsvv-latest__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.tsvv-latest__actions .tsvv-buttons {
	margin-top: 0;
}

.tsvv-arrow {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border: 1px solid var(--louhos-border);
	border-radius: var(--louhos-radius);
	background: #fff;
	color: #000;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.tsvv-arrow .tsvv-icon {
	width: 22px;
	height: 22px;
}

.tsvv-arrow--primary {
	border-color: var(--louhos-primary);
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-arrow:hover:not(:disabled) {
	border-color: var(--louhos-primary-dark);
	background: var(--louhos-primary-dark);
	color: #fff;
}

.tsvv-arrow:disabled {
	cursor: default;
	opacity: 0.4;
}

.tsvv-latest__track {
	display: grid;
	grid-auto-columns: 85%;
	grid-auto-flow: column;
	gap: 20px;
	margin: 0;
	padding: 0 0 8px;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.tsvv-latest__track:focus-visible {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 6px;
	border-radius: 20px;
}

.tsvv-latest__track::-webkit-scrollbar {
	display: none;
}

.tsvv-latest__slide {
	scroll-snap-align: start;
}

@media (min-width: 768px) {
	.tsvv-latest__track {
		grid-auto-columns: calc((100% - 24px) / 2);
		gap: 24px;
	}
}

@media (min-width: 1200px) {
	.tsvv-latest__track {
		grid-auto-columns: calc((100% - 72px) / 3);
		gap: 36px;
	}
}

/* ==========================================================================
   19. Listing page: filters, results bar, grid, pager
   ========================================================================== */

/* The filter card overlaps the red page header above it (Figma: 64px) */
.tsvv-page-head:has(+ .tsvv-listing) {
	padding-bottom: clamp(88px, 7vw, 120px);
}

.tsvv-listing {
	position: relative;
	margin-top: -64px;
	padding-bottom: 8px;
}

.tsvv-filters {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp(18px, 2vw, 28px);
	border-radius: var(--louhos-radius-lg);
	background: #fff;
	box-shadow: 0 24px 60px rgba(43, 13, 23, 0.13);
}

.tsvv-filters__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tsvv-search__tabs a {
	text-decoration: none;
}

.tsvv-search__tab.is-current {
	background: var(--tsvv-beige-2);
	color: var(--louhos-primary-dark);
}

.tsvv-search__tab.is-current .tsvv-icon {
	color: var(--louhos-primary);
}

.tsvv-search__tab-count {
	padding: 2px 8px;
	border-radius: 8px;
	background: var(--louhos-grey);
	font-size: 0.75rem;
	line-height: 1.4;
}

.tsvv-search__tab.is-current .tsvv-search__tab-count {
	background: #fff;
}

.tsvv-filters__row {
	display: grid;
	gap: 14px;
}

.tsvv-filters__row--2 {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 20px 28px;
}

@media (min-width: 768px) {
	.tsvv-filters__row:not(.tsvv-filters__row--2) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 260px) minmax(0, 260px);
	}
}

.tsvv-filters fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.tsvv-filters legend {
	float: none;
	width: auto;
	margin: 0 0 8px;
	padding: 0;
	color: #000;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

.tsvv-filters__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tsvv-room span {
	display: inline-flex;
	align-items: center;
	height: 56px;
	padding: 0 18px;
	border-radius: var(--louhos-radius);
	background: var(--louhos-grey);
	color: #000;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tsvv-room:hover span {
	background: var(--tsvv-beige-2);
}

.tsvv-room input:checked + span {
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-room input:focus-visible + span {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-filters__pair {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--tsvv-text-muted);
}

.tsvv-range-box {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 120px;
	height: 56px;
	padding: 0 14px;
	border-radius: var(--louhos-radius);
	background: var(--louhos-grey);
}

.tsvv-range-box:focus-within {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-range-box input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #000;
	font-size: 1.0625rem;
	outline: 0;
}

.tsvv-range-box input::placeholder {
	color: var(--tsvv-text-muted);
	opacity: 1;
}

.tsvv-range-box__unit {
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
}

.tsvv-filters__submit {
	min-height: 56px;
	margin-left: auto;
}

@media (max-width: 767.98px) {
	.tsvv-filters__submit {
		width: 100%;
		margin-left: 0;
	}
}

.tsvv-results-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: clamp(32px, 3.5vw, 52px) 0 28px;
}

.tsvv-results-bar__left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.tsvv-results-bar__count {
	margin: 0;
	font-size: 1.375rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--louhos-border);
	border-radius: 10px;
	color: #000;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

.tsvv-toggle .tsvv-icon {
	width: 16px;
	height: 16px;
	color: var(--louhos-primary);
}

.tsvv-toggle:has(input:checked) {
	border-color: var(--louhos-primary);
	background: var(--louhos-grey);
}

.tsvv-toggle:has(input:focus-visible) {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-results-bar__clear {
	font-size: 0.875rem;
	font-weight: 600;
}

.tsvv-sort {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--louhos-border);
	border-radius: 12px;
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

.tsvv-sort:focus-within {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-sort > .tsvv-icon:first-child {
	width: 18px;
	height: 18px;
	color: var(--louhos-primary);
}

.tsvv-sort select {
	padding-right: 22px;
	border: 0;
	background: transparent;
	color: #000;
	font-weight: 600;
	appearance: none;
	outline: 0;
	cursor: pointer;
}

.tsvv-sort__chev {
	position: absolute;
	right: 16px;
	width: 16px;
	height: 16px;
	color: #000;
	pointer-events: none;
}

.tsvv-listing__grid {
	display: grid;
	gap: clamp(20px, 2.5vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.tsvv-listing__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.tsvv-listing__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tsvv-listing__empty {
	padding: 40px;
	border-radius: 24px;
	background: var(--louhos-grey);
}

.tsvv-listing__empty p {
	margin: 0 0 8px;
}

.tsvv-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: clamp(32px, 3vw, 56px);
}

.tsvv-pager__info {
	margin: 0;
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
}

.tsvv-pager__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-pager__btn {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--louhos-border);
	border-radius: 12px;
	background: #fff;
	color: #000;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.tsvv-pager__btn .tsvv-icon {
	width: 18px;
	height: 18px;
}

a.tsvv-pager__btn:hover,
a.tsvv-pager__btn:focus-visible {
	border-color: var(--louhos-primary);
}

.tsvv-pager__btn.is-current {
	border-color: var(--louhos-primary);
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-pager__btn.is-disabled {
	opacity: 0.4;
}

/* ==========================================================================
   20. Compact CTA (Figma "Hakulomake-CTA")
   ========================================================================== */

.tsvv-cta--compact {
	padding: 56px 0 clamp(72px, 7vw, 120px);
}

.tsvv-cta-compact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px 40px;
	padding: clamp(28px, 4vw, 56px) clamp(24px, 4.4vw, 64px);
	border-radius: 32px;
	background: var(--tsvv-beige-2);
}

.tsvv-cta-compact__icon {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 88px;
	height: 88px;
	border-radius: 24px;
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-cta-compact__icon .tsvv-icon {
	width: 40px;
	height: 40px;
}

.tsvv-cta-compact__text {
	display: flex;
	flex: 1 1 420px;
	flex-direction: column;
	gap: 14px;
}

.tsvv-cta-compact__title {
	margin: 0;
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}

.tsvv-cta-compact__lead {
	max-width: 720px;
	color: rgba(0, 0, 0, 0.8);
}

.tsvv-cta-compact__lead p {
	margin: 0;
}

.tsvv-cta-compact .tsvv-buttons {
	margin-top: 0;
}

/* ==========================================================================
   21. Mega menu: latest listings panel
   ========================================================================== */

.tsvv-mega__latest {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-self: stretch;
	width: 296px;
	padding: 18px 16px 16px;
	border-radius: 18px;
	background: var(--louhos-grey);
}

.tsvv-mega__latest ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-mega__latest-title {
	margin: 0;
	color: #000;
	font-family: var(--tsvv-font-heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.tsvv-mega__kohde {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 14px;
	background: #fff;
	color: #000;
	text-decoration: none;
	transition: box-shadow 0.2s ease;
}

.tsvv-mega__kohde:hover,
.tsvv-mega__kohde:focus-visible {
	box-shadow: 0 8px 18px rgba(43, 13, 23, 0.1);
}

.tsvv-mega__kohde img {
	flex-shrink: 0;
	width: 84px;
	height: 64px;
	border-radius: 10px;
	object-fit: cover;
}

.tsvv-mega__kohde-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tsvv-mega__kohde-title {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
}

.tsvv-mega__kohde-meta {
	color: var(--tsvv-text-muted);
	font-size: 0.75rem;
	line-height: 1.5;
}

.tsvv-mega__kohde-price {
	color: var(--louhos-primary);
	font-size: 0.875rem;
	font-weight: 600;
}

.tsvv-mega__latest-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 4px 0;
	color: #000;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.tsvv-mega__latest-all .tsvv-icon {
	width: 16px;
	height: 16px;
}

.tsvv-mega__latest-all:hover,
.tsvv-mega__latest-all:focus-visible {
	color: var(--louhos-primary);
}

@media (max-width: 1279.98px) {
	.tsvv-mega__latest {
		display: none;
	}
}

.tsvv-filters .tsvv-search__tabs {
	flex-wrap: wrap;
	overflow: visible;
}
