/**
 * Hoffman Sites Map — frontend styles.
 * Brand: Gold #DFA53C / Charcoal #1C1F26 / Black #111317 / Cream #F3EEE5.
 */

.hsm-widget {
	--hsm-gold: #dfa53c;
	--hsm-gold-dark: #c8902f;
	--hsm-charcoal: #1c1f26;
	--hsm-charcoal-light: #2a2e38;
	--hsm-black: #111317;
	--hsm-cream: #f3eee5;
	--hsm-white: #ffffff;
	--hsm-gray: #efeae1;
	--hsm-gray-mid: #d8d2c6;
	--hsm-text: #2a2e35;
	--hsm-map-height: 650px;
	--hsm-sidebar-width: 320px;

	display: flex;
	width: 100%;
	height: var(--hsm-map-height);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 14px 40px rgba(17, 19, 23, 0.18);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--hsm-text);
	background: var(--hsm-white);
	position: relative;
	box-sizing: border-box;
}

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

/* ----------------------------------------------------------------------------
 * Theme-proofing. Page builders (Elementor/Jet) can apply heading/link/button
 * styles with high specificity + !important. We double the widget class and use
 * literal color values so a redefined theme variable can't change them. Scoped
 * strictly to the widget's own elements.
 * ------------------------------------------------------------------------- */
.hsm-widget.hsm-widget h2,
.hsm-widget.hsm-widget h3,
.hsm-widget.hsm-widget h4,
.hsm-widget.hsm-widget p,
.hsm-widget.hsm-widget ul,
.hsm-widget.hsm-widget li,
.hsm-widget.hsm-widget a,
.hsm-widget.hsm-widget button {
	font-family: inherit !important;
	letter-spacing: normal;
	text-shadow: none !important;
	text-transform: none;
}

.hsm-widget.hsm-widget button {
	box-shadow: none;
}

/* Sidebar heading */
.hsm-widget.hsm-widget .hsm-sidebar .hsm-sidebar-heading {
	color: #ffffff !important;
	font-size: 1.45rem !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	margin: 0 0 10px !important;
	padding: 0 !important;
	text-transform: none !important;
}

/* Panel titles */
.hsm-widget.hsm-widget .hsm-sidebar .hsm-panel-title {
	color: rgba(255, 255, 255, 0.5) !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.12em !important;
	margin: 0 0 12px !important;
	padding: 0 0 8px !important;
}

.hsm-widget.hsm-widget .hsm-sidebar .hsm-sidebar-intro {
	color: rgba(255, 255, 255, 0.78) !important;
	font-size: 0.9rem !important;
	font-weight: 400 !important;
	margin: 0 0 12px !important;
}

.hsm-widget.hsm-widget .hsm-sidebar .hsm-count {
	color: #dfa53c !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	margin: 0 !important;
}

.hsm-widget.hsm-widget .hsm-sidebar .hsm-selected-city {
	color: #1c1f26 !important;
	font-weight: 700 !important;
	margin: 0 0 12px !important;
}

/* Region headers + city / category links */
.hsm-widget.hsm-widget .hsm-sidebar .hsm-area-link,
.hsm-widget.hsm-widget .hsm-sidebar .hsm-category-link {
	color: rgba(255, 255, 255, 0.85) !important;
	text-transform: none !important;
	text-decoration: none !important;
	font-weight: 600 !important;
}

.hsm-widget.hsm-widget .hsm-sidebar .hsm-region-head {
	color: #ffffff !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	font-weight: 800 !important;
}

.hsm-widget.hsm-widget .hsm-sidebar .hsm-area-link.is-active,
.hsm-widget.hsm-widget .hsm-sidebar .hsm-category-link.is-active {
	color: #ffffff !important;
}

.hsm-widget.hsm-widget .hsm-sidebar .hsm-region-head.is-active {
	color: #dfa53c !important;
}

