.sms-map-widget,
.sms-map-loop-widget {
	width: 100%;
}

/* Allow loop item box-shadow to paint outside the widget/list edges. */
.elementor-widget-soleman-map-loop,
.elementor-widget-soleman-map-loop > .elementor-widget-container,
.sms-map-loop-widget {
	overflow: visible;
}

.sms-map-canvas {
	width: 100%;
	min-height: 320px;
	background: #e8ecef;
}

.sms-map-notice {
	padding: 16px 18px;
	background: #f5f7f9;
	border-left: 3px solid #4a5568;
	color: #2d3748;
	font-size: 14px;
	line-height: 1.5;
}

.sms-map-notice.is-hidden,
.sms-map-loop-item.is-out-of-view {
	display: none !important;
}

.sms-map-loop-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	/* Reserve room for item shadows such as 0 0 10px rgba(0,0,0,0.2). */
	padding: 10px;
	overflow: visible;
}

.sms-map-loop-item {
	cursor: pointer;
	outline: none;
}

.sms-building-popup {
	display: flex;
	flex-direction: column;
	max-width: 560px;
	max-height: 420px;
	overflow: hidden;
	padding: 0;
	margin: 0;
	font-family: inherit;
}

.sms-building-popup__title {
	position: sticky;
	top: 0;
	z-index: 2;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
	padding: 12px 10px 12px 16px;
	background: #e8f7f8;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.sms-building-popup__heading {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.35em;
	min-width: 0;
	flex: 1;
}

.sms-building-popup__name {
	color: #134657;
}

.sms-building-popup__count {
	color: #6b33ec;
	font-weight: 700;
	white-space: nowrap;
}

.sms-building-popup__close {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #134657;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.sms-building-popup__close:hover,
.sms-building-popup__close:focus-visible {
	background: rgba(19, 70, 87, 0.08);
	outline: none;
}

.sms-building-popup__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.sms-building-popup__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
}

.sms-building-popup__item {
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	transition: background-color 0.15s ease;
}

.sms-building-popup__item:hover {
	background: #f1f5f9;
}

.sms-building-popup__loading {
	padding: 12px 16px;
	font-size: 13px;
	color: #64748b;
}

.sms-building-popup__fallback a {
	font-size: 12px;
}

/* Mobile: building listings as bottom sheet (LeasingHub-style), not map InfoWindow */
.sms-mobile-sheet {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100050;
	pointer-events: none;
}

.sms-mobile-sheet.is-open {
	display: block;
}

.sms-mobile-sheet__panel {
	pointer-events: auto;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	max-height: min(58vh, 520px);
	border-radius: 14px 14px 0 0;
	background: #fff;
	box-shadow: 0 -8px 28px rgba(16, 24, 40, 0.18);
	overflow: hidden;
	transform: translateY(110%);
	transition: transform 0.28s ease;
}

.sms-mobile-sheet.is-open .sms-mobile-sheet__panel {
	transform: translateY(0);
}

.sms-mobile-sheet__content {
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: min(58vh, 520px);
}

.sms-mobile-sheet .sms-building-popup {
	max-width: none;
	max-height: none;
	height: 100%;
	min-height: 0;
}

.sms-mobile-sheet .sms-building-popup__title {
	background: #f8fafc;
	padding: 14px 12px 14px 16px;
}

.sms-mobile-sheet .sms-building-popup__body {
	max-height: none;
}

body.sms-mobile-sheet-open {
	overscroll-behavior: none;
}

@media (min-width: 768px) {
	.sms-mobile-sheet {
		display: none !important;
	}
}

/* Full-bleed title bar inside Google InfoWindow */
.gm-style .gm-style-iw-c {
	padding: 0 !important;
	overflow: hidden !important;
	border-radius: 8px !important;
}

.gm-style .gm-style-iw-d {
	overflow: hidden !important;
	max-height: none !important;
}

/* Use our in-title close button instead of Google's default X */
.gm-style .gm-style-iw-c:has(.sms-building-popup) .gm-style-iw-chr {
	display: none !important;
}

.sms-archive-view-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.sms-archive-view-switch__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #134657;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.sms-archive-view-switch__link:hover,
.sms-archive-view-switch__link:focus-visible {
	border-color: #6b33ec;
	color: #6b33ec;
	outline: none;
}

.sms-archive-view-switch__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.sms-archive-view-switch__icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.sms-map-pagination {
	margin-top: 16px;
	text-align: center;
}

.sms-map-pagination__count {
	margin-bottom: 8px;
	color: #4a5568;
	font-size: 13px;
	line-height: 1.4;
}

.sms-map-pagination__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sms-map-pagination__list a,
.sms-map-pagination__list span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #2d3748;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
}

.sms-map-pagination__list a:hover,
.sms-map-pagination__list a:focus-visible {
	border-color: #e5007e;
	color: #e5007e;
	outline: none;
}

.sms-map-pagination__list .is-current span {
	border-color: #e5007e;
	background: #e5007e;
	color: #fff;
}

.sms-map-pagination__list .is-disabled span,
.sms-map-pagination__ellipsis span {
	border-color: transparent;
	background: transparent;
	color: #a0aec0;
}
