.rg-shared-map-preview {
	display: grid;
	gap: 1rem;
	margin-top: clamp(2rem, 4vw, 4rem);
	scroll-margin-top: 2rem;
}

.rg-shared-map-preview-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.rg-shared-map-preview-heading h2 {
	margin: 0;
	font-family: "Cormorant Garamond", "Garamond", serif;
	font-size: clamp(2rem, 3.2vw, 3rem);
	line-height: 1;
	color: #31543a;
}

.rg-shared-map-preview-heading > p {
	max-width: 48ch;
	margin: 0;
	color: #6c675b;
	line-height: 1.55;
}

.rg-shared-explorer-shell {
	display: grid;
	grid-template-columns: minmax(0, 1.72fr) minmax(330px, 0.92fr);
	min-height: 650px;
	border: 1px solid rgba(86, 105, 78, 0.2);
	border-radius: 24px;
	background: rgba(255, 253, 248, 0.94);
	overflow: hidden;
	box-shadow: 0 18px 42px rgba(55, 70, 52, 0.11);
}

.rg-shared-map-preview.has-no-map .rg-shared-explorer-shell {
	display: block;
	min-height: 0;
	background: linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(247, 241, 232, 0.88));
}

.rg-shared-map-panel {
	display: flex;
	min-width: 0;
	min-height: 650px;
	flex-direction: column;
	border-right: 1px solid rgba(86, 105, 78, 0.16);
	background: #fbfaf4;
}

.rg-shared-map-toolbar {
	display: flex;
	min-height: 58px;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.65rem 1rem;
	border-bottom: 1px solid rgba(86, 105, 78, 0.14);
}

.rg-shared-map-toolbar strong {
	font-family: "Cormorant Garamond", "Garamond", serif;
	font-size: 1.35rem;
	color: #31543a;
}

.rg-shared-map-toolbar > div {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.rg-shared-map-toolbar button,
.rg-shared-map-tabs button,
.rg-shared-map-bed-browser button,
.rg-shared-map-results-footer button {
	border: 1px solid rgba(82, 98, 75, 0.18);
	border-radius: 999px;
	background: #fffdf8;
	color: #405443;
	cursor: pointer;
	font: inherit;
}

.rg-shared-map-toolbar button {
	min-width: 38px;
	min-height: 36px;
	padding: 0.42rem 0.75rem;
	font-size: 0.78rem;
}

.rg-shared-map-toolbar button:hover,
.rg-shared-map-toolbar button:focus-visible,
.rg-shared-map-tabs button:hover,
.rg-shared-map-tabs button:focus-visible,
.rg-shared-map-bed-browser button:hover,
.rg-shared-map-bed-browser button:focus-visible {
	border-color: #b86663;
	outline: none;
}

.rg-shared-map-preview-frame {
	position: relative;
	width: auto;
	min-height: 590px;
	flex: 1;
	background: #d6dcc0;
	overflow: hidden;
	touch-action: none;
}

.rg-shared-map-preview-frame svg {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 590px;
	background: #d9dfc1;
	cursor: grab;
	user-select: none;
}

.rg-shared-map-preview-frame svg:active {
	cursor: grabbing;
}

.rg-shared-map-compass {
	position: absolute;
	top: 1rem;
	left: 1rem;
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border: 1px solid rgba(56, 76, 58, 0.22);
	border-radius: 50%;
	background: rgba(255, 253, 247, 0.8);
	color: #405443;
	box-shadow: 0 5px 14px rgba(49, 67, 49, 0.1);
}

.rg-shared-map-compass span {
	position: absolute;
	top: 2px;
	font-size: 0.6rem;
	font-weight: 700;
}

.rg-shared-map-compass i {
	width: 2px;
	height: 26px;
	background: linear-gradient(#b45f62 0 50%, #657260 50%);
	clip-path: polygon(50% 0, 100% 45%, 62% 43%, 62% 100%, 38% 100%, 38% 43%, 0 45%);
	transform-origin: 50% 50%;
}

.rg-shared-map-scale {
	position: absolute;
	bottom: 1rem;
	left: 1rem;
	min-width: 105px;
	padding: 0.45rem 0.6rem;
	border-radius: 10px;
	background: rgba(255, 253, 247, 0.82);
	color: #405443;
	font-size: 0.68rem;
}

.rg-shared-map-scale i {
	display: block;
	width: 100%;
	height: 8px;
	margin-top: 0.1rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	border-left: 2px solid currentColor;
}

.rg-shared-map-popover {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	gap: 0.75rem;
	width: min(360px, calc(100% - 2rem));
	padding: 0.85rem;
	border: 1px solid rgba(86, 105, 78, 0.2);
	border-radius: 18px;
	background: rgba(255, 253, 249, 0.97);
	box-shadow: 0 18px 44px rgba(38, 51, 40, 0.2);
	z-index: 4;
}

.rg-shared-map-popover[hidden] {
	display: none;
}

.rg-shared-map-popover img {
	width: 70px;
	height: 70px;
	border-radius: 13px;
	object-fit: cover;
}

.rg-shared-map-popover h3 {
	margin: 0 1.5rem 0.1rem 0;
	font-family: "Cormorant Garamond", "Garamond", serif;
	font-size: 1.45rem;
	line-height: 1;
	color: #31543a;
}

.rg-shared-map-popover p {
	margin: 0.12rem 0;
	color: #6d665b;
	font-size: 0.76rem;
}

.rg-shared-map-popover .rg-button {
	min-height: 38px;
	padding: 0.55rem 0.75rem;
	font-size: 0.76rem;
	text-align: center;
}

.rg-shared-map-popover-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	border: 0;
	background: transparent;
	color: #6d665b;
	cursor: pointer;
	font-size: 1.25rem;
}

.rg-shared-map-browser {
	display: flex;
	min-width: 0;
	min-height: 0;
	max-height: 708px;
	flex-direction: column;
	padding: 1.35rem 1.25rem 1rem;
}

.rg-shared-map-preview.has-no-map .rg-shared-map-browser {
	max-height: none;
	padding: clamp(1.2rem, 2.5vw, 2rem);
}

.rg-shared-map-preview.has-no-map .rg-shared-map-browser-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
}

