/**
 * Motovante Showroom marketplace preset.
 * Clean dealership-style inventory browsing inspired by contemporary Gulf
 * automotive marketplaces. No third-party code or assets are used here.
 */

body.motovante-marketplace-theme-showroom {
	--motovante-showroom-accent: #6D2FA7;
	--motovante-showroom-accent-hover: #4D1A7D;
	--motovante-showroom-price: #6D2FA7;
	--motovante-showroom-radius: 12px;
	--motovante-showroom-filter-position: sticky;
	--motovante-showroom-border: #e5e7eb;
	--motovante-showroom-muted: #6b7280;
	--motovante-showroom-soft: #f7f8fa;
	--motovante-showroom-success: #16794b;
}

body.motovante-marketplace-theme-showroom .motovante-container {
	max-width: 1380px;
}

body.motovante-marketplace-theme-showroom .motovante-archive-vehicle {
	background: #f7f8fa;
	padding: 28px 0 56px;
}

body.motovante-marketplace-theme-showroom .motovante-archive__header {
	margin-bottom: 18px;
}

body.motovante-marketplace-theme-showroom .motovante-archive__header h1 {
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0;
	color: #111827;
}

/* Search / inventory shell */
body.motovante-marketplace-theme-showroom .motovante-search-bar {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}

body.motovante-marketplace-theme-showroom .motovante-search-layout {
	display: grid;
	grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

body.motovante-marketplace-theme-showroom .motovante-search-sidebar {
	position: var(--motovante-showroom-filter-position);
	top: 24px;
	background: #fff;
	border: 1px solid var(--motovante-showroom-border);
	border-radius: var(--motovante-showroom-radius);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
	overflow: hidden;
	max-height: calc(100vh - 48px);
}

body.admin-bar.motovante-marketplace-theme-showroom .motovante-search-sidebar {
	top: 56px;
	max-height: calc(100vh - 80px);
}

body.motovante-marketplace-theme-showroom .motovante-search-form--showroom {
	display: block;
	padding: 0;
	overflow-y: auto;
	max-height: inherit;
}

body.motovante-marketplace-theme-showroom .motovante-filter-sidebar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 22px 20px 18px;
	border-bottom: 1px solid var(--motovante-showroom-border);
}

body.motovante-marketplace-theme-showroom .motovante-filter-sidebar__eyebrow,
body.motovante-marketplace-theme-showroom .motovante-results-heading__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: #9ca3af;
	margin-bottom: 4px;
}

body.motovante-marketplace-theme-showroom .motovante-filter-sidebar__header h2,
body.motovante-marketplace-theme-showroom .motovante-results-heading h2 {
	margin: 0;
	font-size: 21px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #111827;
}

body.motovante-marketplace-theme-showroom .motovante-filter-reset {
	border: 0;
	background: none;
	color: var(--motovante-showroom-muted);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	padding: 4px 0;
}

body.motovante-marketplace-theme-showroom .motovante-filter-reset:hover {
	color: var(--motovante-showroom-accent);
}

body.motovante-marketplace-theme-showroom .motovante-showroom-filter-block,
body.motovante-marketplace-theme-showroom .motovante-showroom-advanced,
body.motovante-marketplace-theme-showroom .motovante-search-form--showroom > .motovante-filter-group {
	padding: 18px 20px;
	border-bottom: 1px solid var(--motovante-showroom-border);
}

body.motovante-marketplace-theme-showroom .motovante-showroom-filter-block {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

body.motovante-marketplace-theme-showroom .motovante-showroom-field {
	display: grid;
	gap: 7px;
	font-size: 12px;
	font-weight: 700;
	color: #374151;
}

body.motovante-marketplace-theme-showroom .motovante-showroom-field > span,
body.motovante-marketplace-theme-showroom .motovante-filter-group legend {
	font-size: 12px;
	font-weight: 700;
	color: #374151;
	margin-bottom: 7px;
}

body.motovante-marketplace-theme-showroom .motovante-search-form input,
body.motovante-marketplace-theme-showroom .motovante-search-form select,
body.motovante-marketplace-theme-showroom .motovante-filter-group input,
body.motovante-marketplace-theme-showroom .motovante-filter-group select {
	width: 100%;
	min-height: 42px;
	padding: 9px 11px;
	border: 1px solid #d9dde4;
	border-radius: 8px;
	background: #fff;
	color: #111827;
	font-size: 13px;
	box-shadow: none;
}

body.motovante-marketplace-theme-showroom .motovante-search-form input:focus,
body.motovante-marketplace-theme-showroom .motovante-search-form select:focus {
	outline: 0;
	border-color: var(--motovante-showroom-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--motovante-showroom-accent) 10%, transparent);
}

