/**
 * Cross-navigation CTA between buy/rent listings and enquiry form.
 */

.ascenvia-page-switcher {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 0 1.5rem;
	padding: 0;
	box-sizing: border-box;
}

.ascenvia-page-switcher__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.25rem;
	padding: 1.125rem 1.375rem;
	background: linear-gradient(135deg, #faf8f5 0%, #f3efe8 100%);
	border: 1px solid #dce0e0;
	border-left: 4px solid #c6b191;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ascenvia-page-switcher__message {
	flex: 1 1 0px;
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	color: #1a1a1a;
}

.ascenvia-page-switcher__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	gap: 0.35rem;
	padding: 0.65rem 1.35rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	white-space: nowrap;
	color: #fff;
	background: #c6b191;
	border: 1px solid #c6b191;
	border-radius: 4px;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.ascenvia-page-switcher__link::after {
	content: "\2192";
	font-size: 1.05em;
	line-height: 1;
}

.ascenvia-page-switcher__link:hover,
.ascenvia-page-switcher__link:focus {
	color: #fff;
	background: #000;
	border-color: #000;
	text-decoration: none;
	transform: translateY(-1px);
}

.ascenvia-page-switcher__link:focus-visible {
	outline: 2px solid #c6b191;
	outline-offset: 2px;
}

.ascenvia-page-switcher[hidden] {
	display: none !important;
}

/* Sticky on enquiry page (desktop only — avoids mobile scroll jank under fixed header) */
@media (min-width: 768px) {
	.ascenvia-enquiry-page .ascenvia-page-switcher {
		position: sticky;
		top: 0;
		z-index: 50;
		margin-top: 0;
		margin-bottom: 1.25rem;
		background: transparent;
	}
}

@media (max-width: 767px) {
	.ascenvia-enquiry-page .ascenvia-page-switcher {
		position: relative;
		top: auto;
		z-index: 1;
		margin-top: 0;
		margin-bottom: 0.75rem;
	}

	.ascenvia-page-switcher__inner {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0.75rem;
		min-height: 0;
		padding: 1rem 1.125rem;
	}

	.ascenvia-page-switcher__link {
		width: 100%;
		text-align: center;
		white-space: normal;
	}
}

.houzez-vaultre-api-listing .ascenvia-page-switcher {
	max-width: none;
}

@media (max-width: 480px) {
	.ascenvia-page-switcher__message {
		font-size: 0.9375rem;
	}
}
