.shlm-wrap {
	--shlm-marker-size: 18px;
	--shlm-available: #2e9e4f;
	--shlm-reserved: #e8a013;
	--shlm-sold: #c0392b;
	--shlm-tip-bg: #1f2937;
	--shlm-tip-color: #fff;
	--shlm-accent: #beaf87;
	position: relative;
}

.shlm-map {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0;
}

.shlm-img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Markers ---------- */
/* Hard reset: themes commonly style bare <button> elements (padding,
   background, border-radius, min-width). Nuke everything, re-apply ours. */
.shlm-wrap button.shlm-marker {
	all: unset;
	box-sizing: border-box;
	display: block;
	position: absolute !important;
	transform: translate(-50%, -50%) !important;
	width: var(--shlm-marker-size) !important;
	height: var(--shlm-marker-size) !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	z-index: 2;
	line-height: normal;
	overflow: visible !important;
}

.shlm-wrap button.shlm-marker:hover,
.shlm-wrap button.shlm-marker:focus,
.shlm-wrap button.shlm-marker:active {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	transform: translate(-50%, -50%) !important;
	outline: none;
}

.shlm-dot {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 100% !important;
	border-radius: 50% !important;
	border: 1.5px solid #fff !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	box-sizing: border-box;
	color: #fff !important;
	font-weight: 400 !important;
	font-size: calc(var(--shlm-marker-size) * 0.5);
	line-height: 1 !important;
	font-family: Arial, Helvetica, sans-serif !important;
	padding: 0 !important;
	text-align: center;
	user-select: none;
}

.shlm-marker.is-available .shlm-dot { background: var(--shlm-available) !important; }
.shlm-marker.is-reserved  .shlm-dot { background: var(--shlm-reserved) !important; }
.shlm-marker.is-sold      .shlm-dot { background: var(--shlm-sold) !important; }

.shlm-marker:hover,
.shlm-marker:focus-visible {
	z-index: 5;
}
.shlm-marker:focus-visible .shlm-dot {
	outline: 3px solid rgba(0, 0, 0, 0.35);
	outline-offset: 2px;
}

/* Pulse on available lots */
.shlm-pulse .shlm-marker.is-available .shlm-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--shlm-available);
	opacity: 0.5;
	animation: shlm-pulse 1.8s ease-out infinite;
	z-index: -1;
}
.shlm-pulse .shlm-marker.is-available { position: absolute; }
.shlm-pulse .shlm-marker.is-available .shlm-dot { position: relative; }

@keyframes shlm-pulse {
	0%   { transform: scale(1);   opacity: 0.5; }
	80%  { transform: scale(2.4); opacity: 0; }
	100% { transform: scale(2.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.shlm-pulse .shlm-marker.is-available .shlm-dot::after { animation: none; display: none; }
}

/* ---------- Tooltip (hover) ---------- */
.shlm-tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: var(--shlm-tip-bg);
	color: var(--shlm-tip-color);
	border-radius: 6px;
	padding: 7px 10px 6px;
	max-width: 260px;
	width: max-content;
	text-align: left;
	font-size: 12px;
	line-height: 1.3;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
	white-space: normal;
	z-index: 10;
}

.shlm-tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: var(--shlm-tip-bg);
}

.shlm-marker:hover .shlm-tip,
.shlm-marker:focus-visible .shlm-tip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.shlm-tip-head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 2px;
}

.shlm-tip strong {
	font-size: 13px;
	white-space: nowrap;
}

.shlm-tip-head .shlm-badge {
	margin-bottom: 0;
	font-size: 10px;
	padding: 1px 6px;
}

.shlm-tip-row { display: block; opacity: 0.9; }

.shlm-tip-hint {
	display: block;
	margin-top: 3px;
	font-size: 10px;
	opacity: 0.6;
}

.shlm-badge {
	display: inline-block;
	font-style: normal;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 1px 7px;
	border-radius: 999px;
	margin-bottom: 4px;
	color: #fff;
}
.shlm-badge.is-available { background: var(--shlm-available); }
.shlm-badge.is-reserved  { background: var(--shlm-reserved); }
.shlm-badge.is-sold      { background: var(--shlm-sold); }

/* ---------- Legend ---------- */
.shlm-legend {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 12px 0 0;
	padding: 0;
	font-size: 14px;
}
.shlm-legend li {
	display: flex;
	align-items: center;
	gap: 7px;
}
.shlm-legend-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
}
.shlm-legend-dot.is-available { background: var(--shlm-available); }
.shlm-legend-dot.is-reserved  { background: var(--shlm-reserved); }
.shlm-legend-dot.is-sold      { background: var(--shlm-sold); }

/* ---------- Modal ---------- */
.shlm-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.shlm-modal[hidden] { display: none; }

.shlm-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
}

.shlm-modal-card {
	position: relative;
	background: #fff;
	color: #1f2937;
	border-radius: 10px;
	max-width: 380px;
	width: 100%;
	padding: 26px 24px 24px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	animation: shlm-modal-in 0.18s ease-out;
}

@keyframes shlm-modal-in {
	from { transform: translateY(10px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

.shlm-modal button.shlm-modal-close {
	all: unset;
	box-sizing: border-box;
	display: block;
	position: absolute !important;
	top: 8px !important;
	right: 12px !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 26px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer;
	color: #6b7280 !important;
	padding: 4px !important;
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	width: auto !important;
	height: auto !important;
}
.shlm-modal button.shlm-modal-close:hover,
.shlm-modal button.shlm-modal-close:focus,
.shlm-modal button.shlm-modal-close:active {
	color: #111827 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.shlm-modal button.shlm-modal-close:focus-visible {
	outline: 2px solid #9ca3af !important;
	outline-offset: 2px;
}

.shlm-modal-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.shlm-modal-body h3 {
	margin: 0;
	font-size: 20px;
}

.shlm-modal-head .shlm-badge {
	margin-bottom: 0;
}

.shlm-modal-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px solid #eef0f3;
	font-size: 14px;
}
.shlm-modal-row span:first-child { color: #6b7280; }

.shlm-modal-desc {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.6;
}

.shlm-modal-contact {
	display: block;
	margin-top: 18px;
	text-align: center;
	background: transparent;
	color: #3a3a3a !important;
	border: 1px solid var(--shlm-accent, #beaf87);
	text-decoration: none;
	font-weight: 500;
	padding: 11px 16px;
	border-radius: 999px;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.shlm-modal-contact:hover,
.shlm-modal-contact:focus-visible {
	background: var(--shlm-accent, #beaf87);
	color: #fff !important;
}

.shlm-modal-soldnote {
	margin-top: 18px;
	text-align: center;
	font-weight: 600;
	color: var(--shlm-sold, #c0392b);
}
