/* Result grid: 1 col < 768, 2 col 768-1023, 3 col >= 1024.
	   Bootstrap classes handle the first two; this overrides at 1024+. */
@media (min-width: 1024px) {
	.find-car-shell {
		flex: 0 0 auto;
		width: 33.3333%;
		max-width: 33.3333%;
	}
}
/* Find-a-car result cards (redesigned per mockup) */
.find-a-car-result {
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: none;
	transition:
		box-shadow 0.2s ease,
		transform 0.15s ease;
}
.find-a-car-result:hover {
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}
.fac-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f3f4f6;
}
.fac-media__placeholder,
.fac-media__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fac-media__placeholder {
	z-index: 1;
}
.fac-media__image {
	z-index: 2;
}
.fac-media__pills {
	position: absolute;
	left: 10px;
	bottom: 10px;
	display: flex;
	gap: 6px;
	z-index: 3;
	flex-wrap: wrap;
	max-width: calc(100% - 110px);
}
.fac-media__status {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 3;
}
.fac-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	background: #ffffff;
	color: var(--Neutral-1000, #0e103d);
}
.fac-pill--preferred {
	background: var(--Neutral-1000, #0e103d);
	color: #ffffff;
}
.fac-pill--preferred i {
	color: #ffd166;
}
.fac-pill--reviews i {
	color: #f59e0b;
}
.fac-pill--reviews .fac-pill__sep {
	color: var(--Neutral-500, #94a3b8);
	font-weight: 400;
}
.fac-pill--new {
	background: #0e103d;
	color: #ffffff;
}
.fac-pill--recent {
	background: #0ea5e9;
	color: #ffffff;
}
.fac-pill--reduced-fee {
	background: #0d7a32;
	color: #ffffff;
}
.fac-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	background: #ffffff;
	color: var(--Neutral-1000, #0e103d);
}
.fac-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #94a3b8;
}
.fac-status--available .fac-dot {
	background: #10b981;
}
.fac-status--unavailable .fac-dot {
	background: #ef4444;
}
.fac-status--warning .fac-dot {
	background: #f59e0b;
}
.fac-body {
	padding: 14px 16px 16px;
}
.fac-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}
.fac-head__left {
	flex: 1 1 auto;
	min-width: 0;
}
.fac-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--Neutral-1000, #0e103d);
	line-height: 1.2;
}
.fac-price {
	text-align: right;
	flex: 0 0 auto;
}
.fac-price__amount {
	font-size: 16px;
	font-weight: 700;
	color: var(--Neutral-1000, #0e103d);
	line-height: 1.2;
}
.fac-price__period {
	font-size: 12px;
	color: var(--Neutral-500, #6b6b7a);
	line-height: 1.2;
	margin-top: 4px;
}
.fac-meta {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.2;
	color: var(--Neutral-500, #6b6b7a);
}
/* .btn-dot-sm / .btn-dot-lg: force padding/sizing so the global btn padding doesn't
	   stretch them. Icon stays centered via flex. */
.btn.btn-dot-sm,
.btn.btn-dot-lg {
	padding: 0 !important;
	min-width: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}
.btn.btn-dot-sm {
	width: 32px !important;
	height: 32px !important;
	font-size: 13px;
}
.btn.btn-dot-lg {
	width: 40px !important;
	height: 40px !important;
	font-size: 18px;
}
/* List/Map toggle: filled state when active (overrides the generated
	   base rule that forces transparent bg with !important). */
#search-results-block .btn-check:checked + .btn-outline-primary,
#search-results-block .btn-check:active + .btn-outline-primary {
	background-color: var(--Primary, #a61d3c) !important;
	color: #fff !important;
	border-color: var(--Primary, #a61d3c) !important;
}
div.gm-style-iw {
	min-width: 300px !important;
	overflow-x: hidden;
	padding: 3px;
}

/* Search results bar: below the nav, search/filter buttons in the bar */
/* Block spans from viewport top (y=0) with a solid white background,
	   so anything behind the fixed header (card hero placeholders, etc.)
	   is masked instead of bleeding through. The actual pill/filters row
	   sits inside .search-results-shell at the original top offset. */
#search-results-block {
	top: 0 !important;
	margin-top: 0 !important;
	max-height: none !important;
	overflow: visible !important;
	white-space: normal !important;
	padding: 0 !important;
	border-bottom: 1px solid #eee;
	background: #fff !important;
	z-index: 1025;
}
#search-results-block .search-results-inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	min-height: 48px;
}
#search-results-block #car-search-btn {
	position: static !important;
	transform: none !important;
	left: auto !important;
	top: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 40px !important;
	max-width: none !important;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}
#car-search-popup {
	margin-top: 0 !important;
}
.main-panel.has-search-results-bar > .content {
	padding-top: calc(var(--topmargin) + 55px) !important;
}
/* .search-results-shell holds the actual pill/filters row inside the
	   full-width white backdrop. Margin-top pushes it to its visual position
	   (where the old top:Xpx used to live). */
