/* ==========================================================================
   Home page — Pillars, rich-text intro, featured guides slider, curated
   routes. Ported from the original Shopify theme's se-core-pillars,
   se-featured-guides-slider and se-curated-routes-page sections.
   ========================================================================== */

/* ---- Philosophy ("Why slow travel") ---- */
.se-home-philosophy {
	padding: var(--se-space-9) 0;
}

.se-home-philosophy__grid {
	display: grid;
	grid-template-columns: 0.85fr 1fr;
	gap: var(--se-space-8);
	align-items: center;
}

.se-home-philosophy__media {
	border-radius: var(--se-radius-card);
	overflow: hidden;
	box-shadow: var(--se-shadow-card);
}

.se-home-philosophy__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.se-home-philosophy__eyebrow {
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--se-accent);
	margin-bottom: var(--se-space-3);
	font-weight: 700;
}

.se-home-philosophy__body h2 {
	font-size: 2.1rem;
	line-height: 1.2;
	margin: 0 0 var(--se-space-4);
	max-width: 12ch;
}

.se-home-philosophy__body p {
	font-size: 1.1rem;
	line-height: 1.65;
	color: var(--se-text-soft);
	margin: 0 0 var(--se-space-5);
	max-width: 46ch;
}

.se-home-philosophy__link {
	display: inline-flex;
	align-items: center;
	gap: var(--se-space-2);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--se-primary);
	text-decoration: none;
	border-bottom: 1.5px solid var(--se-accent);
	padding-bottom: 2px;
	transition: gap 0.18s ease;
}

.se-home-philosophy__link:hover {
	gap: var(--se-space-3);
}

/* ---- Live stats bar ---- */
.se-home-stats {
	background: var(--se-primary);
	padding: var(--se-space-7) 0;
}

.se-home-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--se-space-5);
	max-width: 640px;
	margin-inline: auto;
	text-align: center;
}

.se-home-stats__item {
	display: flex;
	flex-direction: column;
	gap: var(--se-space-2);
}

.se-home-stats__num {
	font-size: 2.6rem;
	line-height: 1;
	font-weight: 700;
	color: #fff;
	font-family: var(--se-font-display);
}

