.tpm-projects-map-widget {
	direction: rtl;
}

.tpm-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.tpm-card {
	display: block;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tpm-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.tpm-card-image {
	position: relative;
	height: 200px;
	background: #eee;
	overflow: hidden;
}

.tpm-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tpm-card-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e0e0e0, #f2f2f2);
}

.tpm-card-body {
	padding: 16px;
}

.tpm-card-badge {
	display: inline-block;
	font-size: 12px;
	color: #fff;
	background: #2271b1;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
}

.tpm-card-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
	color: #1a1a1a;
}

.tpm-empty,
.tpm-map-empty {
	color: #888;
	text-align: center;
	padding: 20px;
}

.tpm-map-canvas {
	width: 100%;
	height: 480px;
	margin-top: 32px;
	background: #eee;
}

.tpm-map-canvas .leaflet-tile-pane {
	filter: grayscale( 100% );
}

.tpm-map-popup {
	text-align: center;
	min-width: 160px;
}

.tpm-map-popup a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.tpm-map-popup img {
	width: 100%;
	height: 100px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 8px;
}

.tpm-map-popup h4 {
	margin: 0;
	font-size: 14px;
	color: #1a1a1a;
}

@media (max-width: 1024px) {
	.tpm-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.tpm-grid {
		grid-template-columns: 1fr;
	}
}