.search-results-shell {
	margin-top: calc(var(--topmargin) - 9px);
	padding: 12px 16px;
}
/* Desktop (>1000px) nudges the search bar down away from the breadcrumb
	   header — tablet/mobile keep the tighter layout. Bar sits at
	   --topmargin + 16px and is ~72-80px tall after the pill restyle; content
	   padding-top must leave extra cushion so the first card can't bleed up
	   into the strip just below the bar. */
@media (min-width: 1001px) {
	.search-results-shell {
		margin-top: calc(var(--topmargin) + 16px);
	}
	.main-panel.has-search-results-bar > .content {
		padding-top: calc(var(--topmargin) + 112px) !important;
	}
}
/* Belt-and-braces: paint the content area white so if any card does
	   bleed up past the padding (transform/animation during bounce-in),
	   the backdrop stays clean instead of revealing pink hero placeholders. */
.main-panel.has-search-results-bar > .content {
	background: #fff;
}
.main-panel.has-search-results-bar section.serach-tabls {
	margin-top: 8px;
	margin-bottom: 25px;
}

/* Store page mobile adjustments: breathing room between the logo + title
	   stack, and center the Message owner button with space below it. */
@media (max-width: 767.98px) {
	.store-header .col-sm-9 {
		margin-top: 16px;
		text-align: center;
	}
	.store-header .store-chat-trigger,
	.store-header .must-finish-profile,
	.store-header .show-login-modal-btn {
		display: block !important;
		margin-left: auto !important;
		margin-right: auto !important;
		margin-bottom: 20px !important;
		width: fit-content;
	}
}

/* Map view: drop the .serach-tabls section margin so the map sits flush
	   below the fixed search bar (no white strip from the 8px top margin). */
body.view-map-active .main-panel.has-search-results-bar section.serach-tabls {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
/* Store pages render the owner's location cards above the car list via
	   .store-header. On Map view those cards duplicate the pin info and push
	   the map down — hide them so the map takes the full height. */
body.view-map-active .store-header {
	display: none !important;
}
@media (max-width: 767.98px) {
	body.view-map-active .main-panel.has-search-results-bar > .content {
		/* Bar on mobile is 3 stacked rows (nav + location/filter + count/toggle)
		   ~170px tall. Previous +100px let the map slide under the bar — the
		   zoom + button was behind the toggle. */
		padding-top: calc(var(--topmargin) + 130px) !important;
	}
}
#search-results-block .btn-group {
	width: auto !important;
	float: none !important;
	flex: 0 0 auto;
}

#search-results-block #car-search-btn {
	padding: 5px !important;
}

/* Location pill — big rounded button on the left that shows the current
	   location + radius and opens the unified search modal when tapped. */
