/*
 * Regional Routing 0.3.70 — Turkey motorbike rental page (`/{lang}/turkey/motorbikes/`).
 * A thin layer over the shared first screen, the preparing / guide styles (planning cards, FAQ, onward links) and the
 * category layer: the page's first-screen geometry, the status line under the lead, the seven region cards and the
 * partner banner. Everything is scoped to `.gnd-moto-tr`, so no other page changes.
 */

/* First screen geometry. The picture (motorcycle low on the right, Cappadocia rock forms above it) needs a taller
   stage than the shared one (about 3:1 at 1280 px, which crops a centred 16:9 picture through the wheels): from 768 px
   the stage is about 2:1 of its own width and the crop is anchored low, so both wheels stay above the search panel's
   overlap and the rock forms keep their tops. Phones get the separate 3:4 composition (sky for the copy at the top,
   the rider below), anchored to its lower edge. */
.gnd-cfs-host.gnd-moto-tr {
	--gnd-cfs-pad-top: clamp(28px, 3.4vw, 56px);
}

.gnd-moto-tr .gnd-cfs__media .gnd-preparing__scene-img {
	object-position: 50% 100%;
}

@media (min-width: 768px) {
	.gnd-cfs-host.gnd-moto-tr {
		--gnd-cfs-height: clamp(460px, calc((100vw - 32px) / 2), 836px);
	}

	.gnd-moto-tr .gnd-cfs__media .gnd-preparing__scene-img {
		object-position: 50% 88%;
	}

	/* The copy keeps to the left part of the picture, clear of the rider (he rides in the right third). */
	.gnd-cfs-host.gnd-moto-tr .gnd-cfs__lead,
	.gnd-cfs-host.gnd-moto-tr .gnd-moto-tr__status,
	.gnd-cfs-host.gnd-moto-tr .gnd-cfs__chips {
		max-width: min(560px, 58%);
	}
}

@media (max-width: 767px) {
	.gnd-cfs-host.gnd-moto-tr {
		--gnd-cfs-pad-top: 24px;
		--gnd-moto-tr-art-h: calc((100vw - 24px) * 4 / 3);
	}

	/* The whole 3:4 composition sits at the foot of the stage, uncropped; above it the stage continues the picture's
	   own sky, so the copy reads on the sky and the rock forms and the rider stay below it. */
	.gnd-cfs-host.gnd-moto-tr .gnd-cfs {
		background: linear-gradient(180deg, #3f5577 0%, #495f7f 100%);
	}

	.gnd-cfs-host.gnd-moto-tr .gnd-cfs__media {
		top: auto;
		bottom: 0;
		height: var(--gnd-moto-tr-art-h);
		-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%);
		mask-image: linear-gradient(180deg, transparent 0, #000 9%);
	}

	/* Room under the copy for the rock forms (they start about 38% down the composition). */
	.gnd-cfs-host.gnd-moto-tr .gnd-cfs__body {
		padding-bottom: calc(var(--gnd-moto-tr-art-h) * 0.6);
	}
}

/* First screen: the compact status line under the lead. */
.gnd-moto-tr .gnd-moto-tr__status {
	box-sizing: border-box;
	max-width: min(100%, 560px);
	margin: 14px 0 0;
	padding: 10px 14px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 8px;
	background: rgba(11, 31, 58, 0.66);
	color: #ffffff;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.gnd-moto-tr .gnd-moto-tr__status-title {
	display: block;
	font-weight: 700;
}

.gnd-moto-tr .gnd-moto-tr__status-text {
	color: rgba(255, 255, 255, 0.92);
}

/* Regions: phones one compact row per region (picture left), tablets two columns, wide screens four, then three. */
.gnd-moto-tr .gnd-moto-tr__region-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.gnd-moto-tr .gnd-moto-tr__region {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	align-items: start;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid #d7e0ea;
	border-radius: 8px;
	background: #ffffff;
}

.gnd-moto-tr .gnd-moto-tr__region-media {
	display: block;
	height: 100%;
	min-height: 112px;
	background: #e9eef3;
}

.gnd-moto-tr .gnd-moto-tr__region-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gnd-moto-tr .gnd-moto-tr__region-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 12px 14px 14px;
}

