/* Shared transaction tabs — homepage quick search + archive filters */

.novo-property__header {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 18px;
}

.novo-property__tabs {
	--novo-property-tabs-dur: 250ms;
	--novo-property-tabs-ease: cubic-bezier(0.22, 1, 0.36, 1);

	align-items: center;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 999px;
	display: inline-flex;
	gap: 3px;
	padding: 4px;
	position: relative;
}

.novo-property__tab-pill {
	background: var(--sand);
	border-radius: 999px;
	height: 0;
	left: 0;
	pointer-events: none;
	position: absolute;
	top: 0;
	transform: translate(0, 0);
	transition:
		transform var(--novo-property-tabs-dur) var(--novo-property-tabs-ease),
		width var(--novo-property-tabs-dur) var(--novo-property-tabs-ease);
	width: 0;
	will-change: transform, width;
	z-index: 0;
}

.novo-property__tab {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	padding: 10px 18px;
	position: relative;
	transition: color var(--novo-property-tabs-dur) var(--novo-property-tabs-ease);
	z-index: 1;
}
.novo-property__tab:hover {
	color: var(--primary-foreground);
}

.novo-property__tab.is-active {
	color: var(--primary);
}

.novo-property__tab.is-active {
	background: transparent;
}

.novo-property__count {
	align-items: center;
	color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
	display: flex;
	flex-shrink: 0;
	font-size: 13px;
	gap: 4px;
	margin: 0;
	white-space: nowrap;
}

.novo-property__count-icon {
	flex-shrink: 0;
	opacity: 0.7;
}

.novo-property__count-value,
.novo-property__count [data-brx-qr-count] {
	color: var(--white);
	font-weight: 500;
}

.novo-property__count-label {
	color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
}

@media (max-width: 640px) {
	.novo-property__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.novo-filters .novo-property__header {
		align-items: center;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 10px 16px;
	}

	.novo-property__count {
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.novo-property__tab-pill,
	.novo-property__tab {
		transition: none !important;
	}
}