.se-home-stats__label {
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

/* ---- Region map ("Four regions, one unhurried country") ----
   A real Leaflet + OpenStreetMap view (same setup as hub-map.js), not a
   hand-drawn country outline — see the PHP comment above $region_coords
   in front-page.php for why. */
.se-home-regions {
	/* padding-block (not the padding shorthand) -- this section carries
	   .se-container too, and a 2-value "padding: Y 0" shorthand zeroes out
	   padding-left/right, silently cancelling .se-container's inline
	   padding and letting the heading/subheading text touch the viewport
	   edge on narrow screens.
	   Asymmetric on purpose: this section follows .se-pillars-section
	   directly, and both used to carry a full space-9 (96px) top+bottom --
	   that stacked into a 192px dead zone at their shared boundary (same
	   plain background on both sides, no visual break), reported live as
	   a "gigantic gap". Top trimmed to space-7 here; .se-pillars-section's
	   bottom trimmed to match, so the shared boundary is ~96px instead of
	   192px. Bottom stays space-9 since .se-home-gallery follows next. */
	padding-block: var(--se-space-7) var(--se-space-9);
}

.se-home-map-wrapper {
	position: relative;
	border-radius: var(--se-radius-card);
	overflow: hidden;
	box-shadow: var(--se-shadow-card);
}

.se-home-map {
	position: relative;
	/* Contains Leaflet's internal z-index scale inside its own stacking
	   context -- same fix as the other Leaflet map containers sitewide,
	   see trail-map.css/hub-map.css. */
	z-index: 1;
	width: 100%;
	height: 520px;
}

.se-home-map .leaflet-tile {
	filter: saturate(0.97) contrast(1.03) brightness(1.02);
}

/* Pin: a round photo bubble with the region name in a small pill below it
   — legible without a click, but reads as an actual map pin rather than a
   text label floating on the tiles. */
.se-home-map__pin {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.se-home-map__pin-photo {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #fff;
	box-shadow: 0 10px 22px -6px rgba(20, 16, 10, 0.55);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.se-home-map__pin-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.se-home-map__pin-name {
	display: inline-flex;
	padding: 3px 10px;
	border-radius: var(--se-radius-pill);
	background: var(--se-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	box-shadow: 0 6px 14px -6px rgba(20, 16, 10, 0.5);
}

.se-home-map__pin:hover .se-home-map__pin-photo {
	transform: scale(1.08);
	box-shadow: 0 14px 28px -6px rgba(20, 16, 10, 0.6);
}

/* Info card + backdrop — NOT a Leaflet popup bound to the marker's screen
   position (that clips against .se-home-map-wrapper's overflow:hidden
   whenever a marker sits near the map's edge, reported live on "East
   Slovenia"). This overlays the whole map container instead, so it can
   never clip regardless of which marker was clicked. */
.se-home-map__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 10, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 1000;
}

.se-home-map__backdrop.is-open {
	opacity: 1;
	pointer-events: auto;
}

.se-home-map__card {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(380px, calc(100% - var(--se-space-6)));
	transform: translate(-50%, -50%) scale(0.85);
	opacity: 0;
	pointer-events: none;
	background: var(--se-surface);
	border-radius: var(--se-radius-card);
	overflow: hidden;
	box-shadow: var(--se-shadow-card);
	transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.28s ease;
	z-index: 1001;
}

.se-home-map__card.is-open {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
	pointer-events: auto;
}

.se-home-map__card-close {
	position: absolute;
	top: var(--se-space-3);
	right: var(--se-space-3);
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: rgba(20, 16, 10, 0.45);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
	transition: background 0.15s ease;
}

.se-home-map__card-close:hover {
	background: rgba(20, 16, 10, 0.7);
}

.se-home-map__card-photo {
	width: 100%;
	height: 200px;
}

.se-home-map__card-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.se-home-map__card-body {
	padding: var(--se-space-5);
}

.se-home-map__card-title {
	margin: 0 0 var(--se-space-2);
	font-size: 1.25rem;
}

.se-home-map__card-text {
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--se-text-muted);
	margin: 0 0 var(--se-space-4);
}

/* ---- Photo gallery band ---- */
.se-home-gallery {
	padding: var(--se-space-7) 0 var(--se-space-9);
}

.se-home-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: 260px 260px;
	gap: var(--se-space-4);
}

.se-home-gallery__item {
	position: relative;
	border-radius: var(--se-radius-card);
	overflow: hidden;
}

.se-home-gallery__item img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.se-home-gallery__item:hover img {
	transform: scale(1.04);
}

.se-home-gallery__item--1 {
	grid-column: 1 / span 2;
	grid-row: 1 / span 2;
}

.se-home-gallery__item--2 {
	grid-column: 3;
	grid-row: 1;
}

.se-home-gallery__item--3 {
	grid-column: 4;
	grid-row: 1;
}

.se-home-gallery__item--4 {
	grid-column: 3 / span 2;
	grid-row: 2;
}

/* ---- Pillars ("Explore our world") ---- */
.se-pillars-section {
	/* padding-block, not the padding shorthand -- see .se-home-regions
	   comment above for why "padding: Y 0" is unsafe on a .se-container.
	   Bottom trimmed to space-7 to match .se-home-regions' trimmed top --
	   see that section's comment for why (192px dead zone at the shared
	   boundary otherwise). Top stays space-9 since .se-home-stats (its own
	   colored band) precedes it. */
	padding-block: var(--se-space-9) var(--se-space-7);
}

.se-pillars-header {
	max-width: var(--se-container-narrow);
	margin: 0 auto var(--se-space-6);
	text-align: center;
}

.se-pillars-eyebrow {
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--se-accent);
	margin-bottom: var(--se-space-2);
}

.se-pillars-heading {
	margin: 0 0 var(--se-space-2);
}

.se-pillars-subheading {
	margin: 0;
	color: var(--se-text-muted);
}

.se-pillars-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--se-space-5);
	align-items: stretch;
}