.gnd-moto-tr .gnd-moto-tr__region-group {
	margin: 0;
	color: #0f6f68;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}

.gnd-moto-tr h3.gnd-moto-tr__region-name {
	margin: 0;
	color: #10243f;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.25;
}

.gnd-moto-tr .gnd-moto-tr__region-text {
	margin: 0;
	color: #3b4c61;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.gnd-moto-tr .gnd-moto-tr__region-action {
	margin: auto 0 0;
	padding-top: 4px;
}

.gnd-moto-tr a.gnd-moto-tr__region-link {
	color: #0f6f68;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.gnd-moto-tr a.gnd-moto-tr__region-link:hover {
	color: #10243f;
}

.gnd-moto-tr a.gnd-moto-tr__region-link:focus-visible {
	outline: 3px solid #10243f;
	outline-offset: 2px;
}

@media (min-width: 560px) {
	.gnd-moto-tr .gnd-moto-tr__region-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.gnd-moto-tr .gnd-moto-tr__region {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		height: 100%;
	}

	.gnd-moto-tr .gnd-moto-tr__region-media {
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.gnd-moto-tr .gnd-moto-tr__region-body {
		padding: 14px 16px 16px;
	}

	/* An odd last card (seven regions in two columns) takes the full row with its picture beside the text. */
	.gnd-moto-tr .gnd-moto-tr__region:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
		grid-template-rows: auto;
	}

	.gnd-moto-tr .gnd-moto-tr__region:last-child:nth-child(odd) .gnd-moto-tr__region-media {
		height: 100%;
		aspect-ratio: auto;
	}
}

@media (min-width: 1100px) {
	/* Seven regions in two full rows: four cards, then three wider ones (12-column grid). */
	.gnd-moto-tr .gnd-moto-tr__region-list {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.gnd-moto-tr .gnd-moto-tr__region {
		grid-column: span 3;
	}

	.gnd-moto-tr .gnd-moto-tr__region:nth-child(n + 5) {
		grid-column: span 4;
	}

	.gnd-moto-tr .gnd-moto-tr__region:last-child:nth-child(odd) {
		grid-column: span 4;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 1fr;
	}

	.gnd-moto-tr .gnd-moto-tr__region:last-child:nth-child(odd) .gnd-moto-tr__region-media {
		height: auto;
		aspect-ratio: 16 / 9;
	}
}

/* Partner banner: navy panel, an invitation only. */
.gnd-moto-tr .gnd-moto-tr__partner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	box-sizing: border-box;
	padding: clamp(22px, 3.4vw, 40px);
	border-radius: 8px;
	background: #0b1f3a;
	color: #ffffff;
}

.gnd-moto-tr h2.gnd-moto-tr__partner-title {
	margin: 0 0 10px;
	color: #ffffff;
	font-size: clamp(1.375rem, 2.3vw, 1.875rem);
	font-weight: 800;
	line-height: 1.18;
}

.gnd-moto-tr .gnd-moto-tr__partner-text {
	max-width: 62ch;
	margin: 0;
	color: #edf5f4;
	font-size: 1rem;
	line-height: 1.6;
}

.gnd-moto-tr .gnd-moto-tr__partner-action {
	margin: 0;
}

.gnd-moto-tr a.gnd-moto-tr__partner-cta {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 26px;
	border: 1px solid #1bae9f;
	border-radius: 8px;
	background: #1bae9f;
	color: #0b1f3a;
	font-size: 1rem;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
}

.gnd-moto-tr a.gnd-moto-tr__partner-cta:hover,
.gnd-moto-tr a.gnd-moto-tr__partner-cta:focus-visible {
	border-color: #ffffff;
	background: #ffffff;
	color: #0b1f3a;
}

.gnd-moto-tr a.gnd-moto-tr__partner-cta:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

@media (max-width: 559px) {
	.gnd-moto-tr a.gnd-moto-tr__partner-cta {
		width: 100%;
	}
}

@media (min-width: 900px) {
	.gnd-moto-tr .gnd-moto-tr__partner {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: clamp(24px, 4vw, 56px);
	}
}
