/* ME Design Kit — hero sizing.
   Ported from test.mobilityexpress.ae. The page-ID selectors
   .elementor-47 / .elementor-707 were replaced with
   .elementor[data-elementor-type="wp-page"] so this works on any page;
   the stylesheet is only enqueued on the front page anyway. */
/* Home banner = exactly one screen tall on desktop, at any browser zoom (like digitaldubai.ae).
   Feature cards sit at the bottom; title + booking card are centred above them.
   Without JS: min-height only (banner grows if the window is too short).
   With assets/js/me-hero-fit.js: .me-hero-fit locks the height and the script shrinks
   the contents (CSS zoom) when they would not fit — e.g. when zooming in. */
@media (min-width: 1025px) {
	.elementor[data-elementor-type="wp-page"] > [data-id="7d4af36"] {
		display: flex;
		flex-direction: column;
		min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
		min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
	}
	.elementor[data-elementor-type="wp-page"] > [data-id="7d4af36"].me-hero-fit {
		height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
		height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
		overflow: hidden;
	}
	.elementor[data-elementor-type="wp-page"] [data-id="356ac52"],
	.elementor[data-elementor-type="wp-page"] [data-id="356ac52"] > .e-con-inner,
	.elementor[data-elementor-type="wp-page"] [data-id="4b0ded0"] {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		min-height: 0;
	}
	.elementor[data-elementor-type="wp-page"] [data-id="4b0ded0"] > * { flex-shrink: 0; }
	.elementor[data-elementor-type="wp-page"] [data-id="edfaef1"] {
		margin-top: auto;
		margin-bottom: auto;
	}
}

/* used by me-hero-fit.js for a moment while it measures the contents */
.me-hero-measure [data-id="edfaef1"] { margin-top: 0 !important; margin-bottom: 0 !important; }

/* rows inside the banner follow the header width set by me-hero-fit.js */
[data-id="7d4af36"][style*="--me-hero-w"] [data-id="356ac52"] .e-con {
	--container-max-width: var(--me-hero-w) !important;
}

/* set by me-hero-fit.js for a moment while it rescales: no size animations (they made the banner shake) */
.me-hero-calm,
.me-hero-calm *,
.me-hero-calm *::before,
.me-hero-calm *::after { transition: none !important; }

/* ==========================================================================
   Mobile Banner — one screen tall.

   This page has TWO top-level banner sections: the desktop "Banner"
   (7d4af36, everything above) and a purpose-built "Mobile Banner"
   (e0841b0), swapped by Elementor's responsive visibility. Everything above
   deliberately leaves the mobile one alone.

   Only the HEIGHT is set here. No display, no flex, no auto margins: the
   Mobile Banner is already laid out for phones, and forcing the desktop
   composition onto it both showed two banners at once and pushed the trust
   cards away from the buttons. No JS either — the contents are already
   phone-sized, so there is nothing to scale down.

   dvh last: svh is the height with the browser bars EXPANDED, which left a
   gap under the banner on iOS Safari once the bars collapsed. dvh tracks the
   viewport as they move. vh/svh stay as fallbacks for older browsers.
   ========================================================================== */
@media (max-width: 1024px) {
	.elementor[data-elementor-type="wp-page"] > [data-id="e0841b0"] {
		min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
		min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
		min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
	}
}