#search-results-block #car-search-btn.search-location-pill,
.search-location-pill {
	display: flex !important;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0 !important;
	max-width: 300px !important;
	width: 100%;
	padding: 14px 16px;
	background: #f6f6f9;
	border: 1px solid transparent;
	border-radius: 14px;
	color: var(--Neutral-1000, #0e103d);
	cursor: pointer;
	text-align: left;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease;
}
.search-location-pill:hover,
.search-location-pill:focus-visible {
	background: #eeeef4;
}
.search-location-pill__icon {
	flex: 0 0 auto;
	color: var(--Primary, #a61d3c);
	font-size: 16px;
}
.search-location-pill__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}
.search-location-pill__city {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--Neutral-1000, #0e103d);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.search-location-pill__radius {
	font-size: 12px;
	color: var(--Neutral-500, #3f4064);
	line-height: 1.2;
}
.search-location-pill__chevron {
	flex: 0 0 auto;
	color: var(--Neutral-500, #3f4064);
	font-size: 12px;
}

/* Filters pill — outlined primary button that opens the same modal. */
.search-filters-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 10px 18px;
	background: #fff;
	border: 1.5px solid var(--Primary, #a61d3c);
	border-radius: 999px;
	color: var(--Primary, #a61d3c);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		color 0.15s ease;
}
.search-filters-pill:hover,
.search-filters-pill:focus-visible {
	background: var(--Primary, #a61d3c);
	color: #fff;
}
.search-filters-pill__icon {
	font-size: 13px;
}
/* "N vehicles found" text — right-aligned on wide screens. */
#search-results-text {
	margin: 0 !important;
	font-size: 13px;
	color: var(--Neutral-500, #3f4064);
	white-space: nowrap;
}
@media (max-width: 767.98px) {
	.search-location-pill {
		max-width: none;
		padding: 12px 14px;
		gap: 8px;
	}
	.search-location-pill__city {
		font-size: 14px;
	}
	.search-location-pill__radius {
		font-size: 11px;
	}
	.search-filters-pill {
		padding: 12px 14px;
		font-size: 13px;
		gap: 0;
	}
	.search-filters-pill span {
		display: none;
	}
	.search-filters-pill__icon {
		margin: 0;
	}
}
#search-results-block .btn-group > .btn {
	min-width: 72px !important;
	font-size: 0.875rem !important;
	line-height: 1.2 !important;
	width: auto !important;
	padding: 8px 14px !important;
	/* Icon sits off-baseline by default — flex-center so <i> and text align. */
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px;
}
#search-results-block .btn-group > .btn > i {
	/* Belt-and-suspenders: FA icon's internal line-box can still nudge
	   half a pixel. Reset line-height for a crisp vertical center. */
	line-height: 1 !important;
	display: inline-flex;
	align-items: center;
}
/* XL (≥1200px): widen the List / Map pills so they read as primary mode
   controls rather than squeezed bootstrap buttons. */
@media (min-width: 1200px) {
	#search-results-block .btn-group > .btn {
		min-width: 150px !important;
		padding: 10px 40px !important;
		font-size: 0.95rem !important;
	}
}
#search-results-block .btn-dot-lg,
#car-search-popup .btn-dot-lg {
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	max-width: 40px !important;
	padding: 0 !important;
	border-radius: 50% !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1 !important;
	font-size: 18px !important;
}
#search-results-text {
	flex: 1 1 160px;
	min-width: 0;
	max-height: none !important;
	min-height: 0 !important;
	overflow: visible !important;
	white-space: normal !important;
	font-size: 0.95rem !important;
	line-height: 1.35 !important;
	text-align: left !important;
	padding: 0 !important;
	margin: 0 !important;
}
#search-results-text .small {
	display: block;
	margin-top: 2px;
	font-size: 0.8rem;
	line-height: 1.3;
	color: #666;
}

