.lgl-existing-map-explorer {
	--lgl-existing-map-accent: #1677d2;
	--lgl-existing-map-active: #d62928;
	--lgl-existing-map-text: #242b33;
	--lgl-existing-map-muted: #667180;
	--lgl-existing-map-border: #e6edf3;
	display: grid;
	grid-template-columns: minmax(300px, 38%) minmax(0, 1fr);
	gap: 28px;
	width: 100%;
	padding: 28px;
	border-radius: 24px;
	background: #ffffff;
	box-shadow: 0 18px 48px rgba(31, 52, 72, 0.1);
}

.lgl-existing-map-explorer *,
.lgl-existing-map-explorer *::before,
.lgl-existing-map-explorer *::after {
	box-sizing: border-box;
}

.lgl-existing-map-explorer__panel {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 14px;
}

.lgl-existing-map-explorer__sheet-handle {
	display: none;
}

.lgl-existing-map-explorer__pane {
	display: contents;
}

.lgl-existing-map-explorer__title {
	margin: 0;
	color: var(--lgl-existing-map-text);
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.1;
	letter-spacing: 0;
}

.lgl-existing-map-explorer__description {
	margin: -4px 0 0;
	color: var(--lgl-existing-map-muted);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0;
}

.lgl-existing-map-explorer__search {
	width: 100%;
	min-height: 56px;
	border: 1px solid var(--lgl-existing-map-border);
	border-radius: 8px;
	background: #f7f9fb;
	padding: 0 18px;
	color: var(--lgl-existing-map-text);
	font: inherit;
	outline: none;
}

.lgl-existing-map-explorer__search:focus {
	border-color: var(--lgl-existing-map-accent);
	box-shadow: 0 0 0 4px rgba(22, 119, 210, 0.14);
}

.lgl-existing-map-explorer__summary {
	min-height: 20px;
	color: var(--lgl-existing-map-muted);
	font-size: 14px;
}

.lgl-existing-map-explorer__list {
	display: grid;
	gap: 14px;
	max-height: 500px;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 4px 8px 4px 0;
	scrollbar-width: thin;
	touch-action: pan-y;
	-webkit-overflow-scrolling: touch;
}

.lgl-existing-map-explorer__list::-webkit-scrollbar {
	width: 8px;
}

.lgl-existing-map-explorer__list::-webkit-scrollbar-track {
	background: transparent;
}

.lgl-existing-map-explorer__list::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(102, 113, 128, 0.32);
}

.lgl-existing-map-card {
	display: grid;
	grid-template-columns: 124px minmax(0, 1fr);
	gap: 16px;
	padding: 14px;
	border: 1px solid var(--lgl-existing-map-border);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 12px 26px rgba(20, 38, 56, 0.06);
	cursor: pointer;
	outline: none;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.lgl-existing-map-card__media {
	display: contents;
}

.lgl-existing-map-card__image--placeholder {
	display: none;
}

.lgl-existing-map-card:hover,
.lgl-existing-map-card:focus-visible,
.lgl-existing-map-card.is-active {
	border-color: var(--lgl-existing-map-accent);
	box-shadow: 0 18px 36px rgba(22, 119, 210, 0.16);
	transform: translateY(-1px);
}

.lgl-existing-map-card[hidden] {
	display: none;
}

.lgl-existing-map-card__image {
	width: 100%;
	min-height: 104px;
	aspect-ratio: 1.2 / 1;
	border-radius: 8px;
	object-fit: cover;
	background: #dce8f1;
}

.lgl-existing-map-card__image--empty {
	display: block;
}

.lgl-existing-map-card__body {
	display: grid;
	align-content: start;
	gap: 8px;
	min-width: 0;
}

.lgl-existing-map-card__title {
	margin: 0;
	color: var(--lgl-existing-map-text);
	font-size: 18px;
	line-height: 1.25;
	letter-spacing: 0;
}

.lgl-existing-map-card__excerpt {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--lgl-existing-map-muted);
	font-size: 14px;
	line-height: 1.45;
}

