#ssm-wrapper {
	max-width: 100%;
	margin: 0 0 2em 0;
}

#ssm-toolbar {
	margin-bottom: 10px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

#ssm-toolbar input[type="text"],
#ssm-toolbar select {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 0.9em;
}

#ssm-filter-name {
	flex: 1;
	min-width: 160px;
}

.ssm-btn {
	background: #111;
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	white-space: nowrap;
}

.ssm-btn.ssm-active {
	background: #e63946;
}

#ssm-add-hint {
	font-size: 0.9em;
	color: #555;
}

#ssm-body {
	display: flex;
	gap: 0;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
}

#ssm-sidebar {
	width: 320px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	border-right: 1px solid #ddd;
	background: #fafafa;
	overflow-y: auto;
}

#ssm-spot-count {
	padding: 10px 14px;
	font-size: 0.8em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #777;
	border-bottom: 1px solid #eee;
	background: #f2f2f2;
}

#ssm-spot-list {
	overflow-y: auto;
	flex: 1;
}

.ssm-list-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}

.ssm-list-item:hover {
	background: #f0f0f0;
}

.ssm-list-item.ssm-active {
	background: #ffe8ea;
	border-left: 3px solid #e63946;
}

.ssm-list-thumb {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
	background: #ddd;
}

.ssm-list-text {
	min-width: 0;
}

.ssm-list-name {
	font-weight: 600;
	font-size: 0.92em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ssm-list-type {
	font-size: 0.78em;
	text-transform: uppercase;
	color: #888;
	letter-spacing: 0.02em;
}

#ssm-map {
	flex: 1;
	min-width: 0;
}

@media (max-width: 720px) {
	#ssm-body {
		flex-direction: column;
	}
	#ssm-sidebar {
		width: 100%;
		max-height: 240px;
		border-right: none;
		border-bottom: 1px solid #ddd;
	}
	#ssm-map {
		height: 400px !important;
	}
}

.ssm-notice {
	background: #fff3cd;
	border: 1px solid #ffe69c;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 10px;
}

/* Pin thumbnails */
.ssm-pin-thumb {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.35);
	cursor: pointer;
}

/* Info window */
.ssm-info-window {
	max-width: 220px;
}
.ssm-info-img {
	width: 100%;
	max-height: 130px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 6px;
}
.ssm-info-title {
	margin: 0 0 2px 0;
	font-size: 1.05em;
}
.ssm-info-type {
	text-transform: uppercase;
	font-size: 0.75em;
	color: #888;
	margin: 0 0 6px 0;
}
.ssm-info-desc {
	font-size: 0.9em;
	margin: 0 0 6px 0;
}
.ssm-info-address {
	font-size: 0.8em;
	color: #666;
	margin: 0;
}

/* Modal */
.ssm-modal {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.6);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ssm-modal-inner {
	background: #fff;
	padding: 24px;
	border-radius: 8px;
	width: 90%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}
.ssm-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.6em;
	cursor: pointer;
	line-height: 1;
}
#ssm-spot-form label {
	font-weight: 600;
	font-size: 0.9em;
}
#ssm-spot-form input[type="text"],
#ssm-spot-form textarea,
#ssm-spot-form select {
	width: 100%;
	padding: 8px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-top: 4px;
}
#ssm-form-status {
	margin-left: 10px;
	font-size: 0.9em;
}
