/* Safari Gorilla Tour Map — front-end styles */

.sgtm-map-wrap {
	--sgtm-accent: #c2552f;
	--sgtm-ink: #2b2722;
	--sgtm-muted: #6b6055;
	--sgtm-sand: #f5efe6;
	--sgtm-line: #e4dac9;
	margin: 1.5rem 0;
}

.sgtm-map {
	position: relative;
	width: 100%;
	min-height: 240px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--sgtm-sand);
	box-shadow: 0 6px 22px rgba(43, 39, 34, 0.12);
	z-index: 0;
}

/* Loading + message overlays */
.sgtm-map-loading,
.sgtm-map-msg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	color: var(--sgtm-muted);
	background: var(--sgtm-sand);
	z-index: 500;
	text-align: center;
	padding: 1rem;
}

.sgtm-map-msg { background: rgba(245, 239, 230, 0.92); }

/* Pins */
.sgtm-pin { background: none; border: none; }
.sgtm-pin svg { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); display: block; }

/* Numbered route stops */
.sgtm-stop { background: none; border: none; }
.sgtm-stop-dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	border: 2px solid #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Popups */
.leaflet-popup-content-wrapper {
	border-radius: 12px;
	box-shadow: 0 8px 26px rgba(43, 39, 34, 0.22);
	padding: 0;
	overflow: hidden;
}
.leaflet-popup-content { margin: 0; width: auto !important; }

.sgtm-pop { width: 230px; }
.sgtm-pop--dest, .sgtm-pop--stop { width: auto; min-width: 160px; }

.sgtm-pop-img {
	height: 118px;
	background-size: cover;
	background-position: center;
	background-color: var(--sgtm-line);
}
.sgtm-pop-body { padding: 0.7rem 0.85rem 0.85rem; }
.sgtm-pop-title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	line-height: 1.25;
	color: var(--sgtm-ink);
	font-weight: 700;
}
.sgtm-pop-meta {
	margin: 0 0 0.6rem;
	font-size: 0.82rem;
	color: var(--sgtm-muted);
}
.sgtm-pop--stop strong { color: var(--sgtm-ink); }

.sgtm-pop-btn {
	display: inline-block;
	background: var(--sgtm-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	transition: opacity 0.15s ease;
}
.sgtm-pop-btn:hover { opacity: 0.88; }

/* Destination labels */
.sgtm-dest-label {
	background: rgba(43, 39, 34, 0.85);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.72rem;
	padding: 2px 7px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.sgtm-dest-label::before { display: none; }

/* Auto route section on single tours */
.sgtm-route-section { margin-top: 2rem; }
.sgtm-route-heading {
	font-size: 1.4rem;
	margin: 0 0 0.5rem;
	color: var(--sgtm-ink);
}

@media (max-width: 600px) {
	.sgtm-pop { width: 200px; }
	.sgtm-pop-img { height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
	.sgtm-pop-btn { transition: none; }
}