body.motovante-marketplace-theme-showroom .motovante-showroom-advanced {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

body.motovante-marketplace-theme-showroom .motovante-showroom-advanced .motovante-filter-group {
	padding: 0;
	margin: 0;
	border: 0;
	min-width: 0;
}

body.motovante-marketplace-theme-showroom .motovante-showroom-advanced .motovante-filter-group--full {
	grid-column: auto;
}

body.motovante-marketplace-theme-showroom .motovante-filter-range {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 7px;
	align-items: center;
}

body.motovante-marketplace-theme-showroom .motovante-filter-range span {
	color: #9ca3af;
}

body.motovante-marketplace-theme-showroom .motovante-filter-checkbox,
body.motovante-marketplace-theme-showroom .motovante-checkbox-grid label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 500;
	color: #4b5563;
	margin: 8px 0;
}

body.motovante-marketplace-theme-showroom .motovante-filter-checkbox input,
body.motovante-marketplace-theme-showroom .motovante-checkbox-grid input {
	width: 16px;
	height: 16px;
	min-height: 0;
	margin: 0;
}

body.motovante-marketplace-theme-showroom .motovante-search-submit--showroom {
	position: sticky;
	bottom: 0;
	width: calc(100% - 40px);
	margin: 18px 20px 20px;
	min-height: 46px;
	border-radius: 8px;
	background: var(--motovante-showroom-accent);
	font-weight: 700;
	box-shadow: 0 -8px 18px rgba(255, 255, 255, .9);
}

body.motovante-marketplace-theme-showroom .motovante-search-submit--showroom:hover {
	background: var(--motovante-showroom-accent-hover);
}

/* Results header */
body.motovante-marketplace-theme-showroom .motovante-search-results-panel {
	background: transparent;
}

body.motovante-marketplace-theme-showroom .motovante-search-toolbar {
	align-items: flex-end;
	margin: 0 0 18px;
	padding: 0;
}

body.motovante-marketplace-theme-showroom .motovante-results-heading {
	display: block;
}

body.motovante-marketplace-theme-showroom .motovante-results-count {
	margin-top: 6px;
	font-size: 13px;
	color: var(--motovante-showroom-muted);
}

body.motovante-marketplace-theme-showroom .motovante-search-toolbar__controls {
	margin-inline-start: auto;
	justify-content: flex-end;
}

body.motovante-marketplace-theme-showroom .motovante-search-view-toggle {
	background: #fff;
	border: 1px solid var(--motovante-showroom-border);
	border-radius: 8px;
	padding: 3px;
	gap: 2px;
}

body.motovante-marketplace-theme-showroom .motovante-view-btn {
	border: 0;
	border-radius: 6px;
	padding: 7px 11px;
	background: transparent;
	color: #6b7280;
	font-weight: 600;
}

body.motovante-marketplace-theme-showroom .motovante-view-btn.is-active {
	background: var(--motovante-showroom-accent);
	color: #fff;
}

body.motovante-marketplace-theme-showroom .motovante-sort-control {
	font-weight: 600;
	color: #6b7280;
}

body.motovante-marketplace-theme-showroom .motovante-sort-control select {
	min-height: 38px;
	border-color: var(--motovante-showroom-border);
	border-radius: 8px;
	background: #fff;
	font-weight: 600;
}

/* Product-style vehicle cards */
body.motovante-marketplace-theme-showroom .motovante-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
}