.se-pillars-card {
	position: relative;
	display: block;
	background: var(--se-surface);
	border: 1px solid var(--se-border);
	border-radius: var(--se-radius-card);
	box-shadow: var(--se-shadow-soft);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.se-pillars-card:hover {
	box-shadow: var(--se-shadow-card);
	transform: translateY(-2px);
}

/*
 * aspect-ratio goes directly on the <img> (a replaced element) rather than on
 * an absolutely-positioned wrapper: when a replaced element's used 'height'
 * is ambiguous, browsers fall back to sizing it from its own intrinsic
 * ratio and silently ignore top:0/bottom:0 stretching -- so an <img> with
 * width:100%;height:100% inside an inset:0 box was rendering at its own
 * (wrong) intrinsic aspect ratio instead of filling the card. Sizing the
 * img in normal flow with its own aspect-ratio avoids that entirely; the
 * card gets its height FROM the image, and the text overlay (a plain div,
 * not a replaced element, so no such quirk) is what's absolutely positioned.
 */
.se-pillars-img {
	display: block;
	width: 100%;
	/* Taller than the original 3/2 -- with a 2-line title + the 3-line text
	   clamp above, the longest real translation (Russian "Маршруты и планы
	   поездок") still overflowed the fixed-height card by ~32px at 3/2,
	   pushing .se-pillars-card-footer past the bottom edge where
	   .se-pillars-card's overflow:hidden clipped it. Measured live rather
	   than guessed: 5/4 buys ~46px of extra room at this card's actual
	   rendered width, comfortably covering that plus other long
	   translations (German tends to run long too). The photo itself reads
	   as background texture here (opacity 0.24, blurred), so a taller crop
	   doesn't read as a composition problem the way it would on a real photo
	   card. */
	aspect-ratio: 5 / 4;
	object-fit: cover;
	opacity: 0.24;
	filter: blur(0.5px);
	transition: opacity 0.25s ease;
}

.se-pillars-card:hover .se-pillars-img {
	opacity: 0.32;
}

.se-pillars-card-inner {
	position: absolute;
	inset: 0;
	z-index: 1;
	padding: var(--se-space-5);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.se-pillars-tag {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--se-accent);
	margin-bottom: var(--se-space-2);
	font-weight: 700;
}

.se-pillars-title {
	font-size: 1.2rem;
	line-height: 1.35;
	font-weight: 700;
	color: var(--se-text);
	margin: 0 0 var(--se-space-2);
	/* Card height is fixed by the image's aspect-ratio (see .se-pillars-img
	   above), not by content -- .se-pillars-card-inner is absolutely
	   positioned over it. An unclamped title on a long translation could
	   already eat into the text/button's share of that fixed height, same
	   root cause as the text clamp below. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* Clamped to 3 lines (was 4) -- on longer translations (confirmed on the
   Russian card) the untrimmed text plus title pushed .se-pillars-card-footer
   past the fixed-height card's bottom edge, which .se-pillars-card's own
   overflow:hidden then clipped -- the button either sat flush against the
   edge with no breathing room, or vanished outright. 3 lines leaves
   consistent room for the footer button + its own bottom padding on every
   language, not just the shorter ones. */
.se-pillars-text {
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--se-text-muted);
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.se-pillars-card-footer {
	margin-top: var(--se-space-4);
}

.se-pillars-cta {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	padding: 6px 16px;
	border-radius: var(--se-radius-pill);
	background: var(--se-accent-soft);
	color: var(--se-primary);
	font-weight: 700;
	transition: background 0.18s ease;
}

.se-pillars-card:hover .se-pillars-cta {
	background: var(--se-accent);
	color: #fff;
}

/* ---- Rich text intro ---- */
.se-rich-text {
	max-width: var(--se-container-narrow);
	margin: 0 auto;
	padding: var(--se-space-6) 0;
	text-align: center;
}

.se-rich-text p {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--se-text);
}

/* ---- Featured guides slider ---- */
.se-fg-slider-section {
	/* padding-block, not the padding shorthand -- see .se-home-regions
	   comment above for why "padding: Y 0 Z" is unsafe on a .se-container. */
	padding-block: var(--se-space-6) var(--se-space-7);
}

.se-fg-slider-header {
	max-width: var(--se-container-narrow);
	margin-bottom: var(--se-space-5);
}

.se-fg-slider-heading {
	margin: 0 0 var(--se-space-2);
}

.se-fg-slider-subheading {
	margin: 0;
	color: var(--se-text-muted);
}

.se-fg-slider {
	display: flex;
	align-items: center;
	gap: var(--se-space-3);
}

.se-fg-slider-viewport {
	flex: 1;
	overflow: hidden;
}

.se-fg-slider-track {
	display: flex;
	transition: transform 0.35s ease;
}

.se-fg-slide {
	flex: 0 0 100%;
	max-width: 100%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.se-fg-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.se-fg-card-link {
	display: block;
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	border-radius: var(--se-radius-card);
	/* .se-fg-card-body is position:absolute;bottom:0 with no top set, so its
	   containing block is THIS element, not .se-fg-card-media (a sibling,
	   not a parent) -- overflow:hidden was only ever on .se-fg-card-media,
	   so a long excerpt could grow the body upward past the photo entirely
	   with nothing clipping it. Repeating overflow:hidden here is the real
	   fix (the line-clamp on .se-fg-card-text below is the primary fix,
	   this is just a backstop). */
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: var(--se-shadow-card);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.se-fg-card-link:hover {
	transform: translateY(-4px);
}

.se-fg-card-media {
	position: relative;
	overflow: hidden;
	background: var(--se-surface-warm);
}

/* aspect-ratio directly on the <img> -- see the comment on .se-pillars-img
   for why the wrapper+inset:0+height:100% pattern doesn't reliably work
   for replaced elements. */
.se-fg-card-img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.3s ease-out;
}

.se-fg-card-link:hover .se-fg-card-img {
	transform: scale(1.03);
}

.se-fg-card-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: var(--se-space-4) var(--se-space-5);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18), transparent);
	color: #fff;
}