@media (max-width: 767.98px) {
	#search-results-block {
		padding: 10px 12px !important;
	}
	/* Mobile: flex-wrap instead of grid to dodge the specificity fight
		   with consolidated.css's legacy 3-col grid. Row 1 = pill + filter,
		   row 2 = count + toggle (both wrap to new row via flex-basis: 100%). */
	body #search-results-block .search-results-inner {
		display: flex !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 10px !important;
		min-height: 0 !important;
	}
	body #search-results-block #car-search-btn.search-location-pill {
		flex: 1 1 100px !important;
		order: 1 !important;
		max-width: none !important;
		width: auto !important;
	}
	body #search-results-block .search-filters-pill {
		flex: 0 0 auto !important;
		order: 2 !important;
		width: auto !important;
	}
	body #search-results-block #search-results-text {
		flex: 1 1 100px !important;
		order: 4 !important;
		text-align: left !important;
	}
	body #search-results-block .btn-group {
		flex: 0 0 auto !important;
		order: 5 !important;
		justify-content: flex-end !important;
	}
	body #search-results-block .search-results-inner::after {
		/* Force row break between row 1 (pill + filter) and row 2
			   (count + toggle) by adding a full-width zero-height flex item. */
		content: "";
		flex: 1 0 100% !important;
		height: 0 !important;
		order: 3 !important;
		margin: 0 !important;
	}
	#search-results-text {
		grid-area: count;
		flex: none !important;
		font-size: 0.82rem !important;
		line-height: 1.25 !important;
		text-align: left;
	}
	#search-results-block .btn-group {
		grid-area: mode;
		justify-self: end;
	}
	#search-results-block .btn-group > .btn {
		padding: 6px 12px !important;
		font-size: 0.8rem !important;
	}
	.main-panel.has-search-results-bar > .content {
		padding-top: calc(var(--topmargin) + 110px) !important;
	}
}

/* Map view: hide the footer + bottom summary so the map runs to the
	   viewport bottom. Toggled on <body> by showMap() in tripcity-vehicle-search.js;
	   #search_map's height is also set in JS (sizeMapToViewport). */
body.view-map-active .site-footer,
body.view-map-active #search-map-tab ~ div {
	display: none !important;
}
body.view-map-active div#search_map {
	border-radius: 0;
	margin: 0;
	width: 100%;
	border-top: 1px solid var(--Neutral-200, #f3f3f6);
	border-bottom: 1px solid var(--Neutral-200, #f3f3f6);
}
/* Force Google's built-in controls (zoom +/- in top-left) to stay visible.
   Newer Maps JS versions fade controls out until the map is hovered/interacted.
   On mobile they stayed visible; on desktop they were vanishing once painted. */
body.view-map-active .gm-bundled-control,
body.view-map-active .gm-bundled-control-on-bottom,
body.view-map-active .gm-style-mtc,
body.view-map-active div#search_map .gmnoprint {
	opacity: 1 !important;
	visibility: visible !important;
}
/* Mobile: the top of the zoom control was getting clipped by the map's
   overflow:hidden edge. Target only the bundled control wrapper — a
   broader `.gmnoprint` selector hits Google's interaction panes and
   breaks pan/zoom gestures. */
@media (max-width: 767.98px) {
	body.view-map-active div#search_map .gm-bundled-control {
		margin-top: 12px !important;
	}
}
/* In Map view, zero the Bootstrap column/container padding so the map
   runs edge-to-edge — but skip .main-panel > .content on desktop because
   consolidated.css uses its 260px left padding to clear the fixed sidebar.
   Zeroing it there lets the map (and its zoom control) slide under the
   sidebar. Mobile has no sidebar, so the full reset applies below. */