/* Drawer headings + body */
.hsm-widget.hsm-widget .hsm-drawer .hsm-drawer-title {
	color: #1c1f26 !important;
	font-family: inherit !important;
	font-weight: 800 !important;
	text-transform: none !important;
	margin: 0 0 6px !important;
}

.hsm-widget.hsm-widget .hsm-drawer .hsm-drawer-section h4 {
	color: #c8902f !important;
	font-family: inherit !important;
	text-transform: uppercase !important;
	margin: 0 0 8px !important;
}

.hsm-widget.hsm-widget .hsm-drawer .hsm-drawer-section p,
.hsm-widget.hsm-widget .hsm-drawer .hsm-drawer-place {
	color: #2a2e35 !important;
}

/* Buttons / CTA links — beat theme link + button color rules. */
.hsm-widget.hsm-widget .hsm-view-all {
	color: #1c1f26 !important;
	text-transform: none !important;
	text-decoration: none !important;
}

.hsm-widget.hsm-widget .hsm-cta {
	color: #1c1f26 !important;
	text-decoration: none !important;
}

.hsm-widget.hsm-widget .hsm-mobile-filter-toggle {
	color: #ffffff !important;
}

.hsm-widget.hsm-widget .hsm-tag--cat {
	color: #1c1f26 !important;
}

.hsm-widget.hsm-widget .hsm-tag--dev {
	color: #1c1f26 !important;
}

/* Drawer close button — themes love to recolor/reshape bare <button>s, so pin it
   down: a centered gold circle with a charcoal X. */
.hsm-widget.hsm-widget .hsm-drawer .hsm-drawer-close {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 42px !important;
	height: 42px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #dfa53c !important;
	background-image: none !important;
	color: #1c1f26 !important;
	font-size: 24px !important;
	line-height: 1 !important;
}

.hsm-widget.hsm-widget .hsm-drawer .hsm-drawer-close:hover {
	background: #ecb451 !important;
	color: #1c1f26 !important;
}

/* "More communities" sibling cards — keep them readable on hover regardless of
   the theme's default button hover (which was rendering black-on-black). */
.hsm-widget.hsm-widget .hsm-sibling {
	background: #f3eee5 !important;
	background-image: none !important;
	color: #1c1f26 !important;
	border: 1px solid #d8d2c6 !important;
}

.hsm-widget.hsm-widget .hsm-sibling:hover {
	background: #ffffff !important;
	border-color: #dfa53c !important;
	color: #1c1f26 !important;
}

.hsm-widget.hsm-widget .hsm-sibling .hsm-sibling-title {
	color: #1c1f26 !important;
}

.hsm-widget.hsm-widget .hsm-sibling .hsm-sibling-place {
	color: #6a6f78 !important;
}

/* ---------------------------------------------------------------------------
 * Neutralize theme button backgrounds, then re-assert intentional ones.
 * ------------------------------------------------------------------------- */
.hsm-widget.hsm-widget .hsm-sidebar .hsm-region-head,
.hsm-widget.hsm-widget .hsm-sidebar .hsm-area-link,
.hsm-widget.hsm-widget .hsm-sidebar .hsm-category-link {
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	cursor: pointer !important;
	min-height: 0 !important;
}

.hsm-widget.hsm-widget .hsm-sidebar .hsm-area-link,
.hsm-widget.hsm-widget .hsm-sidebar .hsm-category-link {
	border: 0 !important;
	border-left: 3px solid transparent !important;
	border-radius: 6px !important;
	padding: 9px 12px !important;
}

.hsm-widget.hsm-widget .hsm-area-groups .hsm-area-link {
	padding: 5px 7px !important;
}

.hsm-widget.hsm-widget .hsm-sidebar .hsm-region-head {
	border: 0 !important;
	border-bottom: 2px solid rgba(223, 165, 60, 0.45) !important;
	border-radius: 0 !important;
	padding: 0 2px 6px !important;
	margin: 0 0 6px !important;
}

