/* Emmcee Reach Timeline */

.elementor-widget-emmcee-reach-timeline,
.elementor-widget-emmcee-reach-timeline > .elementor-widget-container {
	width: 100%;
}

.emmcee-reach-timeline {
	width: 100%;
	box-sizing: border-box;
}

.emmcee-reach-timeline * {
	box-sizing: border-box;
}

/* ---------- Überschrift ---------- */
.reach-timeline-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 30px;
}

.reach-timeline-heading-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	flex-shrink: 0;
}

.reach-timeline-heading-icon i,
.reach-timeline-heading-icon svg {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #c77761;
}

.reach-timeline-heading-text {
	font-family: inherit;
	font-size: 30px;
	font-weight: 500;
	margin: 0;
	color: #433c38;
}

/* ---------- Karte ---------- */
.reach-timeline-map-wrap {
	position: relative;
	width: 100%;
	height: 340px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
	margin-bottom: 44px;
}

.reach-timeline-map {
	width: 100%;
	height: 100%;
}

.reach-timeline-map .leaflet-control-attribution {
	font-size: 10px;
}

/* Leaflet erzeugt für divIcon-Marker einen 1x1px großen Anker-Container;
   unser eigentliches Icon liegt als Kind-Element darin und wird per
   transform zentriert/verankert, statt selbst absolut positioniert zu
   werden (das übernimmt Leaflet anhand der echten Koordinate). */
.reach-timeline-home-icon-wrap,
.reach-timeline-map-marker-icon {
	background: none;
	border: none;
}

.reach-timeline-marker {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transform: translate(-50%, -100%);
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
	white-space: nowrap;
}

.reach-timeline-marker i,
.reach-timeline-marker svg {
	font-size: 30px;
	width: 30px;
	height: 30px;
	color: #a05a3c;
}

.reach-timeline-map-marker-dot-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	transform: translate(-50%, -50%);
	white-space: nowrap;
}

.reach-timeline-map-marker {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background-color: #c77761;
	border: 2px solid #ffffff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	flex-shrink: 0;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.reach-timeline-map-marker-icon.is-active .reach-timeline-map-marker {
	box-shadow: 0 0 0 5px rgba(199, 119, 97, 0.35), 0 1px 4px rgba(0, 0, 0, 0.35);
	transform: scale(1.15);
}

.reach-timeline-map-marker-label {
	font-size: 11px;
	font-weight: 600;
	color: #433c38;
	background: rgba(255, 255, 255, 0.85);
	padding: 2px 6px;
	border-radius: 4px;
	white-space: nowrap;
}

/* ---------- Horizontale Zeitleiste ---------- */
.reach-timeline-list {
	--reach-line-color: rgba(199, 119, 97, 0.35);
	position: relative;
	display: flex;
	justify-content: space-between;
	padding-top: 16px;
}

.reach-timeline-list::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 4px;
	height: 1px;
	background: var(--reach-line-color);
}

.reach-timeline-item {
	position: relative;
	flex: 1;
	text-align: center;
	padding: 0 10px;
}

.reach-timeline-item--clickable {
	cursor: pointer;
	border-radius: 8px;
	transition: background-color 0.2s ease;
}

.reach-timeline-item--clickable:hover,
.reach-timeline-item--clickable:focus-visible {
	background-color: rgba(199, 119, 97, 0.08);
	outline: none;
}

.reach-timeline-item--clickable.is-active .reach-timeline-time {
	color: #c77761;
}

.reach-timeline-item--clickable.is-active::before {
	box-shadow: 0 0 0 4px rgba(199, 119, 97, 0.25);
}

.reach-timeline-item::before {
	content: '';
	position: absolute;
	left: 50%;
	top: -16px;
	transform: translateX(-50%);
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background-color: var(--item-dot-color, var(--reach-dot-color, #c77761));
	border: 2px solid #fcf4eb;
	box-shadow: 0 0 0 1px rgba(199, 119, 97, 0.35);
}

.reach-timeline-time {
	font-weight: 700;
	font-size: 15px;
	color: #433c38;
	margin-bottom: 2px;
	line-height: 1.3;
}

.reach-timeline-place {
	font-size: 13px;
	color: #8a8a8a;
	line-height: 1.3;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.reach-timeline-list {
		flex-wrap: wrap;
		row-gap: 28px;
	}
	.reach-timeline-list::before {
		display: none;
	}
	.reach-timeline-item {
		flex: 1 1 33%;
		min-width: 100px;
	}
}

@media (max-width: 600px) {
	.reach-timeline-map-wrap {
		height: 240px;
		margin-bottom: 32px;
	}
	.reach-timeline-marker i,
	.reach-timeline-marker svg {
		font-size: 24px;
		width: 24px;
		height: 24px;
	}
	.reach-timeline-heading-text {
		font-size: 24px;
	}
	.reach-timeline-item {
		flex: 1 1 50%;
	}
}
