/* Fullscreen control for the theme's Leaflet maps (assets/js/leaflet-fullscreen.js). */

.lfs-control .lfs-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: var(--ink, #1a1714);
	background: #fff;
	cursor: pointer;
}

.lfs-control .lfs-btn:hover {
	background: #f4f4f4;
}

.lfs-control .lfs-btn svg {
	display: block;
}

/* Real fullscreen: the browser sizes the element to the screen; only the
   chrome that reads as "embedded" is dropped. */
.lfs-target:fullscreen,
.lfs-target:-webkit-full-screen {
	border-radius: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	background: #fff;
}

/* Fallback (iOS Safari): pin the target over the page. Two classes so it
   beats the wrapper's own !important width rules. */
.lfs-target.lfs-fake {
	position: fixed !important;
	inset: 0 !important;
	width: auto !important;
	max-width: none !important;
	height: 100vh !important;
	height: 100dvh !important;
	max-height: none !important;
	margin: 0 !important;
	border-radius: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	z-index: 100000 !important;
	background: #fff;
}

html.lfs-no-scroll {
	overflow: hidden !important;
}

/* Wrappers with a header above the map keep their column layout, so the map
   row takes whatever height is left. */
.itin-map-wrap.lfs-on {
	display: flex;
	flex-direction: column;
}

.itin-map-wrap.lfs-on .itin-main {
	flex: 1;
	min-height: 0;
	height: auto;
}