.rg-shared-map-preview.has-no-map .rg-shared-map-browser-heading h3 {
	font-size: clamp(1.7rem, 2.7vw, 2.35rem);
}

.rg-shared-map-browser-heading h3 {
	margin: 0;
	font-family: "Cormorant Garamond", "Garamond", serif;
	font-size: 1.8rem;
	line-height: 1;
	color: #31543a;
}

.rg-shared-map-browser-heading p,
.rg-shared-map-status {
	margin: 0.3rem 0 0;
	color: #716b60;
	font-size: 0.76rem;
}

.rg-shared-map-search {
	position: relative;
	display: block;
	margin-top: 0.9rem;
}

.rg-shared-map-preview.has-no-map .rg-shared-map-search {
	width: min(100%, 520px);
	margin-top: 1.1rem;
}

.rg-shared-map-search::before {
	position: absolute;
	top: 50%;
	left: 0.9rem;
	content: "⌕";
	color: #6f7c6c;
	font-size: 1.15rem;
	transform: translateY(-52%);
}

.rg-shared-map-search input {
	width: 100%;
	min-height: 42px;
	padding: 0.55rem 0.85rem 0.55rem 2.35rem;
	border: 1px solid rgba(82, 98, 75, 0.2);
	border-radius: 999px;
	background: #fffefb;
	color: #35493a;
	font: inherit;
}

.rg-shared-map-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.75rem;
}

.rg-shared-map-tabs button {
	padding: 0.42rem 0.75rem;
	font-size: 0.7rem;
}

.rg-shared-map-tabs button.is-active {
	border-color: #4f7158;
	background: #4f7158;
	color: #fff;
}

.rg-shared-map-bed-browser {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.45rem;
	margin-top: 0.8rem;
	max-height: 120px;
	overflow: auto;
}

.rg-shared-map-bed-browser[hidden] {
	display: none;
}

.rg-shared-map-bed-browser button {
	display: grid;
	justify-items: start;
	padding: 0.55rem 0.65rem;
	border-radius: 12px;
	text-align: left;
}

.rg-shared-map-bed-browser button.is-active {
	border-color: #b86663;
	box-shadow: inset 3px 0 #b86663;
}

.rg-shared-map-bed-browser span {
	max-width: 100%;
	overflow: hidden;
	font-size: 0.75rem;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rg-shared-map-bed-browser small {
	color: #7a7469;
	font-size: 0.64rem;
}

.rg-shared-map-status {
	padding: 0.65rem 0 0.55rem;
	border-bottom: 1px solid rgba(82, 98, 75, 0.12);
}

.rg-shared-map-preview.has-no-map .rg-shared-map-status {
	padding: 0.8rem 0 0.9rem;
	border-bottom: 0;
	font-size: 0.82rem;
}

.rg-shared-map-results {
	min-height: 180px;
	flex: 1;
	overflow: auto;
	overscroll-behavior: contain;
}

.rg-shared-map-preview.has-no-map .rg-shared-map-results {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.75rem, 1.4vw, 1.1rem);
	min-height: 0;
	overflow: visible;
}