body.view-map-active #search-map-tab,
body.view-map-active #search-map-tab > #search_map,
body.view-map-active .search-results-pane,
body.view-map-active .search-results-pane > .col-sm-12,
body.view-map-active section.serach-tabls > .container-fluid,
body.view-map-active section.serach-tabls > .container-fluid > .row,
body.view-map-active
	section.serach-tabls
	> .container-fluid
	> .row
	> .col-sm-12 {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
/* On desktop, keep the 260px left padding on .main-panel > .content so
   the map starts right of the sidebar (not under it). Zero the right
   padding so the map hits the viewport right edge. */
@media (min-width: 991px) {
	body.view-map-active .main-panel > .content,
	body.view-map-active .main-panel > .content.fade-in-fast {
		padding-right: 0 !important;
	}
}
/* Mobile: no sidebar — zero everything on content so the map edge-to-edges. */
@media (max-width: 990.98px) {
	body.view-map-active .main-panel > .content,
	body.view-map-active .main-panel > .content.fade-in-fast {
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}
/* Lock body scroll — the map fills the remaining viewport and the user
	   pans inside it; the tiny residual scroll came from flex/min-height
	   math on .main-panel > .content after the footer was hidden. */
body.view-map-active {
	overflow: hidden;
}

/* Bouncy entry — tagged by filter_results() in tripcity-vehicle-search.js
	   when a card transitions from hidden → shown. Spring-ish cubic-bezier
	   with an overshoot gives it the playful feel. */
.find-car-shell.is-bounce-in {
	animation: tc-card-bounce-in 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes tc-card-bounce-in {
	0% {
		opacity: 0;
		transform: translateY(16px) scale(0.96);
	}
	100% {
		opacity: 1;
		transform: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.find-car-shell.is-bounce-in {
		animation: none;
	}
}

/* Empty-state when no cars match the active filters — same look as the
	   partner listings page (.listings-v2__no-results in partner-listings.css). */
.search-no-results {
	padding: 48px 20px;
	text-align: center;
	color: #6b7280;
}
.search-no-results__icon {
	font-size: 36px;
	color: #d1d5db;
	margin-bottom: 12px;
}
.search-no-results__title {
	font-size: 18px;
	font-weight: 700;
	color: #1f2340;
	margin-bottom: 4px;
}
.search-no-results__desc {
	font-size: 14px;
	margin-bottom: 20px;
}
.search-no-results__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: #fff;
	border: 1px solid var(--Primary, #a61d3c);
	border-radius: 999px;
	color: var(--Primary, #a61d3c);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		color 0.15s ease;
}
.search-no-results__btn:hover,
.search-no-results__btn:focus {
	background: var(--Primary, #a61d3c);
	color: #fff;
}

/* Rental search popover — restyle of the inline #car-search-popup panel.
	   Stays in its existing DOM position (opened via showSearch() from the
	   magnifier in the search-results bar); just visually redesigned. */
/* Date picker popovers (bootstrap-datepicker + litepicker) float via
	   .popover — ensure they render ABOVE the full-screen search modal
	   (z-index: 2000). Otherwise the calendar opens behind the modal and
	   the renter can't click any date. */
.popover.bs-popover-auto,
.popover.bs-popover-bottom,
.popover.bs-popover-top,
.litepicker-popover-class {
	z-index: 2100 !important;
}
.litepicker {
	z-index: 2100 !important;
}

/* Full-screen on all widths — fixed, flex column so the body scrolls
	   while header + "Search cars" footer stay pinned. !important beats
	   consolidated.css which caps #car-search-popup at max-width: 280px. */
#car-search-popup.search-popover {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 100dvh !important;
	max-height: 100dvh !important;
	background: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 28px 32px 0 !important;
	margin: 0 !important;
	transform: none !important;
	display: flex !important;
	flex-direction: column;
	z-index: 2000;
	opacity: 1 !important;
}
.search-popover__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding-bottom: 8px;
}
.search-popover__footer {
	border-top: 1px solid #eef1f3;
	margin-top: auto;
	padding: 18px 0 max(18px, calc(18px + env(safe-area-inset-bottom)));
}
.search-popover__footer .search-popover__cta {
	margin-top: 0;
}
/* Unified modal: Trip details + Vehicle preferences. 1-col on narrow,
	   2-col side-by-side at ≥768px. Columns scroll together inside __body. */
.search-popover__columns {
	display: grid;
	grid-template-columns: 1fr;
	/* Match the within-section 16px vertical rhythm so there\'s no visible
		   extra space between "Trip details" and "Vehicle preferences". */
	gap: 16px;
}
@media (min-width: 768px) {
	.search-popover__columns {
		grid-template-columns: 1fr 1fr;
		/* On desktop the columns sit side-by-side so this gap is horizontal
			   — a wider gap reads better between two vertical columns. */
		gap: 40px;
	}
}
/* Footer becomes a two-button row: Reset (left, text link) + CTA (right). */
.search-popover__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.search-popover__reset {
	background: transparent;
	border: 0;
	color: var(--Primary, #a61d3c);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	padding: 10px 4px;
}
.search-popover__reset:hover {
	color: #8a1731;
}
.search-popover__footer .search-popover__cta {
	display: inline-flex;
	width: auto;
	min-width: 180px;
	align-items: center;
	justify-content: center;
}
#car-search-popup.search-popover.d-none {
	display: none !important;
}
.search-popover__close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: transparent;
	border: 0;
	color: var(--Primary, #a61d3c);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}
.search-popover__close:hover {
	color: #8a1731;
}
.search-popover__header {
	margin-bottom: 18px;
	padding-right: 32px;
}
.search-popover__title {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 800;
	color: var(--Neutral-1000, #0e103d);
	letter-spacing: -0.01em;
}
.search-popover__subtitle {
	margin: 0;
	font-size: 15px;
	color: var(--Neutral-500, #3f4064);
}
/* Force each field row to its own line — consolidated.css sets
	   .form-row-entry to inline-block which flows them horizontally. */
#car-search-popup.search-popover .form-row-entry {
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
	margin-bottom: 12px !important;
}
/* Width-modifier classes (.short/.medium/.long) on .float-container shrink
	   fields in other contexts; here the field should fill the row. */
#car-search-popup .float-container,
#car-search-popup .float-container.long,
#car-search-popup .float-container.medium,
#car-search-popup .float-container.short,
#car-search-popup .float-select-container,
#car-search-popup .float-select-container.long,
#car-search-popup .float-select-container.medium,
#car-search-popup .float-select-container.short {
	width: 100% !important;
	max-width: none !important;
}

/* --- Field restyle: static labels above the input, rounded boxes --- */
/* Kill the float-label animation (label always sits above the input). */
/* Focus effect for the location input only — soft expanding ring in
	   primary red, no browser text-highlight. Applies on both focus from
	   click and from focus() in JS (tapping the location pill). */
#car-search-popup #s_city {
	transition:
		border-color 0.2s ease,
		box-shadow 0.3s ease;
}
#car-search-popup #s_city:focus,
#car-search-popup #s_city:focus-visible {
	outline: 0 !important;
	border-color: var(--Primary, #a61d3c) !important;
	box-shadow: 0 0 0 4px rgba(166, 29, 60, 0.15) !important;
	animation: tc-city-focus-pulse 0.5s ease-out;
}
@keyframes tc-city-focus-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(166, 29, 60, 0.35);
	}
	100% {
		box-shadow: 0 0 0 4px rgba(166, 29, 60, 0.15);
	}
}
/* Clear-X button: only the City field has one — hide stray btn-icons
	   emitted by other helpers (datepicker, etc.) and style the one that
	   sits inside the long .float-container that wraps #s_city. */
#car-search-popup .float-container .btn-icon {
	display: none;
}
/* Anchor to the bottom-right of the .float-container so it tracks the
	   input (which sits under the static label) at any container height —
	   fixes the drift at tall mobile widths. */
#car-search-popup .float-container.long .btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	right: 10px;
	bottom: 10px;
	top: auto;
	transform: none;
	width: 28px;
	height: 28px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--Primary, #a61d3c) !important;
}
#car-search-popup .float-container {
	position: relative !important;
}

