/* Shared destination picker on country and regional rental pages. */
.gnd-global-search-host { margin: 0; }
/* Thai catalogs keep one rail. Its legacy controls carry values for availability
   and booking, while the shared picker is the only visible search interface. */
html body.getndrive-visual-rebrand :is(.sch-rental-hero__form, .sch-bike-hero__filter):has(> .gnd-global-search) :is(.sch-rental-form, .sch-bike-filter, .gnd-rail-kind-switch, .gnd-rental-sheet) {
	display: none !important;
}
/* 0.3.89: the same rule by rail ID. Visual Rebrand's pinned-rail styles
   (`.sch-bike-hero__filter.is-rental-stuck .sch-bike-filter { display: grid !important }`) are more
   specific than the class rule above, so the old row and its second Find button reappeared under the
   shared form as soon as the rail stuck under the header. The mobile summary button
   (`.gnd-rental-trigger`) opened that same old row in a sheet. Both stay hidden; the old controls
   remain in the DOM as data carriers for availability, the calendar and booking requests. */
html body.getndrive-visual-rebrand :is(#rental-request, #bike-request):has(> .gnd-global-search) :is(.sch-rental-form, .sch-bike-filter, .gnd-rail-kind-switch, .gnd-rental-sheet, .gnd-rental-trigger, .gnd-rental-sheet-anchor) {
	display: none !important;
}
html body.getndrive-visual-rebrand :is(.sch-rental-hero__form, .sch-bike-hero__filter):has(> .gnd-global-search) {
	overflow: visible !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
html body.getndrive-visual-rebrand :is(.sch-rental-hero__form, .sch-bike-hero__filter) > .gnd-global-search {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d7e0ea;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 26px rgba(11, 31, 58, .14);
}
.gnd-global-search-host > .gnd-cfs-search { width: min(1440px, calc(100% - 24px)); margin: 16px auto 24px; }
.gnd-global-search { background: #fff; overflow: visible; }
.gnd-global-search-host .gnd-global-search { padding: 12px; border: 1px solid #d7e0ea; border-radius: 16px; box-shadow: 0 18px 40px rgba(11, 31, 58, .16); }
.gnd-global-search .gnd-category__home-search { background: transparent; overflow: visible; }
.gnd-global-search .gnd-ih-search { margin: 0; padding: 0; box-shadow: none; }
/* The international search script updates this live region. Keep its messages
   available to assistive technology without the large grey visual row. */
.gnd-global-search .gnd-ih-status {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.gnd-global-search .gnd-ih-search__grid {
	grid-template-columns: max-content minmax(200px, 1.55fr) minmax(0, 3fr) 124px;
	align-items: end;
	gap: 8px;
}
.gnd-global-search .gnd-global-search__label,
.gnd-global-search .gnd-ih-date__k,
.gnd-global-search .gnd-ih-time__k {
	display: block;
	min-height: 18px;
	margin-bottom: 5px;
	color: var(--ih-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}
.gnd-global-search .gnd-ih-step--what { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.gnd-global-search .gnd-ih-seg { height: 58px; }
/* 0.3.89: no separate "Transport / Destination" label row. The legend and the destination label stay
   in the markup as the controls' accessible names, visually hidden; the pick-up and return dates keep
   their own labels inside their fields. */
.gnd-global-search .gnd-global-search__label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.gnd-global-search .gnd-ih-step--what,
.gnd-global-search .gnd-ih-step--where { position: relative; }
.gnd-global-search .gnd-ih-when {
	grid-template-columns: minmax(0, 1.55fr) minmax(86px, .8fr) minmax(0, 1.55fr) minmax(86px, .8fr);
	gap: 8px;
	height: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
.gnd-global-search .gnd-ih-date,
.gnd-global-search .gnd-ih-time {
	display: flex;
	flex-direction: column;
	grid-row: auto;
	min-width: 0;
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}
.gnd-global-search .gnd-ih-date__in,
.gnd-global-search .gnd-ih-time select {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 58px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid var(--ih-line-strong);
	border-radius: 12px;
	background: #fff;
	color: var(--ih-ink);
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 600;
}
.gnd-global-search .gnd-ih-time select { cursor: pointer; }
.gnd-global-search .gnd-ih-date__in:focus,
.gnd-global-search .gnd-ih-time select:focus {
	outline: none;
	border-color: var(--ih-teal-deep);
	box-shadow: 0 0 0 3px rgba(27, 174, 159, .22);
}
.gnd-global-search .gnd-ih-search.is-enhanced .gnd-ih-when:not(.has-date) .gnd-ih-time { display: flex; }
.gnd-global-search .gnd-ih-step--go { align-self: end; }
.gnd-global-search .gnd-ih-cta { justify-content: center; padding: 0 14px; text-align: center; }
/* 0.3.89 with Visual Rebrand 0.2.10.121: dated Thai Cars result pages (no Thailand first-screen layer,
   so no `body.gnd-thai-region-cars`) pin the shared rail from 1024px. Rebrand's stuck-rail rules start at
   1180px; this is the same fixed placement for 1024-1179px, for that rail only. */
@media (min-width: 1024px) and (max-width: 1179px) {
	html body.getndrive-visual-rebrand:not(.gnd-thai-region-cars) .sch-rental-page--request #rental-request.is-rental-stuck:has(> .gnd-global-search) {
		position: fixed !important;
		top: var(--gnd-rental-sticky-top, 90px);
		left: 50%;
		z-index: 1200;
		width: var(--gnd-rental-rail-width, calc(100vw - 48px)) !important;
		max-width: calc(100vw - 48px) !important;
		margin: 0 !important;
		transform: translateX(-50%);
	}
}
@media (max-width: 1100px) {
	.gnd-global-search .gnd-ih-search__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gnd-global-search .gnd-ih-step--when { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	.gnd-global-search-host > .gnd-cfs-search { width: calc(100% - 24px); }
	.gnd-global-search .gnd-ih-search__grid { grid-template-columns: minmax(0, 1fr); }
	.gnd-global-search .gnd-ih-step--when { grid-column: auto; }
}
@media (max-width: 559px) {
	.gnd-global-search .gnd-ih-when { grid-template-columns: minmax(0, 1.6fr) minmax(90px, .8fr); }
}
@media (min-width: 1025px) {
	.gnd-global-search-host > .gnd-cfs-search { position: sticky; top: var(--gnd-pin-top, 90px); z-index: 40; }
	.gnd-global-search-host > .gnd-cfs-search.is-pinned { min-height: var(--gnd-pin-h, 0); pointer-events: none; }
	.gnd-global-search-host > .gnd-cfs-search.is-pinned .gnd-global-search { pointer-events: auto; }
	.gnd-global-search-host > .gnd-cfs-search.is-pinned { width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; }
	.gnd-preparing--guide .gnd-preparing__stage-search:has(.gnd-global-search).is-pinned { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: 0; }
	.gnd-cfs-host .gnd-cfs-search:has(.gnd-global-search).is-pinned { width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; }
	.gnd-cfs-host .gnd-cfs-search.is-pinned .gnd-global-search { border-radius: 0; border-inline: 0; padding: 6px clamp(16px, 3vw, 48px); }
	.gnd-cfs-host .gnd-cfs-search.is-pinned .gnd-global-search .gnd-ih-search { padding: 0; border-radius: 0; }
	.gnd-cfs-host .gnd-cfs-search.is-pinned .gnd-global-search .gnd-ih-status { display: none; }
}
