/* DS Historic Map - Delivered Social */
.dshm { position: relative; width: 100%; }

.dshm-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-bottom: 0;
}

.dshm-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.dshm-spacer { display: inline-block; width: 14px; }

.dshm .dshm-filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	margin: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	line-height: 1;
	transition: border-color .15s, opacity .15s, filter .15s;
}
.dshm .dshm-filter img { width: 26px; height: 26px; display: block; margin: 0; }
.dshm .dshm-filter[aria-pressed="false"] { filter: grayscale(1); opacity: .55; }
.dshm .dshm-filter[aria-pressed="true"] { border-color: currentColor; filter: none; opacity: 1; }
.dshm .dshm-filter:hover,
.dshm .dshm-filter:focus-visible { opacity: 1; outline: none; border-color: #999; }
.dshm .dshm-filter.is-empty { opacity: .25; }

.dshm-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; }
.dshm .dshm-btn {
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: inherit;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
}
.dshm .dshm-btn:hover { background: #f4f4f4; }
.dshm-opacity { display: inline-flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.dshm-opacity input { width: 110px; margin: 0; }

.dshm-hint { margin: 0; padding: 6px 12px; font-size: 13px; color: #555; background: #fafafa; border: 1px solid #e2e2e2; border-bottom: 0; }

.dshm-map { width: 100%; min-height: 380px; border: 1px solid #e2e2e2; background: #e9eef0; }
.dshm-error, .dshm-notice { padding: 20px; margin: 0; }

/* Popup */
.dshm-popup { font-size: 14px; line-height: 1.45; max-width: 280px; }
.dshm .dshm-popup-title, .dshm-popup-title { margin: 0 0 8px; font-size: 16px; line-height: 1.3; }
.dshm-popup-zoom { display: block; margin-bottom: 8px; cursor: zoom-in; }
.dshm-popup-zoom img { display: block; width: 100%; height: auto; max-height: 200px; object-fit: contain; }
.dshm-popup-text p { margin: 0 0 8px; }
.dshm-popup-link { font-weight: 600; }

/* Lightbox */
.dshm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .8);
}
.dshm-lightbox[hidden] { display: none; }
.dshm-lightbox-inner { position: relative; max-width: 1000px; max-height: 90vh; }
.dshm-lightbox-inner img { display: block; max-width: 100%; max-height: 85vh; height: auto; background: #fff; }
.dshm .dshm-lightbox-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #222;
	font-size: 22px;
	line-height: 34px;
	cursor: pointer;
}

@media (max-width: 640px) {
	.dshm-toolbar { padding: 8px; }
	.dshm .dshm-filter { width: 30px; height: 30px; }
	.dshm .dshm-filter img { width: 22px; height: 22px; }
	.dshm-spacer { width: 6px; }
	.dshm-map { height: 460px !important; }
}