.hsm-widget.hsm-widget .hsm-sidebar .hsm-area-link:hover,
.hsm-widget.hsm-widget .hsm-sidebar .hsm-category-link:hover {
	background: rgba(255, 255, 255, 0.07) !important;
}

.hsm-widget.hsm-widget .hsm-sidebar .hsm-area-link.is-active,
.hsm-widget.hsm-widget .hsm-sidebar .hsm-category-link.is-active {
	background: rgba(223, 165, 60, 0.16) !important;
	border-left-color: #dfa53c !important;
}

.hsm-widget.hsm-widget .hsm-sidebar .hsm-region-head.is-active {
	background: transparent !important;
	border-bottom-color: #dfa53c !important;
}

/* Count pills */
.hsm-widget.hsm-widget .hsm-sidebar .hsm-area-count,
.hsm-widget.hsm-widget .hsm-sidebar .hsm-region-count {
	background: rgba(255, 255, 255, 0.16) !important;
	color: #ffffff !important;
	flex: 0 0 auto !important;
}

.hsm-widget.hsm-widget .hsm-sidebar .hsm-area-link.is-active .hsm-area-count,
.hsm-widget.hsm-widget .hsm-sidebar .hsm-region-head.is-active .hsm-region-count {
	background: #dfa53c !important;
	color: #1c1f26 !important;
}

/* Intentionally coloured buttons. */
.hsm-widget.hsm-widget .hsm-view-all {
	background: #dfa53c !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 8px !important;
	padding: 13px 16px !important;
}

.hsm-widget.hsm-widget .hsm-cta {
	background: #dfa53c !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 8px !important;
}

.hsm-widget.hsm-widget .hsm-mobile-filter-toggle {
	background: #1c1f26 !important;
	background-image: none !important;
	border: 0 !important;
}

/* Full-screen section mode. */
.hsm-widget.hsm-fullscreen {
	height: 100vh;
	height: 100dvh;
	border-radius: 0;
	box-shadow: none;
}

/* ---------- Sidebar ---------- */

.hsm-sidebar {
	flex: 0 0 var(--hsm-sidebar-width);
	width: var(--hsm-sidebar-width);
	background: var(--hsm-charcoal);
	color: var(--hsm-white);
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	overflow-y: auto;
	height: 100%;
	max-height: 100%;
}

.hsm-sidebar-close {
	display: none;
}

.hsm-sidebar-heading {
	font-size: 1.45rem;
	line-height: 1.15;
	font-weight: 800;
	margin: 0 0 10px;
	color: var(--hsm-white);
	letter-spacing: -0.01em;
}

.hsm-selected-city {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--hsm-charcoal);
	background: var(--hsm-gold);
	padding: 5px 12px;
	border-radius: 999px;
	margin: 0 0 12px;
}

.hsm-sidebar-intro {
	font-size: 0.9rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
	margin: 0 0 12px;
}

.hsm-count {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--hsm-gold);
	margin: 0;
}

