/* Marker + tooltip decorativo — porte do padrão mapcn-marker-tooltip
   (github.com/AnmolSaini16/mapcn, MapLibre GL), com um cluster de prédios
   reais (Centro, raio de ~250m) em vez de dado de exemplo. */

.marker-demo-card {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  background: #0f1f19;
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(15,23,42,0.15));
}

.marker-demo-map {
  width: 100%;
  height: 280px;
}

.marker-demo-caption {
  padding: 14px 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* Pino custom (substitui o marcador padrão do MapLibre) — os "vizinhos"
   ficam discretos, só o flagship (Vogue Residence) chama atenção. */
.marker-demo-pin {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-amber, #b46a2a);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.marker-demo-pin:hover { transform: scale(1.25); }

.marker-demo-pin.is-flagship {
  width: 18px;
  height: 18px;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(196, 124, 46, 0.3), 0 2px 6px rgba(0,0,0,0.35);
}

.marker-demo-pin.is-flagship::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--brand-amber, #b46a2a);
  opacity: 0.55;
  animation: markerDemoPulse 2.2s ease-out infinite;
}

@keyframes markerDemoPulse {
  0% { transform: scale(0.6); opacity: 0.55; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Tooltip (popup do MapLibre, sem seta/borda padrão) */
.marker-demo-tooltip {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  white-space: nowrap;
}
.marker-demo-tooltip strong {
  color: var(--brand-amber-light, #d97706);
  font-weight: 700;
}

.marker-demo-map .maplibregl-popup-content {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.marker-demo-map .maplibregl-popup-tip { display: none !important; }
.marker-demo-map .maplibregl-ctrl-attrib {
  background: rgba(15,23,42,0.6) !important;
  color: rgba(255,255,255,0.6) !important;
  border: none !important;
}
.marker-demo-map .maplibregl-ctrl-attrib a { color: rgba(255,255,255,0.6) !important; }

@media (prefers-reduced-motion: reduce) {
  .marker-demo-pin.is-flagship::after { animation: none; display: none; }
}