.se-fg-card-title {
	font-size: 13px;
	line-height: 1.4;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 var(--se-space-2);
	/* Clamped for the same reason as .se-fg-card-text below -- on the
	   narrow slider viewport left after the two 34px nav arrows (~223px on
	   a 375px phone), a long uppercase title wraps to 3-4 lines on its
	   own, which was the actual majority of the body's excess height (not
	   just the excerpt). Both need a bound for the fit to be predictable. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.se-fg-card-text {
	font-size: 0.9rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
	margin: 0;
	max-width: 640px;
	/* Clamped to 2 lines + ellipsis -- an unclamped long excerpt was the
	   root cause of .se-fg-card-body (position:absolute;bottom:0) growing
	   tall enough to push the title above the photo entirely on narrow
	   cards. Bounding the text keeps the title's position predictable. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.se-fg-card-meta-cta {
	display: inline-block;
	margin-top: var(--se-space-2);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.88);
}

.se-fg-slider-nav {
	border: none;
	background: var(--se-surface);
	border-radius: var(--se-radius-pill);
	width: 34px;
	height: 34px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--se-shadow-soft);
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: var(--se-primary);
	transition: background 0.18s ease, transform 0.12s ease;
}

.se-fg-slider-nav:hover {
	background: var(--se-surface-warm);
	transform: translateY(-1px);
}

.se-fg-slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: var(--se-space-4);
}

.se-fg-slider-dot {
	width: 7px;
	height: 7px;
	border-radius: var(--se-radius-pill);
	border: none;
	padding: 0;
	background: var(--se-border);
	cursor: pointer;
	transition: background 0.18s ease, width 0.18s ease;
}

.se-fg-slider-dot.is-active {
	width: 20px;
	background: var(--se-accent);
}

/* ---- Curated routes ("Planning essentials") ---- */
.se-curated-routes {
	/* padding-block, not the padding shorthand -- see .se-home-regions
	   comment above for why "padding: Y 0 Z" is unsafe on a .se-container. */
	padding-block: var(--se-space-8) var(--se-space-9);
}

.se-curated-routes__kicker {
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--se-accent);
	margin-bottom: var(--se-space-2);
}

.se-curated-routes__title {
	margin: 0 0 var(--se-space-3);
	max-width: var(--se-container-narrow);
}

.se-curated-routes__text {
	max-width: var(--se-container-narrow);
	color: var(--se-text-muted);
	margin: 0 0 var(--se-space-6);
}

.se-curated-routes__cards-title {
	margin: 0 0 var(--se-space-5);
	font-size: 1.1rem;
}

.se-route-push-grid {
	display: grid;
	gap: var(--se-space-4);
}

.se-route-push {
	display: flex;
	align-items: stretch;
	gap: var(--se-space-5);
	background: var(--se-surface-warm);
	border: 1px solid var(--se-border);
	border-radius: var(--se-radius-card);
	padding: var(--se-space-4);
	text-decoration: none;
	color: inherit;
	box-shadow: var(--se-shadow-soft);
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.se-route-push:hover {
	background: color-mix(in srgb, var(--se-surface-warm), black 6%);
	box-shadow: var(--se-shadow-card);
	transform: translateY(-2px);
}

/* Checkerboard: image on the right for every other card */
.se-route-push:nth-child(even) {
	flex-direction: row-reverse;
}

.se-route-push__media {
	position: relative;
	flex: 0 0 260px;
	border-radius: var(--se-radius-sm);
	overflow: hidden;
	background: var(--se-surface);
}

.se-route-push__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.se-route-push__num {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--se-primary);
	font-weight: 700;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--se-shadow-soft);
}

.se-route-push__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.se-route-push__kicker {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--se-accent);
	margin-bottom: var(--se-space-2);
}