.hsm-panel-title {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Area groups (Tulsa / OKC) */
.hsm-area-groups {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.hsm-region-group {
	min-width: 0;
}

.hsm-region-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 2px solid rgba(223, 165, 60, 0.45);
	color: var(--hsm-white);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-align: left;
	padding: 0 2px 6px;
	margin-bottom: 6px;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.hsm-region-head:hover {
	border-bottom-color: var(--hsm-gold);
}

.hsm-region-head.is-active {
	color: var(--hsm-gold);
	border-bottom-color: var(--hsm-gold);
}

.hsm-region-name {
	min-width: 0;
	overflow-wrap: break-word;
	word-break: break-word;
	line-height: 1.2;
}

.hsm-region-count {
	flex: 0 0 auto;
	font-size: 0.68rem;
	font-weight: 800;
	color: var(--hsm-charcoal);
	background: var(--hsm-gold);
	border-radius: 999px;
	padding: 1px 7px;
}

.hsm-region-head:not(.is-active) .hsm-region-count {
	background: rgba(255, 255, 255, 0.18);
	color: var(--hsm-white);
}

.hsm-area-list,
.hsm-category-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.hsm-area-link,
.hsm-category-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 10px;
	background: transparent;
	border: 0;
	border-left: 3px solid transparent;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
	font-weight: 600;
	text-align: left;
	padding: 9px 12px;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hsm-area-link:hover,
.hsm-category-link:hover {
	background: rgba(255, 255, 255, 0.07);
	color: var(--hsm-white);
}

.hsm-area-link.is-active,
.hsm-category-link.is-active {
	background: rgba(223, 165, 60, 0.16);
	border-left-color: var(--hsm-gold);
	color: var(--hsm-white);
}

.hsm-area-count {
	flex: 0 0 auto;
	min-width: 26px;
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--hsm-charcoal);
	background: var(--hsm-gold);
	border-radius: 999px;
	padding: 2px 8px;
}

.hsm-area-link:not(.is-active) .hsm-area-count {
	background: rgba(255, 255, 255, 0.16);
	color: var(--hsm-white);
}

/* Compact city links inside the two-column area grid. */
.hsm-area-groups .hsm-area-link {
	font-size: 0.84rem;
	font-weight: 600;
	padding: 5px 7px;
	gap: 6px;
}

.hsm-area-groups .hsm-area-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hsm-area-groups .hsm-area-count {
	min-width: 20px;
	font-size: 0.66rem;
	padding: 1px 5px;
}

.hsm-view-all {
	margin-top: auto;
	background: var(--hsm-gold);
	color: var(--hsm-charcoal);
	font-weight: 800;
	font-size: 0.92rem;
	border: 0;
	border-radius: 8px;
	padding: 13px 16px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.hsm-view-all:hover {
	background: #ecb451;
}

.hsm-view-all:active {
	transform: translateY(1px);
}

/* ---------- Map ---------- */

.hsm-map-wrap {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.hsm-map {
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
	background: #dfe6ec;
}

.hsm-map-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--hsm-cream);
	z-index: 500;
}

.hsm-spinner {
	width: 38px;
	height: 38px;
	border: 4px solid var(--hsm-gray-mid);
	border-top-color: var(--hsm-gold);
	border-radius: 50%;
	animation: hsm-spin 0.8s linear infinite;
}

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

.hsm-mobile-city {
	display: none;
}

/* Marker pins */
.hsm-divicon {
	background: transparent;
	border: 0;
	overflow: visible;
}

.hsm-pin {
	display: block;
	overflow: visible;
	line-height: 0;
	filter: drop-shadow(0 3px 4px rgba(17, 19, 23, 0.35));
	transition: transform 0.12s ease;
}

.hsm-pin svg {
	display: block;
	overflow: visible;
}

.hsm-pin--selected {
	filter: drop-shadow(0 4px 7px rgba(223, 165, 60, 0.6));
}

.leaflet-marker-icon:hover .hsm-pin {
	transform: scale(1.12);
}

/* Mobile filter toggle */
.hsm-mobile-filter-toggle {
	display: none;
}

/* ---------- Drawer ---------- */

.hsm-drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.hsm-drawer-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 19, 23, 0.55);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.hsm-drawer.is-open .hsm-drawer-overlay {
	opacity: 1;
}

.hsm-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 520px;
	max-width: 94vw;
	background: var(--hsm-white);
	box-shadow: -10px 0 40px rgba(17, 19, 23, 0.3);
	transform: translateX(100%);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	overflow-y: auto;
	outline: none;
}

.hsm-drawer.is-open .hsm-drawer-panel {
	transform: translateX(0);
}

.hsm-drawer-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: var(--hsm-gold);
	color: var(--hsm-charcoal);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.hsm-drawer-hero {
	width: 100%;
	height: 260px;
	overflow: hidden;
	background: var(--hsm-gray);
}

.hsm-drawer-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Logo strip above the hero */
.hsm-drawer-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px 24px 6px;
	background: var(--hsm-white);
}

