/* Hero search shortcode — tabbed vehicle / dealer search bar */
.mm-hero-search {
	--mm-hero-accent: #31ffff;
	--mm-hero-accent-hover: #1ae8e8;
	--mm-hero-bar-bg: #ffffff;
	--mm-hero-field-border: #e2e8f0;
	--mm-hero-text: #334155;
	--mm-hero-muted: #64748b;
	--mm-hero-radius: 100px;
	--mm-hero-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
	--mm-hero-field-height: 3.75rem;
	--mm-hero-gap: 1rem;
	position: relative;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	font-family: var(--mm-font-main, 'Roboto', sans-serif);
	box-sizing: border-box;
}

.mm-hero-search *,
.mm-hero-search *::before,
.mm-hero-search *::after {
	box-sizing: border-box;
}

.mm-hero-search__tabs {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 1.5rem 2.5rem;
	margin-bottom: 0;
	padding-left: clamp(0.75rem, 4vw, 3rem);
}

.mm-hero-search__tab {
	position: relative;
	appearance: none;
	border: none;
	background: none;
	padding: 0.5rem 0 1.25rem;
	font-size: clamp(1rem, 2.4vw, 1.25rem);
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
	cursor: pointer;
	transition: color 0.15s ease;
	white-space: nowrap;
}

.mm-hero-search__tab:hover,
.mm-hero-search__tab:focus-visible {
	color: var(--mm-hero-accent);
	outline: none;
}

.mm-hero-search__tab.is-active {
	color: var(--mm-hero-accent);
}

.mm-hero-search__tab.is-active::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-bottom: 12px solid var(--mm-hero-bar-bg);
}

.mm-hero-search__bar {
	width: 100%;
}

.mm-hero-search__panel {
	width: 100%;
}

.mm-hero-search__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
	gap: var(--mm-hero-gap);
	align-items: stretch;
	width: 100%;
}

/* One dropdown + search button (dealer tab). */
.mm-hero-search__form:has(> .mm-hero-search__field:only-of-type) {
	grid-template-columns: minmax(0, 1fr) auto;
}

.mm-hero-search__field {
	min-width: 0;
	width: 100%;
	position: relative;
	display: flex;
	align-items: center;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mm-hero-search__field:focus-within {
	border-color: var(--mm-hero-accent);
	box-shadow: 0 0 0 4px rgba(49, 255, 255, 0.1);
}

.mm-hero-search select,
.mm-hero-search input[type='search'],
.mm-hero-search input[type='text'] {
	width: 100%;
	min-width: 0;
	height: var(--mm-hero-field-height);
	padding: 0 2.5rem 0 1rem;
	border: none;
	background: transparent;
	color: var(--mm-hero-text);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}

.mm-hero-search select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	cursor: pointer;
	text-overflow: ellipsis;
}

.mm-hero-search select:focus,
.mm-hero-search input:focus {
	outline: none;
}

.mm-hero-search input::placeholder {
	color: #94a3b8;
	opacity: 1;
}

.mm-hero-search__submit {
	flex: 0 0 auto;
	width: var(--mm-hero-field-height);
	min-width: var(--mm-hero-field-height);
	height: var(--mm-hero-field-height);
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 14px;
	background: var(--mm-hero-accent);
	color: #092053;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	line-height: 0;
	font-size: 0;
	text-transform: none;
	box-shadow: none;
}

.mm-hero-search__submit:hover {
	background: var(--mm-hero-accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(49, 255, 255, 0.3);
}

.mm-hero-search__submit-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
	pointer-events: none;
}

.mm-hero-search__submit-icon svg {
	display: block;
	width: 26px;
	height: 26px;
	fill: currentColor;
	stroke: none;
}

.mm-hero-search__status {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Simple shortcodes: make/type + keyword search */
.mm-hero-search--simple .mm-hero-search__form {
	grid-template-columns: minmax(9.5rem, 1fr) minmax(0, 1.35fr) auto;
}

.mm-hero-search--simple .mm-hero-search__field--grow {
	min-width: 0;
}

/* Single-mode variants hide tabs */
.mm-hero-search[data-mode='vehicles'] .mm-hero-search__tabs,
.mm-hero-search[data-mode='dealers'] .mm-hero-search__tabs {
	display: none;
}

.mm-hero-search[data-mode='vehicles'] .mm-hero-search__bar,
.mm-hero-search[data-mode='dealers'] .mm-hero-search__bar {
	border-radius: var(--mm-hero-radius);
}
.elementor-widget-n-tabs .e-n-tab-title .e-n-tab-icon svg{
    transition: none !important;
}
.elementor-widget-n-tabs [data-touch-mode="true"] .e-n-tab-title[aria-selected="false"]:hover .e-n-tab-icon i:last-child, .elementor-widget-n-tabs [data-touch-mode="true"] .e-n-tab-title[aria-selected="false"]:hover .e-n-tab-icon svg:last-child {
  height: var(--n-tabs-icon-size,var(--n-tabs-title-font-size));
}
/* Tablet: two fields on top row, full-width submit below */
@media (max-width: 960px) {
	.mm-hero-search {
		--mm-hero-field-height: 3.5rem;
		--mm-hero-gap: 0.75rem;
	}

	.mm-hero-search:not(.mm-hero-search--simple) .mm-hero-search__form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mm-hero-search:not(.mm-hero-search--simple) .mm-hero-search__submit {
		grid-column: 1 / -1;
		width: 100%;
		min-width: 0;
		border-radius: 12px;
	}

	.mm-hero-search--simple .mm-hero-search__form {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	}

	.mm-hero-search--simple .mm-hero-search__submit {
		grid-column: 1 / -1;
		width: 100%;
		min-width: 0;
		border-radius: 12px;
	}

	.mm-hero-search__form:has(> .mm-hero-search__field:only-of-type) {
		grid-template-columns: minmax(0, 1fr);
	}

	.mm-hero-search__form:has(> .mm-hero-search__field:only-of-type) .mm-hero-search__submit {
		grid-column: 1 / -1;
		width: 100%;
		min-width: 0;
	}
}
@media (max-width: 767px) {
	.mm-hero-search {
		--mm-hero-field-height: 3.25rem;
		padding: 0 15px 15px 15px;
	}
}

/* Mobile: stack everything */
@media (max-width: 600px) {
	.mm-hero-search {
		--mm-hero-field-height: 3.25rem;
		padding: 0 15px 15px 15px;
	}

	.mm-hero-search__tabs {
		justify-content: center;
		padding-left: 0;
		gap: 0.75rem 1.25rem;
	}

	.mm-hero-search__tab {
		padding-bottom: 1rem;
		white-space: normal;
		text-align: center;
		max-width: 11rem;
	}

	.mm-hero-search__form,
	.mm-hero-search--simple .mm-hero-search__form,
	.mm-hero-search__form:has(> .mm-hero-search__field:only-of-type) {
		grid-template-columns: minmax(0, 1fr);
	}

	.mm-hero-search__submit {
		grid-column: 1 / -1;
		width: 100%;
		min-width: 0;
		border-radius: 12px;
	}

	.mm-hero-search select,
	.mm-hero-search input[type='search'],
	.mm-hero-search input[type='text'] {
		font-size: 16px;
		padding-right: 2.25rem;
	}
}

@media (max-width: 380px) {
	.mm-hero-search__tab {
		max-width: none;
		flex: 1 1 calc(50% - 0.5rem);
	}
}
