/* GetnDrive Rental Demo Motorbikes 0.1.80 — Koh Samui destination Motorbikes hero, step block and category navigation.
 *
 * Enqueued only on /en|ru/thailand/koh-samui/motorbikes/ when the Samui composition applies
 * (`samuicarhub_rental_demo_motorbikes_samui_moto_applies()`). Every rule is scoped to the composition's own classes
 * (`.sch-smu-moto-hero-layout`, `.sch-smu-moto-hero`, `.sch-smu-moto-*`), which only that route carries, so every other bike
 * hero, the search card itself and the catalog cards are untouched. The rules follow the accepted Pattaya hero
 * (0.1.77–0.1.79); only the veil and the copy width are tuned to this scene.
 *
 * Visual Rebrand paints the bike hero with `!important` rules up to specificity (0,5,1) and, on phones, flattens the
 * copy column (`display: contents`), orders kicker → H1 → search shell → lead and clamps the lead to three lines. The
 * contested properties here use `!important` at (0,6,1) or higher, on the composition's own classes only.
 *
 * Composition at every width: the copy column is ONE hero card (kicker, H1, the full lead, the scene) and the existing
 * search card follows it directly; the DOM order is unchanged.
 * - Phones (< 768px): the portrait scene below the text. Its faded sky slides up under the end of the lead; the bay and
 *   both bikes with their wheels stay in view (the crop trims only sky).
 * - Tablets (768–1023px): the same stacked card with the whole landscape scene under the copy.
 * - From 1024px: the landscape scene fills the card and a soft left-side veil carries the copy; both bikes stay on the
 *   right, the wheels inside the card (`object-position` keeps the lower scene).
 * The H1 and the lead are HTML; no image carries text.
 */


.sch-smu-moto-hero__media,
.sch-smu-moto-hero__media img.sch-smu-moto-hero__image {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	border: 0;
	box-shadow: none;
}

body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero {
	position: relative;
	z-index: 0;
	isolation: isolate;
	box-sizing: border-box;
	overflow: hidden;
	text-align: left !important;
}