/* Split the makeDateTime input-group (date+time) into a 2-column row. */
#car-search-popup .input-group {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	align-items: stretch;
}
#car-search-popup .input-group > * {
	width: auto !important;
}
#car-search-popup .no-right-border-radius,
#car-search-popup .no-left-border-radius {
	border-radius: 10px !important;
}
.search-popover__cta {
	display: block;
	width: 100%;
	padding: 14px 20px;
	background: var(--Primary, #a61d3c);
	border: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.search-popover__cta:hover {
	background: #8a1731;
}
@media (max-width: 575.98px) {
	#car-search-popup.search-popover {
		padding: 24px 20px 0;
	}
	.search-popover__title {
		font-size: 20px;
	}
	.search-popover__subtitle {
		font-size: 14px;
	}
}
/* Use 16px between blocks and 8px between a section label and its fields. */
.search-popover__section > * {
	margin: 0;
}
.search-popover__section > * + * {
	margin-top: 16px;
}
.search-popover__section > .filters-popover__section-label + * {
	margin-top: 8px;
}
.filters-popover__section-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--Neutral-1000, #0e103d);
}
.filters-popover__grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.filters-popover__checks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 16px;
}
/* 768-899px: the modal goes 2-column but each column is still too narrow
	   to fit "Dropoff time not met" in two sub-columns. Collapse to 1 col
	   just in this range. */
