/* Footer menu (mobile): "Meniu" (.open-footer-menu-button) swaps the footer (.footer-div-1) for the links
   block (.footer-div-2), X (.close-footer-menu-button) swaps back. Both blocks share one grid cell, so the
   footer keeps the height of the taller one and toggling never changes the page height / scroll. */
@media (min-width: 768px) {
	.elementor-location-footer .footer-div-2 {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.elementor-location-footer {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	/* Contact section (first block) stays on top. */
	.elementor-location-footer > :first-child {
		grid-row: 1;
		grid-column: 1;
	}

	.elementor-location-footer > .footer-div-1,
	.elementor-location-footer > .footer-div-2 {
		grid-row: 2;
		grid-column: 1;
	}

	/* The footer block has z-index 10 from Elementor - the links block goes above it. */
	.elementor-location-footer > .footer-div-2 {
		z-index: 11;
	}

	/* Closed: links block hidden (still takes part in the cell height). */
	.elementor-location-footer:not(.parko-footer-menu-open) > .footer-div-2 {
		visibility: hidden;
	}

	/* Open: footer content hidden, its background stays under the semi-transparent links block. */
	.elementor-location-footer.parko-footer-menu-open > .footer-div-1 > * {
		visibility: hidden;
	}

	/* Links never run under the X (absolute, 50px, Elementor top 28px): X moved up, the links start below it
	   (padding-top 60 -> 74px) and use the full width (Elementor 88%), so they stay in two columns down to ~310px
	   - one column would make the links block, and with it the footer, much taller. */
	.elementor-location-footer > .footer-div-2 .close-footer-menu-button {
		top: 12px !important;
	}

	.elementor-location-footer > .footer-div-2 {
		--padding-top: 74px !important;
	}

	.elementor-location-footer > .footer-div-2 > .e-con-inner > .e-con {
		--width: 100% !important;
	}

	/* Phone number on one line: "Meniu" takes only its own width (Elementor gives both columns 50%), the number's
	   column the rest; below ~327px (no room for 22px text) the number scales down with the screen. */
	.elementor-location-footer > .footer-div-1 .open-footer-menu-button {
		--width: auto !important;
		flex: 0 0 auto;
	}

	.elementor-location-footer > .footer-div-1 .e-con:has(> .elementor-widget-heading a[href^="tel:"]) {
		--width: auto !important;
		flex: 1 1 auto;
		min-width: 0;
	}

	.elementor-location-footer > .footer-div-1 .elementor-heading-title:has(> a[href^="tel:"]) {
		white-space: nowrap;
		font-size: min(22px, calc((100vw - 137px) * 0.1157)) !important;
	}

	/* Some Elementor elements have "transition: all" - without this both blocks show for ~0.3s while swapping. */
	.elementor-location-footer.parko-footer-switching > .footer-div-1 *,
	.elementor-location-footer.parko-footer-switching > .footer-div-2,
	.elementor-location-footer.parko-footer-switching > .footer-div-2 * {
		transition: none !important;
	}

	.elementor-location-footer .open-footer-menu-button,
	.elementor-location-footer .close-footer-menu-button {
		cursor: pointer;
	}
}

/* "Back to top" button (fixed, inside the footer): above the footer rows - Elementor gives them z-index 10, so the
   011 logo used to paint over the button. */
.elementor-location-footer .elementor-element-d1dcf80 {
	z-index: 20 !important;
}