.rg-shared-collection-card {
	min-width: 0;
	border: 1px solid rgba(105, 90, 72, 0.15);
	border-radius: 18px;
	background: #fffdf9;
	overflow: hidden;
	box-shadow: 0 9px 24px rgba(64, 55, 44, 0.07);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rg-shared-collection-card:hover,
.rg-shared-collection-card:focus-within {
	border-color: rgba(147, 64, 82, 0.42);
	box-shadow: 0 15px 32px rgba(64, 55, 44, 0.12);
	transform: translateY(-2px);
}

.rg-shared-collection-card > a,
.rg-shared-collection-card > div {
	display: grid;
	height: 100%;
	grid-template-rows: auto 1fr;
	color: inherit;
	text-decoration: none;
}

.rg-shared-collection-card > a:focus-visible {
	outline: 3px solid #b86663;
	outline-offset: -3px;
}

.rg-shared-collection-media {
	display: block;
	aspect-ratio: 4 / 3;
	background: linear-gradient(145deg, #eadbd4, #dce8da);
	overflow: hidden;
}

.rg-shared-collection-media img,
.rg-shared-collection-fallback {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	object-fit: cover;
}

.rg-shared-collection-media img {
	transition: transform 240ms ease;
}

.rg-shared-collection-card:hover .rg-shared-collection-media img,
.rg-shared-collection-card:focus-within .rg-shared-collection-media img {
	transform: scale(1.035);
}

.rg-shared-collection-fallback {
	color: #a75f67;
	font-size: 2.25rem;
}

.rg-shared-collection-copy {
	display: grid;
	align-content: start;
	gap: 0.35rem;
	padding: 0.85rem 0.9rem 0.95rem;
}

.rg-shared-collection-copy > small {
	color: #8a7469;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.rg-shared-collection-copy > strong {
	color: #31543a;
	font-family: "Cormorant Garamond", "Garamond", serif;
	font-size: clamp(1.12rem, 1.7vw, 1.38rem);
	line-height: 1.05;
}

.rg-shared-collection-copy > span {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.2rem;
	color: #6f6a60;
	font-size: 0.72rem;
}

.rg-shared-collection-copy b {
	font-weight: 600;
}

.rg-shared-collection-copy i {
	color: #9a4056;
	font-size: 1.15rem;
	font-style: normal;
}

.rg-shared-map-result {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 34px;
	border-bottom: 1px solid rgba(82, 98, 75, 0.1);
}

.rg-shared-map-result.is-selected {
	background: linear-gradient(90deg, rgba(184, 102, 99, 0.13), rgba(184, 102, 99, 0.03));
	box-shadow: inset 3px 0 #b86663;
}

.rg-shared-map-result > button {
	display: grid;
	grid-template-columns: 50px minmax(0, 1fr) auto;
	gap: 0.65rem;
	align-items: center;
	min-width: 0;
	padding: 0.5rem 0.35rem;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	text-align: left;
}

.rg-shared-map-result img,
.rg-shared-map-result-fallback {
	display: grid;
	width: 50px;
	height: 50px;
	place-items: center;
	border-radius: 9px;
	background: #eadbd4;
	object-fit: cover;
	color: #a75f67;
	font-size: 1.25rem;
}

.rg-shared-map-result > button > span:nth-child(2) {
	min-width: 0;
}

.rg-shared-map-result strong,
.rg-shared-map-result small {
	display: block;
}

.rg-shared-map-result strong {
	overflow: hidden;
	color: #31543a;
	font-family: "Cormorant Garamond", "Garamond", serif;
	font-size: 1rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rg-shared-map-result small {
	color: #776f64;
	font-size: 0.65rem;
}

.rg-shared-map-result em {
	color: #31543a;
	font-size: 0.82rem;
	font-style: normal;
	font-weight: 700;
	text-align: right;
}

.rg-shared-map-result > a {
	display: grid;
	place-items: center;
	color: #31543a;
	font-size: 1.5rem;
	text-decoration: none;
}

.rg-shared-map-no-results {
	padding: 2rem 1rem;
	color: #716b60;
	text-align: center;
}

.rg-shared-map-results-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 0.65rem;
	color: #716b60;
	font-size: 0.7rem;
}

.rg-shared-map-results-footer button {
	padding: 0.35rem 0.65rem;
	font-size: 0.68rem;
}

.rg-shared-map-preview-note {
	margin: 0;
	color: #7a7468;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-align: right;
}

.rg-shared-map-preview-empty {
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 0.25rem;
	padding: 3rem 2rem;
	border-right: 1px solid rgba(86, 105, 78, 0.18);
	background: rgba(235, 239, 222, 0.72);
	color: #65705f;
	text-align: center;
}

.rg-shared-map-preview-empty strong {
	font-family: "Cormorant Garamond", "Garamond", serif;
	font-size: 1.75rem;
	color: #31543a;
}

.rg-shared-surface {
	stroke: rgba(90, 83, 71, 0.62);
	stroke-width: 1.1px;
	vector-effect: non-scaling-stroke;
}

.rg-shared-surface.is-flagstone {
	stroke: rgba(99, 84, 65, 0.26);
}

.rg-shared-surface.is-worn {
	stroke: rgba(91, 76, 48, 0.14);
	stroke-width: 0.7px;
}

.rg-shared-bed-fill {
	fill: url(#rg-shared-mulch);
	stroke: var(--rg-bed-color, #d97788);
	stroke-width: 2.3px;
	vector-effect: non-scaling-stroke;
}

.rg-shared-bed-edge {
	fill: none;
	stroke: rgba(225, 206, 177, 0.96);
	stroke-width: 5px;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.rg-shared-bed.has-brick .rg-shared-bed-edge {
	stroke: #a75f48;
	stroke-dasharray: 7 2;
}

.rg-shared-bed.has-stone .rg-shared-bed-edge {
	stroke: #c8bba5;
	stroke-dasharray: 5 2.4;
}

.rg-shared-shadow {
	pointer-events: none;
}

.rg-shared-small-plant {
	fill: #71875f;
	stroke: rgba(47, 70, 44, 0.3);
	stroke-width: 0.08px;
}

.rg-shared-small-plant circle {
	fill: #d6aa6d;
}

.rg-shared-small-plant.is-2 { fill: #89a276; }
.rg-shared-small-plant.is-3 circle { fill: #d98e9d; }

.rg-shared-structure-fill:not(.has-roof) {
	fill: var(--rg-structure-color, #87766d);
}

.rg-shared-structure-fill {
	stroke: rgba(67, 58, 53, 0.64);
	stroke-width: 1.5px;
	vector-effect: non-scaling-stroke;
}

.rg-shared-structure.is-greenhouse .rg-shared-structure-fill {
	fill: rgba(205, 233, 226, 0.72);
	stroke: #74928a;
}

.rg-shared-structure.is-pergola .rg-shared-structure-fill,
.rg-shared-structure.is-patio .rg-shared-structure-fill {
	fill: rgba(173, 143, 108, 0.62);
}

.rg-shared-fence polyline {
	fill: none;
	stroke: #7b654f;
	stroke-width: 3.2px;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.rg-shared-fence circle {
	fill: #876f56;
	stroke: #eadcc5;
	stroke-width: 0.8px;
	vector-effect: non-scaling-stroke;
}

.rg-shared-fence.is-privacy polyline { stroke-width: 5px; }
.rg-shared-fence.is-chainlink polyline { stroke: #7f8984; stroke-dasharray: 2 1; }
.rg-shared-fence.is-split_rail polyline { stroke: #8a7051; stroke-dasharray: 8 3; }

.rg-shared-vegetation image {
	filter: drop-shadow(0 1px 1px rgba(38, 50, 34, 0.14));
}

.rg-shared-trunk {
	fill: #76583f;
	stroke: rgba(61, 43, 31, 0.52);
	stroke-width: 0.7px;
	vector-effect: non-scaling-stroke;
}

.rg-shared-rose > circle:first-of-type {
	fill: #fff;
	stroke: var(--rg-rose-family-color, #a66f7d);
	stroke-width: 2.25px;
	filter: drop-shadow(0 1px 2px rgba(43, 50, 44, 0.38));
	vector-effect: non-scaling-stroke;
}

.rg-shared-rose-fallback {
	fill: #d36e80;
}

.rg-shared-rose.is-interactive,
.rg-shared-rose-cluster,
.rg-shared-bed-count,
.rg-shared-bed[data-rg-shared-map-bed] {
	cursor: pointer;
}

.rg-shared-rose.is-selected > circle:first-of-type {
	fill: #fff;
	stroke: var(--rg-rose-family-color, #a66f7d);
	stroke-width: 3.5px;
}

.rg-shared-rose-cluster circle,
.rg-shared-bed-count circle {
	fill: rgba(177, 95, 99, 0.94);
	stroke: #fffaf0;
	stroke-width: 2px;
	filter: drop-shadow(0 1px 2px rgba(43, 50, 44, 0.35));
	vector-effect: non-scaling-stroke;
}

.rg-shared-bed-count circle {
	fill: rgba(73, 103, 78, 0.92);
}

.rg-shared-rose-cluster text,
.rg-shared-bed-count text {
	fill: #fff;
	font-family: Georgia, serif;
	font-size: 0.72em;
	font-weight: 700;
	pointer-events: none;
	text-anchor: middle;
	dominant-baseline: central;
}

.rg-shared-rose:focus-visible,
.rg-shared-rose-cluster:focus-visible,
.rg-shared-bed-count:focus-visible {
	outline: none;
}

.rg-shared-rose:focus-visible circle,
.rg-shared-rose-cluster:focus-visible circle,
.rg-shared-bed-count:focus-visible circle {
	stroke: #f4bf59;
	stroke-width: 4px;
}

.rg-shared-night {
	fill: #173b68;
	pointer-events: none;
}

.rg-shared-grid {
	pointer-events: none;
}

.rg-shared-boundary {
	fill: none;
	stroke: rgba(49, 70, 52, 0.78);
	stroke-width: 2px;
	vector-effect: non-scaling-stroke;
}

.rg-shared-map-panel:fullscreen,
.rg-shared-map-panel.is-expanded {
	display: flex;
	width: 100vw;
	height: 100vh;
	max-width: none;
	background: #fbfaf4;
}

.rg-shared-map-panel.is-expanded {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.rg-shared-map-panel:fullscreen .rg-shared-map-preview-frame,
.rg-shared-map-panel:fullscreen .rg-shared-map-preview-frame svg,
.rg-shared-map-panel.is-expanded .rg-shared-map-preview-frame,
.rg-shared-map-panel.is-expanded .rg-shared-map-preview-frame svg {
	min-height: 0;
}

.rg-shared-highlights-return {
	color: #496950;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 1080px) {
	.rg-shared-explorer-shell,
	.rg-shared-map-preview.has-no-map .rg-shared-explorer-shell {
		grid-template-columns: 1fr;
	}

	.rg-shared-map-panel {
		min-height: 560px;
		border-right: 0;
		border-bottom: 1px solid rgba(86, 105, 78, 0.16);
	}

	.rg-shared-map-preview-frame,
	.rg-shared-map-preview-frame svg {
		min-height: 500px;
	}

	.rg-shared-map-browser {
		max-height: 680px;
	}

	.rg-shared-map-preview-empty {
		min-height: 220px;
		border-right: 0;
		border-bottom: 1px solid rgba(86, 105, 78, 0.18);
	}

	.rg-shared-map-preview.has-no-map .rg-shared-map-results {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.rg-shared-map-preview-heading {
		align-items: start;
		flex-direction: column;
	}

	.rg-shared-explorer-shell {
		border-radius: 16px;
	}

	.rg-shared-map-panel {
		min-height: 480px;
	}

	.rg-shared-map-toolbar {
		align-items: start;
		flex-direction: column;
	}

	.rg-shared-map-toolbar > div {
		width: 100%;
		flex-wrap: wrap;
	}

	.rg-shared-map-preview-frame,
	.rg-shared-map-preview-frame svg {
		min-height: 420px;
	}

	.rg-shared-map-browser {
		max-height: 720px;
		padding: 1rem;
	}

	.rg-shared-map-bed-browser {
		grid-template-columns: 1fr;
	}

	.rg-shared-map-popover {
		grid-template-columns: 54px minmax(0, 1fr);
	}

	.rg-shared-map-popover img {
		width: 54px;
		height: 54px;
	}

	.rg-shared-map-result > button {
		grid-template-columns: 44px minmax(0, 1fr);
	}

	.rg-shared-map-result img,
	.rg-shared-map-result-fallback {
		width: 44px;
		height: 44px;
	}

	.rg-shared-map-result em {
		display: none;
	}

	.rg-shared-map-preview.has-no-map .rg-shared-map-results {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rg-shared-map-preview.has-no-map .rg-shared-map-browser {
		padding: 1rem;
	}
}

@media (max-width: 430px) {
	.rg-shared-map-preview.has-no-map .rg-shared-map-results {
		grid-template-columns: 1fr;
	}

	.rg-shared-collection-media {
		aspect-ratio: 16 / 10;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rg-shared-collection-card,
	.rg-shared-collection-media img {
		transition: none;
	}
}
