/* ─────────────────────────────────────────────────────────────────
   Inmoblao · Módulo map-global
   Vista de mapa con todas las propiedades del archive.
   ───────────────────────────────────────────────────────────────── */

.inmo-pub-map-wrap {
	position: relative;
	width: 100%;
	min-height: 560px;
	border-radius: var(--r-lg, 12px);
	overflow: hidden;
	border: 1px solid var(--border-subtle, #f0f0f0);
	background: var(--surface, #fff);
	margin-bottom: 32px;
}
.inmo-pub-map {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.inmo-pub-map-loading,
.inmo-pub-map-empty {
	position: absolute;
	inset: 50% 0 0 0;
	z-index: 10;
	text-align: center;
	font-size: 14px;
	color: var(--fg-3, #777);
	transform: translateY( -50% );
	pointer-events: none;
}
.inmo-pub-map-empty {
	background: rgba( 255, 255, 255, 0.92 );
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.08 );
	max-width: 380px;
	margin: 0 auto;
	left: 0; right: 0; inset: auto;
	top: 50%;
	transform: translate( 0, -50% );
	position: absolute;
	pointer-events: auto;
}

/* ── Pin custom ────────────────────────────────────────────────── */

.inmo-pub-map-pin {
	width: 26px;
	height: 26px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: var(--fg, #1a1a1a);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.3 );
	cursor: pointer;
	transition: transform .15s;
}
.inmo-pub-map-pin:hover {
	transform: scale( 1.15 );
	z-index: 1000;
}
.inmo-pub-map-pin.is-featured {
	background: var(--accent, #e2562b);
	width: 30px;
	height: 30px;
}
.inmo-pub-map-pin.is-op-alquiler {
	background: #2563eb;
}
.inmo-pub-map-pin.is-op-traspaso {
	background: var(--accent, #e2562b);
}
.inmo-pub-map-pin-dot {
	width: 8px;
	height: 8px;
	background: #fff;
	border-radius: 50%;
}

/* ── Popup ─────────────────────────────────────────────────────── */

.leaflet-popup.inmo-pub-map-popup .leaflet-popup-content-wrapper {
	padding: 0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba( 0, 0, 0, 0.18 );
}
.leaflet-popup.inmo-pub-map-popup .leaflet-popup-content {
	margin: 0;
	min-width: 240px;
}
.inmo-pub-map-popup-card {
	display: flex;
	flex-direction: column;
}
.inmo-pub-map-popup-photo {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
	background-color: var(--surface-2, #f6f6f4);
	border-radius: 0;
}
.inmo-pub-map-popup-body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--fg, #1a1a1a);
}
.inmo-pub-map-popup-op {
	display: inline-block;
	width: fit-content;
	padding: 2px 8px;
	background: var(--fg, #1a1a1a);
	color: #fff;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-bottom: 2px;
}
.inmo-pub-map-popup-price {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	font-feature-settings: 'tnum';
}
.inmo-pub-map-popup-title {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--fg, #1a1a1a) !important;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.35;
}
.inmo-pub-map-popup-title:hover {
	color: var(--accent, #e2562b) !important;
}
.inmo-pub-map-popup-city {
	font-size: 12px;
	color: var(--fg-3, #777);
}
.inmo-pub-map-popup-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 12px;
	color: var(--fg-2, #444);
	margin-top: 4px;
}
.leaflet-popup.inmo-pub-map-popup .leaflet-popup-tip {
	background: #fff;
}

/* ── View toggle: estilo del nuevo botón "Mapa" ──────────────── */

.inmo-view-btn[data-inmo-view="map"] {
	/* Reutiliza estilos existentes de .inmo-view-btn pero asegurar consistencia */
}

/* Responsive */
@media ( max-width: 700px ) {
	.inmo-pub-map-wrap {
		min-height: 420px;
	}
}
