/**
 * WLRE Theme — Figma services tabs.
 *
 * Source: Figma node 6640:293475.
 */

.wlre-services {
	padding-block: var(--wlre-space-80);
	background: var(--wlre-color-white);
}

/* Hidden on buy/rent/find-a-property pages — preserved for future reactivation */
.wlre-page--search .wlre-services {
	display: none;
}

.wlre-services__inner {
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: var(--wlre-space-20);
	display: flex;
	flex-direction: column;
	gap: var(--wlre-space-24);
}

@media (min-width: 768px) {
	.wlre-services__inner {
		padding-inline: var(--wlre-space-40);
	}
}

@media (min-width: 1024px) {
	.wlre-services__inner {
		padding-inline: var(--wlre-space-100);
	}
}

.wlre-services__shell {
	position: relative;
	padding-top: 40px;
	color: var(--wlre-color-text-900);
}

.wlre-services__header {
	display: flex;
	min-height: 145px;
	align-items: flex-end;
	gap: var(--wlre-space-80);
	color: var(--wlre-color-text-900);
}

.wlre-services__intro {
	display: flex;
	flex: 1 1 0;
	min-width: 0;
	flex-direction: column;
	gap: var(--wlre-space-20);
}

.wlre-services__label {
	margin: 0;
	color: inherit;
}

.wlre-services__heading {
	margin: 0;
	font-family: var(--wlre-font-heading);
	font-weight: 600;
	font-size: var(--wlre-font-size-h1);
	line-height: var(--wlre-line-height-heading);
	color: inherit;
}

.wlre-services__description {
	flex: 0 0 588px;
	margin: 0;
	font-family: var(--wlre-font-body);
	font-weight: 400;
	font-size: var(--wlre-font-size-xl);
	line-height: var(--wlre-line-height-body);
	color: inherit;
}

.wlre-services__tabs {
	position: absolute;
	z-index: 2;
	top: 1px;
	inset-inline-start: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
	box-sizing: border-box;
	width: 293px;
	height: 40px;
	padding: 12px;
	overflow: visible;
	background: #f5f5f5;
	border: 0.5px solid var(--wlre-color-neutral-300, #d0d0d0);
	border-bottom: 0;
	border-radius: 32px 32px 0 0;
}

.wlre-services__tab {
	position: relative;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	padding: 12px 24px;
	border: 0;
	border-radius: 32px;
	background: transparent;
	color: var(--wlre-color-text-900);
	font-family: var(--wlre-font-body);
	font-weight: 700;
	font-size: 18px;
	line-height: var(--wlre-line-height-body);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wlre-services__tab[data-services-tab="sellers"] {
	width: 128px;
}

.wlre-services__tab[data-services-tab="buyers"] {
	width: 139px;
}

.wlre-services__tab:hover,
.wlre-services__tab:focus-visible {
	background: rgba(255, 255, 255, 0.55);
}

.wlre-services__tab:focus-visible {
	outline: 2px solid var(--wlre-color-accent-600);
	outline-offset: 2px;
}

.wlre-services__tab.is-active {
	background: #f3faf4;
	border: 2.333px solid #008d84;
	color: var(--wlre-color-text-900);
}

.wlre-services__panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wlre-space-24);
	padding: 48px 24px 24px;
	background: #f5f5f5;
	border: 0.5px solid var(--wlre-color-neutral-300, #d0d0d0);
	border-radius: 0 24px 24px 24px;
}

.wlre-services__panel[hidden] {
	display: none;
}

.wlre-services__panel-subtitle {
	margin: 0;
	font-family: var(--wlre-font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: var(--wlre-line-height-body);
	color: var(--wlre-color-text-900);
}

.wlre-services__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wlre-space-20);
	width: 100%;
}

.wlre-services__card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wlre-space-16);
	text-decoration: none;
	color: inherit;
}

.wlre-services__card-image {
	width: 100%;
	height: 400px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: var(--wlre-radius-20);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.wlre-services__card-text {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wlre-space-16);
}

.wlre-services__card-title {
	margin: 0;
	width: 100%;
	font-family: var(--wlre-font-heading);
	font-weight: 600;
	font-size: var(--wlre-font-size-h5);
	line-height: var(--wlre-line-height-heading);
	color: var(--wlre-color-text-900);
}

.wlre-services__card-desc {
	margin: 0;
	width: 100%;
	font-family: var(--wlre-font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: var(--wlre-line-height-body);
	color: var(--wlre-color-text-900);
}

.wlre-services__cta-row {
	display: flex;
	justify-content: flex-start;
	width: 100%;
}

.wlre-services__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wlre-space-4);
	min-width: 100px;
	height: 56px;
	padding: 16px 24px;
	overflow: hidden;
	border: 0;
	border-radius: var(--wlre-radius-sm);
	background: #0f0f0f;
	color: var(--wlre-color-white);
	font-family: var(--wlre-font-body);
	font-weight: 700;
	font-size: 16px;
	line-height: var(--wlre-line-height-body);
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.wlre-services__cta:hover,
.wlre-services__cta:focus-visible {
	background: var(--wlre-color-text-900);
	transform: translateY(-1px);
}

.wlre-services__cta:focus-visible {
	outline: 2px solid var(--wlre-color-accent-600);
	outline-offset: 3px;
}

.wlre-services__cta svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.wlre-services__cta svg path {
	fill: currentColor;
}

@media (max-width: 1199px) {
	.wlre-services__header {
		min-height: 0;
		flex-direction: column;
		align-items: stretch;
		gap: var(--wlre-space-32);
	}

	.wlre-services__description {
		flex: 0 0 auto;
	}

	.wlre-services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.wlre-services {
		padding-block: var(--wlre-space-48);
	}

	.wlre-services__inner {
		padding-inline: var(--wlre-space-20);
	}

	.wlre-services__shell {
		padding-top: 40px;
	}

	.wlre-services__heading {
		font-size: var(--wlre-font-size-h3);
	}

	.wlre-services__tabs {
		max-width: 100%;
		overflow: visible;
	}

	.wlre-services__tab {
		height: 52px;
		padding-inline: var(--wlre-space-20);
		font-size: var(--wlre-font-size-m);
	}

	.wlre-services__panel {
		padding: 44px var(--wlre-space-20) var(--wlre-space-24);
		border-radius: 0 var(--wlre-radius-20) var(--wlre-radius-20) var(--wlre-radius-20);
	}

	.wlre-services__grid {
		grid-template-columns: 1fr;
		gap: var(--wlre-space-32);
	}

	.wlre-services__card {
		gap: var(--wlre-space-12);
	}

	.wlre-services__description {
		font-size: var(--wlre-font-size-l);
	}

	.wlre-services__card-image {
		height: 220px;
	}

	.wlre-services__card-text {
		gap: var(--wlre-space-8);
	}

	.wlre-services__card-title {
		font-size: var(--wlre-font-size-h6);
	}

	.wlre-services__card-desc {
		font-size: var(--wlre-font-size-m);
	}

	.wlre-services__cta {
		width: 100%;
	}
}