.se-route-push__title {
	margin: 0 0 var(--se-space-2);
	font-size: 1.05rem;
}

.se-route-push__text {
	margin: 0 0 var(--se-space-3);
	color: var(--se-text-muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

.se-route-push__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--se-primary);
	margin-top: auto;
}

.se-route-push__cta-arrow {
	transition: transform 0.18s ease;
}

.se-route-push:hover .se-route-push__cta-arrow {
	transform: translateX(3px);
}

@media (max-width: 749px) {
	/* Section paddings were tuned for desktop (48-96px top+bottom each) --
	   stacked between every adjacent Home section that adds up to
	   120-192px of blank space on a short mobile viewport. Roughly halved
	   here so sections still breathe but don't read as broken gaps. */
	.se-home-philosophy { padding-block: var(--se-space-7); }
	.se-home-stats { padding-block: var(--se-space-6); }
	.se-pillars-section { padding-block: var(--se-space-7); }
	.se-home-regions { padding-block: var(--se-space-7); }
	.se-home-gallery { padding-block: var(--se-space-6) var(--se-space-7); }
	.se-fg-slider-section { padding-block: var(--se-space-5) var(--se-space-6); }
	.se-curated-routes { padding-block: var(--se-space-6) var(--se-space-7); }

	.se-pillars-grid { grid-template-columns: 1fr; }
	/* Found while checking the desktop overflow fix above, not reported by
	   the user: at the original 8/3 this card was too short to fit even a
	   2-line title + footer, on ANY language, with zero body text at all --
	   measured live (German "Routen und Reisepläne") at ~40px short before
	   even reducing the text clamp. 2/1 plus a 1-line text clamp (was 2)
	   gives a verified comfortable margin for the worst 2-line-title case. */
	.se-pillars-img { aspect-ratio: 2 / 1; }
	.se-pillars-card-inner { padding: var(--se-space-4); }
	.se-pillars-text { -webkit-line-clamp: 1; }
	.se-route-push,
	.se-route-push:nth-child(even) { flex-direction: column; }
	.se-route-push__media { flex-basis: auto; aspect-ratio: 16/9; }
	.se-fg-card-body { padding: var(--se-space-3) var(--se-space-4); }
	/* The slider viewport is only ~223px wide on a 375px phone (two 34px
	   nav arrows + gaps eat the rest), where the 16:9 photo alone is only
	   ~125px tall -- too short for even the now-clamped 2-line title +
	   2-line excerpt + CTA to sit on top of without still poking above the
	   photo. A taller floor gives the overlay enough backdrop to sit on. */
	.se-fg-card-img { min-height: 200px; }

	.se-home-philosophy__grid { grid-template-columns: 1fr; gap: var(--se-space-5); }
	.se-home-philosophy__media img { aspect-ratio: 16 / 10; }
	.se-home-philosophy__body h2 { font-size: 1.7rem; max-width: none; }
	.se-home-philosophy__body p { max-width: none; }

	.se-home-stats__grid { gap: var(--se-space-3); }
	.se-home-stats__num { font-size: 1.7rem; }
	.se-home-stats__label { font-size: 0.7rem; }

	.se-home-map { height: 400px; }
	.se-home-map__pin-photo { width: 44px; height: 44px; border-width: 2px; }
	.se-home-map__pin-name { font-size: 10px; padding: 2px 8px; }

	/* Compact bottom-sheet instead of a centered card — slides up from the
	   bottom edge of the map rather than scaling from center, and uses a
	   shorter photo + tighter padding so it doesn't dominate a small screen. */
	.se-home-map__card {
		top: auto;
		left: 0;
		bottom: 0;
		width: 100%;
		max-width: none;
		transform: translateY(100%);
		border-radius: 20px 20px 0 0;
	}
	.se-home-map__card.is-open {
		transform: translateY(0);
	}
	.se-home-map__card-photo { height: 140px; }
	.se-home-map__card-body { padding: var(--se-space-4); }
	.se-home-map__card-title { font-size: 1.1rem; }

	.se-home-gallery__grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: repeat(3, 160px);
	}
	.se-home-gallery__item--1 { grid-column: 1 / span 2; grid-row: 1; }
	.se-home-gallery__item--2 { grid-column: 1; grid-row: 2; }
	.se-home-gallery__item--3 { grid-column: 2; grid-row: 2; }
	.se-home-gallery__item--4 { grid-column: 1 / span 2; grid-row: 3; }
}