.hsm-drawer-logo img {
	max-height: 90px;
	max-width: 70%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.hsm-drawer-body {
	padding: 28px 36px 40px;
}

.hsm-status-badge {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hsm-charcoal);
	background: var(--hsm-gold);
	padding: 4px 12px;
	border-radius: 999px;
	margin: 0 0 12px;
}

.hsm-drawer-title {
	font-size: 1.55rem;
	font-weight: 800;
	color: var(--hsm-charcoal);
	margin: 0 0 6px;
	line-height: 1.18;
}

.hsm-drawer-place {
	font-size: 0.92rem;
	color: #6a6f78;
	margin: 0 0 18px;
	font-weight: 600;
}

.hsm-drawer-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 24px;
}

.hsm-tag {
	font-size: 0.72rem;
	font-weight: 700;
	padding: 4px 11px;
	border-radius: 999px;
	letter-spacing: 0.02em;
}

.hsm-tag--cat {
	background: var(--hsm-gold);
	color: var(--hsm-charcoal);
}

.hsm-tag--dev {
	background: var(--hsm-cream);
	color: var(--hsm-charcoal);
	border: 1px solid var(--hsm-gray-mid);
}

.hsm-drawer-section {
	margin-bottom: 24px;
}

.hsm-drawer-section h4 {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--hsm-gold-dark);
	margin: 0 0 8px;
	font-weight: 800;
}

.hsm-drawer-section p {
	font-size: 0.98rem;
	line-height: 1.65;
	margin: 0;
	color: var(--hsm-text);
}

.hsm-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 24px;
}

.hsm-gallery-item {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 6px;
	overflow: hidden;
	background: var(--hsm-gray);
}

.hsm-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

.hsm-gallery-item:hover img {
	transform: scale(1.06);
}

.hsm-drawer-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}

.hsm-cta {
	display: block;
	text-align: center;
	background: var(--hsm-gold);
	color: var(--hsm-charcoal) !important;
	font-weight: 800;
	font-size: 1rem;
	padding: 14px 18px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.hsm-cta:hover {
	background: #ecb451;
}

/* ---------- Developer siblings ---------- */
.hsm-siblings {
	border-top: 1px solid var(--hsm-gray);
	padding-top: 20px;
}

.hsm-sibling-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hsm-sibling {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	text-align: left;
	background: var(--hsm-cream);
	border: 1px solid var(--hsm-gray-mid);
	border-radius: 10px;
	padding: 8px 12px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.hsm-sibling:hover {
	border-color: var(--hsm-gold);
	background: #fff;
}

.hsm-sibling-thumb {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
	background-color: var(--hsm-gray);
}

.hsm-sibling-thumb--empty {
	background: linear-gradient(135deg, var(--hsm-charcoal), var(--hsm-charcoal-light));
}

.hsm-sibling-text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hsm-sibling-title {
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--hsm-charcoal);
	line-height: 1.2;
}

.hsm-sibling-place {
	font-size: 0.78rem;
	color: #6a6f78;
	font-weight: 600;
}

/* ---------- Marker clusters ---------- */
.hsm-cluster {
	background: transparent;
	border: 0;
}

.hsm-cluster .hsm-cluster-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--hsm-charcoal);
	color: #fff;
	font-weight: 800;
	font-size: 0.9rem;
	border: 3px solid var(--hsm-gold);
	box-shadow: 0 3px 10px rgba(17, 19, 23, 0.4);
}

.hsm-cluster:hover .hsm-cluster-inner {
	background: var(--hsm-black);
}

/* ---------- Community type filter + legend ---------- */
.hsm-type-list {
	margin-bottom: 4px;
}

