.canyon-lake-map-wrap {
	position: relative;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(12, 60, 70, 0.25);
}

.canyon-lake-map {
	width: 100%;
	height: 420px;
	background: #F7EBE1;
}

@media (min-width: 768px) {
	.canyon-lake-map {
		height: 480px;
	}
}

/*
 * Starlight marker structure: Leaflet owns the outer div (this class,
 * "canyon-lake-map__starlight-icon") and already positions it via its own
 * "position: absolute" (leaflet-marker-icon in leaflet.css), so nothing here
 * touches position/overflow on it. Our own nested wrapper
 * (.canyon-lake-map__starlight-marker) is what gets position: relative, so
 * the optional label chip (variant B, screenshot-only) can be placed below
 * the circle without fighting Leaflet's own placement.
 */
.canyon-lake-map__starlight-marker {
	position: relative;
	width: 100%;
	height: 100%;
}

.canyon-lake-map__starlight-circle {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	overflow: hidden;
	background: #FFFFFF;
	border: 4px solid #0C3C46;
	filter: drop-shadow(0 3px 6px rgba(12, 60, 70, 0.55));
}

.canyon-lake-map__starlight-circle img {
	display: block;
	border-radius: 50%;
	object-fit: contain;
}

.canyon-lake-map__starlight-label {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 4px;
	background: rgba(12, 60, 70, 0.82);
	color: #FFFFFF;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 11px;
	line-height: 1.3;
	padding: 3px 10px;
	border-radius: 9999px;
	white-space: nowrap;
	pointer-events: none;
}

/*
 * The map wrap clips overflow (.canyon-lake-map-wrap { overflow: hidden; }),
 * so a chip sized for the wider desktop marker can get visibly cut off
 * against the narrower mobile map. Shrink it below the same 768px breakpoint
 * the JS already uses for marker size (STARLIGHT_ICON_MOBILE_SIZE), so the
 * chip stays proportional to the smaller marker and comfortably inside the
 * map at 375px.
 */
@media (max-width: 767px) {
	.canyon-lake-map__starlight-label {
		font-size: 9px;
		padding: 2px 7px;
		margin-top: 3px;
	}
}

/*
 * Alternate label positions, applied by positionStarlightLabel() in
 * canyon-lake-map.js when the default "below" position (the plain rule
 * above) would visually overlap a ramp pin or clip past the map's edge.
 * Starlight's real coordinates sit close to three county ramps, so which
 * position clears them depends on the render's fitBounds zoom, not on a
 * fixed breakpoint; the JS measures actual rendered rects and picks
 * whichever of these keeps the chip clear.
 */
.canyon-lake-map__starlight-label--right {
	top: 50%;
	left: 100%;
	right: auto;
	bottom: auto;
	transform: translateY(-50%);
	margin-top: 0;
	margin-left: 6px;
}

.canyon-lake-map__starlight-label--left {
	top: 50%;
	left: auto;
	right: 100%;
	bottom: auto;
	transform: translateY(-50%);
	margin-top: 0;
	margin-right: 6px;
}

.canyon-lake-map__starlight-label--above {
	top: auto;
	bottom: 100%;
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	margin-top: 0;
	margin-bottom: 6px;
}

.canyon-lake-map__ramp-icon {
	filter: drop-shadow(0 2px 3px rgba(12, 60, 70, 0.45));
}

.canyon-lake-map__popup {
	font-family: "Lora", serif;
	color: #0C3C46;
	min-width: 180px;
}

.canyon-lake-map__popup-title {
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 14px;
	margin: 0 0 6px 0;
	color: #0C3C46;
}

.canyon-lake-map__popup-status {
	display: inline-block;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 12px;
	border-radius: 9999px;
	color: #FFFFFF;
	margin: 0 0 8px 0;
}

.canyon-lake-map__popup-status--open {
	background: #668D7F;
}

.canyon-lake-map__popup-status--closed {
	background: #B6522D;
}

.canyon-lake-map__popup-status--unclear {
	background: #E7A93B;
	color: #0C3C46;
}

.canyon-lake-map__popup-distance {
	font-size: 13px;
	margin: 0;
	color: #0C3C46;
}

.canyon-lake-map__water-label {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	white-space: nowrap;
	background: rgba(12, 60, 70, 0.82);
	color: #FFFFFF;
	border-radius: 10px;
	padding: 8px 10px;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	line-height: 1.3;
	pointer-events: none;
}

.canyon-lake-map__water-label span {
	display: block;
	font-size: 14px;
}

/*
 * Selector is scoped to the ".canyon-lake-map-wrap" ancestor (rather than
 * just ".canyon-lake-map__activate-overlay" alone) so its specificity, 0,2,0,
 * beats the site's global Elementor kit rule ".elementor-kit-278 button",
 * 0,1,1, which otherwise wins the cascade on every <button> in the DOM,
 * including this one. Found 2026-07-25: with the plain single-class
 * selector, the kit rule's background-color, border, and padding all
 * silently won instead of ours, and since the kit's --e-global-color-accent
 * variable happens to equal this same Deep Navy hex but at FULL opacity (not
 * this rule's intended 0.28 alpha), the overlay rendered as a solid opaque
 * Deep Navy panel completely hiding the map, tiles, pins, and marker
 * underneath, with only the hand-icon SVG (an unaffected child) visible.
 * See _wordpress-editing-rules.md rule 42 for the full incident writeup.
 */
.canyon-lake-map-wrap .canyon-lake-map__activate-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	margin: 0;
	padding: 0;
	background: rgba(12, 60, 70, 0.28);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 1000;
	-webkit-tap-highlight-color: transparent;
}

.canyon-lake-map-wrap .canyon-lake-map__activate-overlay:hover,
.canyon-lake-map-wrap .canyon-lake-map__activate-overlay:focus {
	background: rgba(12, 60, 70, 0.38);
}

.canyon-lake-map__activate-overlay svg {
	width: 34px;
	height: 34px;
}

.canyon-lake-map__zoom-hint {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 1000;
	background: rgba(12, 60, 70, 0.85);
	color: #F7EBE1;
	font-family: "Montserrat", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 4px 10px;
	border-radius: 6px;
	pointer-events: none;
}
