/* Custom Google Map – frontend styles */

.cgm-wrapper {
	--cgm-brand: #2b6cb0;
	--cgm-height: 500px;
	display: flex;
	gap: 0;
	width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.06 );
	background: #fff;
}

.cgm-map {
	flex: 1 1 auto;
	min-height: var( --cgm-height );
	height: var( --cgm-height );
}

/* Panel */
.cgm-panel {
	flex: 0 0 300px;
	max-width: 300px;
	display: flex;
	flex-direction: column;
	border-right: 1px solid #e2e8f0;
	background: #fafafa;
	height: var( --cgm-height );
}

.cgm-panel-controls {
	padding: 12px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cgm-search,
.cgm-filter {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #cbd5e0;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
	background: #fff;
}

.cgm-search:focus,
.cgm-filter:focus {
	outline: none;
	border-color: var( --cgm-brand );
	box-shadow: 0 0 0 2px rgba( 0, 0, 0, 0.05 );
}

.cgm-list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	flex: 1 1 auto;
}

.cgm-item {
	padding: 12px 14px;
	border-bottom: 1px solid #edf2f7;
	cursor: pointer;
	transition: background 0.15s ease;
}

.cgm-item:hover {
	background: #fff;
}

.cgm-item.is-active {
	background: #fff;
	box-shadow: inset 3px 0 0 var( --cgm-brand );
}

.cgm-item-title {
	display: block;
	font-weight: 600;
	color: #1a202c;
	font-size: 14px;
}

.cgm-item-sub {
	display: block;
	color: #718096;
	font-size: 12px;
	margin-top: 2px;
}

.cgm-empty {
	padding: 16px 14px;
	color: #718096;
	font-size: 13px;
}

/* Info card */
.cgm-card {
	max-width: 260px;
	font-size: 14px;
	line-height: 1.45;
}

.cgm-card-title {
	margin: 0 0 6px;
	font-size: 16px;
	color: var( --cgm-brand );
}

.cgm-card-desc {
	margin: 0 0 8px;
	color: #4a5568;
}

.cgm-card-row {
	display: flex;
	gap: 6px;
	align-items: flex-start;
	margin: 8px 0;
	color: #2d3748;
}

.cgm-card-row .cgm-ico {
	flex: 0 0 auto;
}

.cgm-card-links {
	margin-top: 25px;
	display: grid;
	gap: 12px;
}

.cgm-card-link {
	display: inline-block;
	padding: 6px 10px;
	background: var( --cgm-brand );
	color: #fff !important;
	border-radius: 5px;
	font-size: 13px;
	text-decoration: none;
}

.cgm-card-link:hover {
	opacity: 0.9;
}

.cgm-card-more {
	justify-self: start;
	padding: 0;
	background: none;
	color: var( --cgm-brand ) !important;
	font-weight: 600;
	text-decoration: underline;
}

.cgm-card-more:hover {
	opacity: 1;
	text-decoration: none;
}

.cgm-notice {
	padding: 12px 16px;
	background: #fffbe6;
	border: 1px solid #f0e0a0;
	border-radius: 6px;
	color: #7a5c00;
}

/* Responsive: stack panel above the map */
@media ( max-width: 680px ) {
	.cgm-wrapper.cgm-has-panel {
		flex-direction: column;
	}

	.cgm-panel {
		flex: 1 1 auto;
		max-width: 100%;
		height: auto;
		max-height: 240px;
		border-right: none;
		border-bottom: 1px solid #e2e8f0;
	}

	.cgm-map {
		min-height: 360px;
		height: 360px;
	}
}