.hsm-type-name {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hsm-type-dot {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.hsm-type-dot--hoffman {
	background: var(--hsm-gold);
}

.hsm-type-dot--offsite {
	background: var(--hsm-charcoal-light);
	box-shadow: 0 0 0 1px var(--hsm-gold);
}

/* Map legend */
.hsm-legend {
	display: flex;
	flex-direction: column;
	gap: 5px;
	background: rgba(255, 255, 255, 0.94);
	border-radius: 10px;
	padding: 9px 12px;
	box-shadow: 0 4px 14px rgba(17, 19, 23, 0.22);
	font-size: 0.76rem;
	font-weight: 700;
	color: var(--hsm-charcoal);
	line-height: 1;
}

.hsm-legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hsm-legend-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

/* ---------- Drawer: quick facts + contact ---------- */
.hsm-drawer-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 24px;
}

.hsm-fact {
	flex: 1 1 auto;
	min-width: 120px;
	background: var(--hsm-cream);
	border: 1px solid var(--hsm-gray-mid);
	border-radius: 10px;
	padding: 10px 14px;
}

.hsm-fact-label {
	display: block;
	font-size: 0.66rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--hsm-gold-dark);
	margin-bottom: 3px;
}

.hsm-fact-value {
	display: block;
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--hsm-charcoal);
}

.hsm-contact {
	background: var(--hsm-cream);
	border: 1px solid var(--hsm-gray-mid);
	border-radius: 12px;
	padding: 16px 18px;
}

.hsm-contact-card {
	display: flex;
	align-items: center;
	gap: 16px;
}

.hsm-contact-photo {
	flex: 0 0 auto;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid var(--hsm-gold);
	box-shadow: 0 2px 8px rgba(200, 144, 47, 0.35);
	background: var(--hsm-gray);
}

.hsm-contact-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hsm-contact-info {
	min-width: 0;
	flex: 1 1 auto;
}

.hsm-contact-name {
	font-size: 1.02rem !important;
	font-weight: 800 !important;
	color: var(--hsm-charcoal) !important;
	margin: 0 0 8px !important;
}

.hsm-contact-role {
	display: inline-block;
	font-size: 0.66rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--hsm-charcoal);
	background: var(--hsm-gold);
	padding: 2px 8px;
	border-radius: 999px;
	margin-left: 6px;
	vertical-align: middle;
}

.hsm-contact-call {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	margin-top: 4px;
	background: var(--hsm-gold);
	color: var(--hsm-charcoal) !important;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	padding: 14px 18px;
	border-radius: 8px;
	text-decoration: none !important;
	transition: background 0.15s ease;
}

.hsm-contact-call::before {
	content: "\260E";
	font-size: 1.05rem;
}

.hsm-contact-call:hover {
	background: #ecb451;
	color: var(--hsm-charcoal) !important;
}

/* ---------- Hover preview card ---------- */
.leaflet-tooltip.hsm-preview-tip {
	background: var(--hsm-white);
	border: 0;
	border-radius: 12px;
	padding: 0;
	box-shadow: 0 12px 30px rgba(17, 19, 23, 0.28);
	overflow: hidden;
	white-space: normal;
	pointer-events: none;
}

.leaflet-tooltip.hsm-preview-tip::before {
	display: none;
}

.hsm-preview {
	display: block;
	width: 210px;
}

.hsm-preview-img {
	display: block;
	width: 100%;
	height: 116px;
	background-size: cover;
	background-position: center;
	background-color: var(--hsm-gray);
}

.hsm-preview-img--empty {
	background: linear-gradient(135deg, var(--hsm-charcoal), var(--hsm-charcoal-light));
}

.hsm-preview-body {
	display: block;
	padding: 9px 12px 11px;
}

.hsm-preview-title {
	display: block;
	font-size: 0.86rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--hsm-charcoal);
}

.hsm-preview-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-top: 6px;
}

.hsm-preview-cat {
	font-size: 0.64rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--hsm-charcoal);
	background: var(--hsm-gold);
	padding: 2px 7px;
	border-radius: 999px;
}

.hsm-preview-place {
	font-size: 0.74rem;
	font-weight: 600;
	color: #6a6f78;
}