.lgl-existing-map-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.lgl-existing-map-card__tags span {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #edf5fc;
	color: #286b9f;
	font-size: 12px;
	line-height: 1;
}

.lgl-existing-map-card__link {
	justify-self: start;
	color: var(--lgl-existing-map-accent);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.lgl-existing-map-card__link:hover,
.lgl-existing-map-card__link:focus {
	text-decoration: underline;
}

.lgl-existing-map-explorer__empty {
	padding: 16px;
	border: 1px dashed var(--lgl-existing-map-border);
	border-radius: 8px;
	color: var(--lgl-existing-map-muted);
}

.lgl-existing-map-explorer__load-more {
	display: none;
}

.lgl-existing-map-explorer__map {
	align-self: stretch;
	height: 100%;
	min-width: 0;
	border-radius: 20px;
	overflow: hidden;
	background: transparent;
}

.lgl-existing-map-explorer__map .lgl-existing-map-source,
.lgl-existing-map-explorer__map .map-container {
	height: 100% !important;
	min-height: 620px;
	border-radius: 20px;
	overflow: hidden;
	background: transparent !important;
}

.lgl-existing-map-explorer__map #map {
	height: 100% !important;
	min-height: 620px;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.lgl-existing-map-explorer__map .custom-label {
	background: transparent;
	border: 0;
}

.lgl-existing-map-explorer__map .label-marker {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: max-content;
	max-width: 240px;
	padding: 9px 18px;
	border-radius: 999px;
	background: #ffffff;
	color: #30343b;
	box-shadow: 0 6px 16px rgba(31, 41, 55, 0.22);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.lgl-existing-map-explorer__map .label-marker::before {
	content: "\2022";
	color: currentColor;
	font-size: 22px;
	line-height: 0;
	transform: translateY(-1px);
}

.lgl-existing-map-explorer__map .lgl-existing-map-marker--active .label-marker {
	background: var(--lgl-existing-map-active) !important;
	color: #ffffff !important;
	box-shadow: 0 8px 18px rgba(214, 41, 40, 0.32) !important;
	transform: translateY(-2px);
}

.lgl-existing-map-explorer__map .lgl-existing-map-marker--active {
	z-index: 10000 !important;
}

.lgl-existing-map-explorer__map .lgl-existing-map-marker--active .label-marker::before {
	color: #ffffff !important;
}

.lgl-existing-map-explorer__map .side-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 420px;
	height: auto;
	max-height: 98%;
	transform: translateY(1%) translateX(-2%);
	background: white;
	border-radius: 20px;
	box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	display: none;
	flex-direction: column;
	overflow: hidden;
	margin-top: 0;
	margin-right: 0;
	margin-bottom: 20px;
}

.lgl-existing-map-explorer__map .side-panel.active {
	display: flex;
}

.lgl-existing-map-explorer__map .panel-close {
	z-index: 3;
	background: rgba(255, 255, 255, 0.92);
	color: #080341;
}

.lgl-existing-map-explorer__map .panel-image {
	position: relative;
	height: 190px !important;
	min-height: 190px;
	background-position: center;
	background-size: cover;
}

.lgl-existing-map-explorer__map .panel-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.22));
	pointer-events: none;
}

.lgl-existing-map-explorer__map .panel-image h3 {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.lgl-existing-map-explorer__map .panel-content {
	display: flex;
	flex: 0 1 auto;
	min-height: 0;
	flex-direction: column;
	overflow: hidden;
	background: #ffffff;
}

.lgl-existing-map-explorer__map .panel-features {
	display: none !important;
}

.lgl-existing-map-explorer__map .panel-description {
	display: none !important;
}

.lgl-existing-map-explorer__map .panel-button-container {
	flex: 0 0 auto;
	margin-top: 0;
	padding: 0 24px 24px;
}

.lgl-existing-map-explorer__map .panel-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	border-radius: 8px;
	background: #d62828;
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
}

