/* Vehicle Inventory Pro — frontend.
   Inherits Flatsome's primary color via --primary-color when available. */

.vinv-inventory,
.vinv-single,
.vinv-modal,
.vinv-lightbox,
.vinv-search {
	--vinv-accent: var(--primary-color, #14424e);
	--vinv-ink: #1f2430;
	--vinv-muted: #6b7280;
	--vinv-line: #e5e7eb;
	--vinv-bg: #f7f8f9;
	--vinv-radius: 10px;
	--vinv-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--vinv-shadow-lg: 0 10px 30px rgba(16, 24, 40, .14);
	color: var(--vinv-ink);
}

/* ==== Layout: sidebar + results ======================================== */

.vinv-inventory { display: block; margin-bottom: 40px; }
.vinv-inventory.has-filters {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
@media (max-width: 849px) {
	.vinv-inventory.has-filters { grid-template-columns: 1fr; }
}

.vinv-archive-header { padding: 26px 0 6px; }
.vinv-archive-title { margin: 0; font-size: 1.7em; }

/* ==== Filter sidebar ==================================================== */

.vinv-sidebar {
	background: #fff;
	border: 1px solid var(--vinv-line);
	border-radius: var(--vinv-radius);
	box-shadow: var(--vinv-shadow);
	padding: 16px;
	position: sticky;
	top: 20px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}
@media (max-width: 849px) {
	.vinv-sidebar { position: static; max-height: none; }
}

.vinv-filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.vinv-filter-matches { font-weight: 700; font-size: .95em; }
.vinv-clear-all {
	background: none; border: 0; padding: 0; cursor: pointer;
	color: var(--vinv-accent); font-size: .85em; font-weight: 600; text-decoration: underline;
}

.vinv-active-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vinv-active-chips:not(:empty) { margin-bottom: 10px; }
.vinv-chip {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--vinv-bg); border: 1px solid var(--vinv-line);
	border-radius: 99px; padding: 3px 10px; font-size: .8em; cursor: pointer;
}
.vinv-chip:hover { border-color: #cbd5e1; }
.vinv-chip::after { content: "✕"; font-size: .85em; color: var(--vinv-muted); }

.vinv-filter-search input[type="search"] {
	width: 100%; border: 1px solid var(--vinv-line); border-radius: 6px !important;
	padding: 9px 12px; font-size: .9em; box-shadow: none; margin-bottom: 6px;
}

.vinv-filter-section { border-top: 1px solid var(--vinv-line); }
.vinv-filter-section summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
	font-weight: 600; font-size: .95em; padding: 13px 2px;
}
.vinv-filter-section summary::-webkit-details-marker { display: none; }
.vinv-chevron { width: 8px; height: 8px; border-right: 2px solid var(--vinv-muted); border-bottom: 2px solid var(--vinv-muted); transform: rotate(45deg); transition: transform .15s ease; }
.vinv-filter-section[open] .vinv-chevron { transform: rotate(225deg); }
.vinv-filter-body { padding: 0 2px 14px; }

.vinv-term-list { list-style: none; margin: 0; padding: 0; max-height: 232px; overflow-y: auto; }
.vinv-term-list li { margin: 0; }
.vinv-check { display: flex; align-items: center; gap: 8px; padding: 0; font-size: .9em; cursor: pointer; }
/* Flatsome restyles/shrinks checkboxes — scale ours up and give them room. */
.vinv-check input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 0 4px !important;
    transform: scale(1.4);
	accent-color: var(--vinv-accent);
}
.vinv-check-name { flex: 1; }
.vinv-check-count { color: var(--vinv-muted); font-size: .85em; }
.vinv-check.is-zero { opacity: .45; }

.vinv-range { display: flex; align-items: flex-end; gap: 8px; }
.vinv-range label { flex: 1; margin: 0; }
.vinv-range label span { display: block; font-size: .75em; font-weight: 600; color: var(--vinv-muted); margin-bottom: 3px; }
.vinv-range input, .vinv-miles-select {
	width: 100%; border: 1px solid var(--vinv-line); border-radius: 6px !important;
	padding: 7px 10px; font-size: .9em; box-shadow: none;
}
.vinv-range-sep { color: var(--vinv-muted); padding-bottom: 9px; }

