.th-map-wrapper { position: relative; }
.th-map { background: #f0f0f0; border-radius: 8px; overflow: hidden; }
.th-map .leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; box-shadow: 0 16px 50px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.08); }
.th-map .leaflet-popup-content { margin: 0; width: 320px !important; }
.th-map .leaflet-popup-tip { background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.1); }

/* Buton X popup — mărit pentru tactil pe mobil */
.th-map .leaflet-popup-close-button {
	width: 32px !important;
	height: 32px !important;
	font-size: 24px !important;
	line-height: 30px !important;
	font-weight: 400 !important;
	color: #6a6a6a !important;
	top: 6px !important;
	right: 6px !important;
	border-radius: 50% !important;
	transition: background .15s ease, color .15s ease;
}
.th-map .leaflet-popup-close-button:hover {
	background: rgba(29, 68, 34, .08) !important;
	color: #1d4422 !important;
}

/* Markers (divIcon) */
.th-marker { background: transparent !important; border: 0 !important; }
.th-marker .th-marker-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.th-marker .th-marker-inner img { width: 100%; height: auto; display: block; }
.th-marker .th-marker-num { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font: 700 13px/1 system-ui, sans-serif; color: #1d4422; pointer-events: none; }
.th-marker.is-visited .th-marker-num { color: #fff; }

/* Popup content */
.th-popup img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.th-popup-body { padding: 22px 24px 24px; }
.th-popup-subtitle {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .15em;
	color: #9bd01d;
	text-transform: uppercase;
	margin: 0 0 6px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.th-popup-title {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 16px;
	color: #1d4422;
	letter-spacing: -.01em;
}
.th-popup-address {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	color: #6a6a6a;
	line-height: 1.35;
	margin: 0 0 18px;
}
.th-popup-address .th-popup-pin { flex-shrink: 0; margin-top: 2px; }
.th-popup-address span { display: block; }
.th-popup-cta {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: #1d4422;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.15;
	transition: transform .18s ease;
	margin-top: 4px;
}
.th-popup-cta:hover { transform: translateX(2px); }
.th-popup-cta-icon { display: inline-flex; flex-shrink: 0; transition: transform .18s ease; }
.th-popup-cta:hover .th-popup-cta-icon { transform: translateX(2px); }
.th-popup-cta-text { color: #1d4422; }
.th-popup-badge {
	display: inline-block;
	padding: 3px 10px;
	background: #1d4422;
	color: #fff;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
}

@media (max-width: 480px) {
	.th-map .leaflet-popup-content { width: 280px !important; }
	.th-popup-body { padding: 18px 18px 20px; }
	.th-popup-title { font-size: 22px; }
}

/* Controls */
.th-controls { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.th-controls button { padding: 8px 14px; background: #fff; border: 1px solid #ccd0d4; border-radius: 4px; cursor: pointer; font-size: 13px; font-family: inherit; transition: all .15s ease; }
.th-controls button:hover { border-color: #1d4422; }
.th-controls button.active { background: #1d4422; color: #fff; border-color: #1d4422; }
.th-controls .th-locate { margin-left: auto; background: #9bd01d; border-color: #1d4422; color: #1d4422; font-weight: 600; }
.th-controls .th-locate:hover { background: #1d4422; color: #9bd01d; }

@media (max-width: 600px) {
	.th-controls { gap: 6px; }
	.th-controls button { padding: 7px 10px; font-size: 12px; }
	.th-controls .th-locate { margin-left: 0; flex: 1 1 100%; order: 99; }
}