.lgl-existing-map-explorer__map .panel-button:hover,
.lgl-existing-map-explorer__map .panel-button:focus {
	background: #b91f1f;
	color: #ffffff;
}

.lgl-existing-map-panel-meta {
	display: grid;
	flex: 0 1 auto;
	gap: 0;
	min-height: 0;
	overflow: auto;
	padding: 20px 24px 20px;
	color: #1b1b1d;
	font-family: inherit;
}

.lgl-existing-map-panel-meta__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 12px;
}

.lgl-existing-map-panel-meta__title {
	margin: 0;
	color: #1b1b1d;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.16;
	letter-spacing: 0;
}

.lgl-existing-map-panel-meta__badge {
	position: absolute;
	top: 16px;
	right: 58px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	border-radius: 999px;
	background: #303a78;
	color: #ffffff;
	padding: 7px 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.lgl-existing-map-panel__handle,
.lgl-existing-map-panel-media {
	display: none;
}

.lgl-existing-map-panel-meta__tags,
.lgl-existing-map-panel-meta__itineraries div {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lgl-existing-map-panel-meta__tags {
	margin: 0 0 18px;
}

.lgl-existing-map-panel-meta__tags span,
.lgl-existing-map-panel-meta__itineraries a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 3px 9px;
	border: 1px solid rgba(214, 40, 40, 0.14);
	border-radius: 999px;
	background: #ffffff;
	color: #005cb8;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.lgl-existing-map-panel-meta__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 18px;
	padding: 15px 0;
	border-top: 1px solid rgba(113, 119, 134, 0.18);
	border-bottom: 1px solid rgba(113, 119, 134, 0.18);
}

.lgl-existing-map-panel-meta__fact {
	min-width: 0;
}

.lgl-existing-map-panel-meta__fact-label,
.lgl-existing-map-panel-meta__summary-label,
.lgl-existing-map-panel-meta__itineraries-label {
	display: block;
	margin: 0 0 5px;
	color: #5d5e63;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.lgl-existing-map-panel-meta__fact-value {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: #1b1b1d;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
}

.lgl-existing-map-panel-meta__dot {
	display: inline-flex;
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: #2e9f67;
}

.lgl-existing-map-panel-meta__dot--moderate {
	background: #e69b22;
}

.lgl-existing-map-panel-meta__dot--strong {
	background: #d62828;
}

.lgl-existing-map-panel-meta__summary {
	margin: 0 0 22px;
	color: #414755;
	font-size: 15px;
	line-height: 1.55;
}

.lgl-existing-map-panel-meta__summary p {
	margin: 0;
}

.lgl-existing-map-panel-meta__itineraries {
	display: grid;
	gap: 8px;
}

.lgl-existing-map-panel-meta__itineraries div {
	margin-top: 0;
}

.lgl-existing-map-panel-meta__itineraries a {
	min-height: 30px;
	border-color: transparent;
	background: #e0dfe4;
	color: #303032;
	padding: 7px 11px;
	font-size: 13px;
}

.lgl-existing-map-panel-meta__itineraries a:hover,
.lgl-existing-map-panel-meta__itineraries a:focus {
	border-color: #d62828;
	background: #d62828;
	color: #ffffff;
}

@media (max-width: 1024px) {
	.lgl-existing-map-explorer {
		grid-template-columns: 1fr;
		padding: 22px;
	}

	.lgl-existing-map-explorer__map {
		order: -1;
	}

	.lgl-existing-map-explorer__map .lgl-existing-map-source,
	.lgl-existing-map-explorer__map .map-container,
	.lgl-existing-map-explorer__map #map {
		min-height: 520px;
	}
}

