/* ─────────────────────────────────────────────
   PinPoint Maps — Frontend Embed Styles
   Glassmorphism popup cards with modern UI
───────────────────────────────────────────── */

/* ── Map wrapper ───────────────────────────── */
.ppm-map-wrap {
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.06);
	position: relative;
}

.ppm-map-embed {
	width: 100%;
	height: 100%;
}

/* ── Leaflet popup reset ────────────────────── */
.ppm-leaflet-popup .leaflet-popup-content-wrapper {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	border-radius: 0;
}

.ppm-leaflet-popup .leaflet-popup-content {
	margin: 0;
	width: auto !important;
}

.ppm-leaflet-popup .leaflet-popup-tip-container { display: none; }

.ppm-leaflet-popup .leaflet-popup-close-button {
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	background: rgba(255,255,255,.15) !important;
	backdrop-filter: blur(6px);
	border-radius: 50%;
	color: #fff !important;
	font-size: 14px;
	line-height: 24px;
	text-align: center;
	padding: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s;
}

.ppm-leaflet-popup .leaflet-popup-close-button:hover {
	background: rgba(255,255,255,.28) !important;
}

/* ── Popup card ─────────────────────────────── */
.ppm-popup {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
	background: rgba(15, 17, 25, 0.82);
	backdrop-filter: blur(20px) saturate(1.6);
	-webkit-backdrop-filter: blur(20px) saturate(1.6);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 14px;
	overflow: hidden;
	min-width: 220px;
	max-width: 280px;
	box-shadow:
		0 24px 48px rgba(0,0,0,.55),
		0 4px 16px rgba(0,0,0,.3),
		inset 0 1px 0 rgba(255,255,255,.08);
	animation: ppmPopIn .2s cubic-bezier(.34,1.56,.64,1);
}

@keyframes ppmPopIn {
	from { opacity: 0; transform: scale(.9) translateY(8px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Popup image ─────────────────────────────── */
.ppm-popup-img-wrap {
	width: 100%;
	height: 150px;
	overflow: hidden;
	position: relative;
}

.ppm-popup-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.ppm-popup:hover .ppm-popup-img { transform: scale(1.04); }

/* ── Popup body ──────────────────────────────── */
.ppm-popup-body {
	padding: 14px 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ppm-popup-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.ppm-popup-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #f1f5f9;
	line-height: 1.35;
	flex: 1;
}

.ppm-popup-price {
	background: rgba(59,130,246,.25);
	border: 1px solid rgba(59,130,246,.4);
	color: #93c5fd;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 100px;
	white-space: nowrap;
	flex-shrink: 0;
	letter-spacing: .01em;
}

.ppm-popup-coords {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: rgba(255,255,255,.35);
	margin: 0;
}

.ppm-popup-coords svg {
	flex-shrink: 0;
	color: rgba(255,255,255,.3);
}

/* ── Zoom controls ───────────────────────────── */
.ppm-map-embed .leaflet-control-zoom {
	border: none;
	border-radius: 10px;
	overflow: hidden;
	margin: 0 14px 14px 0;
	box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.ppm-map-embed .leaflet-control-zoom a {
	background: rgba(15,17,25,.82) !important;
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255,255,255,.1) !important;
	color: #94a3b8 !important;
	width: 34px !important;
	height: 34px !important;
	line-height: 34px !important;
	font-size: 16px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background .15s, color .15s;
}

.ppm-map-embed .leaflet-control-zoom a:hover {
	background: rgba(59,130,246,.3) !important;
	color: #7dd3fc !important;
}

/* ── Attribution ─────────────────────────────── */
.ppm-map-embed .leaflet-control-attribution {
	background: rgba(0,0,0,.5) !important;
	backdrop-filter: blur(8px);
	color: rgba(255,255,255,.4) !important;
	font-size: 10px;
	border-top-left-radius: 8px;
	padding: 3px 8px;
}

.ppm-map-embed .leaflet-control-attribution a { color: rgba(255,255,255,.5) !important; }
