.vcm-wrapper {
	margin: 1.5em 0;
}

.vcm-controls {
	margin-bottom: 0.5em;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vcm-controls select {
	padding: 0.5em 0.75em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	box-sizing: border-box;
}

.vcm-cemetery-select {
	flex: 1 1 220px;
	min-width: 180px;
	max-width: 320px;
	background: #fff;
}

.vcm-map {
	width: 100%;
	border-radius: 6px;
	z-index: 0;
}

.vcm-attribution {
	font-size: 0.8em;
	color: #666;
	margin-top: 0.4em;
}

.vcm-attribution a {
	color: inherit;
	text-decoration: underline;
}

/* "Locate me" control */
.vcm-locate-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: #fff;
	color: #444;
	cursor: pointer;
	text-decoration: none;
}

.vcm-locate-button:hover {
	background: #f4f4f4;
	color: #1a73e8;
}

.vcm-locate-active {
	color: #1a73e8;
	animation: vcm-locate-pulse 1.1s ease-in-out infinite;
}

@keyframes vcm-locate-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

.vcm-locate-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #1a73e8;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.25 ), 0 0 6px rgba( 26, 115, 232, 0.8 );
}

/* "Fullscreen" control */
.vcm-fullscreen-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: #fff;
	color: #444;
	cursor: pointer;
	text-decoration: none;
}

.vcm-fullscreen-button:hover {
	background: #f4f4f4;
	color: #1a73e8;
}

/* Fixed-position "fake fullscreen" overlay — used instead of the native
   Fullscreen API so it also works on iOS Safari, which doesn't support
   requestFullscreen() on non-video elements. */
.vcm-wrapper.vcm-fullscreen-active {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	margin: 0;
	padding: 10px;
	background: #fff;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.vcm-wrapper.vcm-fullscreen-active .vcm-controls {
	flex: 0 0 auto;
}

.vcm-wrapper.vcm-fullscreen-active .vcm-map {
	flex: 1 1 auto;
	height: auto !important;
}

.vcm-wrapper.vcm-fullscreen-active .vcm-attribution {
	flex: 0 0 auto;
}

body.vcm-fullscreen-lock {
	overflow: hidden;
}

/* Individual grave markers */
.vcm-grave-marker {
	background: #7a1f2b;
	border: 2px solid #fff;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	box-shadow: 0 0 3px rgba( 0, 0, 0, 0.5 );
}

.vcm-grave-cluster div {
	background: rgba( 122, 31, 43, 0.75 );
	border-radius: 50%;
	color: #fff;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
}

.vcm-grave-cluster {
	background: rgba( 122, 31, 43, 0.3 );
	border-radius: 50%;
}

.vcm-grave-tooltip {
	background: #fff;
	border: 1px solid #7a1f2b;
	color: #7a1f2b;
	font-weight: 600;
	font-size: 11px;
	padding: 1px 5px;
	border-radius: 3px;
	box-shadow: none;
}

.vcm-grave-tooltip::before {
	border-top-color: #7a1f2b;
}

.vcm-grave-thumb {
	display: block;
	width: 100%;
	max-width: 180px;
	max-height: 130px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 6px;
}

/* Info box prepended to single grave pages */
.vcm-grave-meta {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 4px 12px;
	margin: 0 0 1.5em;
	padding: 1em 1.25em;
	background: #f7f4f1;
	border-radius: 6px;
}

.vcm-grave-meta dt {
	font-weight: 600;
	color: #555;
}

.vcm-grave-meta dd {
	margin: 0;
}
