/* GetnDrive Rental Demo Motorbikes 0.1.76 — Bangkok destination Motorbikes hero.
 *
 * Enqueued only on /en|ru/thailand/bangkok/motorbikes/ when the Bangkok composition applies
 * (`samuicarhub_rental_demo_motorbikes_bangkok_moto_applies()`). Every rule is scoped to the composition's own classes
 * (`.sch-bkk-moto-hero-layout`, `.sch-bkk-moto-hero`), which only that route's hero carries, so every other bike hero,
 * the search card and the catalog are untouched.
 *
 * Visual Rebrand paints the bike hero copy column with `!important` rules up to specificity (0,5,1); the contested
 * properties here use `!important` at (0,6,1), on the composition's own classes only.
 *
 * The search card (`#bike-request`, wrapped by the Visual Rebrand rail script) keeps its place and order in every
 * width: on phones the shell shows kicker → H1 → search → copy (the copy column is `display: contents` there), and the
 * photo follows the lead; from 768px the copy column (kicker, H1, lead, photo) sits above the search card as before.
 *
 * The scene (0.1.75) is informative: the Bangkok landmarks — the elevated SkyTrain line and the high-rise skyline — and
 * both vehicles stay visible at every width:
 * - below 1024px the picture follows the lead at its own proportions (phone 3:4 skyline portrait, tablet 16:9 SkyTrain
 *   scene), whole, uncropped and unmasked, in a rounded frame;
 * - from 1024px (0.1.76, after Nik's live review of the 0.1.75 2:1 card) the card is shorter —
 *   `clamp(380px, 32vw, 500px)` high instead of half its width — and the scene is no longer cropped to fill it: the
 *   whole 16:9 picture is drawn at the card's full height against its right edge, so the SkyTrain (≈ 18–47% of the
 *   scene's height, 52–96% of its width), the towers and both vehicles with their wheels (≈ 43–95% of the width, down
 *   to ≈ 94% of the height) are always entirely in view. The picture's left 40% — road and distant towers, before the
 *   scooter at ≈ 43% — fades through a gradient mask into the card's own soft sky-to-pavement tint, so there is no
 *   hard edge and no opaque panel; the copy sits left in that tint, vertically centred, never over the vehicles.
 * The H1 and the lead are HTML; no image carries text.
 */

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

/* The lead: one paragraph in the ink colour, and the kicker in teal-ink (7.4:1 on white), both darker than the stored
   hero's muted lead and teal kicker so they stay AA over the photograph's faded edge and the desktop card tint. */
body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bike-hero__copy.sch-bkk-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-bkk-moto-hero-layout .sch-bkk-moto-hero__lead {
	position: relative;
	z-index: 1;
	max-width: 44rem;
	margin: 0 auto;
	color: var(--gnd-ink, #102033) !important;
	font-size: 16px;
	line-height: 1.6;
	overflow-wrap: break-word;
}

/* -- Phones (< 768px): kicker, H1, search card, lead, photo — the shell's own order, the photo last. ------------------ */
@media (max-width: 767px) {
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bkk-moto-hero__lead {
		order: 5;
		padding: 2px 4px 0;
		text-align: center;
	}

	/* The skyline portrait at its own 3:4 proportions, the full width of the hero rail, whole and unmasked: the towers,
	   the SkyTrain and both vehicles stay in view. */
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bkk-moto-hero__media {
		order: 6;
		position: relative;
		z-index: 0;
		margin-top: 14px;
		border-radius: 14px;
		overflow: hidden;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bkk-moto-hero__media img.sch-bkk-moto-hero__image {
		aspect-ratio: 3 / 4;
		object-fit: contain;
	}
}

/* -- Tablets (768–1023px): kicker, H1, lead, then the landscape scene at 16:9; the search card follows. ---------------- */
@media (min-width: 768px) and (max-width: 1023px) {
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bike-hero__copy.sch-bkk-moto-hero {
		max-width: 100%;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bike-hero__copy.sch-bkk-moto-hero > .sch-bike-kicker {
		order: 1;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bike-hero__copy.sch-bkk-moto-hero > h1 {
		order: 2;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bike-hero__copy.sch-bkk-moto-hero > .sch-bkk-moto-hero__lead {
		order: 3;
		text-align: center;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bkk-moto-hero__media {
		order: 4;
		position: relative;
		z-index: 0;
		margin-top: 18px;
		border-radius: 16px;
		overflow: hidden;
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bkk-moto-hero__media img.sch-bkk-moto-hero__image {
		aspect-ratio: 16 / 9;
		object-fit: contain;
	}
}

/* -- Desktop (>= 1024px): one shorter card across the hero rail, copy left, the whole scene right. ----------------- */
@media (min-width: 1024px) {
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bike-hero__copy.sch-bkk-moto-hero {
		--sch-bkk-hero-h: clamp(380px, 32vw, 500px);
		position: relative;
		z-index: 0;
		isolation: isolate;
		box-sizing: border-box;
		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-bkk-hero-h);
		aspect-ratio: auto !important;
		margin: 0 !important;
		padding: 28px clamp(32px, 4vw, 64px) !important;
		overflow: hidden;
		border-radius: 18px;
		background: linear-gradient(180deg, #e3eef6 0%, #edf2f5 52%, #e7ebee 100%);
		text-align: left !important;
	}

	/* The whole 16:9 scene at the card's height, against the right edge; its left 40% fades into the card's tint. On
	   very wide rails (above ≈ 1530px) the picture keeps at least 56% of the card so no wide empty band opens between
	   copy and scene: it is then a little wider than 16:9 and `cover` trims only sky and pavement (at 1920px ≈ 11% of the
	   scene's height above and ≈ 4% below — the train from ≈ 18% and the wheels down to ≈ 94% stay in view). */
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bkk-moto-hero__media {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: -1;
		width: max(calc(var(--sch-bkk-hero-h) * 16 / 9), 56%);
		height: 100%;
		-webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.06) 12%, rgba(0, 0, 0, 0.3) 22%, rgba(0, 0, 0, 0.72) 31%, rgb(0, 0, 0) 40%);
		mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.06) 12%, rgba(0, 0, 0, 0.3) 22%, rgba(0, 0, 0, 0.72) 31%, rgb(0, 0, 0) 40%);
	}

	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bkk-moto-hero__media img.sch-bkk-moto-hero__image {
		width: 100% !important;
		height: 100%;
		object-fit: cover;
		object-position: 100% 72%;
	}

	/* The copy column: at most 44% of the card (it ends before the scooter at every width) and 36rem. */
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bike-hero__copy.sch-bkk-moto-hero > .sch-bike-kicker,
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bike-hero__copy.sch-bkk-moto-hero > h1,
	body .sch-bike-page .sch-bike-hero .sch-bike-hero__layout.sch-bkk-moto-hero-layout .sch-bike-hero__copy.sch-bkk-moto-hero > .sch-bkk-moto-hero__lead {
		width: 100% !important;
		max-width: min(44%, 36rem) !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-bkk-moto-hero-layout .sch-bike-hero__copy.sch-bkk-moto-hero > .sch-bike-kicker {
		margin-top: 0 !important;
	}

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

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