body.motovante-marketplace-theme-showroom .motovante-card,
.motovante-card--showroom {
	background: #fff;
	border: 1px solid var(--motovante-showroom-border, #e5e7eb);
	border-radius: var(--motovante-showroom-radius, 12px);
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
	transform: none;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.motovante-marketplace-theme-showroom .motovante-card:hover,
.motovante-card--showroom:hover {
	border-color: #d1d5db;
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
	transform: translateY(-2px);
}

body.motovante-marketplace-theme-showroom .motovante-card__media,
.motovante-card--showroom .motovante-card__media {
	aspect-ratio: 16 / 10;
	background: #f3f4f6;
}

body.motovante-marketplace-theme-showroom .motovante-card__media img,
.motovante-card--showroom .motovante-card__media img {
	transition: transform .25s ease;
}

body.motovante-marketplace-theme-showroom .motovante-card:hover .motovante-card__media img,
.motovante-card--showroom:hover .motovante-card__media img {
	transform: scale(1.015);
}

body.motovante-marketplace-theme-showroom .motovante-card__body,
.motovante-card--showroom .motovante-card__body {
	display: flex;
	flex-direction: column;
	padding: 17px 17px 16px;
}

body.motovante-marketplace-theme-showroom .motovante-card__title,
.motovante-card--showroom .motovante-card__title {
	order: 1;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 13px;
	min-height: 43px;
}

body.motovante-marketplace-theme-showroom .motovante-card__title a,
.motovante-card--showroom .motovante-card__title a {
	color: var(--motovante-showroom-accent);
}

body.motovante-marketplace-theme-showroom .motovante-card__price,
.motovante-card--showroom .motovante-card__price {
	order: 2;
	font-size: 21px;
	line-height: 1.15;
	font-weight: 800;
	color: var(--motovante-showroom-price, #6D2FA7);
	margin-bottom: 11px;
}

body.motovante-marketplace-theme-showroom .motovante-card__price-label,
.motovante-card--showroom .motovante-card__price-label {
	display: block;
	font-size: 10px;
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #9ca3af;
	margin-bottom: 5px;
}

body.motovante-marketplace-theme-showroom .motovante-card__location,
.motovante-card--showroom .motovante-card__location {
	order: 3;
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 10px;
}

body.motovante-marketplace-theme-showroom .motovante-meta-icons,
.motovante-card--showroom .motovante-meta-icons {
	order: 4;
	gap: 10px;
	font-size: 12px;
	color: #6b7280;
	padding: 10px 0 2px;
	margin: 0;
	border-top: 1px solid #f0f1f3;
}

body.motovante-marketplace-theme-showroom .motovante-meta-icons__item .motovante-icon,
.motovante-card--showroom .motovante-meta-icons__item .motovante-icon {
	color: #6b7280;
}

body.motovante-marketplace-theme-showroom .motovante-card__lower,
.motovante-card--showroom .motovante-card__lower {
	order: 4;
	margin-top: auto;
}

body.motovante-marketplace-theme-showroom .motovante-card__footer,
.motovante-card--showroom .motovante-card__footer {
	order: 5;
	gap: 10px;
	border-top: 1px solid #f0f1f3;
	padding-top: 12px;
	margin-top: 10px;
}

body.motovante-marketplace-theme-showroom .motovante-card__seller,
.motovante-card--showroom .motovante-card__seller {
	font-size: 11px;
	color: #9ca3af;
}

body.motovante-marketplace-theme-showroom .motovante-card__actions,
.motovante-card--showroom .motovante-card__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
	width: 100%;
	min-width: 0;
}

body.motovante-marketplace-theme-showroom .motovante-card__actions button,
body.motovante-marketplace-theme-showroom .motovante-card__actions a,
.motovante-card--showroom .motovante-card__actions button,
.motovante-card--showroom .motovante-card__actions a {
	min-height: 35px;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
	justify-content: center;
	border-radius: 7px;
	font-size: 11px;
	font-weight: 700;
	padding: 7px 9px;
}

body.motovante-marketplace-theme-showroom .motovante-card__details-btn,
.motovante-card--showroom .motovante-card__details-btn {
	display: inline-flex;
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
	align-items: center;
	justify-content: center;
	background: var(--motovante-showroom-accent, #6D2FA7) !important;
	border-color: var(--motovante-showroom-accent, #6D2FA7) !important;
	color: #fff !important;
	text-decoration: none;
}

/* Keep optional contact actions below the primary View Details CTA instead of
   forcing another control into the same narrow card row. */
body.motovante-marketplace-theme-showroom .motovante-card__actions .motovante-whatsapp-btn,
.motovante-card--showroom .motovante-card__actions .motovante-whatsapp-btn {
	grid-column: 1 / -1;
	width: 100%;
}

body.motovante-marketplace-theme-showroom .motovante-card__details-btn:is(:hover,:focus-visible,:active),
.motovante-card--showroom .motovante-card__details-btn:is(:hover,:focus-visible,:active) {
	background: var(--motovante-showroom-accent-hover, #4D1A7D) !important;
	border-color: var(--motovante-showroom-accent-hover, #4D1A7D) !important;
}

body.motovante-marketplace-theme-showroom .motovante-card__price-badge,
.motovante-card--showroom .motovante-card__price-badge {
	background: rgba(17, 24, 39, .9);
	border-radius: 7px;
	font-size: 12px;
}

:where(body.motovante-marketplace-theme-showroom, .motovante-card--showroom) .motovante-badge {
	border-radius: 999px;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .06em;
	padding: 5px 9px;
}

:where(body.motovante-marketplace-theme-showroom) .motovante-badge--new {
	background: var(--motovante-showroom-accent);
}

:where(body.motovante-marketplace-theme-showroom) .motovante-badge--featured {
	background: var(--motovante-showroom-accent);
	color: #fff;
	border: 0;
}

/* List view within Showroom */
body.motovante-marketplace-theme-showroom .motovante-grid--list {
	display: flex;
	gap: 14px;
}

body.motovante-marketplace-theme-showroom .motovante-grid--list .motovante-card {
	display: grid;
	grid-template-columns: minmax(260px, 34%) 1fr;
}

body.motovante-marketplace-theme-showroom .motovante-grid--list .motovante-card__media {
	width: auto;
	aspect-ratio: auto;
	min-height: 230px;
}

body.motovante-marketplace-theme-showroom .motovante-grid--list .motovante-card__body {
	justify-content: flex-start;
	padding: 20px;
}

/* Pagination */
body.motovante-marketplace-theme-showroom .motovante-pagination {
	margin-top: 26px;
}

body.motovante-marketplace-theme-showroom .motovante-page-btn {
	background: #fff;
	border-color: var(--motovante-showroom-border);
	border-radius: 8px;
	font-weight: 700;
}

body.motovante-marketplace-theme-showroom .motovante-page-btn:hover:not(:disabled) {
	border-color: var(--motovante-showroom-accent);
	color: var(--motovante-showroom-accent);
}

@media (max-width: 1180px) {
	body.motovante-marketplace-theme-showroom .motovante-search-layout {
		grid-template-columns: 250px minmax(0, 1fr);
		gap: 20px;
	}

	body.motovante-marketplace-theme-showroom .motovante-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	body.motovante-marketplace-theme-showroom .motovante-search-layout {
		display: block;
	}

	body.motovante-marketplace-theme-showroom .motovante-search-sidebar {
		position: static;
		max-height: none;
		margin-bottom: 22px;
	}

	body.motovante-marketplace-theme-showroom .motovante-search-form--showroom {
		max-height: none;
	}

	body.motovante-marketplace-theme-showroom .motovante-showroom-filter-block,
	body.motovante-marketplace-theme-showroom .motovante-showroom-advanced {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.motovante-marketplace-theme-showroom .motovante-showroom-field--full,
	body.motovante-marketplace-theme-showroom .motovante-showroom-advanced .motovante-filter-group--full {
		grid-column: 1 / -1;
	}

	body.motovante-marketplace-theme-showroom .motovante-search-submit--showroom {
		position: static;
	}
}

@media (max-width: 640px) {
	body.motovante-marketplace-theme-showroom .motovante-archive-vehicle {
		padding-top: 18px;
	}

	body.motovante-marketplace-theme-showroom .motovante-showroom-filter-block,
	body.motovante-marketplace-theme-showroom .motovante-showroom-advanced,
	body.motovante-marketplace-theme-showroom .motovante-grid {
		grid-template-columns: 1fr;
	}

	body.motovante-marketplace-theme-showroom .motovante-search-toolbar,
	body.motovante-marketplace-theme-showroom .motovante-search-toolbar__controls {
		align-items: stretch;
		width: 100%;
	}

	body.motovante-marketplace-theme-showroom .motovante-search-toolbar__controls {
		margin-inline-start: 0;
		justify-content: space-between;
	}

	body.motovante-marketplace-theme-showroom .motovante-sort-control {
		flex: 1 1 180px;
		justify-content: flex-end;
	}

	body.motovante-marketplace-theme-showroom .motovante-grid--list .motovante-card {
		display: flex;
		flex-direction: column;
	}

	body.motovante-marketplace-theme-showroom .motovante-grid--list .motovante-card__media {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}
}

/* v2.1.19 — Image meta overlay must keep high contrast even in Showroom mode.
   The generic Showroom meta-icons rules are intended for card-body specs; when
   the same component is placed over photography, reset those body styles. */
body.motovante-marketplace-theme-showroom .motovante-card__meta-overlay .motovante-meta-icons,
.motovante-card--showroom .motovante-card__meta-overlay .motovante-meta-icons {
	order: initial;
	margin: 0;
	padding: 0;
	border-top: 0;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

body.motovante-marketplace-theme-showroom .motovante-card__meta-overlay .motovante-meta-icons__item,
.motovante-card--showroom .motovante-card__meta-overlay .motovante-meta-icons__item {
	padding: 4px 7px;
	border-radius: 5px;
	background: rgba(0, 0, 0, 0.42);
}

body.motovante-marketplace-theme-showroom .motovante-card__meta-overlay .motovante-meta-icons__value,
.motovante-card--showroom .motovante-card__meta-overlay .motovante-meta-icons__value,
body.motovante-marketplace-theme-showroom .motovante-card__meta-overlay .motovante-meta-icons__item .motovante-icon,
.motovante-card--showroom .motovante-card__meta-overlay .motovante-meta-icons__item .motovante-icon {
	color: #fff;
}

/* v2.1.30 — Showroom pagination states and direct page selector. */
body.motovante-marketplace-theme-showroom .motovante-page-btn.is-current,
body.motovante-marketplace-theme-showroom .motovante-page-number[aria-current="page"] {
	background: var(--motovante-showroom-accent);
	border-color: var(--motovante-showroom-accent);
	color: #fff;
}

body.motovante-marketplace-theme-showroom .motovante-page-select {
	background: #fff;
	border-color: var(--motovante-showroom-border);
}

/* v2.1.48 — same Showroom list card as v2.1.45, with only the image column
 * increased by ~30%. The results column itself remains full width. */
@media (min-width: 641px) {
	body.motovante-marketplace-theme-showroom .motovante-search-native__results #motovante-search-results.motovante-grid--list .motovante-card {
		grid-template-columns: minmax(338px, 44%) minmax(0, 1fr);
	}

	body.motovante-marketplace-theme-showroom .motovante-search-native__results #motovante-search-results.motovante-grid--list .motovante-card__media {
		width: auto;
		flex: initial;
		aspect-ratio: auto;
		min-height: 230px;
	}
}

/* v2.2.25 — Showroom controls follow its purple accent defaults. */
body.motovante-marketplace-theme-showroom .motovante-view-btn.is-active,
body.motovante-marketplace-theme-showroom .motovante-view-btn:is(:hover,:active,:focus-visible),
body.motovante-marketplace-theme-showroom .motovante-page-btn:not(:disabled):is(:hover,:active,:focus-visible) { background:var(--motovante-showroom-accent-hover); border-color:var(--motovante-showroom-accent-hover); color:#fff; }
body.motovante-marketplace-theme-showroom .motovante-card__title a:is(:hover,:focus-visible),
.motovante-card--showroom .motovante-card__title a:is(:hover,:focus-visible) { color:var(--motovante-showroom-accent-hover,#4D1A7D); }