@media (max-width: 640px) {
	.lgl-existing-map-explorer {
		display: block;
		position: relative;
		padding: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		overflow: hidden;
	}

	.lgl-existing-map-explorer__panel {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1001;
		display: block;
		height: min(78%, 645px);
		min-height: 495px;
		overflow: hidden;
		border-radius: 28px 28px 0 0;
		background: #ffffff;
		box-shadow: 0 -8px 28px rgba(17, 24, 39, 0.22);
	}

	.lgl-existing-map-explorer__sheet-handle {
		position: absolute;
		top: 10px;
		left: 50%;
		z-index: 3;
		display: block;
		width: 46px;
		height: 6px;
		border-radius: 999px;
		background: #c9c9c9;
		transform: translateX(-50%);
	}

	.lgl-existing-map-explorer__pane {
		position: absolute;
		top: 24px;
		bottom: 0;
		left: 0;
		display: block;
		width: 100%;
		transition: transform 260ms ease;
	}

	.lgl-existing-map-explorer__pane--list {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 22px 18px 16px;
		transform: translateX(0);
	}

	.lgl-existing-map-explorer__pane--detail {
		background: #ffffff;
		transform: translateX(100%);
	}

	.lgl-existing-map-explorer__panel.is-detail-open .lgl-existing-map-explorer__pane--list {
		transform: translateX(-100%);
	}

	.lgl-existing-map-explorer__panel.is-detail-open .lgl-existing-map-explorer__pane--detail {
		transform: translateX(0);
	}

	.lgl-existing-map-explorer__title {
		display: block;
		margin-right: 0;
		max-width: 100%;
		overflow-wrap: anywhere;
		font-size: 25px !important;
		line-height: 1.14 !important;
	}

	.lgl-existing-map-explorer__description {
		display: none;
	}

	.lgl-existing-map-explorer__search {
		min-height: 46px;
		padding: 0 14px;
		border-radius: 999px;
		background: #f1f3f4;
		font-size: 15px !important;
		line-height: 1.2;
	}

	.lgl-existing-map-explorer__summary {
		min-height: 18px;
		font-size: 13px;
	}

	.lgl-existing-map-explorer__list {
		display: grid;
		gap: 10px;
		max-height: none;
		min-height: 0;
		overflow: auto;
		padding: 10px;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.lgl-existing-map-card {
		position: relative;
		display: block;
		padding: 0 0 18px;
		overflow: visible;
		border: 0;
		border-bottom: 4px solid #f1f3f4;
		border-radius: 0;
		background: #ffffff;
		box-shadow: none;
	}

	.lgl-existing-map-card:hover,
	.lgl-existing-map-card:focus-visible,
	.lgl-existing-map-card.is-active {
		border-color: transparent;
		box-shadow: none;
		transform: none;
	}

	.lgl-existing-map-card__media {
		display: flex;
		gap: 12px;
		margin: 0 -10px 18px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		padding: 0 10px 4px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.lgl-existing-map-card__media::-webkit-scrollbar {
		display: none;
	}

	.lgl-existing-map-card__image {
		display: block;
		flex: 0 0 76%;
		width: 76%;
		height: 176px;
		min-height: 176px;
		aspect-ratio: 1.78 / 1;
		border-radius: 12px;
		object-fit: cover;
		scroll-snap-align: start;
	}

	.lgl-existing-map-card__image--placeholder {
		display: block;
	}

	.lgl-existing-map-card__body {
		display: grid;
		gap: 7px;
		padding: 0 76px 0 0;
	}

	.lgl-existing-map-card__title {
		font-size: 22px;
		font-weight: 500;
		line-height: 1.18;
	}

	.lgl-existing-map-card__excerpt {
		display: block;
		color: #5f6368;
		font-size: 15px;
		line-height: 1.28;
	}

	.lgl-existing-map-card__tags {
		gap: 6px;
	}

	.lgl-existing-map-card__tags span {
		min-height: 24px;
		padding: 3px 9px;
		border-radius: 999px;
		background: #edf5fc;
		color: #286b9f;
		font-size: 12px;
		font-weight: 400;
	}

	.lgl-existing-map-explorer__map {
		position: relative;
		height: min(1000px, calc(100svh + 240px));
		min-height: 860px;
		border-radius: 0;
	}

	.lgl-existing-map-explorer__map .lgl-existing-map-source,
	.lgl-existing-map-explorer__map .map-container,
	.lgl-existing-map-explorer__map #map {
		height: 100% !important;
		min-height: 860px;
		border-radius: 0 !important;
	}

	.lgl-existing-map-explorer__load-more {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: calc(100% - 20px);
		min-height: 46px;
		margin: 0 10px 10px;
		border: 0;
		border-radius: 999px;
		background: #f1f3f4;
		color: #1f2933;
		font-size: 15px;
		font-weight: 700;
		cursor: pointer;
	}

	.lgl-existing-map-explorer__load-more[hidden] {
		display: none;
	}

	.lgl-existing-map-explorer__map .leaflet-control-container .leaflet-top {
		top: 14px;
	}

	.lgl-existing-map-explorer__map .leaflet-control-container .leaflet-right {
		right: 14px;
	}

	.lgl-existing-map-explorer__map .side-panel,
	.lgl-existing-map-explorer__map .mobile-popup {
		display: none !important;
	}

	.lgl-existing-map-explorer__detail-scroll {
		height: 100%;
		overflow: auto;
		padding: 54px 20px 18px;
		-webkit-overflow-scrolling: touch;
	}

	.lgl-existing-map-explorer__detail-back {
		position: absolute;
		top: 14px;
		left: 16px;
		z-index: 2;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 38px;
		border: 0;
		border-radius: 999px;
		background: #f1f3f4;
		color: #1f1f1f;
		cursor: pointer;
	}

	.lgl-existing-map-explorer__detail-back span {
		width: 12px;
		height: 12px;
		border: solid currentColor;
		border-width: 0 0 2px 2px;
		transform: translateX(2px) rotate(45deg);
	}

	.lgl-existing-map-panel-meta {
		display: flex;
		flex: 0 0 auto;
		flex-direction: column;
		overflow: visible;
		padding: 0;
	}

	.lgl-existing-map-panel-meta__head {
		min-height: 0;
		margin: 0 0 14px;
	}

	.lgl-existing-map-panel-meta__title {
		font-size: 26px;
		line-height: 1.12;
	}

	.lgl-existing-map-panel-media {
		display: grid;
		grid-auto-columns: minmax(252px, 78%);
		grid-auto-flow: column;
		gap: 12px;
		margin: 0 -20px 18px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		padding: 0 20px 4px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.lgl-existing-map-panel-media::-webkit-scrollbar {
		display: none;
	}

	.lgl-existing-map-panel-media__item {
		position: relative;
		aspect-ratio: 1.55 / 1;
		margin: 0;
		overflow: hidden;
		border-radius: 8px;
		background: #dce8f1;
		scroll-snap-align: start;
	}

	.lgl-existing-map-panel-media__item img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.lgl-existing-map-panel-meta__tags {
		gap: 7px;
		margin: 0 0 14px;
	}

	.lgl-existing-map-panel-meta__tags span,
	.lgl-existing-map-panel-meta__itineraries a {
		min-height: 28px;
		padding: 5px 10px;
		font-size: 12px;
	}

	.lgl-existing-map-panel-meta__facts {
		gap: 12px;
		margin: 0 0 14px;
		padding: 14px 0;
	}

	.lgl-existing-map-panel-meta__summary {
		margin: 0 0 16px;
		font-size: 14px;
		line-height: 1.5;
	}

	.lgl-existing-map-panel-meta__itineraries {
		gap: 7px;
	}

	.lgl-existing-map-explorer__detail-cta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 48px;
		border-radius: 999px;
		background: #d62828;
		color: #ffffff;
		font-size: 15px;
		font-weight: 800;
		text-decoration: none;
	}
}

@media (max-width: 390px) {
	.lgl-existing-map-panel-meta__facts {
		grid-template-columns: 1fr;
	}

	.lgl-existing-map-panel-meta__title {
		font-size: 25px;
	}
}