/* Dual-handle range slider (Price / Year) */
.vinv-dual-slider { position: relative; height: 26px; margin-top: 12px; }
.vinv-slider-track {
	position: absolute; top: 50%; transform: translateY(-50%);
	left: 8px; right: 8px; height: 4px; border-radius: 99px; background: #dde2e8;
}
.vinv-slider-fill { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--vinv-accent); }
.vinv-dual-slider input[type="range"] {
	position: absolute; inset: 0; width: 100%; height: 26px; margin: 0; padding: 0;
	-webkit-appearance: none; appearance: none; background: transparent;
	pointer-events: none; border: 0; box-shadow: none; outline: none;
}
.vinv-dual-slider input[type="range"]::-webkit-slider-runnable-track { background: transparent; border: 0; height: 26px; }
.vinv-dual-slider input[type="range"]::-moz-range-track { background: transparent; border: 0; }
.vinv-dual-slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; pointer-events: auto;
	width: 17px; height: 17px; margin-top: 4.5px; border-radius: 50%; border: 0;
	background: var(--vinv-accent); cursor: grab; box-shadow: 0 1px 3px rgba(16, 24, 40, .35);
}
.vinv-dual-slider input[type="range"]::-moz-range-thumb {
	pointer-events: auto; width: 17px; height: 17px; border-radius: 50%; border: 0;
	background: var(--vinv-accent); cursor: grab; box-shadow: 0 1px 3px rgba(16, 24, 40, .35);
}
.vinv-dual-slider input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }

.vinv-apply { width: 100%; margin-top: 12px; }

/* ==== Toolbar =========================================================== */

.vinv-toolbar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.vinv-count { color: var(--vinv-muted); font-size: .95em; }
.vinv-toolbar-tools { display: flex; align-items: center; gap: 12px; }
.vinv-sort-select {
	border: 1px solid var(--vinv-line); border-radius: 8px !important; padding: 7px 32px 7px 12px;
	font-size: .88em; background-color: #fff; box-shadow: none; height: auto;
}