@media (min-width: 768px) and (max-width: 899px) {
	.filters-popover__checks {
		grid-template-columns: 1fr;
	}
}
.filters-popover__checks > div {
	display: flex;
	align-items: center;
	gap: 10px;
}
.filters-popover__checks input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 1.5px solid #b7b7c4;
	border-radius: 5px;
	background: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease;
}
.filters-popover__checks input[type="checkbox"]:checked {
	background-color: var(--Primary, #a61d3c);
	border-color: var(--Primary, #a61d3c);
	/* Inline SVG checkmark — Safari doesn't render ::after on form
		   controls reliably, so we use a background image instead. */
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3.5 8.5l3 3 6-6.5' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-size: 14px 14px;
	background-position: center;
	background-repeat: no-repeat;
}
.filters-popover__checks label {
	font-size: 14px;
	color: var(--Neutral-1000, #0e103d);
	cursor: pointer;
	margin: 0;
}
#car-search-popup .float-container,
#car-search-popup .float-select-container {
	position: relative !important;
	display: flex;
	flex-direction: column;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	width: 100% !important;
	max-width: none !important;
}
#car-search-popup .float-container > label,
#car-search-popup .float-select-container > label {
	pointer-events: auto !important;
	position: static !important;
	transform: none !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: var(--Neutral-1000, #0e103d) !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
	line-height: 1.2 !important;
	background: transparent !important;
	opacity: 1 !important;
}
#car-search-popup .form-control,
#car-search-popup select.select-css {
	height: auto !important;
	padding: 12px 14px !important;
	font-size: 15px !important;
	border: 1px solid #e5e7ec !important;
	border-radius: 10px !important;
	color: var(--Neutral-1000, #0e103d) !important;
	background-color: #fff !important;
	box-shadow: none !important;
}
#car-search-popup select.select-css {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 36px !important;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233F4064'><path d='M7 10l5 5 5-5z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
}

/* Vehicle-type + fuel-type pills — already styled by consolidated as
	   .vehicle-filter-pill; here they go into a 3-column grid. */
#car-search-popup #vehicle-type-filter,
#car-search-popup #fuel-type-filter {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
#car-search-popup .vehicle-filter-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border: 1px solid #e5e7ec;
	border-radius: 999px;
	font-size: 14px;
	color: var(--Neutral-1000, #0e103d);
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		background-color 0.15s ease,
		color 0.15s ease;
}
#car-search-popup .btn-check:checked + .vehicle-filter-pill {
	background: var(--Primary, #a61d3c);
	border-color: var(--Primary, #a61d3c);
	color: #fff;
}
@media (max-width: 575.98px) {
	/* Keep Min/Max price, Model year from/to, and Daily mileage / Rating
		   as 2-column rows on mobile too — stacking felt inefficient. */
	.filters-popover__grid-2 {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.filters-popover__checks {
		grid-template-columns: 1fr;
	}
	#car-search-popup #vehicle-type-filter,
	#car-search-popup #fuel-type-filter {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