.leaflet-tooltip.hsm-preview-tip {
	margin-top: -6px;
}
.leaflet-tooltip-top.hsm-preview-tip::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -7px;
	transform: translateX(-50%);
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid var(--hsm-white);
}

/* ---------- Leaflet chrome polish ---------- */
.hsm-widget .leaflet-control-zoom {
	border: 0;
	box-shadow: 0 4px 14px rgba(17, 19, 23, 0.22);
	border-radius: 10px;
	overflow: hidden;
}

.hsm-widget .leaflet-control-zoom a {
	color: var(--hsm-charcoal);
	background: rgba(255, 255, 255, 0.95);
	border: 0;
	width: 34px;
	height: 34px;
	line-height: 34px;
	font-size: 18px;
	font-weight: 700;
	transition: background 0.15s ease, color 0.15s ease;
}

.hsm-widget .leaflet-control-zoom a:hover {
	background: var(--hsm-charcoal);
	color: #fff;
}

.hsm-widget .leaflet-bar {
	border: 0;
}

.hsm-widget .leaflet-control-attribution {
	background: rgba(255, 255, 255, 0.78);
	font-size: 10px;
	border-radius: 6px 0 0 0;
}

.hsm-widget .leaflet-container {
	font-family: inherit;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
	.hsm-widget {
		flex-direction: column;
		border-radius: 10px;
		--hsm-map-height: 540px;
	}

	.hsm-mobile-filter-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 100%;
		background: var(--hsm-charcoal);
		color: #fff;
		border: 0;
		font-size: 1rem;
		font-weight: 700;
		padding: 15px;
		cursor: pointer;
		order: -1;
	}

	.hsm-filter-icon {
		width: 18px;
		height: 12px;
		position: relative;
	}

	.hsm-filter-icon::before,
	.hsm-filter-icon::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		height: 2px;
		background: var(--hsm-gold);
	}

	.hsm-filter-icon::before { top: 2px; }
	.hsm-filter-icon::after { bottom: 2px; }

	.hsm-mobile-city {
		display: block;
		background: var(--hsm-gold);
		color: var(--hsm-charcoal);
		font-weight: 800;
		text-align: center;
		padding: 10px;
		font-size: 0.95rem;
	}

	/* Off-canvas sidebar on mobile */
	.hsm-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: 86%;
		max-width: 340px;
		max-height: none;
		z-index: 100001;
		transform: translateX(-105%);
		transition: transform 0.28s ease;
		box-shadow: 10px 0 40px rgba(17, 19, 23, 0.4);
	}

	.hsm-sidebar-open .hsm-sidebar {
		transform: translateX(0);
	}

	.hsm-sidebar-close {
		display: block;
		position: absolute;
		top: 14px;
		right: 14px;
		width: 36px;
		height: 36px;
		border-radius: 50%;
		border: 0;
		background: rgba(255, 255, 255, 0.12);
		color: #fff;
		font-size: 22px;
		cursor: pointer;
	}

	.hsm-map {
		height: auto;
		min-height: 0;
	}

	.hsm-map-wrap {
		min-height: 500px;
	}

	.hsm-drawer-panel {
		top: auto;
		bottom: 0;
		right: 0;
		left: 0;
		width: 100%;
		max-width: 100%;
		height: 90%;
		border-radius: 18px 18px 0 0;
		transform: translateY(100%);
	}

	.hsm-drawer.is-open .hsm-drawer-panel {
		transform: translateY(0);
	}

	.hsm-drawer-body {
		padding: 24px 22px 32px;
	}

	.hsm-drawer-hero {
		height: 220px;
	}
}

@media (max-width: 480px) {
	.hsm-widget {
		--hsm-map-height: 500px;
	}
	.hsm-gallery {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hsm-drawer-panel,
	.hsm-drawer-overlay,
	.hsm-sidebar,
	.hsm-pin {
		transition: none;
	}
}