.vinv-col-switcher { display: flex; }
@media (max-width: 849px) { .vinv-col-switcher { display: none; } }
/* Square, compact toggles — override Flatsome's button min-height/line-height/padding. */
.vinv-col-switcher button {
	display: flex; gap: 2px; align-items: center; justify-content: center;
	width: 34px; height: 34px; min-width: 0; min-height: 0; line-height: 1;
	background: #fff; border: 1px solid var(--vinv-line); border-radius: 7px;
	padding: 0 !important; cursor: pointer; box-shadow: none; margin-right: 8px;
}
.vinv-col-switcher button i { width: 3px; height: 13px; background: #c3c9d2; border-radius: 1px; }
.vinv-col-switcher button.is-active { border-color: var(--vinv-accent); }
.vinv-col-switcher button.is-active i { background: var(--vinv-accent); }

/* ==== Grid + cards ====================================================== */

/* Gap tightens as columns increase: 1-2 cols 15px, 3 cols 12px, 4 cols 6px. */
.vinv-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vinv-results[data-columns="1"] .vinv-grid, .vinv-grid[data-columns="1"] { grid-template-columns: 1fr; gap: 15px; }
.vinv-results[data-columns="2"] .vinv-grid, .vinv-grid[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.vinv-results[data-columns="3"] .vinv-grid, .vinv-grid[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vinv-results[data-columns="4"] .vinv-grid, .vinv-grid[data-columns="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 1099px) {
	.vinv-results[data-columns="4"] .vinv-grid, .vinv-grid[data-columns="4"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 849px) {
	.vinv-results .vinv-grid, .vinv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 15px !important; }
}
@media (max-width: 549px) {
	.vinv-results .vinv-grid, .vinv-grid { grid-template-columns: 1fr !important; gap: 15px !important; }
}

.vinv-card-item {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--vinv-line);
	border-radius: var(--vinv-radius); overflow: hidden;
	box-shadow: var(--vinv-shadow);
	transition: box-shadow .2s ease, transform .2s ease;
}
.vinv-card-item:hover { box-shadow: var(--vinv-shadow-lg); transform: translateY(-2px); }

.vinv-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef0f3; }
.vinv-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.vinv-card-img--hover { opacity: 0; }
.vinv-card-item:hover .vinv-card-img--hover { opacity: 1; }
.vinv-card-noimg { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3em; opacity: .35; }

.vinv-card-flag {
	position: absolute; top: 12px; left: -34px; transform: rotate(-45deg);
	background: var(--vinv-ink); color: #fff; font-size: .68em; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; padding: 5px 40px;
}
.vinv-card-flag--sold { background: #b91c1c; }
.vinv-card-flag--pending, .vinv-card-flag--sale-pending { background: #d97706; }

.vinv-card-body { padding: 16px 18px 6px; flex: 1; }
.vinv-card-stock { font-size: .75em; color: var(--vinv-muted); letter-spacing: .02em; margin-bottom: 4px; }
.vinv-card-title { margin: 0 0 6px; font-size: 1.05em; line-height: 1.3; }
.vinv-card-title a { color: var(--vinv-ink); }
.vinv-card-title a:hover { color: var(--vinv-accent); }
.vinv-card-sub { display: flex; justify-content: space-between; gap: 10px; color: var(--vinv-muted); font-size: .85em; border-bottom: 1px solid var(--vinv-line); padding-bottom: 12px; }
.vinv-card-trim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vinv-card-miles { white-space: nowrap; }
.vinv-card-price { font-size: 1.45em; font-weight: 700; padding: 12px 0 8px; color: var(--vinv-price-color, var(--vinv-ink)); }
.vinv-card-actions { padding: 0 18px 18px; }
.vinv-card-actions .vinv-btn { width: 100%; }

/* ==== Buttons =========================================================== */

.vinv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border-radius: 99px; padding: 10px 20px; font-size: .88em; font-weight: 600;
	border: 1px solid var(--vinv-line); background: #fff; color: var(--vinv-ink);
	cursor: pointer; text-decoration: none; line-height: 1.2; transition: all .15s ease;
	box-shadow: none; text-transform: none; letter-spacing: 0;
}
.vinv-btn:hover { border-color: #cbd5e1; }
.vinv-btn-primary { background: var(--vinv-accent); border-color: var(--vinv-accent); color: #fff; }
.vinv-btn-primary:hover { filter: brightness(1.12); color: #fff; }
.vinv-btn-outline { border-color: var(--vinv-accent); color: var(--vinv-accent); }
.vinv-btn[disabled] { opacity: .6; pointer-events: none; }

/* ==== Pagination ======================================================== */

.vinv-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.vinv-page-link {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding: 0 8px; border-radius: 8px;
	border: 1px solid var(--vinv-line); background: #fff; color: var(--vinv-ink);
	font-weight: 600; font-size: .9em; text-decoration: none;
}
.vinv-page-link:hover { border-color: var(--vinv-accent); color: var(--vinv-accent); }
.vinv-page-link.is-current { background: var(--vinv-accent); border-color: var(--vinv-accent); color: #fff; pointer-events: none; }
.vinv-page-dots { color: var(--vinv-muted); padding: 0 2px; }

.vinv-empty { text-align: center; padding: 60px 20px; background: var(--vinv-bg); border-radius: var(--vinv-radius); }
.vinv-empty p { margin-bottom: 16px; color: var(--vinv-muted); }

.vinv-results.is-loading { opacity: .45; pointer-events: none; transition: opacity .15s ease; }

/* ==== Single vehicle ==================================================== */

.vinv-single { padding-top: 22px; padding-bottom: 50px; }

.vinv-breadcrumbs { font-size: .85em; color: var(--vinv-muted); margin-bottom: 18px; }
.vinv-breadcrumbs a { color: var(--vinv-muted); }
.vinv-breadcrumbs a:hover { color: var(--vinv-accent); }
.vinv-crumb-sep { margin: 0 7px; opacity: .6; }
.vinv-crumb-current { color: var(--vinv-ink); font-weight: 600; }

.vinv-single-top {
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 36px; align-items: start; margin-bottom: 36px;
}
@media (max-width: 849px) { .vinv-single-top { grid-template-columns: 1fr; } }

.vinv-title { font-size: 1.75em; margin: 0 0 10px; line-height: 1.2; }

.vinv-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.vinv-badge {
	display: inline-block; padding: 4px 12px; border-radius: 99px;
	background: var(--vinv-bg); border: 1px solid var(--vinv-line);
	font-size: .75em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.vinv-badge--sold { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.vinv-badge--clean, .vinv-badge--available { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }

.vinv-price { font-weight: 800; color: var(--vinv-price-color, var(--vinv-ink)); }
.vinv-price--large { font-size: 2.1em; }
.vinv-price--medium { font-size: 1.5em; }
.vinv-price--small { font-size: 1.15em; }

.vinv-single-idline { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0 16px; font-size: .85em; color: var(--vinv-muted); }
.vinv-meta-label { font-weight: 700; }

.vinv-phone-btn { margin-bottom: 16px; }

/* Gallery */
.vinv-gallery-main {
	position: relative; border-radius: var(--vinv-radius); overflow: hidden;
	background: #0f1115; aspect-ratio: 4 / 3;
}
.vinv-gallery-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vinv-gallery--empty {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 4 / 3; background: var(--vinv-bg); border-radius: var(--vinv-radius);
	font-size: 4em; opacity: .35;
}
.vinv-gallery-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border-radius: 50%;
	background: rgba(255, 255, 255, .92); border: 0; cursor: pointer;
	font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center;
	box-shadow: var(--vinv-shadow); color: var(--vinv-ink); padding: 0;
}
.vinv-gallery-nav:hover { background: #fff; }
.vinv-gallery-prev { left: 14px; }
.vinv-gallery-next { right: 14px; }
.vinv-gallery-counter {
	position: absolute; bottom: 12px; left: 12px;
	background: rgba(15, 17, 21, .75); color: #fff;
	font-size: .78em; font-weight: 600; padding: 4px 10px; border-radius: 6px;
}
.vinv-gallery-expand {
	position: absolute; top: 12px; right: 12px;
	width: 36px; height: 36px; border-radius: 8px; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .92); color: var(--vinv-ink);
	display: flex; align-items: center; justify-content: center; padding: 0;
}
.vinv-gallery-thumbs {
	display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px;
	scrollbar-width: thin;
}
.vinv-gallery-thumb {
	flex: 0 0 84px; aspect-ratio: 4 / 3; border-radius: 7px; overflow: hidden;
	border: 2px solid transparent; padding: 0; cursor: pointer; background: #eef0f3;
}
.vinv-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vinv-gallery-thumb.is-active { border-color: var(--vinv-accent); }

/* Lightbox */
.vinv-lightbox {
	position: fixed; inset: 0; z-index: 99999; background: rgba(10, 12, 16, .95);
	display: flex; align-items: center; justify-content: center;
}
.vinv-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.vinv-lightbox .vinv-gallery-nav { background: rgba(255, 255, 255, .18); color: #fff; }
.vinv-lightbox-close {
	position: absolute; top: 18px; right: 22px; background: none; border: 0;
	color: #fff; font-size: 30px; cursor: pointer; line-height: 1; padding: 4px;
}
.vinv-lightbox .vinv-gallery-counter { left: 50%; transform: translateX(-50%); bottom: 18px; }

/* Specs */
.vinv-specs { margin-bottom: 34px; }
.vinv-specs-title, .vinv-features-title, .vinv-related-title, .vinv-lead-title { font-size: 1.25em; margin: 0 0 14px; }
.vinv-specs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin: 0; }
.vinv-specs-grid[data-columns="1"] { grid-template-columns: 1fr; }
.vinv-specs-grid[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 549px) { .vinv-specs-grid { grid-template-columns: 1fr !important; } }
.vinv-spec {
	display: flex; justify-content: space-between; gap: 14px;
	padding: 9px 2px; border-bottom: 1px solid var(--vinv-line); font-size: .92em;
}
.vinv-spec dt { font-weight: 600; color: var(--vinv-muted); margin: 0; }
.vinv-spec dd { margin: 0; text-align: right; }

.vinv-description { margin-bottom: 34px; line-height: 1.7; }

.vinv-features { margin-bottom: 34px; }
.vinv-features-list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 22px;
}
.vinv-features-list[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vinv-features-list[data-columns="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 849px) { .vinv-features-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 549px) { .vinv-features-list { grid-template-columns: 1fr !important; } }
.vinv-features-list li { position: relative; padding-left: 24px; font-size: .9em; margin: 0; }
.vinv-features-list li::before {
	content: "✓"; position: absolute; left: 0; top: 0;
	color: var(--vinv-accent); font-weight: 800;
}

/* Lead form */
.vinv-lead-form-wrap {
	background: var(--vinv-bg); border: 1px solid var(--vinv-line);
	border-radius: var(--vinv-radius); padding: 18px;
}
.vinv-lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.vinv-lead-wide { grid-column: 1 / -1; }
.vinv-lead-grid input::placeholder, .vinv-lead-grid textarea::placeholder { color: #8a919c; opacity: 1; }
.vinv-lead-grid input, .vinv-lead-grid textarea {
	width: 100%; border: 1px solid var(--vinv-line); border-radius: 6px !important;
	padding: 9px 12px; font-size: .9em; background: #fff; box-shadow: none; margin: 0;
}
.vinv-lead-submit { width: 100%; }
.vinv-lead-status { margin: 10px 0 0; font-size: .88em; font-weight: 600; }
.vinv-lead-status.is-success { color: #047857; }
.vinv-lead-status.is-error { color: #b91c1c; }
.vinv-hp { position: absolute !important; left: -9999px !important; }

/* Lead modal (archive "Check availability") */
.vinv-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.vinv-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 17, 21, .6); }
.vinv-modal-panel {
	position: relative; background: #f7f8f9; border-radius: 14px;
	box-shadow: var(--vinv-shadow-lg); width: 100%; max-width: 480px;
	max-height: 90vh; overflow-y: auto; padding: 26px;
}
.vinv-modal-close {
	position: absolute; top: 12px; right: 14px; background: none; border: 0;
	font-size: 22px; line-height: 1; cursor: pointer; color: var(--vinv-muted); padding: 4px;
}
.vinv-modal-vehicle { font-size: .9em; color: var(--vinv-muted); margin: -6px 0 14px; }

/* Related */
.vinv-related { margin-top: 10px; }

/* ==== Search widget ([vehicle_search]) ================================= */

/* Simple: hero-friendly rounded pill bar */
.vinv-search--simple {
	position: relative; max-width: 680px; margin: 0 auto;
}
.vinv-search--simple .vinv-search-icon {
	position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
	color: var(--vinv-muted); pointer-events: none;
}
.vinv-search--simple input[type="search"] {
	width: 100%; border: 0; border-radius: 99px !important;
	padding: 17px 24px 17px 50px; font-size: 1em; color: var(--vinv-ink);
	background: #fff; box-shadow: var(--vinv-shadow-lg); margin: 0;
}
.vinv-search--simple input[type="search"]:focus {
	outline: 2px solid var(--vinv-accent); outline-offset: 0;
}
.vinv-search--simple .vinv-search-btn {
	position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
	padding: 10px 22px;
}

/* Advanced: dropdown panel */
.vinv-search--advanced { max-width: 1080px; margin: 0 auto; }
.vinv-search-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px;
}
.vinv-search-field {
	position: relative; background: #fff; border-radius: 8px;
	box-shadow: var(--vinv-shadow); border: 1px solid var(--vinv-line);
}
.vinv-search-field select {
	width: 100%; border: 0 !important; background: transparent; box-shadow: none;
	padding: 14px 40px 14px 16px; font-size: .92em; font-weight: 600; color: var(--vinv-ink);
	-webkit-appearance: none; appearance: none; cursor: pointer; height: auto; margin: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f2430' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center;
}
.vinv-search-field--text .vinv-search-icon {
	position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
	color: var(--vinv-muted); pointer-events: none;
}
.vinv-search-field--text input[type="search"] {
	width: 100%; border: 0 !important; background: transparent; box-shadow: none;
	padding: 26px 14px 26px 42px; font-size: .92em; color: var(--vinv-ink); margin: 0;
}
.vinv-search-field--text input[type="search"]:focus,
.vinv-search-field select:focus { outline: none; }
.vinv-search-field:focus-within { border-color: var(--vinv-accent); }

.vinv-search-actions { display: flex; justify-content: center; margin-top: 16px; }
.vinv-search-submit { padding: 12px 28px; font-size: .95em; }

@media (max-width: 549px) {
	.vinv-search-grid { grid-template-columns: 1fr; }
}

/* ==== Saved-search alerts =============================================== */

.vinv-save-search { width: 100%; margin-bottom: 12px; }
.vinv-save-search svg { flex: 0 0 auto; }

.vinv-empty-sub { color: var(--vinv-muted); font-size: .92em; max-width: 420px; margin: 0 auto 18px; }
.vinv-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.vinv-empty-actions .vinv-save-search { width: auto; margin-bottom: 0; }

.vinv-banner {
	background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857;
	border-radius: 8px; padding: 13px 18px; font-weight: 600; font-size: .92em;
	margin: 18px 0;
}
