/**
 * Travel26 Tour Map
 *
 * Contents
 * 1. Variables
 * 2. Start / end line
 * 3. Map frame
 * 4. Editor hint
 * 5. Responsive and reduced motion
 *
 * Colours read the Inoforest Core Design System when it is active, with the Travel26 design as fallback.
 */

/* 1. Variables ------------------------------------------------------------------ */
.travel26-map {
	--travel26-map-ratio: 16 / 8;
}

/* 2. Start / end line --------------------------------------------------------------- */
.travel26-map .travel26-map__note {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #8b99a6;
}

.travel26-map .travel26-map__note + .travel26-map__frame {
	margin-top: 16px;
}

.travel26-map .travel26-map__note-icon {
	display: inline-flex;
	color: var(--inoforest-color-primary, #0b7a75);
}

.travel26-map .travel26-map__note-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* 3. Map frame ------------------------------------------------------------------------ */
.travel26-map .travel26-map__frame {
	position: relative;
	width: 100%;
	overflow: hidden;
	aspect-ratio: var(--travel26-map-ratio);
	background: #f4f8f8;
	border-radius: 24px;
}

.travel26-map .travel26-map__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.travel26-map[data-grayscale="true"] .travel26-map__frame iframe {
	filter: grayscale(1);
	transition: filter 0.4s ease;
}

.travel26-map[data-grayscale="true"] .travel26-map__frame:hover iframe {
	filter: none;
}

/* 4. Editor hint ------------------------------------------------------------------- */
.travel26-map__empty {
	margin: 0;
	padding: 14px 18px;
	font-size: 13px;
	text-align: center;
	border: 1px dashed var(--inoforest-color-border, #e5ebef);
	border-radius: 12px;
}

/* 5. Responsive and reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.travel26-map[data-grayscale="true"] .travel26-map__frame iframe {
		transition: none;
	}
}
