.ljgr {
	--ljgr-accent: #0b57d0;
	--ljgr-border: #d9e2ef;
	--ljgr-surface: #fff;
	--ljgr-text: #172033;
	--ljgr-muted: #5d687a;
	box-sizing: border-box;
	color: var(--ljgr-text);
	font-family: inherit;
	margin: 2rem auto;
	max-width: 1120px;
	width: 100%;
}

.ljgr *,
.ljgr *::before,
.ljgr *::after {
	box-sizing: border-box;
}

.ljgr__heading {
	color: inherit;
	font: inherit;
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 1rem;
	text-align: center;
}

.ljgr__widget {
	background: var(--ljgr-surface);
	border: 1px solid var(--ljgr-border);
	border-radius: 18px;
	box-shadow: 0 12px 35px rgba(23, 32, 51, 0.08);
	overflow: hidden;
	position: relative;
}

.ljgr__loading,
.ljgr__error,
.ljgr-error {
	align-items: center;
	background: var(--ljgr-surface);
	border: 1px solid var(--ljgr-border);
	border-radius: 14px;
	color: var(--ljgr-muted);
	display: flex;
	gap: 0.7rem;
	justify-content: center;
	min-height: 150px;
	padding: 1.5rem;
	text-align: center;
}

.ljgr__widget > .ljgr__loading,
.ljgr__widget > .ljgr__error {
	border: 0;
	border-radius: 0;
}

.ljgr__loading[hidden],
.ljgr__error[hidden],
gmp-place-details[hidden] {
	display: none !important;
}

.ljgr__spinner {
	animation: ljgr-spin 0.85s linear infinite;
	border: 3px solid #d6deea;
	border-radius: 50%;
	border-top-color: var(--ljgr-accent);
	height: 1.35rem;
	width: 1.35rem;
}

.ljgr gmp-place-details {
	--gmp-mat-color-primary: var(--ljgr-accent);
	--gmp-mat-color-surface: var(--ljgr-surface);
	--gmp-mat-color-on-surface: var(--ljgr-text);
	--gmp-mat-color-on-surface-variant: var(--ljgr-muted);
	--gmp-star-rating-color: #f4b400;
	background-color: var(--ljgr-surface);
	border: 0;
	border-radius: 18px;
	color-scheme: light;
	display: block;
	font-family: inherit;
	font-size: 16px;
	min-height: 190px;
	width: 100%;
}

.ljgr[data-ljgr-theme="dark"] {
	--ljgr-accent: #8ab4f8;
	--ljgr-border: #354258;
	--ljgr-surface: #172033;
	--ljgr-text: #f5f7fb;
	--ljgr-muted: #bac5d6;
}

.ljgr[data-ljgr-theme="dark"] gmp-place-details {
	color-scheme: dark;
}

.ljgr__footer {
	display: flex;
	justify-content: center;
	margin-top: 1rem;
}

.ljgr__button {
	background: var(--ljgr-accent);
	border: 2px solid var(--ljgr-accent);
	border-radius: 999px;
	color: #fff !important;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	padding: 0.78rem 1.3rem;
	text-decoration: none !important;
	transition: filter 160ms ease, transform 160ms ease;
}

.ljgr__button:hover {
	filter: brightness(0.92);
	transform: translateY(-1px);
}

.ljgr__button:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--ljgr-accent) 40%, transparent);
	outline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
	.ljgr[data-ljgr-theme="auto"] {
		--ljgr-accent: #8ab4f8;
		--ljgr-border: #354258;
		--ljgr-surface: #172033;
		--ljgr-text: #f5f7fb;
		--ljgr-muted: #bac5d6;
	}

	.ljgr[data-ljgr-theme="auto"] gmp-place-details {
		color-scheme: dark;
	}
}

@media (max-width: 600px) {
	.ljgr {
		margin-block: 1.5rem;
	}

	.ljgr__widget,
	.ljgr gmp-place-details {
		border-radius: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ljgr__spinner {
		animation-duration: 1.8s;
	}

	.ljgr__button {
		transition: none;
	}
}

@keyframes ljgr-spin {
	to {
		transform: rotate(360deg);
	}
}