/* Kicker in teal-ink (7.4:1 on white) and the lead in ink, so both stay AA over the veil. */
body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > .sch-bike-kicker {
	position: relative;
	z-index: 1;
	color: var(--gnd-teal-ink, #075f62) !important;
}

body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > h1 {
	position: relative;
	z-index: 1;
	color: var(--gnd-ink, #102033) !important;
}

body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > .sch-smu-moto-hero__lead {
	position: relative;
	z-index: 1;
	display: block !important;
	max-width: 40rem;
	margin: 0;
	overflow: visible !important;
	-webkit-line-clamp: unset !important;
	color: var(--gnd-ink, #102033) !important;
	font-size: 16px;
	line-height: 1.6;
	text-overflow: clip;
	white-space: normal;
	overflow-wrap: break-word;
}

/* -- Phones (< 768px): one card — kicker, H1, the full lead, then the portrait scene; the search card after it. ------ */
@media (max-width: 767px) {
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout > .sch-bike-hero__copy.sch-smu-moto-hero {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		order: 1 !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 20px 18px 0 !important;
		border-radius: 16px;
		background: linear-gradient(180deg, #eef5fb 0%, #e3eef8 100%);
	}

	/* The search shell (Visual Rebrand wraps `#bike-request` at runtime, order 4) follows the card. */
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout > .gnd-rental-sticky-shell,
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout > #bike-request {
		order: 2 !important;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > .sch-bike-kicker {
		order: 1 !important;
		margin: 0 0 8px !important;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > h1 {
		order: 2 !important;
		margin: 0 0 12px !important;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > .sch-smu-moto-hero__lead {
		order: 3 !important;
		padding: 0;
		font-size: 15px;
		line-height: 1.55;
	}

	/* The portrait scene, 9:10 (only sky is trimmed), its top 34% fading into the card under the last lines of the lead. */
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-smu-moto-hero__media {
		order: 4 !important;
		position: relative;
		z-index: 0;
		margin: -64px -18px 0;
		width: auto;
		-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.12) 12%, rgba(0, 0, 0, 0.55) 24%, rgb(0, 0, 0) 34%);
		mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.12) 12%, rgba(0, 0, 0, 0.55) 24%, rgb(0, 0, 0) 34%);
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-smu-moto-hero__media img.sch-smu-moto-hero__image {
		aspect-ratio: 9 / 10;
		object-fit: cover;
		object-position: 50% 100%;
	}
}

/* -- From 768px: the landscape scene; from 1024px it fills the card and the copy sits left over a soft veil. ------- */
@media (min-width: 768px) {
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero {
		--sch-smu-hero-h: clamp(380px, 34vw, 520px);
		display: flex !important;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start !important;
		width: 100% !important;
		max-width: none !important;
		min-height: var(--sch-smu-hero-h);
		aspect-ratio: auto !important;
		margin: 0 !important;
		padding: 32px clamp(28px, 4vw, 64px) !important;
		border-radius: 18px;
		background: #dbe9f4;
	}

	/* The veil: an even pale wash under the copy (which ends at 39% of the card), eased out between 39% and 49%, so it
	   stops before the scooter, which starts at ≈ 50% of the scene; from 1024px the card is always wider than 2:1, so the
	   scene is never cropped from the left and the bikes keep their place on the right. */
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		pointer-events: none;
		background: linear-gradient(90deg, rgba(244, 248, 252, 0.95) 0%, rgba(244, 248, 252, 0.93) 33%, rgba(244, 248, 252, 0.9) 39%, rgba(244, 248, 252, 0.78) 42%, rgba(244, 248, 252, 0.55) 44.5%, rgba(244, 248, 252, 0.3) 46.5%, rgba(244, 248, 252, 0.1) 48%, rgba(244, 248, 252, 0) 49.5%);
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-smu-moto-hero__media {
		position: absolute;
		inset: 0;
		z-index: -2;
		width: 100%;
		height: 100%;
	}

	/* `cover` from the lower right: on wide cards only sky is trimmed above the hills and pavement below the wheels; on
	   narrower cards the sea on the left is trimmed, never the bikes. */
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-smu-moto-hero__media img.sch-smu-moto-hero__image {
		width: 100% !important;
		height: 100%;
		object-fit: cover;
		object-position: 100% 84%;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > .sch-bike-kicker,
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > h1,
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > .sch-smu-moto-hero__lead {
		width: 100% !important;
		max-width: min(39%, 32rem) !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		text-align: left !important;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > .sch-bike-kicker {
		margin-top: 0 !important;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > h1 {
		margin-top: 10px !important;
		margin-bottom: 14px !important;
		font-size: clamp(28px, 3vw, 42px) !important;
		line-height: 1.1 !important;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > .sch-smu-moto-hero__lead {
		margin-bottom: 0 !important;
		font-size: 15.5px;
		line-height: 1.55;
	}
}

/* Tablets (768–1023px): one stacked card — the copy across the card on its pale tint, then the whole landscape scene,
   whose top (sky) fades in under the last line of the lead. Side by side, the copy would leave the bikes too little
   room at this width; stacked, the bay, the skyline and both bikes are uncropped. */
@media (min-width: 768px) and (max-width: 1023px) {
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero {
		justify-content: flex-start;
		min-height: 0;
		padding: 26px 28px 0 !important;
		background: linear-gradient(180deg, #eef5fb 0%, #e3eef8 100%);
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero::before {
		content: none;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > .sch-bike-kicker,
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > h1,
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > .sch-smu-moto-hero__lead {
		max-width: 42rem !important;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > h1 {
		margin-top: 8px !important;
		margin-bottom: 10px !important;
		font-size: 30px !important;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-smu-moto-hero__media {
		position: relative;
		inset: auto;
		z-index: 0;
		width: auto;
		height: auto;
		margin: -36px -28px 0;
		-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 9%, rgba(0, 0, 0, 0.7) 18%, rgb(0, 0, 0) 26%);
		mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 9%, rgba(0, 0, 0, 0.7) 18%, rgb(0, 0, 0) 26%);
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-smu-moto-hero__media img.sch-smu-moto-hero__image {
		height: auto;
		aspect-ratio: 2 / 1;
		object-fit: cover;
		object-position: 50% 50%;
	}
}

@media (min-width: 1024px) {
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout .sch-bike-hero__copy.sch-smu-moto-hero > .sch-smu-moto-hero__lead {
		font-size: 16px;
	}
}

/* -- Spacing around the hero and the catalog blocks (the Pattaya 0.1.78 values). Every rule is gated on the Samui hero
 * layout (`.sch-smu-moto-hero-layout`, through `:has()` where the rule styles an ancestor or a sibling block), so other
 * bike pages keep their spacing. A browser without `:has()` keeps the shared spacing. */

/* Partner ribbon → hero card: the hero group's top padding (26px) and the bottom padding before the catalog (30px). */
html body .sch-bike-page .sch-bike-hero > .wp-block-group__inner-container:has(> .sch-bike-hero__layout.sch-smu-moto-hero-layout) {
	padding-top: 10px !important;
	padding-bottom: 6px !important;
}

/* Hero card → search card (18px). */
html body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-smu-moto-hero-layout {
	row-gap: 10px !important;
}

/* Search card → "Choose a motorbike category": the catalog card's own top padding (18px). */
html body .sch-bike-page:has(.sch-smu-moto-hero-layout) .sch-demo-vehicles.sch-demo-motorbikes {
	padding-top: 12px !important;
}

/* Phones (< 768px): the illustrated tiles as one column instead of the shared one-row scroll rail, so every group and its
   picture is visible without scrolling sideways (as on Pattaya; the tile design itself is the shared one). */
@media (max-width: 767px) {
	html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-bike-page:has(.sch-smu-moto-hero-layout) .sch-demo-vehicles .sch-demo-vehicles__category-section .sch-demo-vehicles__category-grid {
		grid-auto-flow: row !important;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-auto-columns: auto !important;
		overflow: visible !important;
		padding-bottom: 0 !important;
		scroll-snap-type: none !important;
		gap: 10px !important;
	}
}

/* The zero-result note of a group with no Samui listing (no tile is drawn for it; reached through the search select or a
   direct URL) — hidden unless that group is the active one (`data-sch-pty-category` on the results, set by the server
   for a direct URL and by the shared category script for the select) and no dated search has completed (after a dated
   search the shared status line answers). */
html body .sch-demo-vehicles .sch-smu-moto-empty {
	display: none;
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid rgba(13, 127, 119, 0.32);
	border-radius: 12px;
	background: #ffffff;
	color: var(--gnd-ink, #102033);
	font-size: 15px;
	line-height: 1.5;
}

html body .sch-demo-vehicles .sch-smu-moto-empty a {
	color: var(--gnd-teal-ink, #075f62);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

html body .sch-demo-vehicles:not(.is-search-complete) .sch-demo-vehicles__results[data-sch-pty-category="scooter"] .sch-smu-moto-empty[data-sch-pty-empty~="scooter"],
html body .sch-demo-vehicles:not(.is-search-complete) .sch-demo-vehicles__results[data-sch-pty-category="maxi_scooter"] .sch-smu-moto-empty[data-sch-pty-empty~="maxi_scooter"],
html body .sch-demo-vehicles:not(.is-search-complete) .sch-demo-vehicles__results[data-sch-pty-category="city_bike"] .sch-smu-moto-empty[data-sch-pty-empty~="city_bike"],
html body .sch-demo-vehicles:not(.is-search-complete) .sch-demo-vehicles__results[data-sch-pty-category="sportbike"] .sch-smu-moto-empty[data-sch-pty-empty~="sportbike"],
html body .sch-demo-vehicles:not(.is-search-complete) .sch-demo-vehicles__results[data-sch-pty-category="cruiser"] .sch-smu-moto-empty[data-sch-pty-empty~="cruiser"],
html body .sch-demo-vehicles:not(.is-search-complete) .sch-demo-vehicles__results[data-sch-pty-category="adventure_touring"] .sch-smu-moto-empty[data-sch-pty-empty~="adventure_touring"],
html body .sch-demo-vehicles:not(.is-search-complete) .sch-demo-vehicles__results[data-sch-pty-category="scrambler"] .sch-smu-moto-empty[data-sch-pty-empty~="scrambler"],
html body .sch-demo-vehicles:not(.is-search-complete) .sch-demo-vehicles__results[data-sch-pty-category="supermoto"] .sch-smu-moto-empty[data-sch-pty-empty~="supermoto"] {
	display: block;
}

/* The one inline reset under the results heading, shown only while a category is active (`hidden` otherwise). */
html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-reset {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.4;
}

html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-reset[hidden] {
	display: none !important;
}

html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-reset a.sch-smu-moto-reset__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--gnd-teal-ink, #075f62);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-reset a.sch-smu-moto-reset__link:focus-visible {
	outline: 2px solid var(--gnd-teal, #1bae9f);
	outline-offset: 2px;
	border-radius: 4px;
}

/* The active category tile. */
html body.getndrive-visual-rebrand .sch-bike-page .sch-demo-vehicles .sch-demo-vehicles__category-card.is-active {
	border-color: var(--gnd-teal, #1bae9f) !important;
	box-shadow: 0 0 0 2px var(--gnd-teal, #1bae9f) inset !important;
}

/* "What happens after you choose a motorbike": a visible step block — heading, four numbered steps in a row from
   1024px, 2×2 on tablets, stacked on phones. */
html body .sch-bike-page .sch-demo-vehicles .sch-demo-vehicles__included.sch-smu-moto-steps {
	margin: 0 0 24px !important;
	padding: 22px 24px 24px !important;
	border: 1px solid rgba(13, 127, 119, 0.3) !important;
	border-radius: 16px !important;
	background: #ffffff !important;
	box-shadow: none !important;
}

html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-steps .sch-smu-moto-steps__title {
	margin: 0 0 16px !important;
	color: var(--gnd-ink, #102033) !important;
	font-size: 21px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-steps .sch-smu-moto-steps__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-steps .sch-smu-moto-steps__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 !important;
	padding: 16px !important;
	border-radius: 12px;
	background: #eef7f5;
	list-style: none !important;
}

html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-steps .sch-smu-moto-steps__item::before,
html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-steps .sch-smu-moto-steps__item::marker {
	content: none !important;
}

html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-steps .sch-smu-moto-steps__num {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--gnd-teal-deep, #0d7f77);
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-steps .sch-smu-moto-steps__text {
	display: block;
	min-width: 0;
}

html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-steps .sch-smu-moto-steps__name {
	display: block;
	margin: 4px 0 6px;
	color: var(--gnd-ink, #102033);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-steps .sch-smu-moto-steps__line {
	display: block;
	color: #34465a;
	font-size: 14.5px;
	line-height: 1.5;
}

@media (max-width: 1023px) {
	html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-steps .sch-smu-moto-steps__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	html body .sch-bike-page .sch-demo-vehicles .sch-demo-vehicles__included.sch-smu-moto-steps {
		padding: 18px 16px 18px !important;
	}

	html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-steps .sch-smu-moto-steps__title {
		font-size: 19px !important;
	}

	html body .sch-bike-page .sch-demo-vehicles .sch-smu-moto-steps .sch-smu-moto-steps__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}
}

/* Desktop (from 1025px, where Visual Rebrand pins the search card under the sticky header once the page scrolls): the
   shared catalog script scrolls the results (after a dated search) or the catalog to the top of the window with
   `scrollIntoView({ block: 'start' })`, which left the "Matching motorbikes" heading under the pinned header and search
   card (header ≈ 90px + search card ≈ 91px at 1280–1470px, measured; the same on 0.1.79). On the Samui composition these
   targets keep a top margin that clears both, so the heading stays visible. Below 1025px the search card is not pinned
   and Visual Rebrand's `scroll-padding-top` already clears the header. */
@media (min-width: 1025px) {
	html body .sch-bike-page:has(.sch-smu-moto-hero-layout) .sch-demo-vehicles.sch-demo-motorbikes,
	html body .sch-bike-page:has(.sch-smu-moto-hero-layout) .sch-demo-vehicles__results,
	html body .sch-bike-page:has(.sch-smu-moto-hero-layout) .sch-demo-vehicles__category-section {
		scroll-margin-top: calc(var(--gnd-rail-pin-top, 90px) + 112px);
	}
}

/* 0.1.81 (live correction): the line under "Choose a motorbike category" may use the whole catalog row instead of the
   shared 42rem measure, so it reads as one line on a wide desktop where it fits and wraps naturally on narrower screens
   (no nowrap, no smaller type). Gated on the placed Samui hero, like the rules above. */
html body .sch-bike-page:has(.sch-smu-moto-hero-layout) .sch-demo-vehicles .sch-demo-vehicles__category-lead {
	max-width: none;
}
